1 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4 * gengtype.c (vec_prefix_type): New function.
5 (note_def_vec): Use vec_prefix_type and change the length
6 attribute to be based on the prefix.
7 * vec.c: Include coretypes.h before vec.h.
8 (struct vec_prefix): Remove.
9 (vec_gc_p_reserve): Change the offsetof to sizeof.
10 (vec_gc_p_reserve_exact): Likewise.
11 (vec_heap_p_reserve): Likewise.
12 (vec_heap_p_reserve_exact): Likewise.
13 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14 (vec_stack_p_reserve): Change the offsetof to sizeof.
15 (vec_stack_p_reserve_exact): Likewise.
16 * vec.h (struct vec_prefix): New struct definition.
17 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
18 (VEC_T_GTY(T,B)): Likewise.
19 (DEF_VEC_FUNC_P(T)): Use prefix field.
20 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
21 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
23 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25 PR tree-optimization/46728
26 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
27 (powi_as_mults): Add gimple_set_location.
28 (build_and_insert_call): New.
29 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
30 0.5, 0.25, 0.75, 1./3., or 1./6.
32 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
34 * doc/contrib.texi: Update copyright years.
35 (Contributors): Add Zdenek Sojka.
37 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
39 * c-decl.c (c_push_function_context): Copy the current statement
41 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
42 (finish_struct): Call building_stmt_list_p instead of checking
44 * c-parser.c (c_parser_postfix_expression): Likewise.
45 * c-typeck.c (c_end_compound_stmt): Likewise.
46 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
47 * tree-iterator.c (stmt_list_cache): Change to a VEC.
48 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
49 (free_stmt_list): Likewise.
50 * tree.h (struct tree_statement_list): Include typed_tree instead
52 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
53 as TS_TYPED instead of TS_COMMON.
55 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
56 Uros Bizjak <ubizjak@gmail.com>
58 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
59 (HAVE_AS_IX86_TLSGDPTL): Define.
60 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
61 (HAVE_AS_IX86_TLSLDMPLT): Define.
62 * configure: Regenerate.
63 * config.in: Regenerate.
64 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
65 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
66 TARGET_SUN_TLS, use @tlsgdplt or @plt.
67 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
68 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
70 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
72 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
74 * sched-int.h (struct _haifa_deps_insn_data): New members cond
76 (INSN_COND, INSN_REVERSE_COND): New macros.
77 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
79 (sched_get_condition_with_rev): Cache the results, and look them up
81 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
82 are clobbered by the current insn.
83 * target.def (exposed_pipline): New sched data hook.
84 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
85 * doc/tm.texi: Regenerate.
87 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
89 PR tree-optimization/49170
90 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
93 2011-05-27 Richard Guenther <rguenther@suse.de>
96 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
99 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
101 * haifa-sched.c (sched_scan_info): Remove.
102 (schedule_block): Call sched_extend_luids rather than sched_init_luids
104 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
106 (sched_scan): Remove.
107 (sched_extend_luids): Renamed from luids_extend_insn and no longer
108 static. All callers changed.
109 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
110 static. All callers changed.
111 (sched_init_luids): Remove all arguments except the first. All
112 callers changed. Don't use sched_scan.
113 (haifa_init_h_i_d): Likewise.
114 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
115 manually rather than using sched_init_luids. Likewise with
116 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
117 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
118 rather than sched_init_luids with NULL args.
119 * sel-sched-ir.c (new_insns): Remove variable.
120 (sched_scan): New static function, previously in haifa-sched.c. Remove
121 all arguments but the first two; all callers changed.
122 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
123 rather than sched_init_luids.
124 (sel_init_bbs): Remove second argument. All callers changed.
125 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
127 (create_insn_rtx_from_pattern): Likewise.
128 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
129 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
130 (sched_init_insn_luid, sched_extend_luids): Declare.
131 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
134 2011-05-27 Richard Guenther <rguenther@suse.de>
137 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
138 A CMP B ? (T) true : (T) false for non-integral types T again.
140 2011-05-27 Jan Hubicka <jh@suse.cz>
142 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
143 so 0 means NULL string.
144 (lto_output_string_with_length): ... here.
145 (lto_output_string, output_string_cst, output_identifier): Update
146 handling of NULL strings.
147 (lto_output_location_bitpack): New function.
148 (lto_output_location): Use it.
149 (lto_output_tree_ref): Use output_record_start.
150 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
152 * lto-streamer-in.c (string_for_index): Break out from ...; offset
154 (input_string_internal): ... here;
155 (input_string_cst, input_identifier, lto_input_string): Update handling
157 (lto_input_location_bitpack): New function
158 (lto_input_location): Use it.
159 (unpack_ts_type_common_value_fields): Pack align & alias in var len
161 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
162 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
163 (bp_pack_value): Sanity check the value range.
164 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
166 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
169 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
171 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
172 call_arg_location instructions down the floor.
174 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
176 PR rtl-optimization/49154
177 * ira.c (setup_pressure_classes): Process class without sublcasses
178 as a candidate for pressure classes.
180 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
182 PR rtl-optimization/48575
183 * genrecog.c (position_type): New enum.
184 (position): New structure.
185 (decision): Use position structure instead of a string.
186 (root_pos, peep2_insn_pos_list): New variables.
187 (next_position, compare_positions): New functions.
188 (new_decision): Use position structures instead of strings.
189 (maybe_both_true): Likewise.
190 (change_state): Likewise.
191 (write_tree): Likewise.
192 (make_insn_sequence): Likewise.
194 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
196 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
197 TS_BASE instead of TS_COMMON.
198 (find_decls_types_r): Check for TS_TYPED structure before looking at
200 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
202 (BLOCK_CHAIN): Use new chain field.
204 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
206 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
207 moves expensive on Power7 also.
209 2011-05-26 Richard Guenther <rguenther@suse.de>
211 * fold-const.c (fold_unary_loc): Remove bogus code.
213 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
215 * tree.h (struct tree_identifier): Inherit from tree_typed, not
217 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
218 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
219 TS_BASE instead of TS_COMMON.
220 * varasm.c (assemble_name): Remove assert.
222 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
224 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
226 * libgcc-std.ver: Delete file.
228 2011-05-26 Richard Guenther <rguenther@suse.de>
230 PR tree-optimization/48702
231 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
232 only when we know the base address is within bounds.
233 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
234 assume the base address of TARGET_MEM_REFs is in bounds.
236 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
239 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
240 declaration in TARGET_SOLARIS.
242 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
244 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
245 The instruction is then expanded explicitly.
246 (supported_compare): Callable instruction.
249 2011-05-26 Jakub Jelinek <jakub@redhat.com>
252 * gimplify.c (shortcut_cond_r): Don't special case
253 COND_EXPRs if they have void type on one of their arms.
255 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
257 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
258 to reduce duplication, and to achieve a slightly more logical order
261 2011-05-26 Jakub Jelinek <jakub@redhat.com>
263 PR tree-optimization/49161
264 * tree-vrp.c (struct case_info): New type.
265 (compare_case_labels): Sort case_info structs instead of
266 trees, and not primarily by CASE_LABEL uids but by
267 label_for_block indexes.
268 (find_switch_asserts): Put case labels into struct case_info
269 array instead of TREE_VEC, adjust sorting, compare label_for_block
270 values instead of CASE_LABELs.
272 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
274 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
275 ("orndi3_neon"): Likewise.
276 ("bic<mode>3_neon"): Likewise.
278 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
280 PR tree-optimization/49038
281 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
282 Ensure at least one epilogue iteration if required by data
284 * tree-vectorizer.h (struct _loop_vec_info): Add new field
285 to mark loops that require peeling for gaps.
286 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
287 (vect_get_known_peeling_cost): Take peeling for gaps into
289 (vect_transform_loop): Generate epilogue if required by data
291 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
292 loop as requiring an epilogue if there are gaps in the end of
295 2011-05-25 Ian Lance Taylor <iant@google.com>
297 * godump.c (go_format_type): Output the first field with a usable
300 2011-05-25 Ian Lance Taylor <iant@google.com>
302 * godump.c (go_format_type): Check for invalid type names, pointer
303 target types, and struct field types.
305 2011-05-25 Jason Merrill <jason@redhat.com>
307 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
309 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
311 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
313 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
315 * config/i386/i386.md (*movqi_extv_1)): Put back
316 "register_operand" check in "type" calculation.
317 (*movqi_extzv_2): Likewise.
319 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
321 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
323 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
326 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
327 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
328 __divxc3, __divtc3): Wrap definitions in #ifndef.
330 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
333 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
334 "register_operand" check and replace q_regs_operand with
335 QIreg_operand in "type" calculation.
336 (*movqi_extv_1): Likewise.
337 (*movqi_extzv_2_rex64): Likewise.
338 (*movqi_extzv_2): Likewise.
340 * config/i386/predicates.md (QIreg_operand): New.
342 2011-05-25 Richard Guenther <rguenther@suse.de>
344 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
345 type-based offset disambiguation, streamline MEM_REF and
346 TARGET_MEM_REF handling.
348 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
350 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
351 (bdesc_special_args): Add pause intrinsic.
353 * config/i386/i386.md (UNSPEC_PAUSE): New.
356 * config/i386/ia32intrin.h (__pause): Likewise.
358 * doc/extend.texi (X86 Built-in Functions): Add documentation for
361 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
363 PR tree-optimization/46728
364 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
365 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
367 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
369 * tree.h (struct tree_exp): Inherit from struct tree_typed.
370 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
371 instead of TS_COMMON.
373 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
375 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
376 LIBGCC2_GNU_PREFIX is defined.
378 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
379 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
380 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
381 __clz_tab): Define using __N.
382 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
383 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
384 * target.def (libfunc_gnu_prefix): New hook.
385 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
386 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
387 * doc/tm.texi: Regenerate.
388 * system.h (LIBGCC2_GNU_PREFIX): Poison.
389 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
391 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
392 (init_optabs): Likewise for the bswap libfuncs.
393 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
395 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
396 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
397 * libgcc-std.ver: Remove.
398 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
399 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
401 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
402 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
403 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
404 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
405 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
406 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
407 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
408 * config/fixed-bit.h (FIXED_OP): Define differently depending on
409 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
410 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
412 2011-05-25 Jan Hubicka <jh@suse.cz>
414 * lto-streamer-out.c (output_record_start): Use lto_output_enum
415 (lto_output_tree): Use output_record_start.
416 * lto-streamer-in.c (input_record_start): Use lto_input_enum
417 (lto_get_pickled_tree): Use input_record_start.
418 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
419 (lto_value_range_error): New function.
420 * lto-streamer.h (lto_value_range_error): Declare.
421 (lto_output_int_in_range, lto_input_int_in_range): New functions.
422 (lto_output_enum, lto_input_enum): New macros.
424 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
426 * common.opt (flag_stack_usage_info): New variable.
427 (-Wstack-usage): New option.
428 * doc/invoke.texi (Warning options): Document -Wstack-usage.
429 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
430 <OPT_fstack_usage>: Likewise.
431 * toplev.c (output_stack_usage): Handle -Wstack-usage.
432 * calls.c (expand_call): Test flag_stack_usage_info variable instead
434 (emit_library_call_value_1): Likewise.
435 * explow.c (allocate_dynamic_stack_space): Likewise.
436 * function.c (instantiate_virtual_regs ): Likewise.
437 (prepare_function_start): Likewise.
438 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
439 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
440 * config/arm/arm.c (arm_expand_prologue): Likewise.
441 (thumb1_expand_prologue): Likewise.
442 * config/avr/avr.c (expand_prologue): Likewise.
443 * config/i386/i386.c (ix86_expand_prologue): Likewise.
444 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
445 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
446 * config/mips/mips.c (mips_expand_prologue): Likewise.
447 * config/pa/pa.c (hppa_expand_prologue): Likewise.
448 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
449 * config/s390/s390.c (s390_emit_prologue): Likewise.
450 * config/sh/sh.c (sh_expand_prologue): Likewise.
451 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
452 * config/spu/spu.c (spu_expand_prologue): Likewise.
454 2011-05-25 Richard Guenther <rguenther@suse.de>
456 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
457 (gimple_canonical_types_compatible_p): Likewise.
459 2011-05-25 Jan Hubicka <jh@suse.cz>
462 * ipa.c (function_and_variable_visibility): Only add to same
463 comdat group list if DECL_ONE_ONLY.
465 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
467 PR rtl-optimization/49014
468 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
470 2011-05-25 Jakub Jelinek <jakub@redhat.com>
473 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
475 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
477 PR rtl-optimization/48757
478 * ira-build.c (loop_with_eh_edge_p): Rename to
479 loop_with_complex_edge_p, check edges on complexity, make function
481 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
484 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
486 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
487 force flag_ira_share_save_slots to 0.
489 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
491 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
492 (vt_initialize): Set PROLOGUE_BB unconditionally.
493 Add block comment about CFA_BASE_RTX machinery.
494 Reset FP_CFA_OFFSET to -1 on all invalid paths.
495 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
497 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
500 * c-parser.c (c_parser_objc_class_instance_variables): More robust
501 parsing of syntax error in ObjC instance variable lists. In
502 particular, avoid an infinite loop if there is a stray ']'.
503 Updated error message.
505 2011-05-24 Ian Lance Taylor <iant@google.com>
507 * godump.c (go_define): Don't accept a string immediately after
510 2011-05-24 Ian Lance Taylor <iant@google.com>
512 * godump.c (struct godump_container): Add invalid_hash field.
513 (go_format_type): Return false if type is found in invalid_hash.
514 (go_output_typedef): Add invalid type to invalid_hash.
515 (go_finish): Create and delete invalid_hash.
517 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
519 PR tree-optimization/46728
520 * tree-ssa-math-opts.c (powi_table): New.
521 (powi_lookup_cost): New.
523 (powi_as_mults_1): New.
524 (powi_as_mults): New.
525 (gimple_expand_builtin_powi): New.
526 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
527 (gate_cse_sincos): Remove sincos/cexp restriction.
529 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
532 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
534 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
535 * mips-tdump.c: Likewise.
537 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
540 * config/i386/driver-i386.c (host_detect_local_cpu): Always
541 add -mno-XXX. Handle FMA.
543 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
545 PR rtl-optimization/48633
546 * ira-build.c (loop_with_eh_edge_p): New function.
547 (mark_loops_for_removal): Use it.
549 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
551 PR rtl-optimization/48971
552 * ira.c (setup_pressure_classes): Don't check register move cost
553 for classes with one registers. Don't add pressure class if there
554 is a pressure class with the same available hard registers.
555 Check contains_reg_of_mode. Fix a typo in collecting
556 temp_hard_regset. Ignore hard registers not belonging to a class.
558 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
561 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
563 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
564 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
566 PR gcov-profile/48845
567 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
569 2011-05-24 Richard Guenther <rguenther@suse.de>
571 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
572 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
573 (gimple_types_compatible_p_1): Adjust.
574 (iterative_hash_canonical_type): Do not bother about complete vs.
576 (gimple_canonical_types_compatible_p): Likewise.
578 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
580 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
582 2011-05-24 Richard Guenther <rguenther@suse.de>
585 * gimple.c (gimple_register_canonical_type): Revert
587 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
588 does not for a tree for the case where it matters. Cache
589 pointer-type alias-sets.
591 2011-05-24 Joseph Myers <joseph@codesourcery.com>
593 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
594 (OBJS): Remove options.o, opts-common.o and prefix.o.
595 (OBJS-libcommon-target): New.
596 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
597 (BACKEND): Include libcommon-target.a.
598 (MOSTLYCLEANFILES): Include libcommon-target.a.
599 (libcommon-target.a): New.
600 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
603 2011-05-23 Joseph Myers <joseph@codesourcery.com>
605 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
606 parts of output shared with the driver.
607 * optc-gen.awk: Don't generate parts of output not shared with the
609 * opth-gen.awk: Remove GCC_DRIVER conditionals.
610 * doc/options.texi (SourcerInclude): Mention options-save.c.
611 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
612 (OBJS): Add options-save.o.
613 (options-save.c, options-save.o): New.
614 (options.o): Update dependencies.
615 (gcc-options.o): Remove.
616 (mostlyclean): Remove options-save.c.
618 2011-05-23 Jakub Jelinek <jakub@redhat.com>
621 * dbxout.c: Include cgraph.h.
622 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
623 and without value expr, return NULL if no varpool node exists for
624 it or if it is not needed.
625 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
628 * c-decl.c (start_decl): Convert expr to void_type_node.
630 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
632 PR rtl-optimization/48826
633 * emit-rtl.c (try_split): When splitting a call that is followed
634 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
636 2011-05-23 Jakub Jelinek <jakub@redhat.com>
638 * cfgexpand.c (expand_debug_expr): For unused non-addressable
639 parameters passed in memory prefer using DECL_INCOMING_RTL over
640 the pseudos it will be copied into.
642 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
645 * config/i386/i386.c (ix86_option_override_internal): Save the
646 initial options after checking vzeroupper.
648 2011-05-23 David Li <davidxl@google.com>
650 PR tree-optimization/48988
651 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
652 Initialize has_valid_pred for each pred chain.
654 2011-05-23 Richard Guenther <rguenther@suse.de>
656 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
657 (iterative_hash_gimple_type): Always hash type names.
659 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
661 * c-typeck.c (build_function_call_vec): Tweak call to
662 check_function_arguments.
664 2011-05-23 Richard Guenther <rguenther@suse.de>
666 PR tree-optimization/49115
667 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
668 is not necessarily carried out, do not claim it kills the ref.
669 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
671 2011-05-23 Richard Guenther <rguenther@suse.de>
674 * builtins.c (fold_builtin_memory_op): Be less restrictive about
675 what pointer types we accept for folding.
677 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
679 * gthr-gnat.c: Remove.
680 * gthr-gnat.h: Remove.
681 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
682 * config/t-freebsd (LIB2ADDEH): Likewise.
683 * config/t-linux (LIB2ADDEH): Likewise.
684 * config/t-sol2 (LIB2ADDEH): Likewise.
685 * config/ia64/t-vms (LIB2ADDEH): Likewise.
686 * configure.ac (target_thread_file): Remove gnat handling.
687 * configure: Regenerate.
688 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
690 2011-05-23 Tristan Gingold <gingold@adacore.com>
691 Eric Botcazou <ebotcazou@adacore.com>
693 * gcov.c (create_file_names): If no object directory is specified,
694 keep the directory of the file.
696 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
698 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
699 * configure: Regenerate.
701 2011-05-23 Jakub Jelinek <jakub@redhat.com>
704 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
705 failed and the comparison has a single bit signed type, use
706 constm1_rtx instead of const1_rtx for true value.
707 (do_store_flag): If ops->type is single bit signed type, disable
708 signel bit test optimization and pass -1 instead of 1 as last
709 parameter to emit_store_flag_force.
711 2011-05-23 Tom de Vries <tom@codesourcery.com>
714 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
716 (infer_loop_bounds_from_undefined): Use new function.
718 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
720 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
721 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
722 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
724 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
726 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
728 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
729 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
732 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
734 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
736 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
738 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
739 UNSPEC_MOVE_PIC pattern.
741 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
743 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
744 (sparc-*-rtems*): Likewise.
745 (sparc64-*-elf*): Likewise.
746 (sparc64-*-rtems*): Likewise.
747 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
748 * config/sparc/t-crtin: New file.
749 * config/sparc/t-sol2 (crti.o): Delete rule.
751 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
752 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
753 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
754 (ENDFILE_SPEC): Add crtn.o.
756 2011-05-22 Tom de Vries <tom@codesourcery.com>
759 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
760 CODE_CONTAINS_STRUCT (TS_COMMON).
762 2011-05-22 Jakub Jelinek <jakub@redhat.com>
765 * expmed.c (extract_fixed_bit_field): Test whether target can be used
766 only after deciding which mode to use.
768 2011-05-22 Tom de Vries <tom@codesourcery.com>
771 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
772 for call to get_shiftadd_cost.
774 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
777 * config/i386/cpuid.h (bit_MMXEXT): New define.
779 2011-05-22 Nick Clifton <nickc@redhat.com>
781 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
782 initialisation of non-existant args[2] element. Use args[] array
783 not arg[] array to pass arguments to build_function_type_list.
785 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
787 PR tree-optimization/49087
788 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
790 2011-05-21 Jason Merrill <jason@redhat.com>
793 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
794 static storage duration.
796 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
798 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
801 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
803 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
804 false if there are call-saved registers here...
805 (sparc_can_use_return_insn_p): ...but here instead.
806 (save_or_restore_regs): Fix thinko.
807 (sparc_expand_prologue): Use current_function_is_leaf.
808 (sparc_frame_pointer_required): Likewise.
810 2011-05-21 Nick Clifton <nickc@redhat.com>
813 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
815 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
817 * gengtype.c (walk_type): Implemented "atomic" GTY option.
818 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
820 2011-05-21 Joseph Myers <joseph@codesourcery.com>
822 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
823 * optc-gen.awk: Move common code to opt-read.awk.
824 * opth-gen.awk: Likewise.
825 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
827 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
829 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
831 2011-05-20 Tom de Vries <tom@codesourcery.com>
834 * tree-ssa-loop-ivopts.c: Include expmed.h.
835 (get_shiftadd_cost): New function.
836 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
838 2011-05-20 Jakub Jelinek <jakub@redhat.com>
841 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
842 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
844 2011-05-20 Joseph Myers <joseph@codesourcery.com>
846 * Makefile.in: Update comment referring to $(OBJS-common).
848 2011-05-20 Ian Lance Taylor <iant@google.com>
850 * godump.c (go_output_typedef): Put enum constants in the macro
851 hash table to avoid duplicate Go const definitions.
853 2011-05-20 Joseph Myers <joseph@codesourcery.com>
855 * Makefile.in (LIBDEPS): Add libcommon.a.
857 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
858 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
859 pretty-print.o and version.o.
860 (OBJS-libcommon): New.
861 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
862 (BACKEND): Add libcommon.a.
863 (MOSTLYCLEANFILES): Likewise.
865 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
866 (cpp$(exeext)): Likewise.
867 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
868 pretty-print.o and input.o.
869 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
870 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
872 (mips-tfile): Don't explicitly use version.o.
873 (mips-tdump): Likewise.
874 (gcov.o): Depend on $(DIAGNOSTIC_H).
875 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
876 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
877 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
878 * gcov-dump.c: Include intl.h and diagnostic.h.
879 (main): Initialize diagnostics.
880 * gcov.c: Include diagnostic.h.
882 (main): Initialize diagnostics.
883 * lto-wrapper.c: Include diagnostic.h.
884 (main): Initialize diagnostics.
886 2011-05-20 Michael Matz <matz@suse.de>
888 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
890 2011-05-20 Michael Matz <matz@suse.de>
891 Richard Guenther <rguenther@suse.de>
893 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
894 use lto_streamer_cache_append directly instead of returning a VEC.
895 (preload_common_node): Remove.
896 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
898 (lto_streamer_cache_create): Call lto_preload_common_nodes.
900 2011-05-20 Richard Guenther <rguenther@suse.de>
902 PR tree-optimization/49079
903 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
904 MEM_REFs correctly for the trailing array access detection.
905 Special case constants the same way as decls for overall size
908 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
910 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
913 2011-05-20 Jakub Jelinek <jakub@redhat.com>
915 PR tree-optimization/49073
916 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
917 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
918 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
920 2011-05-20 Richard Guenther <rguenther@suse.de>
923 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
924 of pointer types the same way the middle-end does.
926 2011-05-20 Richard Guenther <rguenther@suse.de>
928 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
929 or pointer-to chains. Delay all fixup to uniquify_nodes.
931 2011-05-19 Quentin Neill <quentin.neill@amd.com>
933 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
934 (fma4_fmaddsub): Likewise
936 2011-05-19 Jan Hubicka <jh@suse.cz>
938 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
939 (GIMPLE_TYPE_PAIR_SIZE): New macro.
940 (type_pair_cache): New static var.
941 (lookup_type_pair): Use fixed sized custom hash; make inline.
942 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
943 calls of lookup_type_pair.
944 (print_gimple_types_stats): Remove cache stats.
945 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
948 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
950 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
951 when TARGET_RDRND is active.
952 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
953 Generate dummy SImode target register when target is NULL.
955 2011-05-19 Joseph Myers <joseph@codesourcery.com>
957 * config/arm/arm-fpus.def: New.
958 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
960 * config/arm/arm-tables.opt: Regenerate.
961 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
962 (arm_option_override): Don't decode FPU name to string here.
963 * config/arm/arm.opt (mfpu=): Use Enum.
964 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
967 2011-05-19 Joseph Myers <joseph@codesourcery.com>
969 * collect2.c: Include diagnostic.h.
970 (fatal_perror, fatal, error, fancy_abort): Remove.
971 (main): Set progname. Call xmalloc_set_program_name and
972 diagnostic_initialize.
973 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
974 scan_libraries, resolve_lib_name): Call fatal_error instead of
975 fatal and fatal_perror.
976 * collect2.h (error, fatal, fatal_perror): Don't declare.
977 * tlink.c: Include diagnostic-core.h.
978 (recompile_files): Call fatal_error instead of fatal_perror.
979 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
980 pretty-print.o and input.o.
981 (collect2.o, tlink.o): Update dependencies.
983 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
985 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
987 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
990 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
991 COMDAT group syntax, both SPARC and x86 variants.
992 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
993 * configure: Regenerate.
994 * config/sol2.h (TARGET_SOLARIS): Define.
995 (PUSHSECTION_FORMAT): Remove.
996 (SECTION_NAME_FORMAT): Define.
997 * config/sol2.c: Include hashtab.h.
998 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
999 expansion, using SECTION_NAME_FORMAT.
1000 (solaris_comdat_htab): New variable.
1001 (struct comdat_entry): Define.
1002 (comdat_hash): New function.
1003 (comdat_eq): New function.
1004 (solaris_elf_asm_comdat_section): New function.
1005 (solaris_define_comdat_signature): New function.
1006 (solaris_code_end): New function.
1007 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1008 (solaris_code_end): Declare.
1009 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1010 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1012 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1013 Remove ATTRIBUTE_UNUSED.
1014 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1015 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1016 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1017 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1018 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1019 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1020 (PUSHSECTION_FORMAT): Remove.
1021 (SECTION_NAME_FORMAT): Redefine.
1023 2011-05-19 Kai Tietz <ktietz@redhat.com>
1025 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1026 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1027 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1029 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1030 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1034 2011-05-19 Richard Guenther <rguenther@suse.de>
1037 * tree-object-size.c (addr_object_size): If the pointed-to
1038 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1040 2011-05-19 Richard Guenther <rguenther@suse.de>
1042 * gimple.c (gimple_types_compatible_p_1): Compare names of
1043 the types themselves.
1044 (iterative_hash_gimple_type): And hash them that way.
1045 (gimple_register_type_1): If we register a main variant properly
1046 initialize the leader to ourselves.
1048 2011-05-19 Tom de Vries <tom@codesourcery.com>
1051 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1052 get_loop_invariant_expr_id.
1053 (get_loop_invariant_expr_id): Use get_expr_id.
1054 (parm_decl_cost): New function.
1055 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1056 Improve bound cost estimation. Use different inv_expr_id for elim and
1059 2011-05-19 Tom de Vries <tom@codesourcery.com>
1062 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1063 cost_base.cost == 0.
1065 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1068 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1069 Properly handle load cast.
1071 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1073 PR tree-optimization/49039
1074 * tree-vrp.c (extract_range_from_binary_expr): For
1075 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1076 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1078 2011-05-18 Tom de Vries <tom@codesourcery.com>
1081 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1083 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1085 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1086 (*tls_global_dynamic_64): Ditto.
1087 (*tls_local_dynamic_base_32_gnu): Ditto.
1088 (*tls_local_dynamic_base_64): Ditto.
1089 (tls_initial_exec_64_sun): Ditto.
1091 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1093 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1094 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1096 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1097 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1098 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1099 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1100 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1101 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1102 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1104 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1106 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1107 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1108 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1109 target_thread_pointer, arm_structure_size_boundary, struct
1110 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1111 struct abi_name, arm_all_abis): Remove.
1112 (arm_option_override) Don't process most enumerated option values here.
1113 Don't process target_fpe_name here. Work with integer not string for
1114 structure size boundary; use separate diagnostics for each case.
1115 * config/arm/arm.h (enum float_abi_type, enum
1116 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1118 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1119 arm_structure_size_boundary): Remove.
1120 * config/arm/arm.opt (mabi=): Use Enum and Init.
1121 (arm_abi_type): New Enum and EnumValue entries.
1122 (mfloat-abi=): Use Enum and Init.
1123 (float_abi_type): New Enum and EnumValue entries.
1124 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1125 (mfp16-format=): Use Enum and Init.
1126 (arm_fp16_format_type): New Enum and EnumValue entries.
1127 (mstructure-size-boundary=): Use UInteger and Init.
1128 (mtp=): Use Enum and Init.
1129 (arm_tp_type): New Enum and EnumValue entries.
1131 2011-05-18 Richard Guenther <rguenther@suse.de>
1133 PR tree-optimization/49018
1134 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1135 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1136 gimple_has_side_effects.
1138 2011-05-18 Richard Guenther <rguenther@suse.de>
1140 * gimple.c (gimple_register_type_1): New function, split out from ...
1141 (gimple_register_type): ... here. Avoid infinite recursion.
1143 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1145 PR tree-optimization/41881
1146 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1147 reduction_chains along with a macro for its access.
1148 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1149 (destroy_loop_vec_info): Free reduction chains.
1150 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1151 (vect_is_slp_reduction): New function.
1152 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1153 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1154 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1155 definition types for reduction chains.
1156 (vect_supported_load_permutation_p): Don't allow permutations for
1158 (vect_analyze_slp_instance): Support reduction chains.
1159 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1160 (vect_get_constant_vectors): Handle reduction chains.
1161 (vect_schedule_slp_instance): Mark the first statement of the
1162 reduction chain as reduction.
1164 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1166 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1167 names for group elements access.
1168 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1169 reduction chains as well. Remove data reference and interleaving
1170 related words from the fields names.
1171 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1173 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1174 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1175 vect_update_interleaving_chain, vect_same_range_drs,
1176 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1177 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1178 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1179 vect_analyze_group_access, vect_analyze_data_ref_access,
1180 vect_create_data_ref_ptr, vect_transform_strided_load,
1181 vect_record_strided_load_vectors): Likewise.
1182 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1183 vect_model_load_cost, vectorizable_store, vectorizable_load,
1184 vect_remove_stores, new_stmt_vec_info): Likewise.
1185 * tree-vect-slp.c (vect_build_slp_tree,
1186 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1188 2011-05-18 Richard Guenther <rguenther@suse.de>
1191 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1192 operand verification.
1193 (verify_gimple_assign_binary): Likewise.
1194 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1195 to non-1-precision BOOLEAN_TYPEs.
1197 2011-05-18 Tom de Vries <tom@codesourcery.com>
1200 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1202 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1204 PR tree-optimization/49000
1205 * tree-ssa.c (execute_update_addresses_taken): Call
1206 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1207 be rewritten and decl has been marked for renaming, reset
1210 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1212 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1213 enum_opts_set when testing if attributes have set -mfpmath=.
1215 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1217 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1219 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1221 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1223 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1224 id.transform_lang_insert_block with NULL.
1226 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1228 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1229 (output_fp_compare): Change args 3 and 4 to bool.
1230 (ix86_expand_call): Change arg 6 to bool.
1231 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1232 (ix86_attr_length_vex_default): Change arg 3 to bool.
1233 * config/i386/i386.md: Update all uses.
1234 * config/i386/i386.c: Ditto.
1235 (ix86_flags_dependent): Change return type to bool.
1237 2011-05-17 Richard Guenther <rguenther@suse.de>
1239 * gimple.c (type_hash_pair_compare): Fix comparison.
1241 2011-05-17 Richard Guenther <rguenther@suse.de>
1243 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1244 case some more, fix final hash value of the non-singleton case.
1246 2011-05-17 Richard Guenther <rguenther@suse.de>
1250 2011-05-16 Richard Guenther <rguenther@suse.de>
1252 * gimple.c (gimple_types_compatible_p_1): Use names of the
1253 type itself, not its main variant.
1254 (iterative_hash_gimple_type): Likewise.
1256 2011-05-17 Richard Guenther <rguenther@suse.de>
1258 * gimple.c (gimple_register_canonical_type): Use the main-variant
1259 leader for computing the canonical type.
1261 2011-05-17 Nick Clifton <nickc@redhat.com>
1263 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1266 * config/rx/rx.md: Add peephole to remove redundant extensions
1268 (bitset_in_memory): Use rx_restricted_mem_operand.
1269 (bitinvert_in_memory): Likewise.
1270 (bitclr_in_memory): Likewise.
1272 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1273 Nick Clifton <nickc@redhat.com>
1275 * config/rx/rx.md: Add peepholes to match a register move followed
1276 by a comparison of the moved register. Replace these with an
1277 addition of zero that does both actions in one instruction.
1279 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1282 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1283 predicate to allow CONST_INT.
1284 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1286 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1288 * opts-common.c (opt_enum_arg_to_value): New.
1289 * opts.h (opt_enum_arg_to_value): Declare.
1290 * config/i386/i386.opt (fpmath): Remove.
1291 (mfpmath=): Use Enum, Init and Save.
1292 (fpmath_unit): New Enum and EnumValue entries.
1293 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1294 name for function fpmath state.
1295 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1296 * config/i386/i386.c: Include diagnostic.h.
1297 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1298 (ix86_target_string): Take enum fpmath_unit value instead of string.
1299 (ix86_debug_options): Update call to ix86_target_string.
1300 (ix86_option_override_internal): Don't process fpmath strings here.
1301 (x86_function_specific_save, ix86_function_specific_restore):
1302 Don't handle fpmath state specially.
1303 (ix86_function_specific_print): Pass fpmath state to
1304 ix86_target_string instead of printing in this function.
1305 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1306 Handle enum attributes.
1307 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1308 (ix86_valid_target_attribute_tree): Update option_strings
1309 handling. Handle fpmath as enum option.
1310 (ix86_can_inline_p): Update field names for function fpmath state.
1311 (ix86_expand_builtin): Update call to ix86_target_string.
1312 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1313 (ix86_fpmath): Remove.
1314 * config/i386/t-i386 (i386.o): Update dependencies.
1316 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1318 PR preprocessor/48677
1319 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1320 from decoded_options[0], not from itself.
1322 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1324 * config/i386/constraints.md (z): New constraint.
1325 * config/i386/i386.c (c): New mode attribute.
1326 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1327 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1328 constraint for operand 0.
1329 (*call_vzeroupper): Ditto.
1330 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1331 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1332 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1333 Use "lzm" constraint for operand 0.
1334 (*call_pop_vzeroupper): Ditto.
1335 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1336 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1337 constraint for operand 0.
1338 (*sibcall_vzeroupper): Ditto.
1339 (*sibcall_rex64_ms_sysv): Ditto.
1340 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1341 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1342 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1343 (*sibcall_pop_vzeroupper): Ditto.
1344 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1345 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1346 mode iterator. Use "<c>zm" constraint for operand 1.
1347 (*call_value_vzeroupper): Ditto.
1348 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1350 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1351 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1352 *call_value_pop_1. Use "lzm" constraint for operand 1.
1353 (*call_value_pop_vzeroupper): Ditto.
1354 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1355 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1356 mode iterator. Use "Uz" constraint for operand 1.
1357 (*sibcall_value_vzeroupper): Ditto.
1358 (*sibcall_value_rex64_ms_sysv): Ditto.
1359 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1360 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1361 constraint for operand 1.
1362 (*sibcall_value_pop_vzeroupper): Ditto.
1363 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1364 and "z" constraint for operand 2.
1365 (*tls_global_dynamic_32_gnu): Ditto.
1366 (*tls_local_dynamic_base_32_gnu): Ditto.
1367 (*tls_local_dynamic_base_64): Ditto.
1368 (*tls_local_dynamic_32_once): Ditto.
1369 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1371 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1373 2011-05-16 Richard Guenther <rguenther@suse.de>
1375 * gimple.c (gimple_types_compatible_p_1): Use names of the
1376 type itself, not its main variant.
1377 (iterative_hash_gimple_type): Likewise.
1379 2011-05-16 Richard Guenther <rguenther@suse.de>
1381 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1382 always visit pointer target and function result and argument types.
1384 2011-05-16 Jason Merrill <jason@redhat.com>
1387 * tree-inline.c (copy_statement_list): Put back recursion.
1389 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1393 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1394 * config/avr/avr.md ("*ior<mode>qi.byte0",
1395 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1397 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1400 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1401 register is needed for a function argument.
1403 2011-05-16 Richard Guenther <rguenther@suse.de>
1405 * gimple.c (struct type_hash_pair): New type.
1406 (type_hash_pair_compare): New function.
1407 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1409 2011-05-16 Revital Eres <revital.eres@linaro.org>
1411 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1413 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1415 * config/i386/i386.md (floating point move splitters): Fix
1416 usage of standard_80387_constant_p.
1417 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1419 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1421 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1423 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1425 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1426 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1427 (tree_ssa_lim_finalize): Likewise.
1429 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1431 * config/i386/constraint.md (Yd, Yx): New register constraints.
1432 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1433 Yd conditional register constraint.
1434 (*movtf_internal): Use standard_sse_constant_opcode.
1435 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1436 Yx conditional register constraint.
1437 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1438 Yd conditional register constraint. Use standard_sse_constant_p to
1439 check for valid SSE constants and call standard_sse_constant_opcode to
1441 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1442 constants and call standard_sse_constant_opcode to output SSE insn.
1443 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1444 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1445 optimize_size is set.
1446 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1448 2011-05-14 Tobias Burnus <burnus@net-b.de>
1450 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1452 2011-05-13 Martin Jambor <mjambor@suse.cz>
1454 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1455 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1456 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1457 (evaluate_conditions_for_ipcp_clone): Removed.
1458 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1459 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1460 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1462 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1464 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1465 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1466 lieu of MAY_HAVE_DEBUG_STMTS.
1467 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1468 debug statements if !MAY_HAVE_DEBUG_STMTS.
1470 2011-05-13 Martin Thuresson <martint@google.com>
1472 PR gcov-profile/47793
1473 * libgcov.c (gcov_exit): Support relative profile paths.
1474 * doc/invoke.texi (-fprofile-dir): Update for above change.
1476 2011-05-13 Richard Guenther <rguenther@suse.de>
1478 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1479 type-pair caching, do not compare hashes.
1481 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1484 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1485 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1487 2011-05-13 Kai Tietz <ktietz@redhat.com>
1489 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1490 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1491 compatible type for TRUTH_NOT_EXPR.
1493 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1495 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1496 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1497 can_create_pseudo_p ().
1499 2011-05-13 Richard Guenther <rguenther@suse.de>
1502 * gimple.c (iterative_hash_gimple_type): Revert change in
1503 pointer target and function result and argument hashing.
1505 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1507 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1508 (*movxf_internal_nointeger): Ditto.
1509 (*movdf_internal_rex64): Ditto.
1510 (*movdf_internal): Ditto.
1511 (*movdf_internal_nointeger): Ditto.
1512 (*movsf_internal): Ditto.
1513 (sincos splitters): Use can_create_pseudo ().
1515 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1517 * config/i386/i386-opts.h: New.
1518 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1519 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1520 ix86_section_threshold): Remove.
1521 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1522 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1524 (ix86_option_override_internal): Don't decode strings for options
1525 other than -march=, -mtune= and -mfpmath=. Don't allow for
1526 __attribute__ uses in remaining diagnostics for options with
1527 string arguments. Don't check for integer arguments being negative.
1528 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1529 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1530 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1531 ix86_branch_cost, ix86_section_threshold): Remove.
1532 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1534 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1536 (masm=): Use Enum and Init.
1537 (asm_dialect): New Enum and EnumValue entries.
1538 (mbranch-cost=): Use UInteger.
1539 (mlarge-data-threshold=): Use UInteger and Init.
1540 (mcmodel=): Use Enum and Init.
1541 (cmodel): New Enum and EnumValue entries.
1542 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1543 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1544 mregparm=): Use UInteger.
1545 (mstringop-strategy=): Use Enum and Init.
1546 (stringop_alg): New Enum and EnumValue entries.
1547 (mtls-dialect=): Use Enum and Init.
1548 (tls_dialect): New Enum and EnumValue entries.
1549 (mabi=): Use Enum and Init.
1550 (calling_abi): New Enum and EnumValue entries.
1551 (mveclibabi=): Use Enum and Init.
1552 (ix86_veclibabi): New Enum and EnumValue entries.
1554 2011-05-13 Nick Clifton <nickc@redhat.com>
1556 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1557 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1559 2011-05-13 Kai Tietz <ktietz@redhat.com>
1562 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1563 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1564 (gimple_boolify): Check for cast for boolean_type_node instead for
1567 2011-05-13 Richard Guenther <rguenther@suse.de>
1569 PR tree-optimization/48172
1570 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1571 multiplying by number of iterations for equal step.
1572 (vect_create_cond_for_alias_checks): Likewise.
1574 2011-05-13 Andreas Schwab <schwab@redhat.com>
1576 * configure.ac: Use AS_HELP_STRING throughout.
1577 * configure: Regenerate.
1579 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1581 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1582 (ix86_emit_restore_regs_using_mov): Likewise.
1583 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1585 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1587 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1588 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1589 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1590 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1591 RTX_OK_FOR_OLO10_P): ...here.
1592 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1595 2011-05-12 Kai Tietz <ktietz@redhat.com>
1597 * gimplify.c (gimple_boolify): Re-boolify expression
1598 arguments even if expression type is of kind BOOLEAN_TYPE.
1599 (gimplify_boolean_expr): Removed.
1600 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1601 and XOR. Additional take care that we keep expression's type.
1602 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1603 of TRUTH_AND|OR|XOR_EXPR.
1605 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1607 PR tree-optimization/48975
1608 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1609 on all bbs here and free and clear ifc_bbs at the end.
1611 2011-05-12 Richard Guenther <rguenther@suse.de>
1613 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1614 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1615 until after simple checks.
1616 (gimple_types_compatible_p): Likewise.
1617 (iterative_hash_gimple_type): Always hash pointer targets
1618 and function return and argument types.
1619 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1620 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1621 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1622 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1623 completely in the simple compare section.
1624 (gimple_register_canonical_type): Query the cache again after
1627 2011-05-12 Richard Guenther <rguenther@suse.de>
1629 PR tree-optimization/48172
1630 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1631 the number of iterations from the segment size calculation.
1632 (vect_create_cond_for_alias_checks): Adjust.
1634 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1637 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1638 if validate_subreg fails.
1640 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1642 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1643 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1646 2011-05-12 DJ Delorie <dj@redhat.com>
1648 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1649 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1650 created builtin into rx_builtins array.
1651 (rx_builtin_decl): New function.
1652 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1654 2011-05-12 DJ Delorie <dj@redhat.com>
1655 Nick Clifton <nickc@redhat.com>
1657 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1658 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1659 (rx_is_legitimate_address): Add pre-decrement and post-increment
1660 addressing in HImode and QImode. Fix test for out of range
1662 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1663 (rx_align_for_label): Test label before extracting its usage count.
1664 (rx_adjust_insn_lengths): Fix selection of insn codes.
1665 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1667 2011-05-11 Jason Merrill <jason@redhat.com>
1669 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1671 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1673 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1674 reindent the subsequent block.
1676 2011-05-11 Satoru Takabayashi <satorux@google.com>
1677 Paul Pluzhnikov <ppluzhnikov@google.com>
1679 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1680 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1681 * config.in: Add LINKER_HASH_STYLE.
1682 * configure.ac: Add --with-linker-hash-style.
1683 * configure: Regenerate.
1685 2011-05-11 Richard Guenther <rguenther@suse.de>
1688 * gimple.c (iterative_hash_canonical_type): Fix typo.
1690 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1692 * config/i386/i386.c (legitimize_tls_address)
1693 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1694 expanders directly for TARGET_GNU2_TLS. Determine pic and
1695 __tls_get_addr symbol reference here. Update call to
1696 gen_tls_global_dynamic_{32,64} for added arguments.
1697 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1698 expanders directly for TARGET_GNU2_TLS. Determine
1699 __tls_get_addr symbol reference here. Update call to
1700 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1701 unique UNSPEC REG_EQUIV to libcall block.
1702 (ix86_tls_get_addr): Declare static.
1703 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1704 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1705 Do not determine pic and __tls_get_addr symbol reference here. Do not
1706 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1707 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1708 (tls_global_dynamic_64): Add operand 2. Do not determine
1709 __tls_get_addr symbol reference here. Do not call
1710 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1711 (tls_local_dynamic_base64): Ditto for operand 1.
1713 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1715 * function.c (expand_function_start): Initialize stack_check_probe_note
1716 only if the generic stack checking mechanism is used.
1718 2011-05-11 Richard Guenther <rguenther@suse.de>
1720 PR tree-optimization/15256
1721 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1722 (A & B) | C, combine (A op CST1) op CST2.
1723 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1724 visit assigns that have uses.
1726 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1728 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1729 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1730 (unpack_ts_type_common_value_fields): ...this. Update comment.
1731 (unpack_value_fields): Adjust for renaming.
1732 (lto_input_ts_type_tree_pointers): Split into...
1733 (lto_input_ts_type_common_tree_pointer): ...this and...
1734 (lto_input_ts_type_non_common_tree_pointers): ...this.
1735 (lto_input_tree_pointers): Adjust for above split.
1736 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1737 (pack_ts_type_common_value_fields): ...this. Update comment.
1738 (lto_output_ts_type_tree_pointers): Split into...
1739 (lto_output_ts_type_common_tree_pointers): ...this and...
1740 (lto_output_ts_type_non_common_tree_pointers): ...this.
1741 (lto_output_tree_pointers): Adjust for above split.
1742 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1743 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1744 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1745 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1747 (struct tree_type): Split into...
1748 (struct tree_type_common: ...this and...
1749 (struct tree_type_with_lang_specific): ...this and...
1750 (struct tree_type_non_common): ...this. Adjust accessor macros
1752 (TYPE_VALUES_RAW): Define.
1753 (union tree_node): Update for above changes.
1754 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1756 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1757 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1758 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1759 * treestructu.def (TS_TYPE): Remove.
1760 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1763 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1766 * tree-ssa.c (reset_debug_uses): New function.
1767 * tree-flow.h (reset_debug_uses): New prototype.
1768 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1769 * tree-loop-distribution.c (generate_loops_for_partition): Call
1770 reset_debug_uses on the stmts that will be removed. Keep around
1771 all debug stmts, don't count them as bits in partition bitmap.
1772 (generate_builtin): Don't count debug stmts or labels as bits in
1775 2011-05-11 Richard Guenther <rguenther@suse.de>
1777 * gimple.c (gimple_type_hash_1): Merge with ...
1778 (gimple_type_hash): ... this.
1779 (gtc_visit): Remove mode parameter and simplify accordingly.
1780 (gimple_types_compatible_p_1): Likewise.
1781 (gimple_types_compatible_p): Likewise.
1782 (iterative_hash_gimple_type): Likewise.
1784 (gimple_type_eq): Adjust.
1786 2011-05-11 Revital Eres <revital.eres@linaro.org>
1788 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1789 enters the branch create an anti edge in the opposite direction
1790 to prevent the creation of reg-moves.
1791 * modulo-sched.c: Adjust comment to reflect the fact we are
1792 scheduling closing branch.
1793 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1794 (stage_count): New field in struct partial_schedule.
1795 (calculate_stage_count): New function.
1796 (normalize_sched_times): Rename to reset_sched_times and handle
1797 incrementing the sched time of the nodes by a constant value
1798 passed as parameter.
1799 (duplicate_insns_of_cycles): Skip closing branch.
1800 (sms_schedule_by_order): Schedule closing branch.
1801 (ps_insn_find_column): Handle closing branch.
1802 (sms_schedule): Call reset_sched_times and adjust the code to
1803 support scheduling of the closing branch.
1804 (ps_insert_empty_row): Update calls to normalize_sched_times
1805 and rotate_partial_schedule functions.
1807 2011-05-11 Richard Guenther <rguenther@suse.de>
1810 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1812 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1814 * opts.c (finish_options): Move warning settings from process_options.
1815 * toplev.c (process_options): Move warning settings to finish_options.
1817 2011-05-11 Richard Guenther <rguenther@suse.de>
1819 PR tree-optimization/18041
1820 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1821 (simplify_bitwise_binary): ... this. Handle operand conversions
1822 by applying them to the result instead.
1823 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1825 2011-05-11 Richard Guenther <rguenther@suse.de>
1827 * gimple.c (gimple_canonical_types_compatible_p): Split out
1828 from gimple_types_compatible_p and friends. Do not recurse
1829 to pointed-to types.
1830 (gimple_canonical_type_eq): Use it.
1831 (iterative_hash_canonical_type): Split out from
1832 iterative_hash_gimple_type and friends. Do not recurse
1833 to pointed-to types.
1834 (gimple_canonical_type_hash): Use it, allocate the hash here.
1836 2011-05-11 Revital Eres <revital.eres@linaro.org>
1838 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1841 2011-05-11 Revital Eres <revital.eres@linaro.org>
1843 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1844 instead of PREV_INSN.
1846 2011-05-11 Revital Eres <revital.eres@linaro.org>
1848 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1849 * loop-doloop.c (doloop_condition_get): Likewise.
1850 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1852 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1854 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1856 * tree.def (CASE_LABEL_EXPR): Add an operand.
1857 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1859 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1861 * c-decl.c (c_override_global_bindings_to_false): Remove.
1862 (global_bindings_p): Don't check
1863 c_override_global_bindings_to_false.
1864 * c-tree.h (c_override_global_bindings_to_false): Remove.
1865 * c-typeck.c (composite_type): Don't set
1866 c_override_global_bindings_to_false.
1868 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1870 PR target/48857, 48495
1871 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1873 (VSX_MOVE_MODE): Ditto.
1874 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1875 VSX vector types. Add V2DImode.
1876 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1877 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1878 (MODES_TIEABLE_P): Ditto.
1880 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1881 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1883 (init_cumulative_args): Ditto.
1884 (rs6000_function_arg_boundary): Ditto.
1885 (rs6000_function_arg_advance_1): Ditto.
1886 (rs6000_function_arg): Ditto.
1887 (rs6000_function_ok_for_sibcall): Ditto.
1888 (emit_frame_save): Ditto.
1889 (rs6000_function_value): Ditto.
1890 (rs6000_libcall_value): Ditto.
1892 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1894 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1895 i386/darwin-lib.h to $libgcc_tm_file.
1896 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1898 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1900 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1902 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1904 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1905 * config/rs6000/rs6000-tables.opt: New file (generated).
1906 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1907 rs6000/rs6000-tables.opt to extra_options.
1908 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1909 * config/rs6000/rs6000.c (rs6000_select): Remove.
1910 (processor_target_table): Move contents to rs6000-cpus.def.
1911 (darwin_rs6000_override_options): Check
1912 global_options_set.x_rs6000_cpu_index instead of
1913 rs6000_select[1].string.
1914 (rs6000_option_override_internal): Likewise.
1915 (rs6000_handle_option): Don't assert that global structures are in
1916 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1917 (rs6000_default_cpu): New variable.
1918 (rs6000_file_start): Set it instead of local default_cpu. Check
1919 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1920 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1921 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1922 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1923 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1924 rs6000_select): Remove.
1925 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1927 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1928 * config/rs6000/t-rs6000
1929 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1930 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1931 global_options_set.x_rs6000_cpu_index instead of
1932 rs6000_select[1].string.
1933 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1934 global_options_set.x_rs6000_cpu_index instead of
1935 rs6000_select[1].string.
1937 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1939 * config.gcc (libgcc_tm_file): Define instead of including files
1940 from ../../libgcc/config/ in tm_file.
1941 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1942 * configure: Regenerate.
1943 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1944 libgcc_tm.h, cs-libgcc_tm.h): New.
1945 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1946 (clean): Remove libgcc_tm.h.
1947 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1948 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1949 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1951 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1954 * config/avr/avr.c (avr_ret_register): Return unsigned int
1956 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1957 it to avr_libcall_value.
1958 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1960 (avr_expand_binop_builtin): Ditto.
1961 (avr_expand_unop_builtin): Ditto.
1963 2011-05-10 DJ Delorie <dj@redhat.com>
1965 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1966 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1967 * config/rx/rx.c (rx_align_for_label): Add label and
1968 uses_threshold parameters. Do not align when the label is not
1970 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1972 2011-05-10 Richard Guenther <rguenther@suse.de>
1974 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1975 a series of conversions and apply foldings similar to what
1977 (tree_ssa_forward_propagate_single_use_vars): Call it.
1979 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1981 PR tree-optimization/48611
1982 PR tree-optimization/48794
1983 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1984 referenced from RESX or EH_DISPATCH arguments.
1987 * dfp.c (decimal_to_decnumber): Handle conversion from
1988 dconst{1,2,m1,half}.
1990 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1992 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1993 for !flag_prefer_avx128.
1994 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1996 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1998 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1999 (fold_ternary_loc): Use expr_location_or.
2001 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2004 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2005 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2006 Pmode and mem_mode is not VOIDmode.
2008 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2010 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2011 TYPE_QUAL_RESTRICT): Convert to enum.
2013 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2015 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2016 (const_pow2_1_to_8_operand): Ditto.
2017 (const_pow2_1_to_128_operand): Ditto.
2018 (const_pow2_1_to_32768_operand): Ditto.
2019 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2020 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2021 in insn constraint to check integer value of operand 3.
2022 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2024 (PINSR_MODE): New mode iterator.
2025 (sse2p4_1): New mode attribute.
2026 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2027 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2028 iterator. Use const_int_operand instead of
2029 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2030 exact_log2 in insn constraint to check integer value of operand 3.
2032 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2034 * config/i386/sse.md (blendbits): Remove mode attribute.
2035 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2036 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2037 Check integer value of operand 3 in insn constraint.
2039 2011-05-09 Richard Guenther <rguenther@suse.de>
2041 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2043 (lto_symtab_merge): Likewise. Do not register types here.
2044 (lto_symtab_merge_decls_2): Likewise.
2045 (lto_symtab_merge_decls_1): Likewise.
2046 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2047 * gimple.c (enum gtc_mode): Declare.
2048 (gimple_types_compatible_p): Make static.
2050 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2052 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2053 temporary register to match Pmode.
2055 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2057 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2058 and *vec_concatv4si_1_avx.
2060 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2062 PR rtl-optimization/48927
2063 * ira-conflicts.c (commutative_constraint_p): Use
2064 recog_data.alternative_enabled_p to disable alternatives where
2065 "enabled" attribute is false.
2066 (get_dup_num): Ditto.
2067 * ira-lives.c (single_reg_class): Ditto.
2068 (ira_implicitly_set_insn_hard_regs): Ditto.
2070 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2072 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2073 (dataflow_set_preserve_mem_locs): Likewise.
2075 2011-05-09 Philipp Thomas <pth@suse.de>
2077 * config/mep/mep.c (mep_validate_vliw): Syntax description
2078 should not be translated.
2080 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2082 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2083 * config/mips/mips-tables.opt: New file (generated).
2084 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2085 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2086 MIPS_ARCH_OPTION_NATIVE): Define.
2087 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2089 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2090 mips_parse_cpu): Remove.
2091 (mips_cpu_info_from_opt, mips_default_arch): New.
2092 (mips_handle_option): Don't assert that global structures are in
2093 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2094 (mips_option_override): Use new variables and functions to set
2095 state of these options. Use strcmp to check for individual CPU names.
2096 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2098 * config/mips/mips.opt (march=): Use ToLower and Enum.
2099 (mips): Use ToLower, Enum and Var.
2100 (mtune=): Use ToLower and Enum.
2101 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2103 2011-05-08 Jan Hubicka <jh@suse.cz>
2105 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2106 Arrange type pairs to be UID ordered.
2107 (gimple_lookup_type_leader): Make inline.
2109 2011-05-09 Nick Clifton <nickc@redhat.com>
2112 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2116 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2119 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2121 * combine.c (simplify_comparison): Abstract out parts into...
2122 (simplify_compare_const): ... new function.
2123 (try_combine): Generalize parallel arithmetic/compare combining
2124 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2126 2011-05-08 Jan Hubicka <jh@suse.cz>
2128 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2129 (cgraph_create_virtual_clone): Call hooks once virtual clone
2131 * cgraph.h (cgraph_clone_node): Update prototype.
2132 * ipa-cp.c (ipcp_estimate_growth): Use
2133 estimate_ipcp_clone_size_and_time.
2134 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2135 * lto-cgraph.c (input_node): Update.
2136 * ipa-inline.c (recursive_inlining): Update.
2137 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2138 (evaluate_conditions_for_known_args): Break out from ...
2139 (evaluate_conditions_for_edge): ... here.
2140 (evaluate_conditions_for_ipcp_clone): New function.
2141 (inline_node_duplication_hook): Update clone summary based
2143 (estimate_callee_size_and_time): Rename to ...
2144 (estimate_node_size_and_time): take NODE instead of EDGE;
2145 take POSSIBLE_TRUTHS as argument.
2146 (estimate_callee_size_and_time): Update.
2147 (estimate_ipcp_clone_size_and_time): New function.
2148 (do_estimate_edge_time): Update.
2150 2011-05-08 Richard Guenther <rguenther@suse.de>
2154 * expmed.c (expand_shift_1): Compute adjusted constant shift
2157 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2159 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2161 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2163 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2165 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2167 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2169 2011-05-07 Jan Hubicka <jh@suse.cz>
2171 * ipa-inline-transform.c (inline_call): Account when program size
2173 * ipa-inline.c (relative_time_benefit): New function.
2174 (edge_badness): Reorganize to be power 2 based; fix thinko when
2175 computing badness for negative growth; update comments to match
2176 reality; better dumps.
2178 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2180 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2181 type to bool and adjust comment.
2182 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2183 (fold_mathfn_compare): Remove calls to global_bindings_p.
2184 (fold_inf_compare): Likewise.
2185 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2186 * c-tree.h (global_bindings_p): Adjust prototype.
2187 * c-decl.c (global_bindings_p): Return bool and simplify.
2189 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2191 PR tree-optimization/48837
2192 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2193 when accumulator transformation is performed.
2195 2011-05-06 Jan Hubicka <jh@suse.cz>
2197 * i386.h (ix86_tune_indices): Add
2198 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2199 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2200 * i386.c (initial_ix86_tune_features): Add
2201 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2202 (software_prefetching_beneficial_p): Remove predicate.
2203 (ix86_option_override_internal): Use new macro.
2205 2011-05-06 Jan Hubicka <jh@suse.cz>
2207 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2209 2011-05-06 Jan Hubicka <jh@suse.cz>
2211 * cgraph.c (cgraph_add_thunk): Create real function node instead
2212 of alias node; finalize it and mark needed/reachale; arrange visibility
2213 to be right and add it into the corresponding same comdat group list.
2214 (dump_cgraph_node): Dump thunks.
2215 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2216 cgraph_function_with_gimple_body_p,
2217 cgraph_first_function_with_gimple_body,
2218 cgraph_next_function_with_gimple_body): New functions.
2219 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2221 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2222 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2223 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2224 devirtualization when optimizing.
2225 (verify_cgraph_node): Verify thunks.
2226 (cgraph_analyze_function): Analyze thunks.
2227 (cgraph_mark_functions_to_output): Output thunks only in combination
2228 with function they are assigned to.
2229 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2230 alias into normal node.
2231 (assemble_thunks): New functoin.
2232 (cgraph_expand_function): Use it.
2233 * lto-cgraph.c (lto_output_node): Stream thunks.
2234 (input_overwrite_node): Stream in thunks.
2235 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2236 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2237 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2238 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2239 (inline_analyze_function): Do not care about thunk jump functions.
2240 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2241 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2242 cgraph_function_with_gimple_body_p.
2243 * passes.c (do_per_function_toporder): Use
2244 cgraph_function_with_gimple_body_p.
2245 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2246 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2247 (function_called_by_processed_nodes_p): Likewise.
2249 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2251 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2252 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2254 (mabi=): Replace with separate entries for mabi=altivec,
2255 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2256 mabi=ieeelongdouble and mabi=ibmlongdouble.
2257 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2258 check for -mabi=spe without SPE ABI support here.
2259 (rs6000_handle_option): Replace OPT_mabi_ handling with
2260 OPT_mabi_altivec and OPT_mabi_spe handling.
2262 2011-05-06 Cary Coutant <ccoutant@google.com>
2264 * dwarf2out.c (contains_subprogram_definition): New function.
2265 (should_move_die_to_comdat): Call it.
2267 2011-05-06 Jeff Law <law@redhat.com>
2269 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2270 remove_ctrl_stmt_and_useless_edges.
2271 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2272 (fixup_template_block, thread_single_edge): Likewise.
2273 (mark_threaded_blocks): Use THREAD_TARGET.
2275 2011-05-06 Alan Modra <amodra@gmail.com>
2278 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2279 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2281 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2283 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2284 constraint modifier to "r".
2286 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2288 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2289 fall through for OPT_mcmodel_.
2291 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2293 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2295 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2297 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2300 * config/arm/arm.opt (marm): Document it.
2301 (mthumb): Reject negative variant.
2303 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2306 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2307 Fix typo in "ccvt" variable name.
2309 2011-05-06 Tristan Gingold <gingold@adacore.com>
2312 * config/vms/vms-ar.c (main): Remove cwd variable.
2314 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2317 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2319 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2321 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2322 * gimplify.c (gimplify_switch_expr): Likewise.
2323 * omp-low.c (expand_omp_sections): Likewise.
2324 * tree-eh.c (lower_try_finally_switch): Likewise.
2325 (lower_eh_dispatch): Likewise.
2326 * tree.h (build_case_label): Declare.
2327 * tree.c (build_case_label): Define.
2329 2011-05-05 Jason Merrill <jason@redhat.com>
2332 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2333 (copy_statement_list): Don't recurse.
2334 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2337 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2339 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2340 through from -mfpu= handling.
2341 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2343 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2345 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2348 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2350 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2352 (hppa[12]*-*-hpux11*): Ditto.
2353 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2354 * config/ia64/hpux-unix2003.h: New.
2355 * config/pa/pa-hpux1131.opt: New.
2356 * config/pa/pa-hpux1131.h: New.
2357 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2358 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2359 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2361 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2364 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2365 instead of mode as 3rd argument to recursive call.
2366 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2367 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2369 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2370 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2371 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2372 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2374 2011-05-05 Julian Brown <julian@codesourcery.com>
2376 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2377 parenthesis in D-register case.
2379 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2381 * opt-functions.awk (var_type_struct): Handle Enum options.
2382 * optc-gen.awk: Don't check range of variables of character type.
2383 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2384 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2385 rs6000_sdata_name, rs6000_explicit_options): Remove.
2386 (rs6000_option_override_internal): Check for -malign-power here.
2387 Use global_options_set instead of rs6000_explicit_options.
2388 (rs6000_parse_fpu_option): Remove.
2389 (rs6000_handle_option): Access variables via opts and opts_set
2390 pointers. Use error_at and warning_at. Add fall-through
2391 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2392 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2393 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2394 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2395 here. Don't use rs6000_parse_fpu_option.
2396 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2397 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2398 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2400 (mspe): Use Var and Save.
2401 (mtraceback=): Use Enum and Var.
2402 (rs6000_traceback_type): New Enum and EnumValue entries.
2403 (mfloat-gprs=): Use Enum, Var and Save.
2404 (rs6000_float_gprs): New Enum and EnumValue entries.
2405 (mlong-double-): use Var and Save.
2406 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2407 (malign-): Use Enum and Var.
2408 (rs6000_alignment_flags): New Enum and EnumValue entries.
2410 (fpu_type_t): New Enum and EnumValue entries.
2411 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2412 global_options_set instead of rs6000_explicit_options.
2413 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2414 global_options_set instead of rs6000_explicit_options.
2415 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2416 global_options_set instead of rs6000_explicit_options.
2417 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2418 global_options_set instead of rs6000_explicit_options.
2419 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2420 global_options_set instead of rs6000_explicit_options.
2421 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2422 global_options_set instead of rs6000_explicit_options.
2423 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2425 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2426 global_options_set instead of rs6000_explicit_options.
2427 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2428 (rs6000_cmodel): New Enum and EnumValue entries.
2429 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2430 global_options_set instead of rs6000_explicit_options.
2431 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2432 (mtls-size=): Use Enum and Var.
2433 (rs6000_tls_size): New Enum and EnumValue entries.
2435 2011-05-05 Michael Matz <matz@suse.de>
2437 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2438 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2439 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2440 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2441 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2442 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2443 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2444 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2445 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2446 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2447 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2448 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2449 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2450 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2451 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2452 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2454 2011-05-05 Richard Guenther <rguenther@suse.de>
2456 * expmed.c (expand_variable_shift): Rename to ...
2457 (expand_shift_1): ... this. Take an expanded shift amount.
2458 For rotates recurse directly not building trees for the shift amount.
2459 (expand_variable_shift): Wrap around expand_shift_1.
2460 (expand_shift): Adjust.
2462 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2464 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2466 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2468 * tree.h (get_pending_sizes): Remove prototype.
2469 (put_pending_size): Likewise.
2470 (put_pending_sizes): Likewise.
2471 * stor-layout.c (pending_sizes): Delete.
2472 (get_pending_sizes): Likewise.
2473 (put_pending_size): Likewise.
2474 (put_pending_sizes): Likewise.
2475 (variable_size): Do not call put_pending_size and tidy up.
2476 * function.h (struct function): Remove dont_save_pending_sizes_p.
2477 * lto-streamer-in.c (input_function): Do not stream it.
2478 * lto-streamer-out.c (output_function): Likewise.
2479 * tree-inline.c (initialize_cfun): Do not copy it.
2480 * c-decl.c (store_parm_decls): Do not set it.
2481 * omp-low.c (create_task_copyfn): Likewise.
2482 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2484 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2486 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2488 (*movdf_internal): Ditto.
2489 (*movdf_internal_nointeger): Ditto.
2490 (*movsf_internal): Ditto.
2492 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2494 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2495 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2496 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2497 (c_variable_size): Remove.
2498 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2499 call put_pending_sizes.
2500 (get_parm_info): Add parameter expr. Use it to set
2501 arg_info->pending_sizes.
2502 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2504 * c-parser.c (c_parser_parms_declarator): Update call to
2505 c_parser_parms_list_declarator.
2506 (c_parser_parms_list_declarator): Take parameter expr. Update
2507 call to push_parm_decl. Update recursive call. Don't call
2508 get_pending_sizes. Update calls to get_parm_info.
2509 (c_parser_objc_method_definition): Update calls to
2510 c_parser_objc_method_decl and objc_start_method_definition.
2511 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2512 (c_parser_objc_method_decl): Add parameter expr. Update call to
2514 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2515 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2516 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2518 2011-05-05 Michael Hope <michael.hope@linaro.org>
2521 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2524 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2526 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2527 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2528 (spu_output_mi_thunk): New function.
2530 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2532 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2533 targetm.asm_out.print_operand.
2534 * config/sol2.c: Include target.h.
2536 2011-05-04 Jan Hubicka <jh@suse.cz>
2538 * ipa-inline.c (reset_edge_caches): New function.
2539 (update_caller_keys): Add check_inlinablity_for; do not
2540 reset edge caches; remove now unnecesary loop.
2541 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2542 (update_all_callee_keys): Likewise.
2543 (inline_small_functions): Sanity check cache; update code
2546 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2548 PR rtl-optimization/47612
2549 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2550 as the last insn of the sequence to be moved.
2552 2011-05-04 Tobias Burnus <burnus@net-b.de>
2555 * doc/invoke.texi (Ofast): Document that it
2556 enables Fortran's -fno-protect-parens.
2558 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2560 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2562 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2564 * stor-layout.c (variable_size): Do not issue errors.
2566 2011-05-04 Richard Guenther <rguenther@suse.de>
2568 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2569 for array-ref indices.
2570 (tree_coverage_counter_addr): Likewise.
2571 (build_fn_info_type): Use size_int for index types.
2572 (build_gcov_info): Likewise.
2574 2011-05-04 Richard Guenther <rguenther@suse.de>
2576 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2578 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2579 for constructor indices.
2580 (push_init_level): Likewise.
2582 2011-05-04 Richard Guenther <rguenther@suse.de>
2584 * explow.c (promote_mode): Move variable declarations before code.
2586 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2588 * tree.h (build_function_type_array): Declare.
2589 (build_varargs_function_type_array): Declare.
2590 (build_function_type_vec, build_varargs_function_type_vec): Define.
2591 * tree.c (build_function_type_array_1): New function.
2592 (build_function_type_array): New function.
2593 (build_varargs_function_type_array): New function.
2595 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2597 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2598 before setting STMT_VINFO_TYPE.
2600 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2602 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2603 instead of spu_pass_by_reference.
2605 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2607 * calls.c (emit_library_call_value_1): Invoke
2608 promote_function_mode hook on libcall arguments.
2609 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2610 argument being NULL.
2611 * targhooks.c (default_promote_function_mode): Lisewise.
2612 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2613 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2615 * doc/tm.texi: Document that TYPE argument might be NULL.
2617 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2619 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2621 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2624 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2626 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2628 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2629 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2631 * mips-tfile.c: ... here.
2632 Don't include coretypes.h, tm.h, filenames.h.
2633 (saber_stop): Remove definition and all calls.
2634 [__SABER__]: Remove.
2635 (__LINE__): Remove default.
2636 (Size_t, Ptrdiff_t): Remove definitions.
2637 Replace by size_t, ptrdiff_t.
2638 [!MIPS_DEBUGGING_INFO]: Remove.
2639 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2640 (progname): Add const.
2642 Replace all uses by static.
2643 (ALIGN_SYMTABLE_OFFSET): Remove default.
2644 * mips-tdump.c: Don't include coretypes.h, tm.h.
2645 Remove !MIPS_IS_STAB guard.
2646 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2647 $(TM_H), filenames.h dependencies.
2648 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2650 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2653 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2654 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2656 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2659 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2660 account and save/restore RETS.
2661 (PROFILE_BEFORE_PROLOGUE): Define.
2662 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2663 the push insn to use predecrement.
2665 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2668 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2670 2011-05-04 Nick Clifton <nickc@redhat.com>
2672 * config/mn10300/mn10300.c: Include cfgloop.h.
2674 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2675 Lcc or a FLcc insn into the instruction stream.
2676 (mn10300_block_contains_call): New function. Returns true if the
2677 given basic block contains a CALL insn.
2678 (mn10300_loop_contains_call_insn): New function. Returns true if
2679 the given loop contains a CALL insn.
2680 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2681 to use the SETLB and Lcc or FLcc insns.
2682 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2683 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2684 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2685 disable the SETLB optimization.
2686 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2687 __SETLB__ or __NO_SETLB__.
2688 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2689 (movsf_internal): Handle MDR register.
2690 (cmpsi): Make visible.
2691 (setlb): New pattern.
2693 (FLcc): New pattern.
2695 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2698 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2699 for reg<->xmm moves.
2700 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2701 (vec_concatv2di_rex64_sse): Ditto.
2702 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2703 (*vec_extractv2di_1_rex64): Ditto.
2706 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2708 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2710 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2712 2011-05-04 Richard Guenther <rguenther@suse.de>
2714 * tree.h (int_const_binop): Remove notrunc argument.
2715 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2716 create integer constants that are properly truncated.
2717 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2718 (const_binop): Remove zero notrunc argument to int_const_binop.
2719 (size_binop_loc): Likewise.
2720 (fold_div_compare): Likewise.
2721 (maybe_canonicalize_comparison_1): Likewise.
2722 (fold_comparison): Likewise.
2723 (fold_binary_loc): Likewise.
2724 (multiple_of_p): Likewise.
2725 * expr.c (store_constructor): Likewise.
2726 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2727 (maybe_fold_stmt_addition): Likewise.
2728 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2729 * stor-layout.c (layout_type): Likewise.
2730 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2731 * tree-sra.c (build_ref_for_offset): Likewise.
2732 (build_user_friendly_ref_for_offset): Likewise.
2733 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2734 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2735 * tree-ssa-loop-niter.c (inverse): Likewise.
2736 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2737 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2738 * tree-switch-conversion.c (check_range): Likewise.
2739 (build_constructors): Likewise.
2740 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2741 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2742 (extract_range_from_assert): Likewise.
2743 (vrp_int_const_binop): Likewise.
2744 (extract_range_from_binary_expr): Likewise.
2745 (extract_range_from_unary_expr): Likewise.
2746 (check_array_ref): Likewise.
2747 (find_case_label_range): Likewise.
2748 (simplify_div_or_mod_using_ranges): Likewise.
2749 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2750 comparing case labels for merging.
2752 2011-05-03 Mark Wielaard <mjw@redhat.com>
2754 * dwarf2out.c (debug_str_hash_forced): Removed.
2755 (gen_label_for_indirect_string): Removed.
2756 (get_debug_string_label): Removed.
2757 (AT_string_form): Generate label directly.
2758 (output_indirect_string): Test indirect_string_node for
2759 DW_FORM_strp instead of checking label and refcount.
2760 (prune_indirect_string): Removed.
2761 (prune_unused_types): Don't check debug_str_hash_forced or
2762 call prune_indirect_string.
2764 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2767 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2769 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2773 * combine.c (try_combine): Skip debug insns at m_split tests.
2775 2011-04-26 Mark Wielaard <mjw@redhat.com>
2778 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2779 when info_section_emitted.
2781 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2783 * config/mips/mips-opts.h: New.
2784 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2786 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2787 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2788 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2790 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2792 (mips_abi, mips_code_readable): Don't declare.
2793 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2794 (mabi=): Use Enum and Var.
2795 (mips_abi): New Enum and EnumValue entries.
2796 (mcode-readable=): Use Enum and Var.
2797 (mips_code_readable_setting): New Enum and EnumValue entries.
2798 (mr10k-cache-barrier=): Use Enum and Var.
2799 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2801 2011-05-03 Jan Hubicka <jh@suse.cz>
2803 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2804 replace hash by pointer map.
2805 (cgraph_node_set_element_def, cgraph_node_set_element,
2806 const_cgraph_node_set_element, varpool_node_set_element_def,
2807 varpool_node_set_element, const_varpool_node_set_element): Remove.
2808 (free_cgraph_node_set, free_varpool_node_set): New function.
2809 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2810 * tree-emutls.c: Free varpool node set.
2811 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2812 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2813 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2814 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2815 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2816 Move here from ipa.c; implement using pointer_map
2817 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2818 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2819 debug_cgraph_node_set, varpool_node_set_new,
2820 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2821 dump_varpool_node_set, debug_varpool_node_set):
2822 Move to ipa-uitls.c.
2823 * passes.c (ipa_write_summaries): Update.
2825 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2827 From Mike Frysinger:
2828 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2829 bf542/bf544/bf547/bf548/bf549.
2831 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2833 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2835 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2838 * config/bfin/bfin.md (MOVCC): New mode_macro.
2839 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2840 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2841 comments from generated assembly.
2843 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2846 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2847 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2848 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2849 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2850 * config/bfin/lib1funcs.asm (___muldi3): New function.
2852 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2854 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2855 build_function_type_list instead of build_function_type.
2856 Rearrange initialization of `args' to do so.
2858 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2860 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2861 instead of build_function_type.
2863 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2865 * config/rs6000/rs6000.c (spe_init_builtins): Call
2866 build_function_type_list instead of build_function_type.
2867 (paired_init_builtins, altivec_init_builtins): Likewise.
2868 (builtin_function_type): Likewise.
2870 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2872 * config/sh/sh.c (sh_media_init_builtins): Call
2873 build_function_type_list instead of build_function_type.
2875 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2877 * config/sparc/sparc.c (sparc_file_end): Call
2878 build_function_type_list instead of build_function_type.
2880 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2882 * config/alpha/alpha.c (alpha_init_builtins): Call
2883 build_function_type_list instead of build_function_type.
2885 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2887 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2888 build_function_type_list instead of build_function_type.
2890 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2892 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2893 build_function_type_list instead of build_function_type.
2894 Delete `endlink' variable.
2896 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2898 * config/avr/avr.c (avr_init_builtins): Call
2899 build_function_type_list instead of build_function_type.
2901 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2903 * config/picochip/picochip.c (picochip_init_builtins): Call
2904 build_function_type_list instead of build_function_type.
2905 Delete `endlink' variable.
2907 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2909 * config/bfin/bfin.c (bfin_init_builtins): Call
2910 build_function_type_list instead of build_function_type.
2912 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2915 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2916 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2918 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2921 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2922 libbffastfp overrides libgcc when -mfast-fp.
2924 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2926 Originally from Bernd Schmidt
2927 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2928 * config/bfin/bfin.c (override_options): Test it and error if
2931 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2933 Originally From Bernd Schmidt
2934 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2937 2011-05-03 Jeff Law <law@redhat.com>
2939 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2940 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2941 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2942 than accessing AUX field directly. Free the AUX field before
2944 (thread_block, thread_through_loop_header): Likewise.
2945 (thread_single_edge, mark_threaded_blocks): Likewise.
2946 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2947 (register_jump_thread): Do not attempt to thread to a NULL edge.
2949 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2951 * function.c (init_function_start): Call decide_function_section.
2952 * varasm.c (decide_function_section): New function.
2953 (assemble_start_function): When not using
2954 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2955 or first_function_block_is_cold.
2956 * rtl.h (decide_function_section): Declare.
2958 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2959 Jakub Jelinek <jakub@redhat.com>
2962 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2963 only succeed if req_mode is the same as set_mode.
2965 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2967 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2968 * genemit.c (gen_exp): Handle RETURN.
2969 * emit-rtl.c (verify_rtx_sharing): Likewise.
2970 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2971 * rtl.c (copy_rtx): RETURN is shared.
2972 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2974 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2975 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2976 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2977 * config/cris/cris.c (cris_expand_return): Likewise.
2978 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2979 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2980 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2981 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2982 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2984 * config/v850/v850.c (expand_epilogue): Likewise.
2985 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2986 * config/arm/arm.md (epilogue): Likewise.
2987 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2988 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2989 variable to ret_reg.
2991 2011-05-03 Richard Guenther <rguenther@suse.de>
2994 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2995 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2996 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2998 2011-05-03 Richard Guenther <rguenther@suse.de>
3000 * c-decl.c (grokdeclarator): Instead of looking at
3001 TREE_OVERFLOW check if the constant fits in the index type.
3003 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3005 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3006 (vec_store_lanes<mode><mode>): Likewise.
3008 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3010 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3011 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3012 convert_optab_index values.
3013 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3014 * genopinit.c (optabs): Initialize the new optabs.
3015 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3016 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3017 (expand_STORE_LANES): New functions.
3018 * tree.h (build_array_type_nelts): Declare.
3019 * tree.c (build_array_type_nelts): New function.
3020 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3021 (vect_model_load_cost): Likewise.
3022 (vect_store_lanes_supported, vect_load_lanes_supported)
3023 (vect_record_strided_load_vectors): Declare.
3024 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3025 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3026 (vect_transform_strided_load): Split out statement recording into...
3027 (vect_record_strided_load_vectors): ...this new function.
3028 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3029 (write_vector_array, create_array_ref): New functions.
3030 (vect_model_store_cost): Add store_lanes_p argument.
3031 (vect_model_load_cost): Add load_lanes_p argument.
3032 (vectorizable_store): Try to use store-lanes functions for
3034 (vectorizable_load): Likewise load-lanes and loads.
3035 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3036 to vect_model_store_cost.
3037 (vect_build_slp_tree): Likewise vect_model_load_cost.
3039 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3041 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3042 * hooks.c (hook_bool_mode_uhwi_false): New function.
3043 * target.def (array_mode_supported_p): New hook.
3044 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3045 * doc/tm.texi: Regenerate.
3046 * stor-layout.c (mode_for_array): New function.
3047 (layout_type): Use it.
3048 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3049 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3051 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3054 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3055 for -fstack-check if the size to allocate is negative.
3057 2011-05-02 Lawrence Crowl <crowl@google.com>
3059 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3060 (timevar_cond_start): New for starting a timer only when it is not
3062 (timevar_cond_stop): New for stopping a timer when it was not already
3065 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3066 (timevar_cond_start): New as above.
3067 (timevar_cond_stop): New as above.
3069 * timevar.def: Add start/stop timers for compiler phases,
3070 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3071 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3072 and TV_PHASE_FINALIZE.
3073 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3074 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3075 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3076 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3077 Make unused TV_OVERLOAD into a start/stop timer.
3079 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3080 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3081 to indicate that they are start/stop timers.
3083 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3084 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3085 Move initialization to do_compile.
3086 (do_compile): Add initialization from above.
3087 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3089 * c-decl.c (c_write_global_declarations): Add start/stop of
3090 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3092 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3093 or TV_PARSE_INLINE, as appropriate.
3094 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3095 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3097 2011-05-02 Jason Merrill <jason@redhat.com>
3100 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3102 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3105 * c-decl.c (finish_decl): Only create a composite if the types are
3108 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3110 * config/fr30/fr30-protos.h (Mmode): Don't define.
3111 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3112 definition where used.
3113 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3114 define. Expand definitions where used.
3115 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3116 Expand definitions where used.
3117 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3118 rx_function_arg, rx_function_arg_advance,
3119 rx_function_arg_boundary): Expand definitions of those macros.
3120 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3121 definition where used.
3123 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3125 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3127 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3128 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3129 with *movv2sf_internal_rex64_avx.
3130 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3131 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3132 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3133 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3134 "vex" in "prefix" attribute calculation.
3135 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3137 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3140 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3141 inputs match the output.
3143 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3146 * config/m68k/m68k.c (m68k_expand_prologue): Set
3147 current_function_static_stack_size.
3149 2011-05-02 Jan Hubicka <jh@suse.cz>
3151 * lto-streamer.c (lto_streamer_cache_insert_1,
3152 lto_streamer_cache_lookup, lto_streamer_cache_create,
3153 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3154 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3156 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3158 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3159 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3160 config/m68k/t-opts: New files.
3161 * config/m68k/m68k-tables.opt: New file (generated).
3162 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3163 extra_options and m68k/t-opts to tmake_file.
3164 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3165 (all_isas): Initialize using m68k-isas.def.
3166 (all_microarchs): Initialize using m68k-microarchs.def.
3167 (m68k_find_selection): Remove.
3168 (m68k_handle_option): Don't assert that global structures are in
3169 use. Use error_at. Access variables via opts pointer. Don't
3170 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3171 directly for -m68020-40 and -m68020-60.
3172 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3173 m68k_tune_entry here.
3174 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3176 (m68k_library_id_string): Remove declaration.
3177 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3178 (m68k_library_id_string): New Variable.
3179 (march=, mcpu=, mtune=): Use Enum and Var.
3181 2011-05-02 Richard Guenther <rguenther@suse.de>
3183 * varasm.c (output_constructor_regular_field): Compute zero-based
3184 index with double-ints. Make sure to ICE instead of producing
3186 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3187 in asserts. Properly use a signed type.
3189 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3191 * config/i386/sse.md (V): New mode iterator.
3192 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3194 (V_256): Rename from AVX256MODE.
3195 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3196 condition to all users.
3198 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3199 condition to all users.
3200 (VF_128): Make V4SF mode unconditional.
3201 (VF_256): Rename from AVX256MODEF2P.
3202 (VI4F_128): Rename from SSEMODE4S.
3203 (VI8F_128): Rename from SSEMODE2D.
3204 (VI4F_256): Rename from AVX256MODE8P.
3205 (VI8F_256): Rename from AVX256MODE4P.
3206 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3207 (ssescalarmodesuffix): Remove SF and DF modes.
3208 (SSEMODE124): Remove.
3209 (SSEMODE1248): Ditto.
3210 (SSEMODEF2P): Ditto.
3211 (AVXMODEF2P): Ditto.
3212 (AVXMODEFDP): Ditto.
3213 (AVXMODEFSP): Ditto.
3214 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3216 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3218 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3219 xop_pcmov_<mode>256. Use V mode iterator.
3221 Adjust RTX patterns globally for renamed mode attributes.
3223 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3225 * haifa-sched.c (sched_emit_insn): Emit insn before first
3226 non-scheduled insn. Inform back-end about new insn. Add
3227 new insn to scheduled_insns list.
3229 2011-05-02 Richard Guenther <rguenther@suse.de>
3231 PR tree-optimization/48822
3232 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3233 (process_scc): Indicate which iteration we start.
3235 2011-05-02 Jan Hubicka <jh@suse.cz>
3237 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3238 (lto_section_overrun): New.
3239 * lto-section-out.c (append_block): Rename to ...
3240 (lto_append_block): ... this one; export.
3241 (lto_output_1_stream): Move lto lto-streamer.h
3242 (lto_output_data_stream): Update.
3243 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3244 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3247 2011-05-02 Richard Guenther <rguenther@suse.de>
3249 * tree.c (tree_code_counts): New global array.
3250 (record_node_allocation_statistics): Count individual tree codes.
3251 (dump_tree_statistics): Dump individual code stats.
3253 2011-05-01 Jan Hubicka <jh@suse.cz>
3255 * ipa-inline.c (caller_growth_limits): Fix thinko when
3256 looking for largest stack frame.
3257 * ipa-inline.h (dump_inline_summary): Declare.
3258 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3260 (dump_inline_summary): Export.
3261 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3263 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3265 * reginfo.c (memory_move_cost): Change rclass argument type form
3266 'enum reg_class' to reg_class_t.
3267 * reload.h (memory_move_cost): Update prototype.
3268 * postreload.c reload_cse_simplify_set): Change type dclass var to
3270 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3272 (ira_allocate_and_set_costs): Change aclass argument type form
3273 'enum reg_class' to reg_class_t.
3274 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3275 Change aclass argument type to reg_class_t.
3276 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3278 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3279 memory_move_cost call.
3281 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3282 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3283 Change type tmp var to reg_class_t.
3285 2011-04-30 Jan Hubicka <jh@suse.cz>
3287 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3288 inlining into function with flatten attribute.
3289 (want_inline_small_function_p): Be more realistic about inlining
3290 cold calls where callee size grows.
3292 2011-04-30 Jan Hubicka <jh@suse.cz>
3294 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3297 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3299 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3300 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3301 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3302 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3303 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3304 (print_operand): Rename to...
3305 (sparc_print_operand): ...this. Make static. Adjust
3306 sparc_print_operand function call.
3307 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3310 2011-04-30 Jan Hubicka <jh@suse.cz>
3313 * ipa-inline.c (early_inliner): Disable when doing late
3314 addition of function.
3316 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3318 * dwarf2out.c (get_address_mode): New inline.
3319 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3320 if not dwarf_strict emit
3321 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3322 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3323 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3324 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3325 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3326 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3327 mem_loc_descriptor callers.
3328 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3329 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3330 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3331 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3332 (base_types): New variable.
3333 (get_base_type_offset, calc_base_type_die_sizes,
3334 base_type_for_mode, mark_base_types, base_type_cmp,
3335 move_marked_base_types): New functions.
3336 (calc_die_sizes): Assert that die_offset is 0 or equal to
3338 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3339 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3340 callers. If not dwarf_strict, call mem_loc_descriptor even for
3341 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3342 (gen_subprogram_die): Don't give up on call site parameters
3343 with non-integral or large integral modes. Adjust
3344 mem_loc_descriptor callers.
3345 (prune_unused_types): Call prune_unused_types_mark on base_types
3347 (resolve_addr): Call mark_base_types.
3348 (dwarf2out_finish): Call move_marked_base_types.
3350 PR tree-optimization/48809
3351 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3353 (gen_inbound_check): Don't compute index_expr - range_min in utype
3354 again, instead reuse SSA_NAME initialized in build_arrays.
3355 Remove two useless gsi_for_stmt calls.
3357 2011-04-29 Jeff Law <law@redhat.com>
3359 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3361 2011-04-29 Martin Jambor <mjambor@suse.cz>
3363 * cgraph.h (cgraph_postorder): Remove declaration.
3364 * ipa-utils.h (ipa_free_postorder_info): Declare.
3365 (ipa_reverse_postorder): Likewise.
3366 * cgraphunit.c: Include ipa-utils.h.
3367 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3368 * ipa-inline.c: Include ipa-utils.h.
3369 (ipa_inline): Update call to ipa_reverse_postorder.
3370 * ipa-pure-const.c (propagate_pure_const): Update call to
3371 ipa_reduced_postorder and ipa_print_order. Call
3372 ipa_free_postorder_info to clean up.
3373 (propagate_nothrow): Likewise.
3374 * ipa-reference.c (propagate): Removed a useless call to
3375 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3376 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3377 * ipa.c: Include ipa-utils.h.
3378 (ipa_profile): Update call to ipa_reverse_postorder.
3379 (cgraph_postorder): Moved to...
3380 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3381 (ipa_utils_print_order): Renamed to ipa_print_order.
3382 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3384 (ipa_free_postorder_info): New function.
3385 * passes.c: Include ipa-utils.h.
3386 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3387 (ipa_write_summaries): Likewise.
3388 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3389 (cgraphunit.o): Likewise.
3391 (ipa-inline.o): Likewise.
3393 2011-04-29 Jan Hubicka <jh@suse.cz>
3395 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3396 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3397 * ipa-inline.h (clause_t): Turn into unsigned int.
3398 * ipa-inline-analysis.c (add_clause): Do more simplification.
3399 (and_predicates): Shortcut more cases.
3400 (predicates_equal_p): Move forward; check that clauses are properly
3402 (or_predicates): Shortcut more cases.
3403 (edge_execution_predicate): Rewrite as...
3404 (set_cond_stmt_execution_predicate): ... this function; handle
3405 __builtin_constant_p.
3406 (set_switch_stmt_execution_predicate): New .
3407 (compute_bb_predicates): New.
3408 (will_be_nonconstant_predicate): Update TODO.
3409 (estimate_function_body_sizes): Use compute_bb_predicates
3410 and free them later, always try to estimate if stmt is constant.
3411 (estimate_time_after_inlining, estimate_size_after_inlining):
3412 Gracefully handle optimized out edges.
3413 (read_predicate): Fix off by one error.
3415 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3417 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3419 2011-04-27 Xinliang David Li <davidxl@google.com>
3421 * tree-profile.c (init_ic_make_global_vars): Set
3422 tls attribute on ic vars.
3423 * coverage.c (coverage_end_function): Initialize
3424 function_list with zero.
3426 2011-04-29 Richard Guenther <rguenther@suse.de>
3428 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3429 for the type of the result.
3430 (fold_builtin_isascii): Likewise.
3431 (fold_builtin_toascii): Use integer_type_node where appropriate.
3432 (fold_builtin_logb): Likewise.
3433 (fold_builtin_frexp): Likewise.
3434 (fold_builtin_strstr): Likewise.
3435 (fold_builtin_strpbrk): Likewise.
3436 (fold_builtin_fputs): Likewise.
3437 (fold_builtin_sprintf): Likewise.
3438 (fold_builtin_snprintf): Likewise.
3439 (fold_builtin_printf): Likewise.
3440 (do_mpfr_remquo): Use a proper type for the assigned constant.
3441 (do_mpfr_lgamma_r): Likewise.
3442 * dwarf2out.c (resolve_one_addr): Use size_int.
3443 * except.c (init_eh): Likewise.
3444 (assign_filter_values): Use integer_type_node for filter values.
3445 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3447 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3448 for EH region numbers.
3449 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3450 for the shift amount.
3452 2011-04-29 Richard Guenther <rguenther@suse.de>
3454 * expr.h (expand_shift): Rename to ...
3455 (expand_variable_shift): ... this.
3456 (expand_shift): Take a constant shift amount.
3457 * expmed.c (expand_shift): Rename to ...
3458 (expand_variable_shift): ... this.
3459 (expand_shift): New wrapper around expand_variable_shift.
3460 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3461 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3462 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3463 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3464 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3465 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3466 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3467 emit_store_flag_1, emit_store_flag): Likewise.
3468 * builtins.c (expand_builtin_signbit): Likewise.
3469 * calls.c (load_register_parameters): Likewise.
3470 * function.c (assign_parm_setup_block): Likewise.
3471 * lower-subreg.c (resolve_shift_zext): Likewise.
3472 * optabs.c (widen_bswap, expand_abs_nojump,
3473 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3474 * spu/spu.c (spu_expand_extv): Likewise.
3475 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3477 2011-04-29 Richard Guenther <rguenther@suse.de>
3479 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3480 for the remapped region number.
3481 * predict.c (build_predict_expr): Use integer_type_node for the
3483 * fold-const.c (fold_binary_loc): Use integer_type_node for
3484 the shift amount. Use a proper type for the PLUS_EXPR operand.
3486 2011-04-29 Michael Matz <matz@suse.de>
3488 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3489 other trees that just builtins.
3490 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3492 2011-04-29 Richard Guenther <rguenther@suse.de>
3494 * tree-nested.c (get_trampoline_type): Use size_int.
3495 (get_nl_goto_field): Likewise.
3496 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3498 (lower_eh_constructs_2): Likewise.
3499 (lower_resx): Likewise.
3500 (lower_eh_dispatch): Likewise.
3501 * tree-mudflap.c (mf_build_string): Use size_int.
3502 (mudflap_register_call): Use integer_type_node for the flag.
3503 (mudflap_enqueue_constant): Use size_int.
3504 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3505 instead of rebuilding it.
3507 2011-04-29 Richard Guenther <rguenther@suse.de>
3509 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3510 Handle OBJ_TYPE_REF.
3511 (find_func_aliases_for_call): Use it more consistently.
3513 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3515 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3516 (rank_for_schedule): Use it.
3517 (schedule_block): Set it.
3519 2011-04-28 David Li <davidxl@google.com>
3521 * tree.c (crc32_string): Use crc32_byte.
3522 (crc32_byte): New function.
3523 * tree.h (crc32_byte): New function.
3524 * gcov.c (read_graph_file): Handle new cfg_cksum.
3525 (read_count_file): Ditto.
3526 * profile.c (instrument_values): Ditto.
3527 (get_exec_counts): Ditto.
3528 (read_profile_edge_counts): Ditto.
3529 (compute_branch_probabilities): Ditto.
3530 (compute_value_histograms): Ditto.
3531 (branch_prob): Ditto.
3532 (end_branch_prob): Ditto.
3533 * coverage.c (read_counts_file): Ditto.
3534 (get_coverage_counts): Ditto.
3535 (tree_coverage_counter_addr): Ditto.
3536 (coverage_checksum_string): Ditto.
3537 (coverage_begin_output): Ditto.
3538 (coverage_end_function): Ditto.
3539 (build_fn_info_type): Ditto.
3540 (build_fn_info_value): Ditto.
3541 * libgcov.c (gcov_exit): Ditto.
3542 * gcov-dump.c (tag_function): Ditto.
3543 (compute_checksum): Remove.
3545 2011-04-29 Alan Modra <amodra@gmail.com>
3547 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3548 unspec plus offset. Tidy macho code.
3550 2011-04-29 Martin Jambor <mjambor@suse.cz>
3552 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3553 node instead of a decl. Update all callers.
3554 * cgraph.h: Update declaration.
3556 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3558 PR tree-optimization/48765
3559 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3560 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3561 to indicate if loop aware SLP is being used. Scan the statements
3562 and update the vectorization factor according to the type of
3563 vectorization before statement analysis.
3564 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3565 pass it to vect_analyze_loop_operations.
3566 (vectorizable_reduction): Set number of copies to 1 in case of pure
3568 * tree-vect-stmts.c (vectorizable_conversion,
3569 vectorizable_assignment, vectorizable_shift,
3570 vectorizable_operation, vectorizable_type_demotion,
3571 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3573 (vectorizable_condition): Move the check that it is not SLP
3574 vectorization before the number of copies check.
3575 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3576 to vectorize the loop using SLP.
3578 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3581 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3584 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3586 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3587 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3588 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3589 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3590 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3592 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3593 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3594 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3595 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3596 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3597 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3599 * config/i386/linux.h (REG_NAME): Don't define.
3600 * config/i386/linux64.h (REG_NAME): Don't define.
3601 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3602 Undefine before defining.
3604 2011-04-28 Jan Hubicka <jh@suse.cz>
3606 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3607 nonconstant_names array.
3608 (estimate_function_body_sizes): Build nonconstant_names array; handle
3609 BUILT_IN_CONSTANT_P.
3611 2011-04-28 Richard Guenther <rguenther@suse.de>
3615 2011-04-28 Richard Guenther <rguenther@suse.de>
3617 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3618 as late as possible.
3620 2011-04-28 Richard Guenther <rguenther@suse.de>
3622 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3623 (debug_constraint): Do it here.
3624 (dump_constraints): And here.
3625 (rewrite_constraints): And here.
3626 (dump_constraint_edge): Remove.
3627 (dump_constraint_graph): Rewrite to produce DOT output.
3628 (solve_constraints): Build succ graph as late as possible.
3629 Dump constraint graphs before and after solving.
3631 2011-04-28 Richard Guenther <rguenther@suse.de>
3633 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3634 New function split out from ...
3635 (find_func_aliases): ... here. Call it.
3636 (find_func_aliases_for_call): Likewise.
3638 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3640 * internal-fn.h (internal_fn_name_array): Declare.
3641 (internal_fn_flags_array): Likewise.
3643 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3645 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3646 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3648 (ssemodefsuffix): Remove.
3649 (ssevecmodesuffix): New mode attribute.
3650 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3651 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3652 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3653 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3654 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3655 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3656 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3657 ssemodesuffix mode attribute.
3658 (float splitters): Use ssevecmodesuffix mode attribute.
3659 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3660 (sseinsmode): Rename from avxvecmode.
3661 (avxsizesuffix): Rename from avxmodesuffix.
3662 (sseintvecmode): Rename from avxpermvecmode.
3663 (ssedoublevecmode): Rename from ssedoublesizemode.
3664 (ssehalfvecmode): Rename from avxhalfvecmode.
3665 (ssescalarmode): Rename from avxscalarmode.
3666 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3667 templates for ssemodesuffix mode attribute.
3668 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3671 Adjust RTX patterns globally for renamed mode attributes.
3673 2011-04-27 Jan Hubcika <jh@suse.cz>
3675 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3676 * ipa-inline-analysis.c: Include alloc-pool.h.
3677 (edge_predicate_pool): New.
3678 (trye_predicate_p): New function
3679 (false_predicate_p): New function.
3680 (add_clause): Sanity check that false clauses are "optimized";
3681 never add clauses to predicate that is already known to be false.
3682 (and_predicate): Use flase_predicate_p.
3683 (evaulate_predicate): Rename to ...
3684 (evaluate_predicate): ... this one; update all callers; assert
3685 that false is not listed among possible truths.
3686 (dump_predicate): Use true_predicate_p.
3687 (account_size_time): Use false_predicate_p.
3688 (evaulate_conditions_for_edge): Rename to ...
3689 (evaluate_conditions_for_edge) ... this one.
3690 (edge_set_predicate): New function.
3691 (inline_edge_duplication_hook): Duplicate edge predicates.
3692 (inline_edge_removal_hook): Free edge predicates.
3693 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3694 (dump_inline_summary): Update.
3695 (estimate_function_body_sizes): Set edge predicates.
3696 (estimate_calls_size_and_time): Handle predicates.
3697 (estimate_callee_size_and_time): Update.
3698 (remap_predicate): Add toplev_predicate; update comment.
3699 (remap_edge_predicates): New function.
3700 (inline_merge_summary): Compute toplev predicate; update.
3701 (read_predicate): New function.
3702 (read_inline_edge_summary): Use it.
3703 (inline_read_section): Likewise.
3704 (write_predicate): New function.
3705 (write_inline_edge_summary): Use it.
3706 (inline_write_summary): Likewise.
3707 (inline_free_summary): Free alloc pool and edge summary vec.
3709 2011-04-27 Richard Guenther <rguenther@suse.de>
3711 * tree-ssa-structalias.c (changed_count): Remove.
3712 (changed): Use a bitmap.
3713 (unify_nodes): Adjust.
3714 (do_sd_constraint): Likewise.
3715 (do_ds_constraint): Likewise.
3716 (do_complex_constraint): Likewise.
3717 (solve_graph): Likewise.
3719 2011-04-27 Jan Hubicka <jh@suse.cz>
3721 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3723 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3725 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3726 (avx_vperm2f128_*_operand): Ditto.
3727 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3728 Use avx_vpermilp_parallel in insn condition.
3729 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3730 Use avx_vperm2f128_parallel in insn condition.
3732 2011-04-27 Richard Guenther <rguenther@suse.de>
3734 * Makefile.in (tree-ssa-structalias.o): Remove
3735 gt-tree-ssa-structalias.h dependency.
3736 (GTFILES): Remove tree-ssa-structalias.c.
3737 * tree.c (allocate_decl_uid): New function.
3738 (make_node_stat): Use it.
3739 (copy_node_stat): Likewise.
3740 * tree.h (allocate_decl_uid): Declare.
3741 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3742 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3743 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3744 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3745 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3746 (struct heapvar_map): Likewise.
3747 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3748 heapvar_insert): Likewise.
3749 (make_heapvar_for): Rename to ...
3750 (make_heapvar): ... this. Simplify.
3751 (fake_var_decl_obstack): New global var.
3752 (build_fake_var_decl): New function.
3753 (make_constraint_from_heapvar): Adjust.
3754 (handle_lhs_call): Likewise.
3755 (create_function_info_for): Likewise.
3756 (intra_create_variable_infos): Likewise.
3757 (init_alias_vars): Allocate fake_var_decl_obstack.
3758 (init_alias_heapvars, delete_alias_heapvars): Remove.
3759 (compute_points_to_sets): Do not call init_alias_heapvars.
3760 (ipa_pta_execute): Likewise.
3761 (delete_points_to_sets): Free fake_var_decl_obstack.
3763 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3765 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3766 (si_from_UTItype, si_to_UTItype): New functions.
3767 (__udivmodti4): Use them to implement type-punning.
3768 * config/spu/multi3.c (union qword_TItype): New data type.
3769 (si_from_TItype, si_to_TItype): New functions.
3770 (__multi3): Use them to implement type-punning.
3772 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3774 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3776 2011-04-27 Jan Hubicka <jh@suse.cz>
3778 * ipa-prop.c (function_insertion_hook_holder): New holder.
3779 (ipa_add_new_function): New function.
3780 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3781 Register/deregister holder.
3783 2011-04-27 Richard Guenther <rguenther@suse.de>
3785 PR tree-optimization/48772
3786 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3788 2011-04-27 Richard Guenther <rguenther@suse.de>
3790 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3791 TARGET_MEM_REF handling.
3793 2011-04-27 Nick Clifton <nickc@redhat.com>
3795 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3796 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3797 (REG_CLASS_NAMES): Likewise.
3798 (REG_CLASS_CONTENTS): Likewise.
3799 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3800 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3801 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3802 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3803 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3804 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3805 duplicate register classes.
3806 (frv_class_likely_spilled_p): Likewise.
3807 (frv_register_move_cost): Likewise.
3809 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3810 end of the regno_reg_class array.
3812 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3815 * c-typeck.c (build_binary_op): Don't wrap arguments if
3816 int_operands is true.
3818 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3821 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3822 targetm.calls.must_pass_in_stack for void type.
3824 2011-04-26 Jan Hubicka <jh@suse.cz>
3826 * cgraphbuild.c (build_cgraph_edges): Update call
3827 of cgraph_create_edge and cgraph_create_indirect_edge.
3828 * cgraph.c (cgraph_create_edge_including_clones,
3829 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3830 cgraph_update_edges_for_call_stmt_node): Do not take nest
3831 argument; do not initialize call_stmt_size/time.
3832 (dump_cgraph_node): Do not dump nest.
3833 (cgraph_clone_edge): Do not take loop_nest argument;
3834 do not propagate it; do not clone call_stmt_size/time.
3835 (cgraph_clone_node): Likewise.
3836 (cgraph_create_virtual_clone): Update.
3837 * cgraph.h (struct cgraph_edge): Remove
3838 call_stmt_size/call_stmt_time/loop_nest.
3839 (cgraph_create_edge, cgraph_create_indirect_edge,
3840 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3842 * tree-emutls.c (gen_emutls_addr): Update.
3843 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3844 loop_nest; handle indirect calls, too.
3845 (clone_inlined_nodes): Do not care about updating inline summaries.
3846 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3847 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3848 stream call_stmt_size/call_stmt_time/loop_nest.
3849 * ipa-inline.c (edge_badness): Update.
3850 (ipa_inline): dump summaries after inlining.
3851 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3853 (inline_edge_summary): New function.
3854 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3855 (inline_edge_removal_hook): Handle edge summaries.
3856 (inline_edge_duplication_hook): New hook.
3857 (inline_summary_alloc): Alloc hooks.
3858 (initialize_growth_caches): Do not register removal hooks.
3859 (free_growth_caches); Do not free removal hook.
3860 (dump_inline_edge_summary): New function.
3861 (dump_inline_summary): Use it.
3862 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3863 (inline_update_callee_summaries): New function.
3864 (inline_merge_summary): Use it.
3865 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3866 (read_inline_edge_summary): New function.
3867 (inline_read_section): Use it.
3868 (write_inline_edge_summary): New function.
3869 (inline_write_summary): Use it.
3870 (inline_free_summary): Free edge new holders.
3871 * tree-inline.c (copy_bb): Update.
3873 2011-04-26 Jason Merrill <jason@redhat.com>
3875 * tree-eh.c (lower_try_finally_switch): Create the label along with
3876 the CASE_LABEL_EXPR.
3878 2011-04-26 David S. Miller <davem@davemloft.net>
3879 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3881 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3882 * configure: Regenerate.
3884 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3887 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3889 (VEC_reduc): New code iterator and splitters for vector reduction.
3890 (VEC_reduc_name): Ditto.
3891 (VEC_reduc_rtx): Ditto.
3892 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3893 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3895 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3896 support for extracting SF on VSX.
3898 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3899 generating xscvspdp.
3900 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3901 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3902 double add, minimum, maximum vector reduction.
3903 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3904 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3905 optimize double vector reduction.
3906 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3908 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3910 * config/fr30/fr30.h (inhibit_libc): Don't define.
3911 * config/m32r/m32r-protos.h: Correct comment.
3912 * config/v850/v850.h (GHS_default_section_names,
3913 GHS_current_section_names): Use tree, not union tree_node *.
3915 2011-04-26 Xinliang David Li <davidxl@google.com>
3917 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3918 * c-family/c-opts.c (c_common_handle_option): Set
3919 warn_maybe_uninitialized.
3920 * opts.c (common_handle_option): Ditto.
3921 * common.opt: New option.
3922 * tree-ssa.c (warn_uninit): Add one more parameter.
3923 (warn_uninitialized_var): Pass warning code.
3924 * tree-flow.h: Interface change.
3927 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3929 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3930 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3931 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3933 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3935 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3936 * config/mips/mips.opt (mmips-tfile): Remove.
3938 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3939 mips-tdump reference to ...
3940 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3941 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3942 reference by Tru64 UNIX.
3944 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3947 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3948 is error_mark_node, set value to NULL.
3950 PR tree-optimization/48734
3951 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3952 if return value from maybe_fold_*_comparsions isn't something
3953 the code is prepared to handle.
3955 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3957 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3959 (ext_QIreg_nomode_operands): Remove.
3960 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3964 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3966 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3968 2011-04-26 Richard Guenther <rguenther@suse.de>
3970 * c-typeck.c (build_unary_op): Do not expand array-refs via
3971 pointer arithmetic. Only adjust qualifiers for function types.
3973 2011-04-26 Richard Guenther <rguenther@suse.de>
3976 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3977 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3978 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3979 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3981 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3983 * doc/extend.texi: Document __underlying_type.
3985 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3987 * config/rs6000/titan.md (automata_option "progress"): Remove.
3989 2011-04-25 Jeff Law <law@redhat.com>
3991 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3993 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3995 * system.h (ENUM_BITFIELD): Remove.
3997 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3998 Eric Botcazou <ebotcazou@adacore.com>
4000 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4001 for STORE_FLAG_VALUE==-1 case.
4003 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4006 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4007 LEGITIMATE_PIC_OPERAND_P.
4009 2011-04-24 Jan Hubicka <jh@suse.cz>
4011 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4013 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4014 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4015 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4016 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4017 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4018 Sanity check predicate length.
4019 (remap_predicate): Likewise; sanity check jump functions.
4020 (inline_read_section, inline_write_summary): Sanity check
4023 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4026 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4027 __is_literal_type, and __is_trivial; update throughout about
4028 possibly cv-qualified void types.
4030 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4032 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4033 testsuite and make it version agnostic.
4035 2011-04-22 Jan Hubicka <jh@suse.cz>
4037 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4039 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4042 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4043 to VOID_TYPE even around MODIFY_EXPR.
4045 2011-04-22 Mike Stump <mikestump@comcast.net>
4047 * gensupport.c (read_md_rtx): Fix typo in comment.
4048 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4051 2011-04-22 Jan Hubicka <jh@suse.cz>
4053 * gengtype.c (open_base_files): Add ipa-inline.h include.
4054 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4055 ipa-prop.c; update all uses.
4056 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4057 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4058 merge summary of inlined function into former caller.
4059 * ipa-inline.c (max_benefit): Remove.
4060 (edge_badness): Compensate for removal of benefits.
4061 (update_caller_keys): Use
4062 reset_node_growth_cache/reset_edge_growth_cache.
4063 (update_callee_keys): Likewise.
4064 (update_all_callee_keys): Likewise.
4065 (inline_small_functions): Do not collect max_benefit; do not reset
4066 estimated_growth; call free_growth_caches and initialize_growth_caches.
4067 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4068 struct size_time_entry): New structures.
4069 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4070 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4071 and estimated_growth.
4072 (edge_growth_cache_entry): New structure.
4073 (node_growth_cache, edge_growth_cache): New global vars.
4074 (estimate_growth): Turn into inline.
4075 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4076 initialize_growth_caches, free_growth_caches): Declare.
4077 (estimate_edge_growth): Rewrite.
4078 (estimate_edge_time): Implement as inline cache lookup.
4079 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4081 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4082 (NUM_CONDITIONS): New constant.
4083 (predicate_conditions): New enum.
4084 (IS_NOT_CONSTANT): New constant.
4085 (edge_removal_hook_holder): New var.
4086 (node_growth_cache, edge_growth_cache): New global vars.
4087 (true_predicate, single_cond_predicate, false_predicate,
4088 not_inlined_predicate, add_condition, add_clause, and_predicates,
4089 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4090 dump_clause, dump_predicate, account_size_time,
4091 evaulate_conditions_for_edge): New functions.
4092 (inline_summary_alloc): Move to heap.
4093 (inline_node_removal_hook): Clear condition and entry vectors.
4094 (inline_edge_removal_hook): New function.
4095 (initialize_growth_caches, free_growth_caches): New function.
4096 (dump_inline_summary): Update.
4097 (edge_execution_predicate): New function.
4098 (will_be_nonconstant_predicate): New function.
4099 (estimate_function_body_sizes): Compute BB and constantness predicates.
4100 (compute_inline_parameters): Do not clear estimated_growth.
4101 (estimate_edge_size_and_time): New function.
4102 (estimate_calls_size_and_time): New function.
4103 (estimate_callee_size_and_time): New function.
4104 (remap_predicate): New function.
4105 (inline_merge_summary): New function.
4106 (do_estimate_edge_time): New function based on...
4107 (estimate_edge_time): ... this one.
4108 (do_estimate_edge_growth): New function.
4109 (do_estimate_growth): New function based on....
4110 (estimate_growth): ... this one.
4111 (inline_analyze_function): Analyze after deciding on jump functions.
4112 (inline_read_section): New function.
4113 (inline_read_summary): Use it.
4114 (inline_write_summary): Write all the new data.
4115 * ipa-prop.c (ipa_get_param_decl_index): Export.
4116 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4117 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4119 (ipa_get_lattice): Move here from ipa-cp.c
4120 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4121 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4122 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4123 cgraph_edge_inlinable_p): Remove.
4124 * cgraphunit.c: Include ipainline.h
4125 (cgraph_process_new_functions): Update call of
4126 compute_inline_parameters.
4128 2011-04-22 Richard Guenther <rguenther@suse.de>
4130 * tree.c (build_int_cst): Properly create canonicalized integer
4132 (build_int_cst_type): Remove scary comments.
4134 2011-04-22 Xinliang David Li <davidxl@google.com>
4136 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4137 by default when -Wno-error is not specified.
4138 * opts-global.c (decode_options): Remove call to
4139 control_warning_options.
4141 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4143 PR tree-optimization/48717
4144 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4145 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4147 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4149 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4150 definition where used.
4152 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4155 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4156 TREE_STATIC variables declared inside of some OpenMP construct.
4158 2011-04-22 Martin Jambor <mjambor@suse.cz>
4161 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4163 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4166 * c-typeck.c (pop_init_level): Do not warn about initializing
4169 2011-04-22 Alan Modra <amodra@gmail.com>
4171 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4172 when returning call_cookie.
4173 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4174 pointers, to functions with no more vector args than the current
4175 function, and some non-local calls for ABI_V4.
4176 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4177 sibcall_nonlocal_aix64): Combine to ..
4178 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4179 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4180 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4181 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4182 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4184 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4185 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4186 sibcall_value_symbolic_64): Delete.
4188 2011-04-21 Xinliang David Li <davidxl@google.com>
4190 * cgraph.h: Remove pid.
4191 * cgraph.c: Remove pid.
4192 * value-prof.c (init_node_map): New function.
4193 (del_node_map): New function.
4194 (find_func_by_funcdef_no): New function.
4195 (gimple_ic_transform): Call new function.
4196 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4197 * function.c (get_last_funcdef_no): New function.
4198 * function.h (get_last_funcdef_no): New function.
4199 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4200 to libgcov function.
4201 (tree-profiling): Call node map init and delete function.
4203 2011-04-21 Ian Lance Taylor <iant@google.com>
4205 * godump.c (go_format_type): Use exported Go name for anonymous
4208 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4210 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4211 Call builtin_function_type_list instead of builtin_function_type.
4212 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4214 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4216 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4217 build_function_type_list instead of build_function_type.
4218 Delete variable `endlink'.
4220 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4222 * config/s390/s390.c (s390_init_builtins): Call
4223 build_function_type_list instead of build_function_type.
4225 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4227 * config/ia64/ia64.c (ia64_init_builtins): Call
4228 build_function_type_list instead of builtin_function_type.
4230 2011-04-21 Easwaran Raman <eraman@google.com>
4232 * cfgexpand.c (stack_var): Remove OFFSET...
4233 (add_stack_var): ...and its reference here...
4234 (expand_stack_vars): ...and here.
4235 (stack_var_cmp): Sort by descending order of size.
4236 (partition_stack_vars): Change heuristic.
4237 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4238 (dump_stack_var_partition): Add newline after each partition.
4240 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4241 Jeff Law <law@redhat.com>
4243 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4244 * gengtype.c (matching_file_name_substitute): Likewise.
4246 2011-04-21 Richard Guenther <rguenther@suse.de>
4249 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4251 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4253 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4255 2011-04-21 Richard Guenther <rguenther@suse.de>
4257 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4260 2011-04-21 Richard Guenther <rguenther@suse.de>
4262 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4263 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4264 Use DECL_P, not SSA_VAR_P.
4265 (ptr_derefs_may_alias_p): Likewise.
4266 (ptr_deref_may_alias_ref_p_1): Likewise.
4267 (decl_refs_may_alias_p): Likewise.
4268 (refs_may_alias_p_1): Likewise.
4269 (ref_maybe_used_by_call_p_1): Likewise.
4270 (call_may_clobber_ref_p_1): Likewise.
4271 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4272 are either MEM_REF or TARGET_MEM_REF.
4273 (indirect_refs_may_alias_p): Likewise.
4274 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4275 for MEM_EXPR of indirect calls.
4277 2011-04-21 Tristan Gingold <gingold@adacore.com>
4279 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4280 (dst_file_info_struct): Remove flen field.
4281 (lookup_filename): Remove code that set flen field.
4283 2011-04-21 Tristan Gingold <gingold@adacore.com>
4285 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4287 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4290 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4291 vec_extract and vec_concat for non-SSE4_1 targets.
4293 2011-04-21 Richard Guenther <rguenther@suse.de>
4295 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4298 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4300 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4302 (FILE): Don't undefine.
4304 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4306 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4308 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4310 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4311 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4312 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4314 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4315 definitions where used.
4316 * config/microblaze/microblaze.h (struct microblaze_args): Use
4317 rtx, not struct rtx_def *.
4318 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4320 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4321 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4322 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4323 not struct rtx_def *.
4324 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4326 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4328 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4330 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4332 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4333 operand_equal_p to compare DR_BASE_ADDRESSes.
4334 (vect_check_interleaving): Likewise.
4336 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4339 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4340 for all Neon struct constants.
4342 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4344 * target.def (legitimate_constant_p): New hook.
4345 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4346 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4347 * doc/tm.texi: Regenerate.
4348 * hooks.h (hook_bool_mode_rtx_true): Declare.
4349 * hooks.c (hook_bool_mode_rtx_true): Define.
4350 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4351 * calls.c (precompute_register_parameters): Replace uses of
4352 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4353 (emit_library_call_value_1): Likewise.
4354 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4355 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4356 * ira-costs.c (scan_one_insn): Likewise.
4357 * recog.c (general_operand, immediate_operand): Likewise.
4358 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4359 * reload1.c (init_eliminable_invariants): Likewise.
4361 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4363 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4364 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4366 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4367 * config/alpha/predicates.md (input_operand): Update call to
4368 alpha_legitimate_constant_p.
4370 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4371 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4372 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4373 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4374 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4375 (arm_legitimate_constant_p): New functions.
4376 (arm_cannot_force_const_mem): Make static.
4378 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4380 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4381 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4382 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4383 instead of bfin_legitimate_constant_p.
4384 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4385 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4387 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4389 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4391 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4392 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4393 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4394 (frv_legitimate_constant_p): Make static. Add a mode argument.
4396 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4397 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4398 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4400 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4401 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4402 * config/i386/i386.c (legitimate_constant_p): Rename to...
4403 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4405 (ix86_cannot_force_const_mem): Update accordingly.
4406 (ix86_legitimate_address_p): Likewise.
4407 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4408 * config/i386/i386.md: Update commentary.
4410 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4411 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4412 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4413 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4415 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4417 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4418 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4419 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4420 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4422 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4423 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4424 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4426 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4427 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4428 (m32r_legitimate_constant_p): New function.
4430 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4431 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4432 LEGITIMATE_CONSTANT_P.
4433 (LEGITIMATE_CONSTANT_P): Delete.
4434 * config/m68k/m68k.c (m68k_expand_prologue): Call
4435 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4436 (m68k_legitimate_constant_p): New function.
4437 * config/m68k/m68k.md: Update comments.
4439 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4440 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4441 (mcore_legitimate_constant_p): New function.
4443 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4444 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4445 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4446 Add a mode argument.
4447 (mep_legitimate_address): Update accordingly.
4448 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4450 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4452 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4453 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4454 static. Check OP's mode for VOIDmode.
4455 (microblaze_legitimate_constant_p): New function.
4456 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4458 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4459 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4460 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4461 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4462 * config/mips/predicates.md: Update comments.
4464 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4465 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4466 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4467 (mmix_legitimate_constant_p): Make static, return a bool, and take
4469 (mmix_print_operand_address): Update accordingly.
4471 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4473 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4474 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4475 static. Add a mode argument.
4476 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4478 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4480 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4481 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4482 (pa_legitimate_constant_p): New function.
4484 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4486 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4487 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4488 (pdp11_legitimate_constant_p): New function.
4490 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4491 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4492 (rs6000_legitimate_constant_p): New function.
4494 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4495 (rx_legitimate_constant_p): ...this.
4496 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4497 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4498 (rx_legitimate_constant_p): ...this.
4499 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4500 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4502 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4503 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4504 * config/s390/s390.c (legitimate_constant_p): Rename to...
4505 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4506 and add a mode argument.
4507 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4509 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4511 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4512 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4513 (sh_legitimate_constant_p): New function.
4515 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4516 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4517 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4518 (legitimate_constant_p): Rename to...
4519 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4521 (constant_address_p): Update accordingly.
4523 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4524 argument and return a bool.
4525 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4526 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4527 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4528 (spu_rtx_costs): Update accordingly.
4529 * config/spu/predicates.md (vec_imm_operand): Likewise.
4531 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4533 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4534 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4535 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4537 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4538 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4539 * config/vax/vax.c (legitimate_constant_p): Likewise.
4541 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4542 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4543 (xtensa_legitimate_constant_p): New function.
4545 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4547 * target.def (cannot_force_const_mem): Add a mode argument.
4548 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4549 * doc/tm.texi: Regenerate.
4550 * hooks.h (hook_bool_mode_rtx_false): Declare.
4551 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4552 (hook_bool_mode_const_rtx_true): Likewise.
4553 (hook_bool_mode_rtx_false): New function.
4554 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4555 to be non-VOID. Update call to cannot_force_const_mem.
4556 (find_reloads): Update accordingly.
4557 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4558 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4560 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4561 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4562 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4563 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4564 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4565 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4566 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4567 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4568 (m68k_cannot_force_const_mem): ...this new function.
4569 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4571 (mips_const_insns, mips_legitimize_const_move): Update calls.
4572 (mips_secondary_reload_class): Likewise.
4573 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4574 (pa_cannot_force_const_mem): ...this new function.
4575 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4576 (rs6000_cannot_force_const_mem): ...this new function.
4577 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4579 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4580 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4582 (xtensa_cannot_force_const_mem): ...this new function.
4584 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4586 * config/mips/mips.c (mips16_build_function_stub): Call
4587 build_function_type_list instead of build_function_type.
4588 (mips16_build_call_stub): Likewise.
4590 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4592 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4593 instead of build_function_type.
4595 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4597 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4598 instead of build_function_type.
4600 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4603 * config/i386/i386.md (insv): Change operand 0 constraint to
4604 "register_operand". Change operand 1 and 2 constraint to
4605 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4606 * config/i386/sse.md (sse4_1_pinsrb): Export.
4607 (sse2_pinsrw): Ditto.
4608 (sse4_1_pinsrd): Ditto.
4609 (sse4_1_pinsrq): Ditto.
4610 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4611 * config/i386/i386.c (ix86_expand_pinsr): New.
4613 2011-04-20 Easwaran Raman <eraman@google.com>
4615 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4616 containing union type only with -fstrict-aliasing.
4618 2011-04-20 Jim Meyering <meyering@redhat.com>
4620 Remove useless if-before-free tests.
4621 * calls.c (expand_call, save_area): Likewise.
4622 * cfgcleanup.c (try_forward_edges): Likewise.
4623 * collect2.c (collect_execute): Likewise.
4624 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4625 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4626 * coverage.c (coverage_checksum_string): Likewise.
4627 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4628 * cselib.c (cselib_init): Likewise.
4629 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4630 (df_set_clean_cfg): Likewise.
4631 * function.c (free_after_compilation): Likewise.
4632 * gcc.c (do_spec_1, main): Likewise.
4633 * gcov.c (create_file_names): Likewise.
4634 * gensupport.c (identify_predicable_attribute): Likewise.
4635 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4636 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4637 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4638 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4639 * ipa-pure-const.c (local_pure_const): Likewise.
4640 * ipa-reference.c (propagate): Likewise.
4641 * ira-costs.c (free_ira_costs): Likewise.
4642 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4643 * matrix-reorg.c (mat_free): Likewise.
4644 * prefix.c (get_key_value): Likewise.
4645 * profile.c (compute_value_histograms): Likewise.
4646 * reload1.c (free_reg_equiv): Likewise.
4647 * sched-deps.c (free_deps): Likewise.
4648 * sel-sched-ir.c (fence_clear): Likewise.
4649 * sese.c (set_rename, if_region_set_false_region): Likewise.
4650 * tree-data-ref.c (free_rdg): Likewise.
4651 * tree-eh.c (lower_try_finally): Likewise.
4652 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4653 * tree-ssa-live.c (delete_var_map): Likewise.
4654 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4655 * tree-ssa-pre.c (phi_trans_add): Likewise.
4657 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4659 PR tree-optimization/48611
4660 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4661 beyond ERT_MUST_NOT_THROW region.
4663 2011-04-20 Catherine Moore <clm@codesourcery.com>
4665 * config/mips/mips.opt (mfix-24k): New.
4666 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4667 * config/mips/mips.md (length): Increase by 4 for stores if
4669 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4670 all noreorder if fixing 24K errata.
4671 * doc/invoke.texi: Document mfix-24k.
4673 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4675 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4676 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4678 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4680 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4681 (const_ok_for_op): ... to here.
4683 2011-04-20 Kai Tietz <ktietz@redhat.com>
4685 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4686 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4688 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4690 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4692 2011-04-20 Richard Guenther <rguenther@suse.de>
4694 PR tree-optimization/47892
4695 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4698 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4700 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4702 2011-04-20 Tristan Gingold <gingold@adacore.com>
4704 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4706 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4710 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4711 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4712 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4713 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4714 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4716 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4719 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4720 (avr_asm_named_section, avr_asm_output_aligned_common,
4721 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4722 New functions to update...
4723 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4724 (avr_asm_init_sections): Overwrite section callbacks for
4725 data_section, bss_section.
4726 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4728 (avr_file_end): ...here.
4730 2011-04-20 Richard Guenther <rguenther@suse.de>
4733 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4734 objects and types here. Adjust for their offset before comparing.
4736 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4738 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4741 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4743 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4744 (GIMPLE_H): Include $(INTERNAL_FN_H).
4745 (OBJS-common): Add internal-fn.o.
4746 (internal-fn.o): New rule.
4747 * internal-fn.def: New file.
4748 * internal-fn.h: Likewise.
4749 * internal-fn.c: Likewise.
4750 * gimple.h: Include internal-fn.h.
4751 (GF_CALL_INTERNAL): New gf_mask.
4752 (gimple_statement_call): Put fntype into a union with a new
4754 (gimple_build_call_internal): Declare.
4755 (gimple_build_call_internal_vec): Likewise.
4756 (gimple_call_same_target_p): Likewise.
4757 (gimple_call_internal_p): New function.
4758 (gimple_call_internal_fn): Likewise.
4759 (gimple_call_fntype): Return null for internal calls.
4760 (gimple_call_set_fntype): Assert that the function is not internal.
4761 (gimple_call_set_fn): Likewise.
4762 (gimple_call_set_fndecl): Likewise.
4763 (gimple_call_set_internal_fn): New function.
4764 (gimple_call_addr_fndecl): Handle null functions.
4765 (gimple_call_return_type): Likewise null types.
4766 * gimple.c (gimple_build_call_internal_1): New function.
4767 (gimple_build_call_internal): Likewise.
4768 (gimple_build_call_internal_vec): Likewise.
4769 (gimple_call_same_target_p): Likewise.
4770 (gimple_call_flags): Handle calls to internal functions.
4771 (gimple_call_fnspec): New function.
4772 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4773 (gimple_has_side_effects): Handle null functions.
4774 (gimple_rhs_has_side_effects): Likewise.
4775 (gimple_call_copy_skip_args): Handle calls to internal functions.
4776 * cfgexpand.c (expand_call_stmt): Likewise.
4777 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4778 * gimple-fold.c (gimple_fold_call): Handle null functions.
4779 (gimple_fold_stmt_to_constant_1): Don't fold
4780 calls to internal functions.
4781 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4783 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4784 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4785 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4786 (do_warn_unused_result): Likewise.
4787 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4788 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4789 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4790 the target of a call.
4791 (initialize_hash_element): Update accordingly.
4792 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4793 (iterative_hash_hashable_expr): Handle calls to internal functions.
4794 (print_expr_hash_elt): Likewise.
4795 * tree-ssa-pre.c (can_value_number_call): Likewise.
4796 (eliminate): Handle null functions.
4797 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4798 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4799 (find_func_aliases): Likewise.
4800 * value-prof.c (gimple_ic_transform): Likewise.
4801 (gimple_indirect_call_to_profile): Likewise.
4802 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4803 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4805 2011-04-19 Jan Hubicka <jh@suse.cz>
4807 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4808 * ipa-inline.c (inline_small_functions): Compute summaries first,
4809 populate heap later.
4811 2011-04-19 Jan Hubicka <jh@suse.cz>
4813 * cgraph.h (save_inline_function_body): Remove.
4814 * ipa-inline-transform.c: New file, broke out of...
4815 * ipa-inline.c: ... this one; Update toplevel comment.
4816 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4818 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4819 (cgraph_mark_inline_edge): Rename to inline_call; move to
4820 ipa-inline-transform.c.
4821 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4822 move to ipa-inline-transform.c
4823 (recursive_inlining, inline_small_functions, flatten_function,
4824 ipa_inline, inline_always_inline_functions,
4825 early_inline_small_functions): Update.
4826 (inline_transform): Move to ipa-inline-transform.c.
4827 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4829 * Makefile.in (ipa-inline-transform.o): New file.
4830 * cgraphunit.c (save_inline_function_body): Move to
4831 ipa-inline-transform.c
4833 2011-04-19 DJ Delorie <dj@redhat.com>
4835 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4836 registers if we already know there aren't any.
4837 (m32c_emit_epilogue): Don't emit a barrier here.
4838 (m32c_emit_eh_epilogue): Likewise.
4839 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4840 operands at expand time.
4841 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4843 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4844 duplicates. Provide aliases instead.
4845 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4846 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4849 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4851 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4852 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4853 (general_or_i64_p, sparc_register_move_cost): New function.
4855 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4857 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4858 Add lynx, mipssde. Sort table.
4860 2011-04-19 Xinliang David Li <davidxl@google.com>
4862 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4865 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4868 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4869 is a SUBREG with non-MODE_INT mode inside of it.
4871 2011-04-19 Martin Jambor <mjambor@suse.cz>
4873 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4874 also according to actual contants.
4875 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4876 (gimple_fold_call): Use it.
4877 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4879 2011-04-19 Martin Jambor <mjambor@suse.cz>
4881 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4882 non-pointer assignments.
4884 2011-04-19 Martin Jambor <mjambor@suse.cz>
4886 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4887 account anc_offset and otr_type from the indirect edge info.
4888 * ipa-prop.c (get_ancestor_addr_info): New function.
4889 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4890 get_ancestor_addr_info, call it.
4891 (ipa_note_param_call): Do not initialize information about polymorphic
4892 calls, return the indirect call graph edge. Remove the last
4893 parameter, adjust all callers.
4894 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4895 parameters. Initialize polymorphic information in the indirect edge.
4897 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4900 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4901 the types if they have different enumeration identifiers.
4903 2011-04-19 Jan Hubicka <jh@suse.cz>
4905 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4906 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4907 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4908 (optimize_function_for_size_p) ... here.
4910 2011-04-19 Richard Guenther <rguenther@suse.de>
4913 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4916 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4918 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4919 if DECL_NO_INLINE_WARNING_P is set on the function.
4921 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4924 * reload1.c (inc_for_reload): Return void. All callers changed.
4925 (emit_input_reload_insns): Don't try to delete previous output
4926 reloads to a register, or record spill_reg_store for autoincs.
4928 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4930 * gengtype.h: Updated copyright year.
4931 (struct input_file_st): Add inpisplugin field.
4932 (type_fileloc): New function.
4934 (write_typed_struct_alloc_def): Add gcc_assert.
4935 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4936 (write_typed_alloc_defns): Don't output for plugin files.
4937 (input_file_by_name): Clear inpisplugin field.
4938 (main): Set inpisplugin field for plugin files.
4940 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4942 * gengtype-state.c (string_eq): New.
4943 (read_state): Use string_eq instead of strcmp when creating the
4946 2011-04-19 Wei Guozhi <carrot@google.com>
4949 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4950 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4952 * config/arm/constraints.md (Uu): New constraint.
4953 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4955 2011-04-19 Tristan Gingold <gingold@adacore.com>
4957 * config.gcc (-*-*-*vms): Added.
4958 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4960 * config/vms/vms-ld.c: New file.
4961 * config/vms/vms-ar.c: New file.
4962 * config/vms/t-vmsnative: New file.
4964 2011-04-18 Xinliang David Li <davidxl@google.com>
4966 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4968 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4971 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4972 if TREE_TYPE (v) is non-NULL.
4974 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4975 gimple_get_virt_mehtod_for_binfo.
4976 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4977 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4979 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4981 2011-04-18 Michael Matz <matz@suse.de>
4982 Steve Ellcey <sje@cup.hp.com>
4984 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4985 use its mode as source mode if it isn't VOIDmode.
4987 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4989 * doc/passes.texi: Fill crossref nodes.
4991 2011-04-18 Jim Meyering <meyering@redhat.com>
4993 Fix doubled-word typos in comments and strings
4994 * config/alpha/vms-unwind.h: s/for for/for/
4995 * config/arm/unwind-arm.h: Likewise.
4996 * config/microblaze/microblaze.c: Likewise.
4997 * config/sh/constraints.md: s/in in/in/
4998 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5000 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5002 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5003 (AVX_FLOAT_MODE_P): Ditto.
5004 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5005 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5006 (AVX_VEC_FLOAT_MODE_P): Ditto.
5007 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5008 (UNSPEC_MASKSTORE): Ditto.
5009 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5010 Merge from <sse>_movmsk<ssemodesuffix> and
5011 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5012 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5014 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5015 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5016 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5018 2011-04-18 Jan Hubicka <jh@suse.cz>
5020 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5022 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5023 (want_inline_function_called_once_p): Break out the logic from
5025 (edge_badness): Ensure that profile is not misupdated.
5026 (lookup_recursive_calls): Prioritize by call frequencies.
5027 (inline_small_functions): Move program size estimates here;
5028 actually process whole queue even when unit growth has been
5029 met. (to properly compute inline_failed reasons and for the
5030 case unit size decrease.) Revisit comments on recursive inlining.
5031 (ipa_inline): Remove unit summary code; first inline hot calls
5032 of functions called once, cold calls next.
5033 (order, nnodes): Remove unused variables.
5034 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5035 (GTFILES): Remove ipa-inline.c
5036 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5038 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5040 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5042 2011-04-18 Jie Zhang <jie@codesourcery.com>
5043 Richard Earnshaw <rearnsha@arm.com>
5045 * arm.c (neon_builtin_type_bits): Remove.
5046 (typedef enum neon_builtin_mode): New.
5047 (T_MAX): Don't define.
5048 (typedef enum neon_builtin_datum): Remove bits, codes[],
5049 num_vars and base_fcode. Add mode, code and fcode.
5050 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5051 VAR10): Change accordingly.
5052 (neon_builtin_data[]): Change accordingly
5053 (arm_init_neon_builtins): Change accordingly.
5054 (neon_builtin_compare): Remove.
5055 (locate_neon_builtin_icode): Remove.
5056 (arm_expand_neon_builtin): Change accordingly.
5058 * arm.h (enum arm_builtins): Move to ...
5059 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5061 * arm.c (arm_builtin_decl): Declare.
5062 (TARGET_BUILTIN_DECL): Define.
5063 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5064 (arm_builtin_decls[]): New.
5065 (arm_init_neon_builtins): Store builtin declarations in
5066 arm_builtin_decls[].
5067 (arm_init_tls_builtins): Likewise.
5068 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5069 (arm_builtin_decl): New.
5071 2011-04-18 Richard Guenther <rguenther@suse.de>
5073 * tree.c (upper_bound_in_type): Build properly canonicalized
5075 (lower_bound_in_type): Likewise.
5077 2011-04-18 Richard Guenther <rguenther@suse.de>
5079 * gimple.h (gimple_call_addr_fndecl): New function.
5080 (gimple_call_fndecl): Use it.
5081 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5083 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5084 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5086 2011-04-18 Richard Guenther <rguenther@suse.de>
5089 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5091 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5094 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5095 DECL_IN_CONSTANT_POOL without RTL.
5097 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5098 Ira Rosen <ira.rosen@linaro.org>
5101 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5102 to match neon_vzip/vuzp/vtrn_internal.
5103 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5104 outputs explicitly dependent on both inputs.
5105 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5107 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5109 PR tree-optimization/48616
5110 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5111 whether the shift is by scalar or vector based on whether all SLP
5112 scalar stmts have the same rhs.
5114 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5116 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5119 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5121 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5124 2011-04-17 Jan Hubicka <jh@suse.cz>
5126 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5127 * cgrpahunit.c (cgraph_finalize_function): Do not set
5128 finalized_by_frontend.
5129 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5130 finalized_by_frontend.
5132 2011-04-17 Jan Hubicka <jh@suse.cz>
5134 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5135 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5136 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5137 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5139 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5141 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5143 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5146 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5147 is non-null before accessing it.
5148 (input_cgraph): Remove trailing spaces.
5150 2011-04-17 Revital Eres <revital.eres@linaro.org>
5152 * params.def (sms-min-sc): New param flag.
5153 * modulo-sched.c (sms_schedule): Use it.
5154 * doc/invoke.texi (sms-min-sc): Document it.
5156 2011-04-17 Jan Hubicka <jh@suse.cz>
5158 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5159 present, also set gimple_call_set_cannot_inline.
5160 * ipa-inline.c: Update toplevel comment.
5162 (cgraph_clone_inlined_nodes): Fix linebreaks.
5163 (cgraph_check_inline_limits): Restructure to ...
5164 (caller_growth_limits): ... this one; be more tolerant
5165 on growth in nested inline chains; add explanatory comment;
5166 fix stack accounting thinko introduced by previous patch.
5167 (cgraph_default_inline_p): Remove.
5168 (report_inline_failed_reason): New function.
5169 (can_inline_edge_p): New function.
5170 (can_early_inline_edge_p): New function.
5171 (leaf_node_p): Move upwards in file.
5172 (want_early_inline_function_p): New function.
5173 (want_inline_small_function_p): New function.
5174 (want_inline_self_recursive_call_p): New function.
5175 (cgraph_edge_badness): Rename to ...
5176 (edge_badness) ... this one; fix linebreaks.
5177 (update_edge_key): Update call of edge_baddness; add
5178 detailed dump about queue updates.
5179 (update_caller_keys): Use can_inline_edge_p and
5180 want_inline_small_function_p.
5181 (cgraph_decide_recursive_inlining): Rename to...
5182 (recursive_inlining): Use can_inline_edge_p and
5183 want_inline_self_recursive_call_p; simplify and remove no longer
5185 (cgraph_set_inline_failed): Remove.
5186 (add_new_edges_to_heap): Use can_inline_edge_p and
5187 want_inline_small_function_p.
5188 (cgraph_decide_inlining_of_small_functions): Rename to ...
5189 (inline_small_functions): ... this one; cleanup; use
5190 can/want predicates; cleanup debug ouput; work edges till fibheap
5191 is exhausted and do not stop once unit growth is reached; remove
5192 later loop processing remaining edges.
5193 (cgraph_flatten): Rename to ...
5194 (flatten_function): ... this one; use can_inline_edge_p
5195 and can_early_inline_edge_p predicates.
5196 (cgraph_decide_inlining): Rename to ...
5197 (ipa_inline): ... this one; remove unreachable nodes before
5198 inlining functions called once; simplify the pass.
5199 (cgraph_perform_always_inlining): Rename to ...
5200 (inline_always_inline_functions): ... this one; use
5201 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5202 (cgraph_decide_inlining_incrementally): Rename to ...
5203 (early_inline_small_functions): ... this one; simplify
5204 using new predicates; cleanup; make dumps prettier.
5205 (cgraph_early_inlining): Rename to ...
5206 (early_inliner): newer inline regular functions into always-inlines;
5207 fix updating of call stmt summaries.
5208 (pass_early_inline): Update for new names.
5209 (inline_transform): Fix formating.
5210 (gate_cgraph_decide_inlining): Rename to ...
5211 (pass_ipa_inline): ... this one.
5212 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5213 * ipa-inline-analysis.c (dump_inline_summary): Update.
5214 (compute_inline_parameters): Do not compute disregard_inline_limits;
5215 look for mismatching arguments.
5216 (estimate_growth): Fix handlig of non-trivial self recursion.
5217 (inline_read_summary): Do not read info->disregard_inline_limits.
5218 (inline_write_summary): Do not write info->disregard_inline_limits.
5219 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5220 and move all checks into can_inline_edge_p predicate; re-enable code
5221 comparing optimization levels.
5222 (expand_call_inline): Do not test inline_forbidden_into_p.
5223 * Makefile.in (ipa-inline.o): Update arguments.
5225 2011-04-17 Revital Eres <revital.eres@linaro.org>
5227 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5229 2011-04-17 Revital Eres <revital.eres@linaro.org>
5231 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5233 2011-04-17 Michael Matz <matz@suse.de>
5235 PR tree-optimization/48622
5237 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5238 in same order as they're written.
5240 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5242 * config/pa/predicates.md: Reorganize and simplify predicates.
5243 Eliminate duplicate code checks.
5244 (arith_operand): Rename to arith14_operand
5245 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5246 * config/pa/pa.md: Use renamed operands.
5247 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5248 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5249 arith11_operand, adddi3_operand, indexed_memory_operand,
5250 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5251 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5252 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5253 move_dest_operand, move_src_operand, prefetch_cc_operand,
5254 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5255 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5256 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5257 div_operand, int5_operand, movb_comparison_operator,
5258 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5259 arith_double_operand, ireg_operand, lhs_lshift_operand,
5260 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5261 integer_store_memory_operand): Likewise.
5262 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5263 (integer_store_memory_operand, read_only_operand,
5264 function_label_operand, borx_reg_operand,
5265 non_hard_reg_operand): Likewise.
5266 (eq_neq_comparison_operator): Delete unused operator.
5267 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5268 function_label_operand.
5269 (emit_move_sequence): Likewise.
5271 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5273 * config/i386/sse.md (sseunpackmode): New mode attribute.
5274 (ssepackmode): Ditto.
5275 (vec_pack_trunc_<mode>): Macroize expander from
5276 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5277 (vec_unpacks_lo_<mode>): Macroize expander from
5278 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5279 (vec_unpacks_hi_<mode>): Macroize expander from
5280 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5281 (vec_unpacku_lo_<mode>): Macroize expander from
5282 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5283 (vec_unpacku_hi_<mode>): Macroize expander from
5284 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5285 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5286 ix86_expand_sse4_unpack.
5287 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5289 2011-04-16 Jan Hubicka <jh@suse.cz>
5291 * cgraphbuild.c: Include ipa-inline.h.
5292 (reset_inline_failed): Use initialize_inline_failed.
5293 * cgraph.c: Include ipa-inline.h.
5294 (cgraph_create_node_1): Do not initialize estimated_growth.
5295 (initialize_inline_failed): More to ipa-inline-analysis.c
5296 (dump_cgraph_node): Do not dump inline flags.
5297 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5298 and disregard_inline_limits flags.
5299 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5300 time, size, estimated_growth.
5301 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5303 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5304 DECL_DISREGARD_INLINE_LIMITS.
5305 (cgraph_analyze_function): Do not initialize
5306 node->local.disregard_inline_limits.
5307 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5308 inlinable, versionable and disregard_inline_limits.
5309 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5310 cgraph_check_inline_limits, cgraph_default_inline_p,
5311 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5312 add_new_edges_to_heap): Update.
5313 (cgraph_decide_inlining_of_small_function): Update; set
5314 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5315 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5316 cgraph_decide_inlining_incrementally): Update.
5317 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5318 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5319 time, size and estimated_growth parameters.
5320 (estimate_edge_growth): Update.
5321 (initialize_inline_failed): Declare.
5322 * ipa-split.c: Include ipa-inline.h
5323 (execute_split_functions): Update.
5324 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5325 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5326 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5327 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5328 estimated_growth to INT_MIN.
5329 (inline_node_duplication_hook): Likewise.
5330 (dump_inline_summary): Dump new fields.
5331 (compute_inline_parameters): Update.
5332 (estimate_edge_time, estimate_time_after_inlining,
5333 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5334 inline_write_summary):
5335 (initialize_inline_failed): Move here from cgraph.c.
5336 * tree-sra.c: Include ipa-inline.h.
5337 (ipa_sra_preliminary_function_checks): Update.
5338 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5341 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5343 * config/i386/sse.md (V16): New mode iterator.
5345 (AVXMODEQI, AVXMODEDI): Remove.
5346 (sse2, sse3): New mode attribute.
5347 (mov<mode>): Use V16 mode iterator.
5348 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5349 (push<mode>1): Use V16 mode iterator.
5350 (movmisalign<mode>): Ditto.
5351 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5352 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5353 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5354 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5355 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5356 avx_movdqu<avxmodesuffix>.
5357 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5358 *avx_movdqu<avxmodesuffix>.
5359 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5360 avx_lddqu<avxmodesuffix>.
5361 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5362 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5363 avx_movnt<AVXMODEDI:mode>.
5364 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5365 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5367 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5370 * haifa-sched.c (prune_ready_list, schedule_block): Use
5371 sched_pressure_p rather than flag_sched_pressure.
5373 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5375 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5376 cgraph_get_node instead of cgraph_get_create_node.
5378 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5380 * cfgexpand.c (expand_debug_expr): Use
5381 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5383 2011-04-15 Michael Matz <matz@suse.de>
5385 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5386 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5387 * function.c (gimplify_parameters): Ditto.
5388 * gimplify.c (gimplify_vla_decl): Ditto.
5390 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5391 (gimple_call_set_alloca_for_var): New inline function.
5392 (gimple_call_alloca_for_var_p): Ditto.
5393 * gimple.c (gimple_build_call_from_tree): Remember
5394 CALL_ALLOCA_FOR_VAR_P state.
5395 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5397 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5398 calls if they were for VLA objects.
5400 2011-04-15 Martin Jambor <mjambor@suse.cz>
5402 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5405 2011-04-15 Martin Jambor <mjambor@suse.cz>
5408 * tree-emutls.c (lower_emutls_function_body): Call
5409 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5412 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5414 * c-decl.c (detect_field_duplicates): Call
5415 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5417 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5419 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5420 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5421 * ipa-pure-const.c (check_stmt): Call it.
5422 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5424 2011-04-15 Richard Guenther <rguenther@suse.de>
5426 PR tree-optimization/48290
5427 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5428 Properly decide inhibiting propagation based on the valueized
5429 operand. Do loop-closed SSA form preserving here ...
5430 (init_copy_prop): ... not here.
5432 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5435 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5436 (*ieee_smax<mode>3): Likewise.
5438 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5440 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5441 Replace match_operand with match_dup for the third operand in
5444 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5446 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5447 to track processing of conditionals. Update all callers.
5448 (try_combine, simplify_if_then_else): Update.
5450 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5452 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5455 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5457 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5458 instead of match_operand for operand 3.
5460 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5462 * recog.h (insn_operand_data): Add an "allows_mem" field.
5463 * genoutput.c (output_operand_data): Initialize it.
5464 * optabs.c (maybe_legitimize_operand_same_code): New function.
5465 (maybe_legitimize_operand): Use it when matching the original
5468 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5470 * gimplify.c: Fix issues in comments throughout.
5471 (voidify_wrapper_expr): Fix long line.
5472 (build_stack_save_restore): Likewise.
5473 (gimplify_loop_expr): Likewise.
5474 (gimplify_compound_lval): Likewise.
5475 (gimplify_init_ctor_eval): Likewise.
5476 (gimplify_modify_expr_rhs): Likewise.
5477 (omp_notice_threadprivate_variable): Likewise.
5479 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5481 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5482 original one if this is not a builtin function.
5484 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5487 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5488 offset it as needed based on top 2 bits in operands[3], change
5489 MEM mode to SFmode and mask those 2 bits away from operands[3].
5491 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5493 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5494 change from objc_declare_protocols() to objc_declare_protocol().
5496 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5498 * config/i386/sse.md (sse4_1): New mode attribute.
5499 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5500 avx_blend<ssemodesuffix><avxmodesuffix> and
5501 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5502 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5503 avx_blendv<ssemodesuffix><avxmodesuffix> and
5504 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5505 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5506 avx_dp<ssemodesuffix><avxmodesuffix> and
5507 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5508 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5509 (sse4_1_packusdw): Merge with *avx_packusdw.
5510 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5511 (sse4_1_pblendw): Merge with *avx_pblendw.
5512 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5513 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5514 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5516 (sse4_1_round<ssescalarmodesuffix>): Merge with
5517 *avx_round<ssescalarmodesuffix>.
5518 (aesenc): Merge with *avx_aesenc.
5519 (aesenclast): Merge with *avx_aesenclast.
5520 (aesdec): Merge with *avx_aesdec.
5521 (aesdeclast): Merge with *avx_aesdeclast.
5522 (pclmulqdq): Merge with *pclmulqdq.
5523 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5525 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5527 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5530 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5531 (align_local_variable): This. Update DECL_ALIGN.
5532 (add_stack_var): Updated.
5533 (expand_one_stack_var): Likewise.
5535 2011-04-14 Richard Guenther <rguenther@suse.de>
5537 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5539 (dse_initialize_block_local_data, dse_leave_block,
5540 record_voperand_set, get_stmt_uid): Likewise.
5541 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5542 (dse_optimize_stmt): Remove voperand set handling code.
5543 Simplify and improve to handle any kind of killing stmt.
5544 (dse_record_phi): Remove.
5545 (dse_enter_block): Simplify.
5546 (tree_ssa_dse): Likewise.
5547 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5549 2011-04-14 Jan Hubicka <jh@suse.cz>
5551 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5552 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5553 (cgraph_local_info): Remove inline_summary.
5554 * ipa-cp.c: Include ipa-inline.h.
5555 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5556 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5558 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5559 (input_overwrite_node): Do not set inline summary.
5560 (input_node): Do not stream inline summary.
5561 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5562 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5563 growth; we do not have inline parameters computed for that anyway.
5564 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5565 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5566 (inline_summary_t): New type and VECtor.
5567 (debug_inline_summary, dump_inline_summaries): Declare.
5568 (inline_summary): Use VOCtor.
5569 (estimate_edge_growth): Kill hack computing call stmt size directly.
5570 * lto-section-in.c (lto_section_name): Add inline section.
5571 * ipa-inline-analysis.c: Include lto-streamer.h
5572 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5573 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5574 (inline_summary_vec): Define.
5575 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5576 dump_inline_summaries): New functions.
5577 (estimate_function_body_sizes): Properly compute size/time of outgoing
5579 (compute_inline_parameters): Alloc inline_summary; do not compute
5580 size/time of incomming calls.
5581 (estimate_edge_time): Avoid missing time summary hack.
5582 (inline_read_summary): Read inline summary info.
5583 (inline_write_summary): Write inline summary info.
5584 (inline_free_summary): Free all hooks and inline summary vector.
5585 * lto-streamer.h: Add LTO_section_inline_summary section.
5586 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5587 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5589 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5591 * tree-vectorizer.h (vect_strided_store_supported): Add a
5592 HOST_WIDE_INT argument.
5593 (vect_strided_load_supported): Likewise.
5594 (vect_permute_store_chain): Return void.
5595 (vect_transform_strided_load): Likewise.
5596 (vect_permute_load_chain): Delete.
5597 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5598 count argument. Check that the count is a power of two.
5599 (vect_strided_load_supported): Likewise.
5600 (vect_permute_store_chain): Return void. Update after above changes.
5601 Assert that the access is supported.
5602 (vect_permute_load_chain): Likewise.
5603 (vect_transform_strided_load): Return void.
5604 * tree-vect-stmts.c (vectorizable_store): Update calls after
5605 above interface changes.
5606 (vectorizable_load): Likewise.
5607 (vect_analyze_stmt): Don't check for strided powers of two here.
5609 2011-04-14 Richard Guenther <rguenther@suse.de>
5611 PR tree-optimization/48590
5612 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5613 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5614 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5615 BUILT_IN_STACK_SAVE.
5616 * tree-ssa-dce.c (propagate_necessity): Handle
5617 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5619 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5621 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5624 2011-04-14 Richard Guenther <rguenther@suse.de>
5626 * tree.h (get_object_alignment_1): Declare.
5627 * builtins.c (get_object_alignment_1): Split out worker from ...
5628 (get_object_alignment): ... here.
5629 * fold-const.c (get_pointer_modulus_and_residue): Use
5630 get_object_alignment_1.
5632 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5634 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5636 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5637 parameter. Generalise code to handle arrays as well as vectors.
5638 (vect_setup_realignment): Update accordingly.
5639 * tree-vect-stmts.c (vectorizable_store): Likewise.
5640 (vectorizable_load): Likewise.
5642 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5644 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5645 within the per-copy loop.
5647 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5649 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5652 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5654 * doc/options.texi (Negative): Explicitly mention that the
5655 Negative chain must be circular.
5657 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5659 * function.h (block_chainon): Declare.
5660 * function.c (block_chainon): Define.
5662 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5663 Eric Weddington <eric.weddington@atmel.com>
5664 Georg-Johann Lay <avr@gjlay.de>
5666 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5668 (avr_init_builtins, avr_expand_builtin,
5669 avr_expand_delay_cycles, avr_expand_unop_builtin,
5670 avr_expand_binop_builtin ): New functions.
5671 (avr_builtin_id): New enum
5672 (struct avr_builtin_description): New struct
5673 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5674 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5676 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5677 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5678 UNSPECV_DELAY_CYCLES): new enumeration values
5679 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5680 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5681 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5682 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5683 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5684 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5685 "fmulsu"): New insns
5687 * config/avr/avr-c.c: fix line endings
5688 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5689 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5690 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5691 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5692 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5694 * doc/extend.texi (AVR Built-in Functions): New node
5695 (Target Builtins): Add documentation of AVR
5698 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5701 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5702 alone. Error if non-const data has attribute progmem.
5704 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5706 * tree.h (struct tree_constructor): Include tree_typed instead of
5708 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5709 TS_TYPED instead of TS_COMMON.
5711 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5713 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5714 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5715 (sse2_psadbw): Merge with *avx_psadbw.
5716 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5717 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5718 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5719 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5720 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5721 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5722 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5723 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5724 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5725 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5726 (ssse3_palignrti): Merge with *avx_palignrti.
5728 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5730 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5731 * tree-ssanames.c (fini_ssanames): VEC_free it.
5732 (make_ssa_name_fn): Update for VECness of free_ssanames.
5733 (release_ssa_name, release_dead_ssa_names): Likewise.
5734 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5736 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5737 TS_TYPED instead of TS_COMMON.
5739 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5741 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5742 statistics_counter_event.
5743 * tree-ssa-copyrename.c (stats): Define.
5744 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5745 statistics_counter_event.
5746 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5747 (bswap_stats, widen_mul_stats): Define.
5748 (insert_reciprocals): Increment rdivs_inserted.
5749 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5750 rfuncs_inserted. Add calls to statistics_counter_event.
5751 (execute_cse_sincos_1): Increment inserted.
5752 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5753 statistics_counter_event.
5754 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5755 of bswap_stats. Add calls to statistics_counter_event.
5756 (convert_mult_to_widen): Increment widen_mults_inserted.
5757 (convert_plusminus_to_widen): Increment maccs_inserted.
5758 (convert_mult_to_fma): Increment fmas_inserted.
5759 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5760 calls to statistics_counter_event.
5762 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5764 PR rtl-optimization/48455
5765 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5766 `temp_costs->mem_cost'.
5768 2011-04-13 Jan Hubicka <jh@suse.cz>
5770 * ipa-inline.h: New file.
5771 * ipa-inline-analysis.c: New file. Broken out of ...
5772 * ipa-inline.c: ... this file; update toplevel comment;
5773 include ipa-inline.h
5774 (inline_summary): Move to ipa-inline.h
5775 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5776 ipa-inline-analysis.c.
5777 (cgraph_estimate_time_after_inlining): Rename to
5778 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5779 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5780 to estimate_edge_growth.
5781 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5782 rename to estimate_size_after_inlining.
5783 (cgraph_mark_inline_edge): Update for new naming convention.
5784 (cgraph_check_inline_limits): Likewise.
5785 (cgraph_edge_badness): Likewise.
5786 (cgraph_decide_recursive_inlining): Likewise.
5787 (cgraph_decide_inlining_of_small_functions): Likewise.
5788 (cgraph_decide_inlining_incrementally): Likewise.
5789 (cgraph_estimate_growth): Rename to estimate_growth; move to
5790 ipa-inline-analysis.c.
5791 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5792 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5793 (compute_inline_parameters): Likewise.
5794 (compute_inline_parameters_for_current): Likewise.
5795 (pass_inline_parameters): Likewise.
5796 (inline_indirect_intraprocedural_analysis): Likewise.
5797 (analyze_function): Rename to inline_analyze_function; likewise.
5798 (add_new_function): Move to ipa-inline-analysis.c.
5799 (inline_generate_summary): Likewise.
5800 (inline_read_summary): Likewise.
5801 (inline_write_summary): Likewise.
5802 * Makefile.in (ipa-inline-analysis.c): New file.
5804 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5806 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5807 * configure: Regenerate.
5809 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5811 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5812 instead of tree_common.
5813 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5815 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5816 TS_TYPED rather than TS_COMMON.
5817 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5819 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5822 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5823 r20 around calls of __tablejump_elpm__
5825 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5828 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5830 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5832 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5834 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5835 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5836 (cfi_vec): New typedef.
5837 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5838 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5839 (cie_cfi_vec): New static variable.
5840 (cie_cfi_head): Delete.
5841 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5842 declaration changed. Use vector rather than list operations.
5843 (new_cfi): Don't initialize the dw_cfi_next field.
5844 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5845 rather than list operations.
5846 (lookup_cfa): Use vector rather than list operations.
5847 (output_cfis): New argument upto. Accept a cfi_vec rather than
5848 a dw_cfi_ref list head as argument. All callers changed.
5849 Iterate over the vector using upto as a maximum index.
5850 (output_all_cfis): New static function.
5851 (output_fde): Use vector rather than list operations. Use the
5852 new upto argument for output_cfis rather than manipulating a
5854 (dwarf2out_begin_prologue): Change initializations to match
5856 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5857 from the vector length rather than searching for the end of a list.
5858 Use output_all_cfis.
5859 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5861 2011-04-13 Nick Clifton <nickc@redhat.com>
5863 * config/rx/rx.md (movmemsi): Do not use this pattern when
5864 volatile pointers are involved.
5866 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5868 * config/i386/sse.md (pinsrbits): Remove.
5869 (sse2_packsswb): Merge with *avx_packsswb.
5870 (sse2_packssdw): Merge with *avx_packssdw.
5871 (sse2_packuswb): Merge with *avx_packuswb.
5872 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5873 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5874 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5875 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5876 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5877 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5878 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5879 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5880 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5881 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5882 (sse2_loadld): Merge with *avx_loadld.
5883 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5884 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5885 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5886 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5887 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5889 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5891 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5893 * print-tree.c (print_node): Likewise.
5894 * tree-inline.c (copy_tree_r): Likewise.
5895 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5896 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5897 instead of TS_COMMON.
5898 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5899 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5900 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5901 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5902 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5904 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5906 (TREE_CHAIN): Check for a TS_COMMON structure.
5907 (TREE_TYPE): Check for a TS_TYPED structure.
5909 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5911 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5912 cgraph_get_create_node instead of cgraph_node.
5914 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5916 * c-parser.c (c_parser_initelt): Updated call to
5917 objc_build_message_expr.
5918 (c_parser_postfix_expression): Likewise.
5920 2011-04-12 Kai Tietz <ktietz@redhat.com>
5922 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5923 MASK_MS_BITFIELD_LAYOUT bit.
5925 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5927 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5928 assert it is always true.
5929 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5932 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5934 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5935 compiling Objective-C to be more efficient.
5937 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5939 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5942 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5944 * recog.h, genoutput.c, optabs.c: Revert last patch.
5946 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5949 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5951 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5953 * recog.h (insn_operand_data): Add an "allows_mem" field.
5954 * genoutput.c (output_operand_data): Initialize it.
5955 * optabs.c (maybe_legitimize_operand_same_code): New function.
5956 (maybe_legitimize_operand): Use it when matching the original
5959 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5961 * genpreds.c (process_define_predicate): Move most processing
5962 to gensupport.c. Continue to validate the expression.
5963 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5964 (process_define_predicate): Move processing to gensupport.c.
5965 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5966 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5967 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5969 (valid_predicate_name_p): New function, split out from old
5970 genpreds.c:process_define_predicate.
5971 (process_define_predicate): New function, combining code from
5972 old genpreds.c and genrecog.c functions.
5973 (process_rtx): Call it for DEFINE_PREDICATE and
5974 DEFINE_SPECIAL_PREDICATE.
5976 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5978 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5979 size of a '%A' memory reference.
5980 (T_DREG, T_QREG): New neon_builtin_type_bits.
5981 (arm_init_neon_builtins): Assert that the load and store operands
5982 are neon_struct_operands.
5983 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5984 (NEON_ARG_MEMORY): New builtin_arg.
5985 (neon_dereference_pointer): New function.
5986 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5987 Handle NEON_ARG_MEMORY.
5988 (arm_expand_neon_builtin): Update after above interface changes.
5989 Use NEON_ARG_MEMORY for loads and stores.
5990 * config/arm/predicates.md (neon_struct_operand): New predicate.
5991 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5992 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5993 (V_four_elem): Tweak formatting.
5994 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5995 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5996 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5997 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5998 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5999 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6000 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6001 Use %A in the output template.
6002 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6003 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6004 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6005 the width of the memory access. Remove post-increment.
6006 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6008 2011-04-12 Nick Clifton <nickc@redhat.com>
6010 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6011 instruction for interrupt handlers if the target is the basic V850
6013 (expand_epilogue): Likewise.
6015 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6017 PR rtl-optimization/48549
6018 * combine.c (propagate_for_debug): Also stop after BB_END of
6019 this_basic_block. Process LAST and just stop processing after it.
6020 (combine_instructions): If last_combined_insn has been deleted,
6021 set last_combined_insn to its PREV_INSN.
6023 2011-04-12 Richard Guenther <rguenther@suse.de>
6025 PR tree-optimization/46076
6026 * gimple.h (struct gimple_statement_call): Add fntype field.
6027 (gimple_call_fntype): Adjust.
6028 (gimple_call_set_fntype): New function.
6029 * gimple.c (gimple_build_call_1): Set the call function type.
6030 * gimplify.c (gimplify_call_expr): Preserve the function
6031 type the frontend used for the call.
6032 (gimplify_modify_expr): Likewise.
6033 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6035 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6037 * tree-ssa.c (useless_type_conversion_p): Function pointer
6038 conversions are useless.
6040 2011-04-12 Martin Jambor <mjambor@suse.cz>
6042 * cgraph.h (cgraph_node): Remove function declaration.
6043 (cgraph_create_node): Declare.
6044 (cgraph_get_create_node): Likewise.
6045 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6046 Updated all callers.
6047 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6048 the decl does not already exist. Call cgraph_get_create_node instead
6050 (cgraph_get_create_node): New function.
6051 (cgraph_same_body_alias): Update comment.
6052 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6053 assert it does not return NULL.
6054 (cgraph_update_edges_for_call_stmt): Likewise.
6055 (cgraph_clone_edge): Likewise.
6056 (cgraph_create_virtual_clone): Likewise.
6057 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6058 instead of cgraph_node.
6059 (cgraph_add_new_function): Call cgraph_create_node or
6060 cgraph_get_create_node instead of cgraph_node.
6061 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6062 instead of cgraph_node.
6063 (record_eh_tables): Likewise.
6064 (mark_address): Likewise.
6065 (mark_load): Likewise.
6066 (build_cgraph_edges): Call cgraph_get_create_node instead
6068 (rebuild_cgraph_edges): Likewise.
6069 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6070 instead of cgraph_node.
6071 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6073 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6074 cgraph_create_node instead of cgraph_node.
6075 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6077 * lto-cgraph.c (input_node): Likewise.
6078 * lto-streamer-in.c (input_function): Likewise.
6079 * varasm.c (mark_decl_referenced): Likewise.
6080 (assemble_alias): Likewise.
6082 2011-04-12 Martin Jambor <mjambor@suse.cz>
6084 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6085 instead of cgraph_node and assert it does not return NULL.
6086 * lto-streamer-in.c (lto_read_body): Likewise.
6087 * omp-low.c (new_omp_context): Likewise.
6088 (create_task_copyfn): Likewise.
6089 * tree-emutls.c (lower_emutls_function_body): Likewise.
6090 * matrix-reorg.c (transform_allocation_sites): Likewise.
6092 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6095 * c-typeck.c (build_asm_expr): Error out on attempts to use
6096 void type outputs or inputs for constraints that allow reg or
6099 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6100 Richard Earnshaw <rearnsha@arm.com>
6103 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6104 to use sign-magnitude offsets. Reject unsupported unaligned
6105 cases. Add detailed description in comments.
6106 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6107 condition from TARGET_32BIT to TARGET_ARM.
6109 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6111 * tree.h (struct typed_tree): New.
6112 (struct tree_common): Include it instead of tree_base.
6113 (TREE_TYPE): Update for new location of type field.
6114 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6115 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6116 (union tree_node): Add typed field.
6117 * treestruct.def (TS_TYPED): New.
6118 * lto-streamer.c (check_handled_ts_structures): Handle it.
6119 * tree.c (MARK_TS_TYPED): New macro.
6120 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6122 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6124 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6125 (force_nonfallthru): Do not alter the loop nest if no basic block
6128 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6130 * config/i386/sse.md (VI): New mode iterator.
6132 (AVX256MODEI): Ditto.
6133 (AVXMODEF4P): Ditto.
6134 (avxvecpsmode): Ditto.
6135 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6136 (sse2_andnot<mode>3): New expander.
6137 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6138 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6139 (<any_logic:code><mode>3): Use VI mode iterator.
6140 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6141 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6142 (*andnottf3): Handle AVX three-operand constraints.
6143 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6145 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6146 Robert Millan <rmh@gnu.org>
6148 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6149 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6150 GNU_USER_DYNAMIC_LINKER64): Define.
6151 (REG_NAME): Don't undefine.
6152 (MD_UNWIND_SUPPORT): Undefine.
6153 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6154 (REG_NAME): Don't undefine.
6155 (MD_UNWIND_SUPPORT): Undefine.
6156 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6160 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6161 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6163 2011-04-11 Xinliang David Li <davidxl@google.com>
6165 * value-profile.c (check_ic_target): New function.
6166 (gimple_ic_transform): Sanity check indirect call target.
6167 * gimple-low.c (gimple_check_call_args): Interface change.
6168 (gimple_check_call_matching_types): New function.
6169 * tree-inline.c (tree_can_inline_p): Call new function.
6171 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6173 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6174 tree-pretty-print.h & realmpfr.h.
6176 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6179 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6180 (setup_allocno_and_important_classes): Ditto.
6182 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6184 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6185 GNU_USER_DYNAMIC_LINKER.
6186 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6187 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6188 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6189 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6190 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6191 GNU_USER_TARGET_OS_CPP_BUILTINS.
6192 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6193 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6194 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6196 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6197 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6198 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6199 GNU_USER_TARGET_OS_CPP_BUILTINS.
6200 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6201 GNU_USER_DYNAMIC_LINKER.
6202 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6203 GNU_USER_TARGET_OS_CPP_BUILTINS.
6204 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6205 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6206 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6207 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6208 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6209 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6210 GNU_USER_DYNAMIC_LINKER64): Remove.
6211 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6212 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6213 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6214 GNU_USER_DYNAMIC_LINKER.
6215 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6216 GNU_USER_TARGET_OS_CPP_BUILTINS.
6217 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6218 GNU_USER_TARGET_OS_CPP_BUILTINS.
6219 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6220 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6221 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6222 GNU_USER_TARGET_OS_CPP_BUILTINS.
6223 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6224 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6225 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6226 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6227 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6228 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6229 GNU_USER_DYNAMIC_LINKER.
6230 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6231 GNU_USER_TARGET_OS_CPP_BUILTINS.
6232 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6233 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6234 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6235 GNU_USER_DYNAMIC_LINKER.
6236 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6237 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6238 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6239 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6240 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6241 GNU_USER_DYNAMIC_LINKER.
6242 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6243 GNU_USER_DYNAMIC_LINKERN32.
6244 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6245 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6246 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6247 GNU_USER_DYNAMIC_LINKER32.
6248 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6249 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6250 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6251 GNU_USER_DYNAMIC_LINKER.
6252 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6253 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6254 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6255 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6256 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6257 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6258 GNU_USER_DYNAMIC_LINKER32.
6259 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6260 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6261 GNU_USER_DYNAMIC_LINKER.
6262 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6263 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6264 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6265 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6266 GNU_USER_DYNAMIC_LINKER64.
6267 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6269 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6270 GNU_USER_DYNAMIC_LINKER.
6271 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6272 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6273 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6274 GNU_USER_DYNAMIC_LINKER.
6275 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6277 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6278 GNU_USER_DYNAMIC_LINKER32.
6279 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6280 GNU_USER_DYNAMIC_LINKER64.
6281 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6282 GNU_USER_DYNAMIC_LINKER64.
6283 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6285 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6287 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6289 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6291 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6292 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6293 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6294 GNU_USER_DYNAMIC_LINKER.
6295 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6296 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6297 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6298 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6299 GNU_USER_DYNAMIC_LINKER64.
6300 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6301 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6302 GNU_USER_LINK_EMULATION.
6303 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6304 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6305 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6306 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6307 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6308 CPP_SPEC, CC1_SPEC): Remove.
6309 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6310 (GNU_USER_DYNAMIC_LINKER): Define.
6311 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6312 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6313 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6314 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6315 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6316 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6317 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6318 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6319 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6320 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6321 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6322 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6323 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6324 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6325 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6326 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6327 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6328 GNU_USER_DYNAMIC_LINKER.
6329 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6330 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6331 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6332 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6333 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6334 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6335 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6336 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6337 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6338 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6340 2011-04-11 Kai Tietz <ktietz@redhat.com>
6344 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6345 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6347 (ix86_is_msabi_thiscall): Removed.
6348 (ix86_is_type_thiscall): Likewise.
6349 (ix86_get_callcvt): New function.
6350 (ix86_comp_type_attributes): Simplify check.
6351 (ix86_function_regparm): Use ix86_get_callcvt for calling
6352 convention attribute checks.
6353 (ix86_return_pops_args): Likewise.
6354 (ix86_static_chain): Likewise.
6355 (x86_this_parameter): Likewise.
6356 (x86_output_mi_thunk): Likewise.
6357 (ix86_function_type_abi): Optimize check for types without attributes.
6358 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6359 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6360 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6362 (IX86_BASE_CALLCVT): Helper macro.
6363 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6364 Use ix86_get_callcvt for calling convention attribute checks and avoid
6365 symbol-decoration for stdcall in TARGET_RTD case.
6366 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6368 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6371 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6373 * config/i386/sse.md (VI_128): New mode iterator.
6374 (VI12_128): Rename from SSEMODE12.
6375 (VI14_128): Rename from SSEMODE14.
6376 (VI124_128): New mode iterator.
6377 (VI24_128): Rename from SSEMODE248.
6378 (VI248_128): Rename from SSEMODE248.
6379 (SSEMODE124C8): Remove.
6380 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6381 (*sse2_<plusminus_insn><mode>3): Merge with
6382 *avx_<plusminus_insn><mode>3.
6383 (*mulv8hi3): Merge with *avx_mulv8hi3.
6384 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6385 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6386 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6387 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6388 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6389 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6390 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6391 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6392 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6393 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6394 (*<smaxmin:code>v8hi3): Ditto.
6395 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6396 (*<smaxmin:code>v16qi3): Ditto.
6397 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6398 (*sse2_eq<mode>3): Ditto.
6399 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6400 (*sse2_gt<mode>3): Ditto.
6401 (vcondv2di): Split out of vcond<mode>.
6402 (vconduv2di): Split out of vcondu<mode>.
6404 2011-04-11 Richard Guenther <rguenther@suse.de>
6406 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6407 before calling tree_low_cst.
6409 2011-04-11 Richard Guenther <rguenther@suse.de>
6411 * stor-layout.c (layout_type): Compute all array index size operations
6412 in the original type.
6413 (initialize_sizetypes): Add comment.
6414 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6416 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6418 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6420 2011-04-11 Martin Jambor <mjambor@suse.cz>
6422 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6423 of cgraph_node, handle NULL return value.
6424 (cgraph_global_info): Likewise.
6425 (cgraph_rtl_info): Likewise.
6426 * tree-inline.c (estimate_num_insns): Likewise.
6427 * gimplify.c (unshare_body): Likewise.
6428 (unvisit_body): Likewise.
6429 (gimplify_body): Likewise.
6430 * predict.c (optimize_function_for_size_p): Likewise.
6431 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6432 (call_may_clobber_ref_p_1): Likewise.
6433 * varasm.c (function_section_1): Likewise.
6434 (assemble_start_function): Likewise.
6436 2011-04-11 Martin Jambor <mjambor@suse.cz>
6438 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6440 * final.c (rest_of_clean_state): Likewise.
6441 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6442 * passes.c (pass_init_dump_file): Likewise.
6443 (execute_all_ipa_transforms): Likewise.
6444 (function_called_by_processed_nodes_p): Likewise.
6445 * predict.c (maybe_hot_frequency_p): Likewise.
6446 (probably_never_executed_bb_p): Likewise.
6447 (compute_function_frequency): Likewise.
6448 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6449 (unnest_nesting_tree_1): Likewise.
6450 (lower_nested_functions): Likewise.
6451 * tree-optimize.c (execute_fixup_cfg): Likewise.
6452 (tree_rest_of_compilation): Likewise.
6453 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6454 * tree-sra.c (ipa_early_sra): Likewise.
6455 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6456 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6457 * ipa.c (record_cdtor_fn): Likewise.
6458 * ipa-inline.c (cgraph_early_inlining): Likewise.
6459 (compute_inline_parameters_for_current): Likewise.
6460 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6461 * ipa-pure-const.c (local_pure_const): Likewise.
6462 * ipa-split.c (split_function): Likewise.
6463 (execute_split_functions): Likewise.
6464 * cgraphbuild.c (build_cgraph_edges): Likewise.
6465 (rebuild_cgraph_edges): Likewise.
6466 (cgraph_rebuild_references): Likewise.
6467 (remove_cgraph_callee_edges): Likewise.
6468 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6469 (verify_cgraph_node): Likewise.
6470 (cgraph_analyze_functions): Likewise.
6471 (cgraph_preserve_function_body_p): Likewise.
6472 (save_inline_function_body): Likewise.
6473 (save_inline_function_body): Likewise.
6474 * tree-inline.c (copy_bb): Likewise.
6475 (optimize_inline_calls): Likewise.
6477 2011-04-11 Martin Jambor <mjambor@suse.cz>
6479 PR tree-optimization/48195
6480 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6481 ipa_check_create_edge_args.
6482 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6483 ipa_check_create_edge_args.
6484 * ipa-inline.c (inline_generate_summary): Do not call
6485 ipa_check_create_node_params and ipa_check_create_edge_args.
6486 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6487 ipa_check_create_edge_args.
6489 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6491 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6493 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6494 * function.c (record_hard_reg_sets): Likewise.
6495 * ira.c (compute_regs_asm_clobbered): Likewise.
6496 * sched-deps.c (sched_analyze_1): Likewise.
6497 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6499 2011-04-09 Xinliang David Li <davidxl@google.com>
6501 PR tree-optimization/PR48484
6502 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6503 has_valid_pred lazily
6505 2011-04-09 Duncan Sands <baldrick@free.fr>
6507 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6509 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6511 * combine.c (combine_validate_cost): Adjust comments. Set registered
6512 cost of I0 to zero at the end, if any.
6514 2011-04-08 Xinliang David Li <davidxl@google.com>
6516 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6517 to insane profile data.
6519 2011-04-08 Xinliang David Li <davidxl@google.com>
6521 * ipa-cp.c (ipcp_update_profiling): Correct
6522 negative scale factor due to insane profile data.
6524 2011-04-08 Xinliang David Li <davidxl@google.com>
6526 * final.c (dump_basic_block_info): New function.
6527 (final): Dump basic block.
6528 (final_scan_insn): Remove old dump.
6530 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6533 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6536 2011-04-08 Michael Matz <matz@suse.de>
6539 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6541 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6542 * rtl.h (rebuild_jump_labels_chain): Declare.
6543 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6544 insns inserted on edges.
6546 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6548 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6549 * config/arm/arm-arches.def: New.
6550 * config/arm/arm-opts.h: New.
6551 * config/arm/genopt.sh: New.
6552 * config/arm/arm-tables.opt: New (generated).
6553 * config/arm/arm.c (arm_handle_option, arm_target_help,
6554 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6555 (all_architectures): Get most table contents from arm-arches.def.
6556 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6557 arm_selected_tune here.
6558 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6559 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6560 (march=, mcpu=, mtune=): Use Enum and Var.
6561 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6562 (arm.o): Update dependencies.
6564 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6566 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6568 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6569 (write_typed_alloc_defns): Likewise.
6570 (main): Calls write_typed_alloc_defns with output_header.
6572 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6575 * ira-color.c (setup_profitable_hard_regs): Add comments.
6576 Don't take prohibited hard regs into account.
6577 (setup_conflict_profitable_regs): Rename to
6578 get_conflict_profitable_regs.
6579 (check_hard_reg_p): Check prohibited hard regs.
6581 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6583 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6584 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6585 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6587 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6590 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6591 move from floating point to shift amount register.
6592 (emit_move_sequence): Remove secondary reload support for floating
6593 point to shift amount amount register copies.
6594 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6595 amount register copies.
6596 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6597 register, return false if mode isn't a scalar integer mode.
6598 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6600 2011-04-08 Richard Guenther <rguenther@suse.de>
6602 * gimple.c (gimple_call_flags): Remove kludge.
6604 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6606 * sel-sched.c (sel_region_init): Move call to
6607 sel_setup_region_sched_flags after setup_current_loop_nest.
6609 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6611 PR rtl-optimization/48272
6612 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6613 init_insn_reg_pressure_info. Adjust a caller.
6614 * sched-int.h (init_insn_reg_pressure_info): Declare.
6615 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6616 when sched-pressure is enabled.
6618 2011-04-08 Richard Guenther <rguenther@suse.de>
6620 * gimple.c (gimple_set_modified): Do not queue calls to
6621 MODIFIED_NORETURN_CALLS here ...
6622 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6624 2011-04-08 Richard Guenther <rguenther@suse.de>
6627 * toplev.c (lang_dependent_init): Do not open asm_out_file
6628 in WPA mode, nor perform debug machinery initialization.
6629 (finalize): Do not unlink asm_out_file in WPA mode.
6631 2011-04-08 Richard Guenther <rguenther@suse.de>
6633 * gimple.h (gimple_call_fntype): New function.
6634 (gimple_call_return_type): Use it.
6635 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6636 * gimple-low.c (gimple_check_call_args): Likewise.
6637 * gimple.c (gimple_call_flags): Likewise.
6638 (gimple_call_arg_flags): Likewise.
6639 (gimple_call_return_flags): Likewise.
6640 * tree-cfg.c (verify_gimple_call): Likewise.
6641 (do_warn_unused_result): Likewise.
6642 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6643 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6645 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6647 PR rtl-optimization/48235
6648 * sel-sched.c (code_motion_process_successors): Recompute the last
6649 insn in basic block if control flow changed.
6650 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6651 Update condition for ilist_remove.
6653 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6655 PR rtl-optimization/48302
6656 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6657 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6658 it to record added preheader blocks.
6659 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6660 on to sel_add_loop_preheaders.
6661 (sel_region_init): Move call to setup_current_loop_nest after
6664 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6667 * cfgloop.h (loop_has_exit_edges): New helper.
6668 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6670 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6671 that have no exit edges.
6673 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6675 PR rtl-optimization/48442
6676 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6677 all callers. Adjust assert.
6679 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6681 PR tree-optimization/48377
6682 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6683 is_packed to true even for types with smaller TYPE_ALIGN than
6686 2011-04-08 Richard Guenther <rguenther@suse.de>
6689 * doc/tm.texi: Re-generate.
6691 2011-04-08 Wei Guozhi <carrot@google.com>
6694 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6695 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6696 * config/arm/arm.md (*push_multi): Change the length computation to
6699 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6701 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6702 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6703 * doc/tm.texi: Regenerate.
6704 * system.h (ASM_OUTPUT_BSS): Poison.
6705 * varasm.c (asm_output_bss): Remove function.
6706 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6708 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6709 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6710 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6711 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6713 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6715 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6717 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6719 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6721 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6724 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6726 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6727 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6728 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6730 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6731 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6732 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6733 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6734 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6735 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6736 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6737 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6738 options. Don't map other m68k options manually. Don't handle
6739 old-style options as canonical.
6740 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6741 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6743 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6745 * basic-block.h (force_nonfallthru): Move to...
6746 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6747 (force_nonfallthru): ...here.
6748 * cfghooks.c (force_nonfallthru): New function.
6749 * cfgrtl.c (force_nonfallthru): Rename into...
6750 (rtl_force_nonfallthru): ...this.
6751 (commit_one_edge_insertion): Do not set AUX field.
6752 (commit_edge_insertions): Do not discover new basic blocks.
6753 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6754 (cfg_layout_rtl_cfg_hooks): Likewise.
6755 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6756 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6757 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6759 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6761 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6764 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6766 * config/i386/sse.md: Update copyright year.
6767 (avxcvtvecmode): Remove.
6768 (sse_movhlps): Merge with *avx_movhlps.
6769 (sse_movlhps): Merge with *avx_movlhps.
6770 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6771 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6772 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6773 (sse_loadhps): Merge with *avx_loadhps.
6774 (sse_storelps): Merge with *avx_storelps.
6775 (sse_loadlps): Merge with *avx_loadlps.
6776 (sse_movss): Merge with *avx_movss.
6777 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6778 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6779 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6780 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6781 (vec_set<mode>_0): Ditto.
6782 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6783 (sse4_1_insertps): Merge with *avx_insertps.
6784 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6785 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6786 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6787 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6788 (sse2_storehpd): Merge with *avx_storehpd.
6789 (sse2_loadhpd): Merge with *avx_loadhpd.
6790 (sse2_loadlpd): Merge with *avx_loadlpd.
6791 (sse2_movsd): Merge with *avx_movsd.
6792 (*vec_concatv2df): Merge with *vec_concatv2df.
6794 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6797 * combine.c (combine_instructions): Add last_combined_insn,
6798 update it if insn is after it, pass it to all try_combine calls.
6799 (try_combine): Add last_combined_insn parameter, pass it instead of
6800 i3 to propagate_for_debug.
6802 2011-04-07 Nick Clifton <nickc@redhat.com>
6804 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6805 to handle MDR <-> data register transfers.
6806 (movhi_internal): Likewise.
6808 2011-04-07 Alan Modra <amodra@gmail.com>
6810 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6811 previous stack info.
6813 2011-04-07 Tom de Vries <tom@codesourcery.com>
6816 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6817 flow_find_cross_jump. Swap variables to implement backward replacement.
6818 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6820 2011-04-07 Tom de Vries <tom@codesourcery.com>
6823 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6824 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6826 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6827 src1 or src2. Redirect edges to the last basic block. Update
6828 frequency and count on multiple basic blocks in case of fallthru.
6830 2011-04-07 Tom de Vries <tom@codesourcery.com>
6833 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6835 (old_insns_match_p): Change return type. Replace return false/true
6836 with return dir_none/dir_both. Use can_replace_by.
6837 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6838 direction from dir_p. Register replacement direction in dir, last_dir
6839 and afterlast_dir. Handle new return type of old_insns_match_p using
6840 merge_dir. Return replacement direction in dir_p.
6841 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6842 return type of old_insns_match_p.
6843 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6844 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6845 flow_find_cross_jump.
6846 * basic-block.h (enum replace_direction): New type.
6847 (flow_find_cross_jump): Add parameter to declaration.
6849 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6851 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6852 (AVXMODEDCVTPS2DQ): Ditto.
6853 (VEC_FLOAT_MODE): Ditto.
6854 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6855 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6856 (<any_logic:code><mode>3): Use VF mode iterator.
6857 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6858 Use VF mode iterator.
6859 (copysign<mode>3): Use VF mode iterator.
6860 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6861 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6862 (*<any_logic:code><MODEF:mode>3): Merge with
6863 *avx_<any_logic:code><MODEF:mode>3.
6864 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6865 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6866 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6867 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6868 (sse2_cvtdq2ps): Use %v modifier.
6869 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6870 (avx_cvtps2dq<avxmodesuffix>): Remove.
6871 (sse2_cvtps2dq): Use %v modifier.
6872 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6873 (avx_cvttps2dq<avxmodesuffix>): Remove.
6874 (sse2_cvttps2dq): Use %v modifier.
6875 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6876 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6877 (sse2_cvtsd2siq): Fix insn template.
6878 (sse2_cvtsd2siq_2): Ditto.
6879 (sse2_cvttsd2siq): Ditto.
6880 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6881 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6883 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6885 * gcov-io.c: Use GCC Runtime Library Exception.
6887 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6890 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6891 as base_reg whatever register reg has been eliminated to, instead
6892 of hardcoding STACK_POINTER_REGNUM.
6894 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6896 * doc/tm.texi.in: Document C target hooks as separate from general
6898 * doc/tm.texi: Regenerate.
6899 * genhooks.c (struct hook_desc): Add docname field.
6900 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6902 (hook_array): Include c-target.def.
6903 (emit_documentation): Use docname field in output.
6904 (emit_init_macros): Take docname argument. Only emit definitions
6905 for hooks matching docname.
6906 (main): Expect additional arguments in all cases. Pass argument
6907 to emit_init_macros.
6908 * target.def: Move initial macro definitions and comments to
6909 target-hooks-macros.h.
6910 (gcc_targetcm): Move to c-family/c-target.def.
6911 * target.h (targetcm): Move declaration to c-family/c-target.h.
6912 * targhooks.c (default_handle_c_option): Move to
6914 * targhooks.h (default_handle_c_option): Move declaration to
6915 c-family/c-common.h.
6916 * target-hooks-macros.h: New file.
6917 * config.gcc (target_has_targetcm): Define and use to add to
6918 c_target_objs and cxx_target_objs.
6919 * config/default-c.c: New file.
6920 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6921 of target.h and target-def.h.
6922 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6923 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6924 darwin_check_cfstring_format_arg): Make static.
6925 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6926 TARGET_STRING_OBJECT_REF_TYPE_P,
6927 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6928 * config/darwin-protos.h (darwin_objc_construct_string,
6929 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6931 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6932 TARGET_STRING_OBJECT_REF_TYPE_P,
6933 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6934 * config/t-darwin (darwin-c.o): Update dependencies.
6935 * system.h (TARGET_HAS_TARGETCM): Poison.
6936 * Makefile.in (TARGET_H): Update.
6937 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6938 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6939 (default-c.o): New target.
6940 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6941 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6942 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6944 (build/genhooks.o): Update dependencies.
6946 2011-04-06 Richard Guenther <rguenther@suse.de>
6948 * ipa-inline.c (enum inlining_mode): Remove.
6949 (cgraph_flatten): Use some other token.
6950 (cgraph_edge_early_inlinable_p): New function, split out from ...
6951 (cgraph_perform_always_inlining): New function, split out from ...
6952 (cgraph_decide_inlining_incrementally): ... here.
6953 (cgraph_mark_inline_edge): Adjust.
6954 (cgraph_early_inlining): Re-structure.
6955 (pass_early_inline): Require SSA form.
6957 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6958 Julian Brown <julian@codesourcery.com>
6959 Mark Shinwell <shinwell@codesourcery.com>
6961 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6962 LO_REGS only for Thumb-1.
6963 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6964 be used in short instructions when optimising for size on Thumb-2.
6966 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6968 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6969 associated with user returns to be preserved.
6971 2011-04-06 Tristan Gingold <gingold@adacore.com>
6973 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6974 symbol_queue_size, DBXOUT_DECR_NESTING,
6975 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6976 if XCOFF_DEBUGGING_INFO.
6978 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6980 * config/i386/i386.md (attribute isa): New.
6981 (attribute enabled): New.
6982 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6983 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6984 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6985 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6986 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6987 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6988 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6989 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6991 * config/i386/sse.md (VF): New mode iterator.
6995 (SSEMODEF4): Remove.
6996 (attribute sse): Handle V8SF and V4DF modes.
6997 (<absneg:code><mode>2): Use VF mode iterator.
6998 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7000 (<plusminus_insn><mode>3): Use VF mode iterator.
7001 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7002 Use VF mode iterator.
7003 (<sse>_vm<plusminus_insn><mode>3): Merge with
7004 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7005 (mul<mode>3): Use VF mode iterator.
7006 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7007 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7009 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7010 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7011 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7012 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7014 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7015 Use VF1 mode iterator.
7016 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7017 (sqrt<VF2:mode>2): New expander.
7018 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7019 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7020 and sqrtv2df2. Use VF mode iterator.
7021 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7023 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7024 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7025 Use VF1 mode iterator.
7026 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7027 (<smaxmin:code><mode>3): Use VF mode iterator.
7028 (*<smaxmin:code><mode>3_finite): Merge with
7029 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7030 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7031 (<sse>_vm<smaxmin:code><mode>2): Merge with
7032 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7033 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7035 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7037 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7038 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7039 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7040 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7041 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7043 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7044 Use VF_128 mode iterator.
7045 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7047 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7048 VF_128 mode iterator.
7049 (vcond<mode>): Use VF mode iterator.
7050 * config/i386/predicates.md (sse_comparison_operator): Merge with
7051 avx_comparison_float_operator. Do not declare as special_predicate.
7052 * config/i386/i386.c (struct builtin_description): Update for renamed
7054 (ix86_expand_args_builtin): Ditto.
7055 (ix86_expand_sse_compare_mask): Ditto.
7057 2011-04-06 Richard Guenther <rguenther@suse.de>
7059 * tree-inline.c (estimate_num_insns): For calls simply account
7060 for all passed arguments and a used return value.
7062 2011-04-06 Richard Guenther <rguenther@suse.de>
7064 PR tree-optimization/47663
7065 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7066 call_stmt_time fields.
7067 (cgraph_edge_inlinable_p): Declare.
7068 (cgraph_edge_recursive_p): New inline function.
7069 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7070 (cgraph_clone_edge): Copy it.
7071 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7072 Account for call stmt time.
7073 (cgraph_estimate_time_after_inlining): Take edge argument.
7074 (cgraph_estimate_edge_growth): Account call stmt size.
7075 (cgraph_estimate_size_after_inlining): Take edge argument.
7076 (cgraph_mark_inline_edge): Adjust.
7077 (cgraph_check_inline_limits): Likewise.
7078 (cgraph_recursive_inlining_p): Remove.
7079 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7080 (cgraph_decide_recursive_inlining): Take edge argument and
7082 (cgraph_decide_inlining_of_small_functions): Do not avoid
7083 diags for recursive inlining here.
7084 (cgraph_flatten): Adjust.
7085 (cgraph_decide_inlining_incrementally): Likewise.
7086 (estimate_function_body_sizes): Remove call cost handling.
7087 (compute_inline_parameters): Initialize caller edge call costs.
7088 (cgraph_estimate_edge_growth): New function.
7089 (cgraph_estimate_growth): Use it.
7090 (cgraph_edge_badness): Likewise.
7091 (cgraph_check_inline_limits): Take an edge argument.
7092 (cgraph_decide_inlining_of_small_functions): Adjust.
7093 (cgraph_decide_inlining): Likewise.
7094 * tree-inline.c (estimate_num_insns): Only account for call
7095 return value if it is used.
7096 (expand_call_inline): Avoid diagnostics on recursive inline
7098 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7099 (input_edge): Input edge call costs.
7101 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7103 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7105 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7107 * doc/invoke.texi (Spec Files): Fix typo.
7109 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7111 * profile.c (branch_prob): Move declaration of local variable. Remove
7112 obsolete ??? comment. Expand the location explicitly instead of using
7113 the LOCATION_FILE and LOCATION_LINE macros.
7115 2011-04-06 Wei Guozhi <carrot@google.com>
7118 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7119 (arm_cond_branch): Likewise.
7120 (arm_cond_branch_reversed): Likewise.
7121 (arm_jump): Likewise.
7122 (push_multi): Likewise.
7123 * config/arm/constraints.md (Py): New constraint.
7125 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7128 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7130 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7131 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7132 #ifdef DBX_DEBUGGING_INFO.
7134 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7137 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7138 if old and new states differ.
7140 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7142 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7143 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7144 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7145 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7146 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7148 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7149 ColdFire options to -mcpu= options.
7151 2011-04-05 Jeff Law <law@redhat.com>
7153 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7154 check if BB is a successor of LOOP->header and return
7155 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7157 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7159 * cprop.c (struct reg_use): Remove.
7160 (reg_use_table): Make an array of RTX.
7161 (find_used_regs, constprop_register, local_cprop_pass,
7162 bypass_block): Simplify users of reg_use_table.
7163 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7164 on one of the uses found by find_used_regs.
7166 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7169 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7172 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7174 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7176 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7178 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7181 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7183 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7185 * combine.c: Include obstack.h.
7186 (struct insn_link): Define.
7187 (uid_log_links): Adjust type.
7188 (FOR_EACH_LOG_LINK): New macro.
7189 (insn_link_obstack): Declare.
7190 (alloc_insn_link): Define.
7191 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7192 type of link variables.
7193 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7194 (try_combine, record_promoted_values, distribute_notes): Likewise.
7195 (distribute_links): Likewise. Tweak prototype.
7196 (clear_log_links): Delete.
7197 (adjust_for_new_dest): Call alloc_insn_link.
7198 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7200 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7202 * gcse.c (modify_mem_list): Convert to an array of VECs.
7203 (canon_modify_mem_list, compute_transp): Tweak formatting.
7204 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7205 (load_killed_in_block_p): Likewise.
7206 (record_last_mem_set_info): Likewise.
7207 (clear_modify_mem_tables): Likewise.
7209 2011-04-05 Tom de Vries <tom@codesourcery.com>
7212 * function.c (emit_use_return_register_into_block): Only define if
7215 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7217 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7219 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7221 * config/rx/rx-opts.h: New.
7222 * config/rx/rx.c (rx_cpu_type): Remove.
7223 (rx_handle_option): Don't assert that global structures are in
7224 use. Access variables via opts pointer. Defer most handling of
7225 OPT_mint_register_. Use error_at.
7226 (rx_option_override): Handle deferred OPT_mint_register_ here.
7227 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7228 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7229 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7230 (rx_cpu_types): New Enum and EnumValue entries.
7231 (mint-register=): Use Defer and use Var accordingly.
7233 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7235 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7236 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7237 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7239 (debug_free_queue, debug_nesting, symbol_queue_index):
7241 * dbxout.c: ...to here. Make static.
7243 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7245 * gcse.c (modify_pair): Define. Define a VEC of it.
7246 (canon_modify_mem_list): Convert to an array of VECs.
7247 (free_insn_expr_list_list): Delete.
7248 (clear_modify_mem_tables): Call VEC_free instead.
7249 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7250 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7251 (canon_list_insert, compute_transp): Likewise.
7253 2011-04-05 Tom de Vries <tom@codesourcery.com>
7256 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7259 2011-04-05 Tom de Vries <tom@codesourcery.com>
7262 * function.c (emit_use_return_register_into_block): New function.
7263 (thread_prologue_and_epilogue_insns): Use
7264 emit_use_return_register_into_block.
7266 2011-04-05 Tom de Vries <tom@codesourcery.com>
7269 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7272 2011-04-05 Tom de Vries <tom@codesourcery.com>
7274 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7276 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7278 * config/arm/arm.md (define_constants for unspec): Replace with
7280 (define_constants for unspecv): Replace with define_c_enum.
7281 * config/arm/neon.md (define_constants for unspec): Replace with
7284 2011-04-04 Richard Henderson <rth@redhat.com>
7287 * dwarf2out.c (output_line_info): Always emit line info from
7288 at least one section.
7289 (dwarf2out_init): Create text_section_line_info here ...
7290 (set_cur_line_info_table): ... not here.
7292 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7295 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7298 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7300 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7302 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7303 (expr_equiv_p): Remove.
7304 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7305 (hash_scan_set): Update call to insert_set_in_table.
7306 (dump_hash_table): Dump <dest, src> pair.
7307 (lookup_set): Simplify. Lookup <dest, src> pair.
7308 (compute_transp): Remove, fold heavily simplified code into...
7309 (compute_local_properties): ...here. Expect COMP and TRANSP
7311 (find_avail_set): Take set directly from struct expr.
7312 (find_bypass-set): Likewise.
7313 (bypass_block): Likewise.
7314 (cprop_insn): Likewise. Remove redundant INSN_P test.
7316 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7317 checks on form of COND from find_implicit_sets to here.
7318 (find_implicit_sets): Cleanup control flow. Split critical edges
7319 if it exposes implicit sets. Allocate/resize implicit_sets as
7321 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7322 changed something. Run df_analyze after find_implicit_sets if any
7323 edges were split. Do not allocate implicit_sets here.
7325 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7326 (gcse_obstack): Renamed to cprop_obstack.
7327 (GNEW, GNEWVEC, GNEWVAR): Remove.
7329 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7330 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7331 (gcse_alloc): Likewise, and rename to cprop_alloc.
7332 (alloc_gcse_men, free_gcse_mem): Remove.
7333 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7334 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7335 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7337 * cprop.c (oprs_not_set_p): Remove.
7338 (mark_set, mark_clobber): Remove.
7339 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7340 (reg_not_set_p): New function.
7341 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7342 (cprop_insn): Likewise.
7343 (cprop_jump): Use FOR_EACH_EDGE.
7345 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7348 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7349 (rank_for_schedule): Use scheduled_insns vector instead of
7350 last_scheduled_insn.
7351 (ok_for_early_queue_removal): Likewise.
7352 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7354 (choose_ready): Likewise.
7355 (commit_schedule): Use VEC_iterate.
7356 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7357 a dbg_cnt, use it and ensure the first insn is in the ready list.
7358 (haifa_sched_init): Allocate scheduled_insns.
7359 (sched_extend_ready_list): Don't allocate it; reserve space.
7360 (haifa_sched_finish): Free it.
7362 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7364 * optc-gen.awk: Always remove type from Variable entry before
7365 recording in var_seen.
7367 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7369 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7370 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7371 call to tidy_fallthru_edges.
7373 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7375 * doc/options.texi (ToLower): Document.
7376 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7377 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7378 * opts.h (cl_option): Add cl_tolower field.
7379 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7380 arguments with lowercase strings.
7381 * config/rx/rx.opt (mcpu=): Add ToLower.
7382 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7385 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7387 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7389 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7391 * config/vax/vax.c: Include reload.h.
7393 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7395 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7396 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7397 (sparc_preferred_reload_class): New function.
7399 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7402 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7403 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7405 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7407 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7408 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7410 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7412 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7413 (ASM_OUTPUT_ALIGNED_BSS): Define.
7415 2011-04-03 Michael Matz <matz@suse.de>
7417 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7418 and next_slot members.
7419 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7420 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7421 (lto_streamer_cache_append): Declare.
7422 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7423 unsigned index, remove offset parameter, ensure that we append
7424 or update existing entries.
7425 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7426 parameter, update next_slot for append.
7427 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7429 (lto_streamer_cache_insert_at): Likewise.
7430 (lto_streamer_cache_append): New function.
7431 (lto_streamer_cache_lookup): Use unsigned index.
7432 (lto_streamer_cache_get): Likewise.
7433 (lto_record_common_node): Don't test tree_node_can_be_shared.
7434 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7435 (lto_streamer_cache_delete): Don't free offsets member.
7436 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7437 (lto_output_string_with_length): Use lto_output_data_stream.
7438 (lto_output_tree_header): Remove ix parameter, don't write it.
7439 (lto_output_builtin_tree): Likewise.
7440 (lto_write_tree): Adjust callers to above, don't track and write
7441 offset, write unsigned index.
7442 (output_unreferenced_globals): Don't emit all global vars.
7443 (write_global_references): Use unsigned indices.
7444 (lto_output_decl_state_refs): Likewise.
7445 (write_symbol): Likewise.
7446 * lto-streamer-in.c (lto_input_chain): Move earlier.
7447 (input_function): Use unsigned index.
7448 (input_alias_pairs): Don't read and then ignore all global vars.
7449 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7450 don't pass it back, use lto_streamer_cache_append.
7451 (lto_register_var_decl_in_symtab): Use unsigned index.
7452 (lto_register_function_decl_in_symtab): Likewise.
7453 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7455 (lto_get_builtin_tree): Don't read index, use
7456 lto_streamer_cache_append.
7457 (lto_read_tree): Adjust call to lto_materialize_tree.
7459 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7460 don't use function calls in arguments to MIN.
7462 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7465 * gimple.c (gimple_type_leader_entry): Mark deletable.
7467 2011-04-03 Alan Modra <amodra@gmail.com>
7469 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7471 2011-04-03 Michael Matz <matz@suse.de>
7473 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7475 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7477 2011-04-03 Michael Matz <matz@suse.de>
7479 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7480 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7481 without function context.
7482 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7483 current_function_decl and cfun.
7485 2011-04-03 Michael Matz <matz@suse.de>
7487 * tree.c (decl_init_priority_insert): Don't create entry for
7489 (decl_fini_priority_insert): Ditto.
7490 (fields_compatible_p, find_compatible_field): Remove.
7491 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7492 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7494 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7496 * combine.c (try_combine): Remove useless local variable.
7498 2011-04-03 Richard Guenther <rguenther@suse.de>
7499 Ira Rosen <ira.rosen@linaro.org>
7501 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7502 non-variable offsets and compare the remaining bases of the two
7503 accesses instead of looking for exact same data-ref.
7505 2011-04-02 Kai Tietz <ktietz@redhat.com>
7508 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7510 * i386.c (ix86_is_msabi_thiscall): New helper function.
7511 (ix86_is_type_thiscall): New helper function.
7512 (ix86_comp_type_attributes): Handle thiscall for method-functions
7514 (init_cumulative_args): Likewise.
7515 (find_drap_reg): Likewise.
7516 (ix86_static_chain): Likewise.
7517 (x86_this_parameter): Likewise.
7518 (x86_output_mi_thunk): Likewise.
7520 2011-04-01 Olivier Hainque <hainque@adacore.com>
7521 Nicolas Setton <setton@adacore.com>
7522 Eric Botcazou <ebotcazou@adacore.com>
7524 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7525 (add_gnat_descriptive_type_attribute): New function.
7526 (gen_array_type_die): Call it.
7527 (gen_enumeration_type_die): Likewise.
7528 (gen_struct_or_union_type_die): Likewise.
7529 (modified_type_die): Likewise.
7530 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7531 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7532 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7534 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7537 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7538 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7541 2011-03-17 Richard Guenther <rguenther@suse.de>
7544 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7545 origin for decls in other ltrans units.
7546 (input_varpool_node): Likewise.
7548 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7551 * expr.c (expand_assignment): Handle all possibilities
7552 if TO_RTX is CONCAT.
7553 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7554 (store_split_bit_field): If SUBREG_REG (op0) or
7555 op0 itself has smaller mode than word, return it
7556 for offset 0 and const0_rtx for out-of-bounds stores.
7557 If word is const0_rtx, skip it.
7559 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7561 * config/h8300/h8300.c (print_operand_address): Rename to...
7562 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7563 Call h8300_print_operand and h8300_print_operand_address instead of
7564 print_operand and print_operand_address. Declare.
7565 (print_operand): Renake to...
7566 (h8300_print_operand): ...this. Make static. Adjust comments.
7567 Call h8300_print_operand instead of print_operand. Declare.
7568 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7569 (h8300_register_move_cost): Likewise.
7570 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7571 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7572 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7573 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7574 * config/h8300/h8300-protos.h (print_operand): Delete.
7575 (print_operand_address): Delete.
7577 2011-04-01 Richard Henderson <rth@redhat.com>
7580 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7581 in strict mode before dwarf4. Re-order tests to early out
7582 before switching sections.
7584 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7586 * config/h8300/constraints.md: New file.
7587 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7588 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7589 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7590 * config/h8300/predicates.md (bit_operand): Likewise.
7591 (incdec_operand): Use satisfies_constraint_M and
7592 satisfies_constraint_O. Don't use C code block.
7593 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7594 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7595 (compute_mov_length): Use satisfies_constraint_G.
7596 (fix_bit_operand): Use satisfies_constraint_U.
7597 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7598 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7599 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7600 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7601 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7602 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7603 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7604 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7605 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7606 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7607 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7608 (EXTRA_MEMORY_CONSTRAINT): Delete.
7610 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7611 Michael Meissner <meissner@linux.vnet.ibm.com>
7614 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7615 operands, as per the specifications.
7617 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7618 (vec_extract_evenv4sf): Ditto.
7619 (vec_extract_evenv8hi): Ditto.
7620 (vec_extract_evenv16qi): Ditto.
7621 (vec_extract_oddv4si): Ditto.
7623 2011-03-31 Mark Wielaard <mjw@redhat.com>
7625 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7626 high_pc attribute if the CU has no associated code. Only output
7627 DW_AT_entry_pc for CU if not generating strict dwarf and
7630 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7632 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7633 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7635 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7636 * final.c (final_start_function): Call the new function rather
7637 than using a NULL argument for dwarf2out_frame_debug.
7639 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7640 that contains the prologue.
7642 * haifa-sched.c (queue_insn): New arg REASON. All callers
7643 changed. Print it in debugging output.
7645 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7647 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7648 Split most of the code into...
7649 (begin_move_insn): ... here. New function.
7650 (ebb_sched_info): Add a pointer to it.
7651 * haifa-sched.c (scheduled_insns): New static variable.
7652 (sched_extend_ready_list): Allocate it.
7653 (schedule_block): Use it to record the order of scheduled insns.
7654 Perform RTL changes to move insns only after all scheduling
7655 decisions have been made.
7656 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7657 begin_move_insn field.
7658 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7659 * sched-int.h (struct haifa_sched_info): Remove second argument
7660 from begin_schedule_ready hook. Add new member begin_move_insn.
7661 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7662 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7664 * haifa-sched.c (prune_ready_list): New function, broken out of
7666 (schedule_block): Use it.
7668 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7670 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7672 2011-04-01 Kai Tietz <ktietz@redhat.com>
7674 * config.gcc (*-*-mingw*): Allow as option the
7675 posix threading model.
7676 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7677 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7679 (CPP_SPEC): Add pthread/no-pthread handling.
7680 (LIB_SPEC): Likewise.
7681 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7682 (LIB_SPEC): Likewise.
7683 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7684 flag to pass -pthread option for shared libgcc build.
7685 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7686 for shared libgcc build.
7687 * config/i386/t-mingw-pthread: New file.
7688 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7689 New define to enable use of library pthread by default.
7690 * config/i386/mingw.opt (pthread): New driver option.
7691 (no-pthread): New driver option.
7692 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7693 * config/i386/mingw-w64.opt: Likewise.
7695 2011-04-01 Gary Funck <gary@intrepid.com>
7697 * c-decl.c (grokdeclarator): Fix formatting.
7699 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7701 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7702 instead of n_operands.
7703 (set_storage_via_setmem): Likewise.
7704 * optabs.c (maybe_gen_insn): Likewise.
7705 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7706 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7707 (mips_expand_builtin_direct): Likewise.
7708 * config/spu/spu.c (expand_builtin_args): Likewise.
7710 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7712 * recog.h (insn_data_d): Add n_generator_args.
7713 * genoutput.c (data): Likewise.
7714 (output_insn_data): Print it.
7715 (max_opno, num_dups): Delete.
7716 (scan_operands): Just fill in "d->operand[...]".
7717 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7719 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7721 * gensupport.h (pattern_stats): New structure.
7722 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7723 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7724 (max_operand_1, max_operand_vec): Delete.
7725 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7727 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7729 * emit-rtl.c (emit_pattern_after_setloc): New function.
7730 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7731 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7732 (emit_pattern_after): New function.
7733 (emit_insn_after, emit_jump_insn_after): Call it.
7734 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7735 (emit_pattern_before_setloc): New function.
7736 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7737 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7739 (emit_pattern_before): New function.
7740 (emit_insn_before, emit_jump_insn_before): Call it.
7741 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7743 2011-03-31 Richard Henderson <rth@redhat.com>
7745 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7746 (dw_separate_line_info_entry): Remove.
7747 (enum dw_line_info_opcode): New.
7748 (dw_line_info_entry): Use it.
7749 (dw_line_info_table, dw_line_info_table_p): New.
7750 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7751 (line_info_table, line_info_label_num): Remove.
7752 (line_info_table_in_use): Remove.
7753 (separate_line_info_table): Remove.
7754 (separate_line_info_table_allocated): Remove.
7755 (separate_line_info_table_in_use): Remove.
7756 (LINE_INFO_TABLE_INCREMENT): Remove.
7757 (line_info_label_num): New.
7758 (cur_line_info_table): New.
7759 (text_section_line_info, cold_text_section_line_info): New.
7760 (separate_line_info): New.
7761 (SEPARATE_LINE_CODE_LABEL): Remove.
7762 (print_dwarf_line_table): Remove.
7763 (debug_dwarf): Don't dump it.
7764 (output_one_line_info_table): New.
7765 (output_line_info): Use it.
7766 (new_line_info_table): New.
7767 (set_cur_line_info_table): New.
7768 (dwarf2out_switch_text_section): Use it.
7769 (dwarf2out_begin_function): Likewise.
7770 (push_dw_line_info_entry): New.
7771 (dwarf2out_source_line): Rewrite for new line info tables.
7772 (dwarf2out_init): Remove dead initailizations.
7774 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7776 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7778 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7779 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7780 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7781 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7782 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7783 * opt-functions.awk (flag_init, switch_bit_fields): New.
7784 (switch_flags): Don't handle flags moved to bit-fields. Don't
7785 generate CL_MISSING_OK or CL_SAVE.
7786 * optc-gen.awk: Update to generate bit-field output as well as
7788 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7789 bit-field instead of CL_REJECT_DRIVER flag.
7790 * opts-common.c (generate_canonical_option,
7791 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7792 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7793 instead of CL_REJECT_NEGATIVE flag.
7794 * toplev.c (print_switch_values): Use cl_report bit-field instead
7797 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7799 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7800 a zero minimum index only if it is redundant.
7802 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7804 PR rtl-optimization/48381
7805 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7806 instead of ira_class_hard_reg_index for calculating conflicting
7809 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7811 * cprop.c: Clean up hash table building.
7812 (reg_avail_info): Remove.
7813 (oprs_available_p): Remove.
7814 (record_last_reg_set_info): Remove.
7815 (record_last_set_info): Remove.
7816 (reg_available_p): New function.
7817 (gcse_constant_p): Do not treat unfolded conditions as constants.
7818 (make_set_regs_unavailable): New function.
7819 (hash_scan_set): Simplify with new reg_available_p.
7820 (compute_hash_table_work): Traverse insns stream only once.
7821 Do not compute reg_avail_info. Traverse insns in reverse order.
7822 Record implicit sets after recording explicit sets from the block.
7824 2011-03-31 Michael Matz <matz@suse.de>
7826 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7828 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7830 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7831 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7832 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7833 (h8300_mode_dependent_address_p): New function.
7834 (h8300_get_index): Make static.
7836 2011-03-31 Jeff Law <law@redhat.com>
7838 * reload1.c (elimination_effects): Fix typo in recent change.
7840 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7841 typo potentially leading to null pointer dereference.
7843 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7844 (setup_save_areas): Corresponding changes to avoid useless
7847 * jump.c (reversed_comparison_code_parts): Avoid successive return
7848 statements when REVERSE_CONDITION is defined.
7850 * expr.c (expand_assignment): Avoid useless assignments.
7851 (expand_expr_real_1): Likewise.
7852 (expand_expr_real_2): Avoid useless statements.
7854 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7856 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7858 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7861 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7863 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7866 * doc/tm.texi.in (TARGET_VERSION): Remove.
7867 * doc/tm.texi: Regenerate.
7868 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7869 * collect2.c (main): Don't use TARGET_VERSION.
7870 * mips-tdump.c (main): Don't use TARGET_VERSION.
7871 * mips-tfile.c (main): Don't use TARGET_VERSION.
7872 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7873 * config/rs6000/vxworksae.h: Remove.
7874 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7875 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7876 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7877 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7878 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7879 * config/arm/arm.h (TARGET_VERSION): Remove.
7880 * config/arm/coff.h (TARGET_VERSION): Remove.
7881 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7882 * config/arm/elf.h (TARGET_VERSION): Remove.
7883 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7884 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7885 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7886 * config/arm/pe.h (TARGET_VERSION): Remove.
7887 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7888 * config/arm/semi.h (TARGET_VERSION): Remove.
7889 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7890 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7891 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7892 * config/avr/avr.h (TARGET_VERSION): Remove.
7893 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7894 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7895 * config/frv/frv.h (TARGET_VERSION): Remove.
7896 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7897 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7898 * config/i386/darwin.h (TARGET_VERSION): Remove.
7899 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7900 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7901 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7902 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7903 * config/i386/gnu.h (TARGET_VERSION): Remove.
7904 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7905 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7906 * config/i386/linux.h (TARGET_VERSION): Remove.
7907 * config/i386/linux64.h (TARGET_VERSION): Remove.
7908 * config/i386/lynx.h (TARGET_VERSION): Remove.
7909 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7910 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7911 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7912 * config/i386/netware.h (TARGET_VERSION): Remove.
7913 * config/i386/nto.h (TARGET_VERSION): Remove.
7914 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7915 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7916 * config/ia64/elf.h (TARGET_VERSION): Remove.
7917 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7918 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7919 * config/ia64/linux.h (TARGET_VERSION): Remove.
7920 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7921 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7922 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7923 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7924 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7925 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7926 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7927 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7928 * config/m68k/linux.h (TARGET_VERSION): Remove.
7929 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7930 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7931 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7932 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7933 * config/mep/mep.h (TARGET_VERSION): Remove.
7934 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7935 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7936 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7937 * config/mips/linux.h (TARGET_VERSION): Remove.
7938 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7939 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7940 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7941 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7942 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7943 * config/pa/pa.h (TARGET_VERSION): Remove.
7944 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7945 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7946 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7947 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7948 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7949 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7950 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7951 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7952 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7953 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7954 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7955 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7956 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7957 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7958 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7959 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7960 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7961 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7962 * config/s390/linux.h (TARGET_VERSION): Remove.
7963 * config/s390/s390.h (TARGET_VERSION): Remove.
7964 * config/s390/tpf.h (TARGET_VERSION): Remove.
7965 * config/score/score.h (TARGET_VERSION): Remove.
7966 * config/sh/linux.h (TARGET_VERSION): Remove.
7967 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7968 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7969 * config/sh/sh.h (TARGET_VERSION): Remove.
7970 * config/sh/sh64.h (TARGET_VERSION): Remove.
7971 * config/sh/superh.h (TARGET_VERSION): Remove.
7972 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7973 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7974 * config/sparc/linux.h (TARGET_VERSION): Remove.
7975 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7976 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7977 TARGET_NAME32, TARGET_NAME): Remove.
7978 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7979 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7980 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7981 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7982 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7983 * config/spu/spu.h (TARGET_VERSION): Remove.
7984 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7985 * config/v850/v850.h (TARGET_VERSION): Remove.
7986 * config/vax/linux.h (TARGET_VERSION): Remove.
7987 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7988 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7989 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7991 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7994 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7995 frame-related from frame-unrelated adjustments to the stack pointer.
7997 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7999 * common.opt (fdebug-types-section): Move earlier.
8000 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8002 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8004 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8007 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8009 * tree.h (CASE_CHAIN): Define.
8010 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8011 (gimple_redirect_edge_and_branch): Likewise.
8013 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8016 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8019 2011-03-30 Jeff Law <law@redhat.com>
8021 * PR bootstrap/48371
8022 * reload1.c (reload): Fix botch in last change.
8024 * reload.h (struct reload): Fix typo introduced in last change.
8026 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8028 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8029 Undocumented. Remove help text.
8030 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8033 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8035 * doc/options.texi (NegativeAlias): Document.
8036 (Alias): Mention NegativeAlias.
8037 * opt-functions.awk: Handle NegativeAlias.
8038 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8039 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8040 * opts.h (CL_NEGATIVE_ALIAS): Define.
8041 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8042 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8044 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8046 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8047 mno-spe and mno-isel instead of mspe=no and -misel=no.
8049 2011-03-29 Mark Wielaard <mjw@redhat.com>
8051 * common.opt (fdebug-types-section): New flag.
8052 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8053 * dwarf2out.c (use_debug_types): New define.
8054 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8055 (print_die): Guard output of type unit signatures using
8057 (build_abbrev_table): Replace assert of dwarf_version >= 4
8058 with assert on use_debug_types.
8059 (size_of_die): Likewise.
8060 (unmark_dies): Likewise.
8061 (value_format): Decide AT_ref_external form on use_debug_types.
8062 (output_die): Replace dwarf_version version check guard with
8063 use_debug_types where appropriate.
8064 (modified_type_die): Likewise.
8065 (gen_reference_type_die): Likewise.
8066 (dwarf2out_start_source_file): Likewise.
8067 (dwarf2out_end_source_file): Likewise.
8068 (prune_unused_types_walk_attribs): Likewise.
8069 (dwarf2out_finish): Likewise.
8071 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8073 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8075 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8077 PR rtl-optimization/48332
8078 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8079 mode of input operand N and modeN to its actual mode.
8081 2011-03-30 Jeff Law <law@redhat.com>
8083 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8084 define accessor macro.
8085 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8086 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8087 (reg_equiv_init): Likewise.
8088 (reg_equivs_size): New variable.
8089 (reg_equiv_init_size): Remove.
8090 (allocate_initial_values): Move prototype to here from....
8091 * integrate.h (allocate_initial_values): Remove prototype.
8092 * integrate.c: Include reload.h.
8093 (allocate_initial_values): Corresponding changes.
8094 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8095 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8096 (update_equiv_regs): Corresponding changes.
8097 (ira): Corresponding changes.
8098 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8099 (push_secondary_reload): Corresponding changes.
8100 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8101 (make_memloc, find_reloads_address): Corresponding changes.
8102 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8103 (find_reloads_address_1): Corresponding changes.
8104 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8105 (refers_to_regno_for_reload_p): Corresponding changes.
8106 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8107 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8108 * reload1.c: Include ggc.h.
8109 (grow_reg_equivs): New function.
8110 (replace_pseudos_in, reload): Corresponding changes.
8111 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8112 (eliminate_regs_1, elimination_effects): Corresponding changes.
8113 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8114 (delete_output_reload): Likewise.
8115 * caller-save.c (mark_referenced_regs): Corresponding changes.
8116 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8117 * frv/predicates.md (frv_load_operand): Corresponding changes.
8118 * microblaze/microblaze.c (double_memory_operand): Corresponding
8120 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8121 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8122 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8123 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8124 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8126 * pa/pa.c (emit_move_sequence): Corresponding changes.
8127 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8129 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8132 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8133 structure modes. Don't check neon_vector_mem_operand for
8134 vector or structure modes.
8136 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8137 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8140 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8141 operand 1 and reshuffle the operands to match.
8142 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8144 2011-03-30 Christian Schüler <cschueler@gmx.de>
8147 * config/c.opt (F): Added 'Driver' to -F option.
8150 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8152 * config/darwin.opt: Added '-arch' option.
8154 2011-03-30 Nick Clifton <nickc@redhat.com>
8156 * config/rx/rx.md: Add peepholes and patterns to combine
8157 extending loads and simple arithmetic instructions.
8158 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8159 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8160 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8161 modes to use pre-decrement and post-increment addressing.
8162 (rx_is_restricted_memory_address): Add range checking of REG+INT
8164 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8165 (rx_memory_move_cost): Adjust cost of stores.
8166 (rx_adjust_insn_length): New function.
8168 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8171 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8172 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8173 matching arg00/arg01 types.
8175 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8177 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8178 last_location to UNKNOWN_LOCATION.
8180 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8183 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8186 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8187 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8190 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8192 (sparc_cpu): Likewise.
8193 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8196 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8200 PR rtl-optimization/48345
8201 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8202 hard regs for given mode from profitable regs when doing secondary
8205 2011-03-29 Jeff Law <law@redhat.com>
8208 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8209 do_not_duplicate field.
8210 (lookup_redirection_data): Corresponding changes.
8211 (create_duplicates): Always create a template block.
8212 (redirect_edges): Remove code which reused the original block
8213 when it was going to become unreachable code.
8214 (thread_block): Don't set do_not_duplicate field.
8216 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8218 * lto-opts.c (register_user_option_p, lto_register_user_option):
8219 Make type argument unsigned.
8220 * lto-streamer.h (lto_register_user_option): Make type argument
8222 * opth-gen.awk: Make CL_* macros unsigned.
8223 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8224 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8225 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8226 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8227 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8228 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8229 (find_opt): Make lang_mask argument unsigned.
8231 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8233 PR rtl-optimization/48331
8234 PR rtl-optimization/48334
8235 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8236 for any used algorithm.
8238 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8240 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8243 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8245 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8246 (alpha_option_override): Don't set alpha_sr_alias_set.
8247 (emit_frame_store_1): Use gen_frame_mem rather than calling
8249 (alpha_expand_epilogue): Ditto.
8251 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8253 PR tree-optimization/48290
8254 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8255 vectorization, check that relevant phis in the basic block after
8256 the inner loop are really inner loop's exit phis.
8258 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8261 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8262 (cached_dw_loc_list_def): New structure.
8263 (cached_dw_loc_list): New typedef.
8264 (cached_dw_loc_list_table): New variable.
8265 (cached_dw_loc_list_table_hash): New function.
8266 (cached_dw_loc_list_table_eq): Likewise.
8267 (add_location_or_const_value_attribute): Take a bool cache_p.
8268 Cache the list when the parameter is true.
8269 (gen_formal_parameter_die): Update caller.
8270 (gen_variable_die): Likewise.
8271 (dwarf2out_finish): Likewise.
8272 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8273 while generating debug info for the decl.
8274 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8275 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8276 (resolve_addr): Cache the result of resolving a chain of
8279 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8281 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8282 conflict object hard regset nodes have intersecting hard reg sets.
8284 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8285 after regstat_init_n_sets_and_refs.
8287 * ira.c: Add more comments at the top.
8288 (setup_stack_reg_pressure_class, setup_pressure_classes):
8289 Add comments how we compute the register pressure classes.
8290 (setup_allocno_and_important_classes): Add more comments.
8291 (setup_class_translate_array, reorder_important_classes)
8292 (setup_reg_class_relations): Add comments.
8294 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8297 * ira-color.c: Add 2011 to the Copyright line.
8298 (assign_hard_reg): Add more comments.
8299 (improve_allocation): Ditto.
8301 * ira-costs.c: Add 2011 to the Copyright line.
8302 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8304 (setup_regno_cost_classes_by_mode): Ditto.
8306 Initial patches from ira-improv branch:
8308 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8310 * ira-build.c (ira_create_object): Remove initialization of
8311 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8312 (ira_create_allocno): Remove initialization of
8313 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8314 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8315 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8316 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8317 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8318 Initialize ALLOCNO_ADD_DATA.
8319 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8320 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8322 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8323 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8325 * ira.c (ira_reallocate): Remove.
8326 (setup_pressure_classes): Call
8327 ira_init_register_move_cost_if_necessary. Use
8328 ira_register_move_cost instead of ira_get_register_move_cost.
8329 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8330 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8332 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8333 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8334 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8335 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8336 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8337 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8339 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8340 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8341 (struct allocno_color_data): New.
8342 (allocno_color_data_t): New typedef.
8343 (allocno_color_data): New definition.
8344 (ALLOCNO_COLOR_DATA): New macro.
8345 (struct object_color_data): New.
8346 (object_color_data_t): New typedef.
8347 (object_color_data): New definition.
8348 (OBJECT_COLOR_DATA): New macro.
8349 (update_copy_costs, calculate_allocno_spill_cost): Call
8350 ira_init_register_move_cost_if_necessary. Use
8351 ira_register_move_cost instead of ira_get_register_move_cost.
8352 (move_spill_restore, update_curr_costs): Ditto.
8353 (allocno_spill_priority): Make it inline.
8354 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8355 (struct coalesce_data, coalesce_data_t): New.
8356 (allocno_coalesce_data): New definition.
8357 (ALLOCNO_COALESCE_DATA): New macro.
8358 (merge_allocnos, coalesced_allocno_conflict_p): Use
8359 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8360 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8361 (coalesce_allocnos): Ditto.
8362 (setup_coalesced_allocno_costs_and_nums): Ditto.
8363 (collect_spilled_coalesced_allocnos): Ditto.
8364 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8365 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8366 (coalesce_spill_slots): Ditto.
8367 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8368 free allocno_coalesce_data.
8370 * ira-conflicts.c: Fix formatting.
8371 (process_regs_for_copy): Call
8372 ira_init_register_move_cost_if_necessary. Use
8373 ira_register_move_cost instead of ira_get_register_move_cost.
8374 (build_object_conflicts): Optimize.
8376 * ira-costs.c (record_reg_classes): Optimize. Call
8377 ira_init_register_move_cost_if_necessary. Use
8378 ira_register_move_cost, ira_may_move_in_cost, and
8379 ira_may_move_out_cost instead of ira_get_register_move_cost and
8380 ira_get_may_move_cost.
8381 (record_address_regs): Ditto.
8382 (scan_one_insn): Optimize.
8383 (find_costs_and_classes): Optimize.
8384 (process_bb_node_for_hard_reg_moves): Call
8385 ira_init_register_move_cost_if_necessary. Use
8386 ira_register_move_cost instead of ira_get_register_move_cost.
8388 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8389 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8390 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8391 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8393 (ira_initiate_emit_data, ira_finish_emit_data)
8394 (create_new_allocno): New functions.
8395 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8396 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8397 Use ira_register_move_cost instead of ira_get_register_move_cost.
8399 * ira-int.h: Fix some comments.
8400 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8401 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8402 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8403 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8405 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8406 bitfield after mode. Make hard_regno a short int. Make
8407 hard_regno short. Remove first_coalesced_allocno and
8408 next_coalesced_allocno. Move mem_optimized_dest_p,
8409 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8410 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8411 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8412 temp, colorable_p. Add new member add_data.
8413 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8414 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8415 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8416 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8417 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8418 (ALLOCNO_ADD_DATA): New macro.
8419 (ira_emit_data_t): New typedef.
8420 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8421 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8422 from struct ira_allocno.
8423 (ALLOCNO_EMIT_DATA): New macro.
8424 (ira_allocno_emit_data, allocno_emit_reg): New.
8425 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8426 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8427 (OBJECT_ADD_DATA): New macro.
8428 (ira_reallocate): Remove.
8429 (ira_initiate_emit_data, ira_finish_emit_data): New.
8430 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8431 (ira_init_register_move_cost_if_necessary): New.
8432 (ira_object_conflict_iter_next): Merge into
8433 ira_object_conflict_iter_cond.
8434 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8436 * ira-live.c (process_single_reg_class_operands): Call
8437 ira_init_register_move_cost_if_necessary. Use
8438 ira_register_move_cost instead of ira_get_register_move_cost.
8440 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8442 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8444 * ira-costs.c: Fix formatting.
8445 (cost_classes, cost_classes_num): Remove.
8446 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8447 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8448 (cost_classes_del, cost_classes_htab): New.
8449 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8450 (initiate_regno_cost_classes, setup_cost_classes): New.
8451 (setup_regno_cost_classes_by_aclass): New.
8452 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8453 (record_reg_classes): Use regno_cost_classes instead of
8454 cost_classes. Move checking opposite operand up.
8455 (record_address_regs): Use regno_cost_classes
8456 instead of cost_classes.
8457 (scan_one_insn): Ditto. Use always general register.
8458 (print_allocno_costs): Use regno_cost_classes instead of
8460 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8461 (find_costs_and_classes): Set up cost classes for each registers.
8462 Use also their mode for this. Use regno_cost_classes instead of
8464 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8466 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8467 (ira_costs, ira_set_pseudo_classes): Call
8468 initiate_regno_cost_classes and finish_regno_cost_classes.
8470 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8472 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8474 * target.def (ira_cover_classes): Remove.
8476 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8478 * doc/tm.texi.in: Ditto.
8480 * ira-conflicts.c: Remove mentioning cover classes from the file.
8481 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8482 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8484 * targhooks.c (default_ira_cover_classes): Remove.
8486 * targhooks.h (default_ira_cover_classes): Ditto.
8488 * haifa-sched.c: Remove mentioning cover classes from the file.
8489 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8490 ira_pressure_classes and ira_pressure_classes_num instead of
8491 ira_reg_class_cover_size and ira_reg_class_cover. Use
8492 sched_regno_pressure_class instead of sched_regno_cover_class.
8493 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8494 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8496 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8497 classes from the file.
8498 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8499 (struct object_hard_regs, struct object_hard_regs_node): New.
8500 (struct ira_object): New members profitable_hard_regs,
8501 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8502 (struct ira_allocno): Rename cover_class to aclass. Rename
8503 cover_class_cost and updated_cover_class_cost to class_cost and
8504 updated_class_cost. Remove splay_removed_p and
8505 left_conflict_size. Add new members colorable_p.
8506 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8507 (ALLOCNO_COLORABLE_P): New macro.
8508 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8509 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8510 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8511 (OBJECT_...): Rename parameter C to O.
8512 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8513 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8514 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8515 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8516 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8517 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8518 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8519 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8520 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8521 x_ira_reg_class_subunion.
8522 (ira_max_memory_move_cost, ira_max_register_move_cost)
8523 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8524 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8525 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8526 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8527 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8528 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8529 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8530 (ira_tune_allocno_costs_and_cover_classes): Rename to
8531 ira_tune_allocno_costs.
8532 (ira_debug_hard_regs_forest): New.
8533 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8534 (ira_object_conflict_iter_next): Fix comments.
8535 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8536 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8537 cover_class to aclass.
8538 (ira_allocate_and_accumulate_costs): Ditto.
8539 (ira_allocate_and_set_or_copy_costs): Ditto.
8541 * opts.c (decode_options): Remove ira_cover_class check.
8543 * ira-color.c: Remove mentioning cover classes from the file. Use
8544 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8545 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8546 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8547 (splay-tree.h): Remove include.
8548 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8549 before copy_freq_compare_func.
8550 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8551 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8553 (hard_regs_roots, hard_regs_node_vec): Ditto.
8554 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8555 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8556 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8557 (create_new_object_hard_regs_node): Ditto.
8558 (add_new_object_hard_regs_node_to_forest): Ditto.
8559 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8560 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8562 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8563 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8564 (remove_unused_object_hard_regs_nodes): Ditto.
8565 (enumerate_object_hard_regs_nodes): Ditto.
8566 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8567 (object_hard_regs_subnode_t): Ditto.
8568 (struct object_hard_regs_subnode): Ditto.
8569 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8570 (setup_object_hard_regs_subnode_index): Ditto.
8571 (get_object_hard_regs_subnodes_num): Ditto.
8572 (form_object_hard_regs_nodes_forest): Ditto.
8573 (finish_object_hard_regs_nodes_tree): Ditto.
8574 (finish_object_hard_regs_nodes_forest): Ditto.
8575 (allocnos_have_intersected_live_ranges_p): Rename to
8576 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8577 (pseudos_have_intersected_live_ranges_p): Rename to
8578 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8579 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8580 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8581 (update_copy_costs): Remove assert. Skip cost update if the hard
8582 reg does not belong the class.
8583 (assign_hard_reg): Process only profitable hard regs.
8584 (uncolorable_allocnos_num): Make it scalar.
8585 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8586 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8587 and ira_reg_class_max_nregs.
8588 (bucket_allocno_compare_func): Check frequency first.
8589 (sort_bucket): Add compare function as a parameter.
8590 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8591 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8592 (push_allocno_to_stack): Rewrite for checking new allocno
8594 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8595 (push_only_colorable): Pass new parameter to sort_bucket.
8596 (push_allocno_to_spill): Remove.
8597 (allocno_spill_priority_compare): Make it inline and rewrite.
8598 (splay_tree_allocate, splay_tree_free): Remove.
8599 (allocno_spill_sort_compare): New function.
8600 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8601 build and use splay tree. Choose first allocno in uncolorable
8602 allocno bucket to spill. Remove setting spill cost.
8603 (all_conflicting_hard_regs): Remove.
8604 (setup_allocno_available_regs_num): Check only profitable hard
8605 regs. Print info about hard regs nodes.
8606 (setup_allocno_left_conflicts_size): Remove.
8607 (put_allocno_into_bucket): Don't call
8608 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8609 (improve_allocation): New.
8610 (color_allocnos): Call setup_profitable_hard_regs,
8611 form_object_hard_regs_nodes_forest, improve_allocation,
8612 finish_object_hard_regs_nodes_forest. Setup spill cost.
8613 (print_loop_title): Use pressure classes.
8614 (color_allocnso): Ditto.
8615 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8616 and allocnos_for_spilling.
8617 (ira_sort_regnos_for_alter_reg): Don't setup members
8618 {first,next}_coalesced_allocno.
8619 (color): Remove allocating and freeing removed_splay_allocno_vec.
8620 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8621 prohibited_class_mode_regs.
8623 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8625 (update_allocno_pressure_excess_length): Use pressure classes.
8626 (inc_register_pressure, dec_register_pressure): Check for pressure
8628 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8629 pressure class. Use ira_reg_class_nregs instead of
8630 ira_reg_class_max_nregs.
8631 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8632 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8633 (single_reg_class): Use ira_reg_class_nregs instead of
8634 ira_reg_class_max_nregs.
8635 (process_bb_node_lives): Use pressure classes.
8637 * ira-emit.c: Remove mentioning cover classes from the file. Use
8638 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8639 (change_loop): Use pressure classes.
8640 (modify_move_list): Call ira_set_allocno_class instead of
8641 ira_set_allocno_cover_class.
8643 * ira-build.c: Remove mentioning cover classes from the file. Use
8644 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8645 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8646 ALLOCNO_UPDATED_CLASS_COST instead of
8647 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8648 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8649 (ira_create_allocno): Remove initialization of
8650 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8651 ALLOCNO_COLORABLE_P.
8652 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8653 Update conflict regs for the objects.
8654 (create_cap_allocno): Remove assert. Don't propagate
8655 ALLOCNO_AVAILABLE_REGS_NUM.
8656 (ira_free_allocno_costs): New function.
8657 (finish_allocno): Change a part of code into call of
8658 ira_free_allocno_costs.
8659 (low_pressure_loop_node_p): Use pressure classes.
8660 (object_range_compare_func): Don't compare classes.
8661 (setup_min_max_conflict_allocno_ids): Ditto.
8663 * loop-invariant.c: Remove mentioning cover classes from the file.
8664 Use ira_pressure_classes and ira_pressure_classes_num instead of
8665 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8666 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8667 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8668 Use reg_allocno_class instead of reg_cover_class.
8669 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8670 STACK_REG_COVER_CLASS.
8671 (get_regno_cover_class): Rename to get_regno_pressure_class.
8672 (move_loop_invariants): Initialize and finalize regstat.
8674 * ira.c: Remove mentioning cover classes from the file. Add
8675 comments about coloring without cover classes. Use ALLOCNO_CLASS
8676 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8677 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8678 setup_class_subset_and_memory_move_costs.
8679 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8680 (setup_cover_and_important_classes): Rename to
8681 setup_allocno_and_important_classes.
8682 (setup_class_translate_array): New.
8683 (setup_class_translate): Call it for allocno and pressure classes.
8684 (cover_class_order): Rename to allocno_class_order.
8685 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8686 of ira_class_translate.
8687 (reorder_important_classes): Set up ira_important_class_nums.
8688 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8689 (print_class_cover): Rename to print_classes. Add parameter.
8690 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8691 Print pressure classes too.
8692 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8693 setup_reg_subclasses.
8694 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8695 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8696 (setup_prohibited_class_mode_regs): Use
8697 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8698 (clarify_prohibited_class_mode_regs): New function.
8699 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8700 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8701 (ira_init_once): Initialize them.
8702 (free_register_move_costs): Process them.
8703 (ira_init): Move calls of find_reg_classes and
8704 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8705 Call clarify_prohibited_class_mode_regs.
8706 (ira_no_alloc_reg): Remove.
8707 (too_high_register_pressure_p): Use pressure classes.
8709 * sched-deps.c: Remove mentioning cover classes from the file.
8710 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8711 ira_pressure_classes and ira_pressure_classes_num instead of
8712 ira_reg_class_cover_size and ira_reg_class_cover.
8713 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8714 sched_regno_pressure_class instead of sched_regno_cover_class.
8715 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8716 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8718 * ira.h: Add 2010 to Copyright.
8719 (ira_no_alloc_reg): Remove external.
8720 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8721 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8722 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8723 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8724 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8725 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8726 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8727 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8728 x_ira_no_alloc_regs.
8729 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8730 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8731 ira_allocno_classes_num and ira_allocno_classes.
8732 (ira_class_translate): Rename to ira_allocno_class_translate.
8733 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8734 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8735 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8736 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8737 (ira_no_alloc_regs): New.
8739 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8740 classes from the file. Use ALLOCNO_CLASS instead of
8741 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8742 ALLOCNO_COVER_CLASS_COST.
8743 (regno_cover_class): Rename to regno_aclass.
8744 (record_reg_classes): Use ira_reg_class_subunion instead of
8745 ira_reg_class_union.
8746 (record_address_regs): Check overflow.
8747 (scan_one_insn): Ditto.
8748 (print_allocno_costs): Print total mem cost fore regional allocation.
8749 (print_pseudo_costs): Use REG_N_REFS.
8750 (find_costs_and_classes): Use classes intersected with them on the
8751 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8752 ira_reg_class_union. Use ira_allocno_class_translate and
8753 regno_aclass instead of ira_class_translate and regno_cover_class.
8754 Modify code for finding regno_aclass. Setup preferred classes for
8756 (setup_allocno_cover_class_and_costs): Rename to
8757 setup_allocno_class_and_costs. Use regno_aclass instead of
8758 regno_cover_class. Use ira_set_allocno_class instead of
8759 ira_set_allocno_cover_class.
8760 (init_costs, finish_costs): Use regno_aclass instead of
8762 (ira_costs): Use setup_allocno_class_and_costs instead of
8763 setup_allocno_cover_class_and_costs.
8764 (ira_tune_allocno_costs_and_cover_classes): Rename to
8765 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8766 by processing objects. Use ira_reg_class_max_nregs instead of
8767 ira_reg_class_nregs.
8769 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8771 * sched-int.h: Remove mentioning cover classes from the file.
8772 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8774 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8775 classes from the file.
8776 (struct reg_pref): Rename coverclass into allocnoclass.
8777 (reg_cover_class): Rename to reg_allocno_class.
8779 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8781 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8783 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8785 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8787 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8789 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8791 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8793 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8795 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8797 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8799 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8800 (i386_ira_cover_classes): Ditto.
8802 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8804 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8806 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8808 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8810 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8812 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8814 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8815 (mips_ira_cover_classes): Ditto.
8817 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8819 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8821 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8823 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8825 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8827 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8828 (IRA_COVER_CLASSES_VSX): Ditto.
8830 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8831 (rs6000_ira_cover_classes): Ditto.
8833 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8835 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8837 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8839 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8841 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8843 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8845 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8847 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8849 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8851 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8853 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8856 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8857 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8858 dw_fde_unlikely_section_end_label, cold_in_std_section,
8859 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8860 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8862 (output_fde): Use dw_fde_second_{begin,end} if second is
8863 true, otherwise dw_fde_{begin,end}.
8864 (output_call_frame_info): Test dw_fde_second_begin != NULL
8865 instead of dw_fde_switched_sections.
8866 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8867 fields, initialize new fields. Initialize in_std_section
8868 unconditionally from the first partition.
8869 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8870 dw_fde_second_begin is non-NULL.
8871 (dwarf2out_switch_text_section): Stop initializing removed
8872 dw_fde_struct fields, initialize new fields, initialize
8873 also dw_fde_end here. Set dw_fde_switch_cfi even when
8874 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8875 (struct var_loc_list_def): Add last_before_switch field.
8876 (arange_table, arange_table_allocated, arange_table_in_use,
8877 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8878 (size_of_aranges): Count !in_std_section and !second_in_std_section
8879 hunks in fdes, instead of looking at arange_table_in_use.
8880 (output_aranges): Add aranges_length argument, don't call
8881 size_of_aranges here. Instead of using aranges_table*
8882 emit ranges for fdes when !in_std_section resp.
8883 !second_in_std_section.
8884 (dw_loc_list): Break ranges crossing section switch.
8885 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8886 use dw_fde_second_end instead of dw_fde_end as end of last range.
8887 (gen_subprogram_die): Don't call add_arange. Use
8888 dw_fde_{begin,end} for first partition and if switched
8889 section dw_fde_second_{begin,end} for the second.
8890 (var_location_switch_text_section_1,
8891 var_location_switch_text_section): New functions.
8892 (dwarf2out_begin_function): Initialize cold_text_section even
8893 when function_section () isn't text_section.
8894 (prune_unused_types): Don't walk arange_table.
8895 (dwarf2out_finish): Don't needlessly test
8896 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8897 If info_section_emitted, call size_of_aranges and if it indicates
8898 non-empty .debug_aranges, call output_aranges with the computed
8899 size. Stop using removed dw_fde_struct fields, use
8900 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8904 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8905 create ENTRY_VALUE if incoming or address of incoming's MEM
8907 * dwarf2out.c (mem_loc_descriptor): Don't emit
8908 DW_OP_GNU_entry_value of DW_OP_fbreg.
8909 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8910 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8911 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8912 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8914 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8915 is a REG_P or MEM_P with REG_P address, compute hash directly
8916 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8917 (preserve_only_constants): Don't clear VALUES forwaring
8918 ENTRY_VALUE to some other VALUE.
8920 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8922 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8925 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8927 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8928 block before expanding the statement.
8929 (expand_gimple_stmt_1): Likewise. Set them here...
8930 (expand_gimple_stmt): ...and not here. Tidy.
8931 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8934 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8936 * Makefile.in: New rule for cprop.o.
8937 * gcse.c: Move constant/copy propagation to cprop.c.
8938 (compute_local_properties): Only handle expression tables.
8939 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8940 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8941 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8942 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8943 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8944 compute_cprop_data, find_used_regs, try_replace_reg,
8945 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8946 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8947 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8948 find_bypass_set, reg_killed_on_edge, bypass_block,
8949 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8950 execute_rtl_cprop, pass_rtl_cprop): Move to...
8951 * cprop.c: ...here. New file, constant/copy propagation for RTL
8952 moved from gcse.c to here with minor cleanups in duplicated code.
8954 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8956 * config/i386/i386.c (flag_opts): Fix a typo in
8957 -mavx256-split-unaligned-store.
8959 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8961 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8962 LIBCALL_VALUE): Remove macros.
8963 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8964 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8965 (h8300_function_value, h8300_libcall_value,
8966 h8300_function_value_regno_p): New functions.
8968 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8970 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8972 2011-03-28 Jeff Law <law@redhat.com>
8974 * tree-ssa-threadupdate.c (redirect_edges): Call
8975 create_edge_and_update_destination_phis as needed.
8976 (create_edge_and_update_destination_phis): Accept new BB argument.
8977 All callers updated.
8978 (thread_block): Do not update the profile when threading around
8979 intermediate blocks.
8980 (thread_single_edge): Likewise.
8981 (determine_bb_domination_status): If BB is not a successor of the
8982 loop header, return NONDOMINATING.
8983 (register_jump_thread): Note when we register a jump thread around
8984 an intermediate block.
8985 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8986 (thread_across_edge): Use it.
8988 2011-03-28 Tristan Gingold <gingold@adacore.com>
8990 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8991 when for_return is 2.
8993 2011-03-28 Jeff Law <law@redhat.com>
8995 * var-tracking.c (canonicalize_values_mark): Delete unused
8997 (canonicalize_values_star, set_variable_part): Likewise.
8998 (clobber_variable_part, delete_variable_part): Likewise.
9000 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9002 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9004 2011-03-28 Martin Jambor <mjambor@suse.cz>
9006 * tree-inline.c (expand_call_inline): Do not check that destination
9008 (optimize_inline_calls): Assert that destination node is analyzed.
9009 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9010 not call tree_lowering_passes.
9011 * cgraph.h (cgraph_analyze_function): Declare.
9012 * cgraphunit.c (cgraph_analyze_function): Make public.
9014 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9016 * config/sparc/sparc-opts.h: New.
9017 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9018 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9019 (sparc_option_override): Store processor_type enumeration rather
9020 than string in cpu_default. Remove name and enumeration from
9021 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9022 without using sparc_select. Use target_flags_explicit instead of
9024 * config/sparc/sparc.h (enum processor_type): Move to
9026 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9027 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9028 HeaderInclude entry.
9029 (mcpu=, mtune=): Use Var and Enum.
9030 (sparc_processor_type): New Enum and EnumValue entries.
9032 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9033 Iain Sandoe <iains@gcc.gnu.org>
9036 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9038 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9040 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9041 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9042 Insert new statements at it in lieu of STMT.
9043 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9044 * tree-vect-stmts.c (vectorizable_store): Likewise.
9045 (vectorizable_load): Likewise.
9047 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9049 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9054 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9056 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9057 unaligned 256bit load/store.
9058 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9059 (*avx_movdqu<avxmodesuffix>): Likewise.
9061 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9064 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9065 * config/pa/pa.md (iordi3): Use new predicate in expander.
9068 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9070 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9071 FUNCTION_VALUE_REGNO_P): Remove macros.
9072 * config/mips/mips-protos.h (mips_function_value): Remove.
9073 * config/mips/mips.c (mips_function_value): Rename to...
9074 (mips_function_value_1): ... this. Make static. Handle receiving
9075 the function type in 'fn_decl_or_type' argument.
9076 (mips_function_value, mips_libcall_value,
9077 mips_function_value_regno_p): New function.
9078 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9079 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9081 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9083 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9084 and -mavx256-split-unaligned-store.
9085 (ix86_option_override_internal): Split 32-byte AVX unaligned
9086 load/store by default.
9087 (ix86_avx256_split_vector_move_misalign): New.
9088 (ix86_expand_vector_move_misalign): Use it.
9090 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9091 -mavx256-split-unaligned-store.
9093 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9094 256bit load/store. Generate unaligned store on misaligned memory
9096 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9098 (*avx_movdqu<avxmodesuffix>): Likewise.
9100 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9101 -mavx256-split-unaligned-store.
9103 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9106 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9109 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9111 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9112 opno arguments with an expand_operand. Use create_input_operand.
9113 (mips_prepare_builtin_target): Delete.
9114 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9116 (mips_expand_builtin_direct): Use create_output_operand and
9117 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9118 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9119 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9121 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9123 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9125 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9127 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9129 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9130 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9131 basic blocks and call commit_edge_insertions directly.
9132 (fixup_abnormal_edges): Move from here to...
9133 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9134 on the edges and return whether some have actually been inserted.
9135 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9138 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9140 PR rtl-optimization/48144
9141 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9142 (merge_expr_data): ... here.
9143 (av_set_intersect): Rename to av_set_code_motion_filter.
9144 Update all callers. Call merge_history_vect when an expression
9145 is found in both sets.
9146 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9148 2011-03-26 Alan Modra <amodra@gmail.com>
9150 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9151 cmodel medium addresses.
9152 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9153 64-bit gpr loads and stores.
9154 (rs6000_secondary_reload_ppc64): New function.
9155 * config/rs6000/rs6000-protos.h: Declare it.
9156 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9158 2011-03-26 Alan Modra <amodra@gmail.com>
9161 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9162 GNU Go in traceback table.
9164 2011-03-25 Richard Henderson <rth@redhat.com>
9166 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9167 if there are exactly 6 operands.
9168 (set_storage_via_setmem): Similarly.
9170 2011-03-25 Kai Tietz <ktietz@redhat.com>
9172 * collect2.c (write_c_file_stat): Handle backslash
9173 as right-hand directory separator.
9174 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9175 checking just for slash.
9176 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9177 instead of checking for trailing slash.
9178 * gcc.c (record_temp_file): Use filename_cmp instead
9180 (do_spec_1): Likewise.
9181 (replace_outfile_spec_function): Likewise.
9182 (is_directory): Use filename_ncmp instead of strncmp.
9183 (print_multilib_info): Likewise.
9184 * gcov.c (find_source): Use filename_cmp instead
9186 (make_gcov_file_name): Fix order of slash/backslash
9188 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9189 (add_standard_paths): Likewise.
9190 * mips-tfile.c (saber_stop): Handle backslash.
9191 * prefix.c (update_path): Use filename_ncmp instead of
9193 * profile.c (output_location): Use filename_cmp instead
9195 * read-md.c (handle_toplevel_file): Handle backslash.
9196 * tlink.c (frob_extension): Likewise.
9197 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9199 * tree-dump.c (dequeue_and_dump): Handle backslash.
9200 * tree.c (get_file_function_name): Likewise.
9201 * gengtype.c (read_input_list): Likewise.
9202 (get_file_realbasename): Likewise.
9203 (get_output_file_with_visibility): Use filename_cmp
9206 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9208 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9211 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9213 * fold-const.c (expr_location_or): New function.
9214 (fold_truth_not_expr): Call it.
9216 2011-03-25 Jeff Law <law@redhat.com>
9218 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9220 * c-family/c-common.c (def_fn_type): Likewise.
9221 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9222 * emit-rtl.c (gen_rtvec): Likewise.
9223 * lto/lto-lang.c (def_fn_type): Likewise.
9225 2011-03-25 Richard Guenther <rguenther@suse.de>
9227 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9228 also generate copies.
9229 (fini_copy_prop): Handle constant values properly.
9231 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9233 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9234 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9235 (hash_loc_operands, compare_loc_operands): Handle
9236 DW_OP_GNU_entry_value.
9238 2011-03-25 Kai Tietz <ktietz@redhat.com>
9240 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9241 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9242 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9243 comment and use macro TARGET_64BIT_MS_ABI instead.
9244 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9245 and change default behavior for 32-bit MS_ABI.
9246 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9247 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9249 (ix86_cfun_abi): Likewise.
9250 (ix86_maybe_switch_abi): Adjust comment.
9251 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9252 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9253 instead of checking for SYSV_ABI.
9254 (ix86_nsaved_sseregs): Likewise.
9255 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9257 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9258 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9259 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9260 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9261 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9263 2011-03-25 Richard Guenther <rguenther@suse.de>
9265 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9266 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9267 (verify_gimple): Remove.
9268 * tree-cfg.c (verify_gimple_call): Merge verification
9270 (verify_gimple_phi): Merge verification from verify_stmts.
9271 (verify_gimple_label): New function.
9272 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9273 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9274 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9275 (verify_stmts): Rename to verify_gimple_in_cfg.
9276 (verify_gimple_in_cfg): New function.
9277 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9278 * tree-ssa.c (verify_ssa): Likewise.
9279 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9281 2011-03-25 Richard Guenther <rguenther@suse.de>
9283 * passes.c (init_optimization_passes): Add FRE pass after
9286 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9287 Andrew Stubbs <ams@codesourcery.com>
9289 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9291 (arm_movdi_vfp_cortexa8): New pattern.
9292 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9293 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9294 instructions when tuning for Cortex-A8. Set attribute "arch".
9295 * config/arm/arm.md: Move include arm-tune.md up a bit.
9296 (define_attr "arch"): Add "onlya8" and "nota8" values.
9297 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9299 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9303 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9305 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9306 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9307 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9308 * passes.c (init_optimization_passes): Move
9309 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9311 2011-03-25 Kai Tietz <ktietz@redhat.com>
9313 * c-typeck.c (comptypes_internal): Replace target
9314 hook call of comp_type_attributes by version in tree.c file.
9315 * gimple.c (gimple_types_compatible_p_1): Likewise.
9316 * tree-ssa.c (useless_type_conversion_p): Likewise.
9317 * tree.c (build_type_attribute_qual_variant): Likewise.
9318 (attribute_value_equal): New static helper function.
9319 (comp_type_attributes): New function.
9320 (merge_attributes): Use attribute_value_equal for comparison.
9321 (attribute_list_contained): Likewise.
9322 * tree.h (comp_type_attributes): New prototype.
9324 2011-03-25 Richard Guenther <rguenther@suse.de>
9326 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9327 of complex types at -O0.
9328 (verify_gimple_assign_binary): Likewise.
9329 (verify_gimple_assign_ternary): Likewise.
9331 2011-03-24 Mark Wielaard <mjw@redhat.com>
9333 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9334 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9336 2011-03-24 Mark Wielaard <mjw@redhat.com>
9339 * dwarf2out.c (output_abbrev_section): Only write table when
9340 abbrev_die_table_in_use > 1.
9342 2011-02-24 Richard Henderson <rth@redhat.com>
9344 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9345 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9346 (alpha_expand_unaligned_load_words): Use extql.
9347 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9348 (emit_insxl): Handle all modes for consistency.
9350 2011-02-24 Richard Henderson <rth@redhat.com>
9352 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9353 (alpha_expand_unaligned_load): Likewise.
9354 (alpha_expand_unaligned_store): Likewise.
9355 (alpha_expand_unaligned_load_words): Likewise.
9356 (alpha_expand_unaligned_store_words): Likewise.
9357 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9358 (alpha_split_lock_test_and_set_12): Likewise.
9359 (print_operand, alpha_fold_builtin_extxx): Likewise.
9360 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9361 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9362 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9363 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9364 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9365 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9366 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9367 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9368 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9369 (extwl, extll, extql): Similarly.
9370 (inswh, inslh, insqh): Similarly.
9371 (mskbl, mskwl, mskll, mskql): Similarly.
9372 (mskwh, msklh, mskqh): Similarly.
9374 2011-02-24 Richard Henderson <rth@redhat.com>
9376 * config/alpha/alpha.md (attribute isa): Add er, ner.
9377 (attribute enabled): Handle them.
9378 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9380 2011-02-24 Richard Henderson <rth@redhat.com>
9382 * config/alpha/alpha.md (attribute isa): Add vms.
9383 (attribute enabled): Handle it.
9384 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9385 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9386 (*movtf): Rename from *movtf_internal for consistency.
9387 (*movsi): Merge with *movsi_nt_vms.
9388 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9389 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9390 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9391 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9393 2011-02-24 Richard Henderson <rth@redhat.com>
9395 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9396 (extendqisi2, extendhisi2): Likewise.
9397 (extendqidi2): Simplify BWX/non-BWX expansions.
9398 (extendhidi2): Similarly.
9400 2011-02-24 Richard Henderson <rth@redhat.com>
9402 * config/alpha/alpha.md (attribute isa): New.
9403 (attribute enabled): New.
9404 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9405 (zero_extendqisi2, zero_extendqidi2): Similarly.
9406 (zero_extendhisi2, zero_extendhidi2): Similarly.
9407 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9409 2011-02-24 Richard Henderson <rth@redhat.com>
9411 * config/alpha/predicates.md (input_operand): Revert last change;
9412 update comment to mention 32-bit VMS rather than Windows.
9414 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9416 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9417 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9418 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9419 * passes.c (init_optimization_passes): Move
9420 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9422 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9424 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9426 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9428 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9431 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9434 * simplify-rtx.c (simplify_const_unary_operation): Call
9435 real_convert when changing mode class with FLOAT_EXTEND.
9437 2011-03-24 Nick Clifton <nickc@redhat.com>
9439 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9440 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9441 * config/rx/rx.c (rx_option_override): Set align_jumps,
9442 align_loops and align_labels if not set by the user.
9443 (rx_align_for_label): New function.
9444 (rx_max_skip_for_label): New function.
9445 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9446 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9447 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9448 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9449 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9451 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9453 PR rtl-optimization/48263
9454 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9455 and original commutative_p handling. Use maybe_gen_insn.
9457 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9459 * reload.c (find_reloads_subreg_address): Add address_reloaded
9460 parameter and return true there if the full address has been
9462 (find_reloads_toplev): Pass address_reloaded flag.
9463 (find_reloads_address_1): Don't use address_reloaded parameter.
9465 2011-03-24 Jeff Law <law@redhat.com>
9467 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9468 unused variable "ann".
9469 (remove_unused_locals): Likewise.
9471 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9474 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9477 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9479 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9480 for invalid symbolic addresses.
9481 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9484 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9486 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9487 the argument in calls to fold_truth_not_expr.
9489 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9491 * tree.c (record_node_allocation_statistics): New function.
9492 (make_node_stat, copy_node_stat, build_string): Call it.
9493 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9494 (build1_stat, build_omp_clause): Likewise.
9496 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9498 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9501 2011-03-24 Richard Guenther <rguenther@suse.de>
9503 PR tree-optimization/48271
9504 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9505 blocks that still exist.
9507 2011-03-24 Richard Guenther <rguenther@suse.de>
9509 PR tree-optimization/48270
9510 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9511 not free datarefs before ddrs.
9513 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9515 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9516 from the address built for a reference with variable offset.
9518 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9521 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9522 alternatives that can be handled with movq or movabsq insn.
9523 (*movdf_internal): Disable for !TARGET_64BIT.
9524 (*movdf_internal_nointeger): Ditto.
9525 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9527 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9529 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9530 (FUNCTION_ARG_ADVANCE): Likewise.
9531 * tm.texi.in: Change references to them to hook references.
9532 * tm.texi: Regenerate.
9533 * targhooks.c (default_function_arg): Eliminate check for target macro.
9534 (default_function_incoming_arg): Likewise.
9535 (default_function_arg_advance): Likewise.
9536 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9537 (function_arg_advance): Likewise.
9538 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9540 2011-03-24 Richard Guenther <rguenther@suse.de>
9543 * tree-object-size.c (addr_object_size): Do not double-account
9544 for MEM_REF offsets.
9546 2011-03-24 Diego Novillo <dnovillo@google.com>
9548 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9549 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9550 (lto_input_data_block): Move from lto-opts.c. Make extern.
9552 (lto_input_string): Rename from input_string. Make extern.
9554 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9555 output_string_with_length.
9556 Output 0 to indicate a non-NULL string. Update all callers to
9558 (lto_output_string): Rename from output_string. Make extern.
9560 (lto_output_decl_state_streams): Make extern.
9561 (lto_output_decl_state_refs): Make extern.
9562 * lto-streamer.h (lto_input_string): Declare.
9563 (lto_input_data_block): Declare.
9564 (lto_output_string): Declare.
9565 (lto_output_string_with_length): Declare.
9566 (lto_output_decl_state_streams): Declare.
9567 (lto_output_decl_state_refs): Declare.
9569 2011-03-24 Richard Guenther <rguenther@suse.de>
9571 PR tree-optimization/46562
9572 * tree.c (build_invariant_address): New function.
9573 * tree.h (build_invariant_address): Declare.
9574 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9575 a renamed function moved ...
9576 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9577 Take valueization callback parameter.
9578 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9579 * gimple-fold.h: New file.
9580 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9581 (ccp_fold, fold_const_aggregate_ref,
9582 fold_ctor_reference, fold_nonarray_ctor_reference,
9583 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9584 get_base_constructor): Move ...
9585 * gimple-fold.c: ... here.
9586 (gimple_fold_stmt_to_constant_1): New function
9587 split out from ccp_fold. Take a valueization callback parameter.
9588 Valueize all operands.
9589 (gimple_fold_stmt_to_constant): New wrapper function.
9590 (fold_const_aggregate_ref_1): New function split out from
9591 fold_const_aggregate_ref. Take a valueization callback parameter.
9592 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9593 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9594 invariant POINTER_PLUS_EXPRs to invariant form.
9595 (vn_valueize): New function.
9596 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9597 * tree-vrp.c (vrp_valueize): New function.
9598 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9599 to fold statements to constants.
9600 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9601 function declarations.
9602 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9603 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9605 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9607 * config/h8300/predicates.md (jump_address_operand): Fix register
9610 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9612 * doc/invoke.texi (max-stores-to-sink): Document.
9613 * params.h (MAX_STORES_TO_SINK): Define.
9614 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9615 if either vectorization or if-conversion is disabled.
9616 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9617 tree-vect-data-refs.c vect_equal_offsets.
9618 (dr_equal_offsets_p): New function.
9619 (find_data_references_in_bb): Remove static.
9620 * tree-data-ref.h (find_data_references_in_bb): Declare.
9621 (dr_equal_offsets_p): Likewise.
9622 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9623 (vect_drs_dependent_in_basic_block): Update calls to
9625 (vect_check_interleaving): Likewise.
9626 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9627 (cond_if_else_store_replacement): Rename to...
9628 (cond_if_else_store_replacement_1): ... this. Change arguments and
9630 (cond_if_else_store_replacement): New function.
9631 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9632 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9634 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9637 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9638 to subtract lower bound instead of GEN_INT().
9640 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9645 * doc/extend.texi (Alignment): Move section to match order in TOC.
9646 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9647 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9649 2011-03-23 Jeff Law <law@redhat.com>
9651 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9652 before removing the edge.
9654 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9655 it may have been freed by redirect_branch_edge or
9656 redirect_edge_succ_nodup.
9658 2011-03-23 Richard Guenther <rguenther@suse.de>
9660 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9661 (check_va_list_escapes): Likewise.
9662 (check_all_va_list_escapes): Likewise.
9664 2011-03-23 Richard Guenther <rguenther@suse.de>
9666 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9667 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9668 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9669 (alias.o): Likewise.
9670 (ipa-type-escape.o): Remove.
9671 (ipa-struct-reorg.o): Likewise.
9672 (GTFILES): Remove ipa-struct-reorg.c.
9673 * alias.c: Do not include ipa-type-escape.h.
9674 * tree-ssa-alias.c: Likewise.
9675 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9676 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9677 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9678 and ipa-type-escape passes.
9679 * tree-pass.h (pass_ipa_type_escape): Remove.
9680 (pass_ipa_struct_reorg): Likewise.
9681 * ipa-struct-reorg.h: Remove.
9682 * ipa-struct-reorg.c: Likewise.
9683 * ipa-type-escape.h: Likewise.
9684 * ipa-type-escape.c: Likewise.
9685 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9686 (--param struct-reorg-cold-struct-ratio): Likewise.
9687 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9688 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9689 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9691 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9693 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9694 cpu attribute value.
9695 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9696 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9697 * config/s390/s390.c (processor_flags_table): New constant array.
9698 (s390_handle_arch_option): Remove.
9699 (s390_handle_option): Remove s390_handle_arch_option invocations
9700 and OPT_mwarn_framesize_ handling.
9701 (s390_option_override): Remove s390_handle_arch_option invocation.
9702 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9704 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9705 * config/s390/s390.opt (s390_tune, s390_arch)
9706 (march=): Replace s390_arch_option enum and values with
9707 processor_type. Set variable name to s390_arch. Set
9708 initialization value.
9709 (mtune=): Replace s390_arch_option with processor_type. Set
9710 variable name to s390_tune. Set initialization value.
9712 2011-03-23 Julian Brown <julian@codesourcery.com>
9714 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9715 accesses which are not naturally aligned.
9717 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9720 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9722 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9724 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9725 parameter from "int" to "enum insn_code".
9726 (expand_operand_type): New enum.
9727 (expand_operand): New structure.
9728 (create_expand_operand): New function.
9729 (create_fixed_operand, create_output_operand): Likewise
9730 (create_input_operand, create_convert_operand_to): Likewise.
9731 (create_convert_operand_from, create_address_operand): Likewise.
9732 (create_integer_operand): Likewise.
9733 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9734 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9735 (expand_insn, expand_jump_insn): Likewise.
9736 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9737 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9738 (expand_movstr, expand_builtin___clear_cache): Likewise.
9739 (expand_builtin_lock_release): Likewise.
9740 * explow.c (allocate_dynamic_stack_space): Likewise.
9741 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9742 and use the default handling in that case.
9743 * expmed.c (check_predicate_volatile_ok): Delete.
9744 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9745 (emit_cstore): Likewise.
9746 * expr.c (emit_block_move_via_movmem): Likewise.
9747 (set_storage_via_setmem, expand_assignment): Likewise.
9748 (emit_storent_insn, try_casesi): Likewise.
9749 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9750 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9751 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9752 (expand_twoval_unop, expand_twoval_binop): Likewise.
9753 (expand_unop_direct, emit_indirect_jump): Likewise.
9754 (emit_conditional_move, vector_compare_rtx): Likewise.
9755 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9756 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9757 (expand_sync_lock_test_and_set): Likewise.
9758 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9759 (emit_unop_insn): Likewise.
9760 (expand_copysign_absneg): Change icode to an insn_code.
9761 (create_convert_operand_from_type): New function.
9762 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9763 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9764 (expand_insn, expand_jump_insn): Likewise.
9765 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9766 than const_int_operand for operand 2.
9768 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9770 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9773 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9775 * emit-rtl.c (emit_pattern_before_noloc): New function.
9776 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9777 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9778 (emit_pattern_after_noloc): New function.
9779 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9780 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9782 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9784 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9785 (__ffsDI2): Likewise.
9787 2011-03-22 Richard Henderson <rth@redhat.com>
9789 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9790 of !TARGET_ABI_OPEN_VMS.
9791 (alpha_trampoline_init, alpha_start_function): Likewise.
9792 (alpha_expand_epilogue, alpha_file_start): Likewise.
9793 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9794 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9795 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9796 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9797 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9799 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9801 * config/s390/s390-opts.h: New.
9802 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9803 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9804 s390_stack_guard): Remove.
9805 (s390_handle_arch_option): Return void. Take enum
9806 s390_arch_option value instead of string and searching array.
9807 (s390_handle_option): Don't assert that global structures are in
9808 use. Access variables via opts pointer. Use error_at. Don't use
9809 sscanf for -mstack-guard= or -mstack-size=. Update call to
9810 s390_handle_arch_option.
9811 (s390_option_override): Update call to s390_handle_arch_option.
9812 (s390_emit_prologue): Use %d format for s390_stack_size in
9813 diagnostic. Use %wd for HOST_WIDE_INT.
9814 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9815 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9816 * config/s390/s390.opt (config/s390/s390-opts.h): New
9817 HeaderInclude entry.
9818 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9819 s390_arch_flags, s390_warn_framesize): New Variable entries.
9820 (s390_arch_option): New Enum and EnumValue entries.
9821 (march=): Use Enum instead of Var.
9822 (mstack-guard=, mstack-size=): Use UInteger and Var.
9825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9827 * config/score/score.c (score_handle_option): Don't assert that
9828 global structures are in use. Access target_flags via opts
9829 pointer. Use value of -march= option to determine target_flags
9831 * config/score/score.opt (march=): Use Enum.
9832 (score_arch): New Enum and EnumValue entries.
9834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9836 * config/mep/mep.c (option_mtiny_specified): Remove.
9837 (mep_option_override): Move register handling for -mivc2 from
9838 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9839 instead of option_mtiny_specified.
9840 (mep_handle_option): Access target_flags via opts pointer. Don't
9841 assert that global structures are in use. Defer part of -mivc2
9842 handling and move it to mep_option_override.
9843 * config/mep/mep.opt (IVC2): New Mask entry.
9844 (mivc2): Use Var and Defer instead of Mask.
9846 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9848 * config/v850/v850-opts.h: New.
9849 * config/v850/v850.c (small_memory): Replace with
9850 small_memory_physical_max array. Make that array static const.
9851 (v850_handle_memory_option): Take integer value of argument. Take
9852 gcc_options pointer, option text and location. Return void.
9853 Update for changes to small memory structures.
9854 (v850_handle_option): Access target_flags via opts pointer. Don't
9855 assert that global structures are in use. Update calls to
9856 v850_handle_memory_option.
9857 (v850_encode_data_area): Update references to small memory settings.
9858 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9859 (enum small_memory_type): Move to v850-opts.h.
9860 * config/v850/v850.opt (config/v850/v850-opts.h): New
9861 HeaderInclude entry.
9862 (small_memory_max): New Variable entry.
9863 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9864 (mtda, mzda): Likewise.
9866 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9868 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9869 pointer. Don't assert that global structures are in use.
9871 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9873 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9874 via opts pointer. Don't assert that global structures are in use.
9876 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9878 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9879 (munix=93): Use Var.
9880 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9881 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9882 * config/pa/pa-opts.h: New.
9883 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9884 (pa_handle_option): Don't assert that global structures are in
9885 use. Access target_flags via opts pointer. Don't handle
9886 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9888 (pa_option_override): Handle deferred OPT_mfixed_range_.
9890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9892 * config/mn10300/mn10300-opts.h: New.
9893 * config/mn10300/mn10300.c (mn10300_processor,
9894 mn10300_tune_string): Remove.
9895 (mn10300_handle_option): Don't assert that global structures are
9896 in use. Access mn10300_processor via opts pointer. Don't handle
9898 * config/mn10300/mn10300.h (enum processor_type): Move to
9900 (mn10300_processor): Remove.
9901 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9902 HeaderInclude entry.
9903 (mn10300_processor): New Variable entry.
9906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9908 * config/microblaze/microblaze.c: Don't include opts.h.
9909 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9910 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9911 (mno-clearbss): Use Var and Warn.
9913 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9915 * config/m32r/m32r-opts.h: New.
9916 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9917 (m32r_handle_option): Don't assert that global structures are in
9918 use. Access target_flags and m32r_cache_flush_func via opts
9919 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9920 OPT_mno_flush_trap here.
9921 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9922 include of m32r-opts.h.
9923 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9924 HeaderInclude entry.
9925 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9926 (mmodel=): Use Enum and Var.
9927 (m32r_model): New Enum and EnumValue entries.
9928 (mno-flush-trap): Use Var.
9929 (msdata=): Use Enum and Var.
9930 (m32r_sdata): New Enum and EnumValue entries.
9932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9934 * config/m32c/m32c.c: Don't include opts.h.
9935 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9936 m32c_handle_option): Remove.
9937 (m32c_option_override): Check global_options_set.x_target_memregs
9938 instead of target_memregs_set.
9939 * config/m32c/m32c.h (target_memregs): Remove.
9940 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9943 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9945 * config/iq2000/iq2000-opts.h: New.
9946 * config/iq2000/iq2000.c: Don't include opts.h.
9947 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9948 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9949 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9950 HeaderInclude entry.
9951 (iq2000_tune): New Variable entry.
9952 (march=): Add comment. Use Enum.
9953 (iq2000_arch): New Enum and EnumValue entries.
9954 (mcpu=): Use Enum and Var.
9955 (iq2000_tune): New Enum and EnumValue entries.
9957 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9959 * config/ia64/ia64-opts.h: New.
9960 * config/ia64/ia64.c (ia64_tune): Remove.
9961 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9963 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9964 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9965 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9966 HeaderInclude entry.
9967 (ia64_tune): New Variable entry.
9968 (mfixed-range=): Use Defer and Var.
9969 (mtune=): Use Enum and Var.
9970 (ia64_tune): New Enum and EnumValue entries.
9972 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9974 * config/frv/frv-opts.h: New.
9975 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9977 (frv_cpu_type): Remove.
9978 * config/frv/frv.c: Don't include opts.h.
9979 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9980 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9981 (frv_cpu_type): New Variable entry.
9982 (frv_cpu): New Enum and EnumValue entries.
9984 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9986 * config/cris/cris.c (cris_handle_option): Access target_flags via
9987 opts pointer. Don't assert that global structures are in use.
9988 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9989 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9991 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9993 * config/bfin/bfin-opts.h: New.
9994 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9995 bfin_si_revision, bfin_workarounds): Remove.
9996 (bfin_cpus): Make static const.
9997 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9998 not bfin_lib_id_given.
9999 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10000 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10001 pointer. Use error_at. Don't assert that global structures are in use.
10002 * config/bfin/bfin.h: Include bfin-opts.h.
10003 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10004 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10005 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10006 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10011 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10012 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10013 or -msoft-float here.
10014 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10015 -msoft-float and -mhard-float.
10016 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10017 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10019 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10021 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10022 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10024 (LIBGCC_SPEC): Don't handle -msoft-float.
10025 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10027 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10029 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10030 -mfloat-abi=*, not -msoft-float and -mhard-float.
10031 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10033 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10034 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10035 mhard-float and msoft-float.
10036 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10037 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10038 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10039 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10041 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10042 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10044 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10046 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10049 2011-03-22 Richard Henderson <rth@redhat.com>
10051 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10052 TARGET_ABI_WINDOWS_NT.
10053 (alpha_output_function_end_prologue): Likewise.
10054 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10055 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10056 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10057 (trap, *movsi_nt_vms): Likewise.
10058 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10059 (*tablejump_osf_nt_internal): Remove.
10060 * config/alpha/predicates.md (input_operand): Only test Pmode.
10062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10064 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10065 via opts pointer. Use error_at. Don't assert that global
10066 structures are in use.
10068 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10070 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10071 (ix86_handle_option): Access ix86_isa_flags and
10072 ix86_isa_flags_explicit via opts pointer. Don't assert that
10073 global structures are in use.
10074 (ix86_function_specific_save, ix86_function_specific_restore):
10075 Update ix86_isa_flags_explicit field name.
10076 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10077 (ix86_isa_flags_explicit): Rename TargetSave entry to
10078 x_ix86_isa_flags_explicit.
10080 2011-03-22 Richard Henderson <rth@redhat.com>
10082 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10083 (alpha_option_override, direct_return): Likewise.
10084 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10085 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10086 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10087 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10088 (alpha_expand_epilogue, alpha_end_function): Likewise.
10089 (alpha_init_libfuncs): Likewise.
10090 (struct machine_function): Remove unicosmk members.
10091 (print_operand) ['t']: Remove.
10092 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10093 unicosmk_output_module_name, unicosmk_output_common,
10094 current_section_align, unicosmk_output_text_section_asm_op,
10095 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10096 unicosmk_section_type_flags, unicosmk_unique_section,
10097 unicosmk_asm_named_section, unicosmk_insert_attributes,
10098 unicosmk_output_align, unicosmk_defer_case_vector,
10099 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10100 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10101 unicosmk_output_ssib, unicosmk_add_call_info_word,
10102 unicosmk_extern_head, unicosmk_output_default_externs,
10103 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10104 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10105 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10106 * config/alpha/alpha-protos.h: Update.
10107 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10108 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10109 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10110 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10111 (*mulsi_se, mulvsi3): Likewise.
10112 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10113 (*divmodsi_internal, call, call_value, realign): Likewise.
10114 (moddi3, umoddi3): Likewise; remove duplicate expander.
10115 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10116 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10117 (*movdi_nofix): Remove r/U alternative.
10118 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10119 * config/alpha/constraints.md ("U"): Remove.
10120 * config/alpha/predicates.md (call_operand"): Don't test
10121 TARGET_ABI_UNICOSMK.
10123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10125 * target.def (handle_option): Take gcc_options and
10126 cl_decoded_option pointers and location_t.
10127 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10128 * doc/tm.texi: Regenerate.
10129 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10130 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10131 * lto-opts.c (lto_reissue_options): Generate option structure for
10132 targetm.handle_option call.
10133 * opts.c (target_handle_option): Update call to
10134 targetm.handle_option. Remove assertions about values now passed
10136 * targhooks.c (default_target_handle_option): New.
10137 * targhooks.h (default_target_handle_option): Declare.
10138 * config/alpha/alpha.c: Include opts.h.
10139 (alpha_handle_option): Update to new hook interface.
10140 * config/arm/arm.c: Include opts.h.
10141 (arm_handle_option): Update to new hook interface.
10142 * config/arm/t-arm (arm.o): Update dependencies.
10143 * config/bfin/bfin.c: Include opts.h.
10144 (bfin_handle_option): Update to new hook interface.
10145 * config/cris/cris.c: Include opts.h.
10146 (cris_handle_option): Update to new hook interface.
10147 * config/frv/frv.c: Include opts.h.
10148 (frv_handle_option): Update to new hook interface.
10149 * config/i386/i386.c: Include opts.h.
10150 (ix86_handle_option): Update to new hook interface.
10151 (ix86_valid_target_attribute_inner_p): Generate option structure
10152 for call to ix86_handle_option.
10153 * config/i386/t-i386 (i386.o): Update dependencies.
10154 * config/ia64/ia64.c: Include opts.h.
10155 (ia64_handle_option): Update to new hook interface.
10156 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10157 * config/iq2000/iq2000.c: Include opts.h.
10158 (iq2000_handle_option): Update to new hook interface.
10159 * config/m32c/m32c.c: Include opts.h.
10160 (m32c_handle_option): Update to new hook interface.
10161 * config/m32r/m32r.c: Include opts.h.
10162 (m32r_handle_option): Update to new hook interface.
10163 * config/m68k/m68k.c: Include opts.h.
10164 (m68k_handle_option): Update to new hook interface.
10165 * config/mep/mep.c: Include opts.h.
10166 (mep_handle_option): Update to new hook interface.
10167 * config/microblaze/microblaze.c: Include opts.h.
10168 (microblaze_handle_option): Update to new hook interface.
10169 * config/mips/mips.c: Include opts.h.
10170 (mips_handle_option): Update to new hook interface.
10171 * config/mn10300/mn10300.c: Include opts.h.
10172 (mn10300_handle_option): Update to new hook interface.
10173 * config/pa/pa.c: Include opts.h.
10174 (pa_handle_option): Update to new hook interface.
10175 * config/pdp11/pdp11.c: Include opts.h.
10176 (pdp11_handle_option): Update to new hook interface.
10177 * config/rs6000/rs6000.c: Include opts.h.
10178 (rs6000_handle_option): Update to new hook interface.
10179 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10180 * config/rx/rx.c: Include opts.h.
10181 (rx_handle_option): Update to new hook interface.
10182 * config/s390/s390.c: Include opts.h.
10183 (s390_handle_option): Update to new hook interface.
10184 * config/score/score.c: Include opts.h.
10185 (score_handle_option): Update to new hook interface.
10186 * config/sh/sh.c: Include opts.h.
10187 (sh_handle_option): Update to new hook interface.
10188 * config/sparc/sparc.c: Include opts.h.
10189 (sparc_handle_option): Update to new hook interface.
10190 * config/v850/v850.c: Include opts.h.
10191 (v850_handle_option): Update to new hook interface.
10193 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10195 * gcc.c (driver_unknown_option_callback): Only permit and save
10196 unknown -Wno- options.
10197 (driver_wrong_lang_callback): Save options directly instead of via
10198 driver_unknown_option_callback.
10200 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10202 * combine.c (simplify_set): Try harder to find the best CC mode when
10203 simplifying a nested COMPARE on the RHS.
10205 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10207 * config/alpha/gnu.h: Remove.
10208 * config/arc: Remove directory.
10209 * config/arm/netbsd.h: Remove.
10210 * config/arm/t-pe: Remove.
10211 * config/crx: Remove directory.
10212 * config/i386/netbsd.h: Remove.
10213 * config/m68hc11: Remove directory.
10214 * config/m68k/uclinux-oldabi.h: Remove.
10215 * config/mcore/mcore-pe.h: Remove.
10216 * config/mcore/t-mcore-pe: Remove.
10217 * config/netbsd-aout.h: Remove.
10218 * config/rs6000/gnu.h: Remove.
10219 * config/sh/sh-symbian.h: Remove.
10220 * config/sh/symbian-base.c: Remove.
10221 * config/sh/symbian-c.c: Remove.
10222 * config/sh/symbian-cxx.c: Remove.
10223 * config/sh/symbian-post.h: Remove.
10224 * config/sh/symbian-pre.h: Remove.
10225 * config/sh/t-symbian: Remove.
10226 * config/svr3.h: Remove.
10227 * config/vax/netbsd.h: Remove.
10228 * config.build: Don't handle i[34567]86-*-pe.
10229 * config.gcc: Remove handling of deprecations for most deprecated
10231 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10232 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10233 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10234 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10235 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10236 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10238 * config.host: Don't handle i[34567]86-*-pe.
10239 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10240 (ASM_SPEC32): Don't handle -mcall-gnu.
10241 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10243 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10244 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10245 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10246 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10247 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10248 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10249 conditional on SYMBIAN.
10250 * configure.ac: Don't handle powerpc*-*-gnu*.
10251 * configure: Regenerate.
10252 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10253 * doc/install-old.texi (m6811, m6812): Don't mention.
10254 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10255 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10256 (m68k-uclinuxoldabi): Don't mention.
10257 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10259 (-mcall-gnu): Remove.
10260 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10261 families): Remove constraint documentation.
10263 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10265 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10266 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10267 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10269 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10272 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10273 vector when peeking at the next token for vector, don't expand the
10276 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10278 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10279 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10280 * config/avr/avr.c (init_cumulative_args)
10281 (avr_function_arg_advance): Use it.
10282 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10284 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10285 (avr_function_ok_for_sibcall): ...this new function.
10286 (avr_lookup_function_attribute1): New static Function.
10287 (avr_naked_function_p, interrupt_function_p)
10288 (signal_function_p, avr_OS_task_function_p)
10289 (avr_OS_main_function_p): Use it.
10290 * config/avr/avr.md ("sibcall", "sibcall_value")
10291 ("sibcall_epilogue"): New expander.
10292 ("*call_insn", "*call_value_insn"): New insn.
10293 ("call_insn", "call_value_insn"): Remove
10294 ("call", "call_value", "epilogue"): Change expander to handle
10297 2011-03-21 Nick Clifton <nickc@redhat.com>
10299 * doc/invoke.texi (Overall Options): Move closing brace to end of
10301 (Optimization Options): Add missing @gol.
10302 (Directory Options): Likewise.
10303 (i386 and x86-64 Options): Likewise.
10304 (RS6000 and PowerPC Options): Likewise.
10305 (i386 and x86-64 Windows Options): Likewise.
10306 (V850 Options): Add text missing from descriptions.
10308 2011-03-22 Richard Henderson <rth@redhat.com>
10310 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10311 (avr_incoming_return_addr_rtx): New.
10312 (emit_push_byte): New.
10313 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10314 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10315 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10316 (emit_pop_byte): New.
10317 (expand_epilogue): Use it. Pop frame pointer by bytes.
10318 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10319 (INCOMING_RETURN_ADDR_RTX): New.
10320 (INCOMING_FRAME_SP_OFFSET): New.
10321 (ARG_POINTER_CFA_OFFSET): New.
10322 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10323 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10326 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10328 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10330 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10331 (FUNCTION_ARG_ADVANCE): Likewise.
10332 * tm.texi.in: Change references to them to hook references.
10333 * tm.texi: Regenerate.
10334 * targhooks.c (default_function_arg): Eliminate check for target
10336 (default_function_incoming_arg): Likewise.
10337 (default_function_arg_advance): Likewise.
10338 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10339 (function_arg_advance): Likewise.
10340 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10342 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10344 * tree.c (build_call_1): New function.
10345 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10347 2011-03-22 Richard Guenther <rguenther@suse.de>
10349 PR tree-optimization/48228
10350 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10351 for single-arg PHIs.
10353 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10355 PR rtl-optimization/48143
10356 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10357 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10358 sse2_cvtps2pd): Likewise.
10360 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10362 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10364 2011-03-22 Richard Guenther <rguenther@suse.de>
10366 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10367 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10368 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10369 and REALIGN_LOAD_EXPR.
10370 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10371 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10372 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10373 DOT_PROD_EXPR case ...
10374 (expand_expr_real_2): ... here.
10375 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10376 and REALIGN_LOAD_EXPR.
10377 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10378 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10379 (vect_create_epilog_for_reduction): Likewise.
10380 (vectorizable_reduction): Likewise.
10381 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10382 * tree-vect-stmts.c (vectorizable_load): Likewise.
10384 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10386 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10388 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10390 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10391 handling for PLTOFF/GOTOFF.
10393 2011-03-22 Nick Clifton <nickc@redhat.com>
10395 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10396 trailing backslash from the end of the macro definition.
10398 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10400 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10403 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10405 * expr.h (prepare_operand): Move to...
10406 * optabs.h (prepare_operand): ...here and change the insn code
10407 parameter from "int" to "enum insn_code".
10408 (insn_operand_matches): Declare.
10409 * expr.c (init_expr_target): Use insn_operand_matches.
10410 (compress_float_constant): Likewise.
10411 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10412 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10413 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10414 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10416 (gen_cond_trap): Likewise.
10417 (prepare_operand): Likewise. Change icode to an insn_code.
10418 (insn_operand_matches): New function.
10419 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10420 * reload1.c (gen_reload): Likewise.
10421 * targhooks.c (default_secondary_reload): Likewise.
10423 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10425 * config/alpha/alpha.md (unspec): New define_c_enum.
10428 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10431 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10432 between a call and its CALL_ARG_LOCATION note.
10434 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10436 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10438 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10442 * c-common.c (shorten_compare): If primopN is first sign-extended
10443 to opN and then zero-extended to result type, set primopN to opN.
10445 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10447 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10448 for barrier handlers.
10450 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10452 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10453 UNSPEC constants to be in the unspec enumeration, and redefine
10454 all UNSPECV constants to be in the unspecv enumeration, so that
10455 dumps print which unspec/unspec_volatile this is.
10456 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10457 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10458 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10459 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10460 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10462 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10463 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10464 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10465 * config/rs6000/sync.md (isync, lwsync): Ditto.
10467 2011-03-21 Richard Guenther <rguenther@suse.de>
10469 * params.def (lto-min-partition): Fix typo.
10471 2011-03-21 Richard Guenther <rguenther@suse.de>
10474 * c-decl.c (grokdeclarator): Drop to the main variant only
10475 for array types. Drop flag_gen_aux_info check.
10477 2011-03-21 Richard Guenther <rguenther@suse.de>
10479 PR translation/47911
10480 * params.def (lto-partitions): Fix typo.
10481 (lto-min-partition): Fix wording.
10483 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10485 * config/rs6000/t-freebsd: Remove duplication from file.
10487 2011-03-21 Richard Guenther <rguenther@suse.de>
10489 PR middle-end/47661
10490 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10492 2011-03-21 Richard Guenther <rguenther@suse.de>
10495 * params.def (lto-partitions): Require at least 1 partition.
10497 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10499 * gthr-solaris.h: Remove.
10500 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10501 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10502 (LIB_SPEC): Likewise.
10503 * config/sol2.opt (threads): Remove.
10504 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10505 (sparc*-*-solaris2*): Likewise.
10506 * configure.ac (enable_threads): Enable solaris support.
10507 * configure: Regenerate.
10508 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10509 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10512 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10514 * config.gcc: Obsolete *-*-solaris2.8*.
10515 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10517 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10520 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10521 reference. Solaris 8 perl works.
10523 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10526 * doc/install.texi (Prerequisites): Move jar etc. up.
10527 Explain support library version requirements.
10529 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10532 * doc/install.texi (Prerequisites): Move Perl to build
10533 requirements. Always necessary on Solaris 2 with Sun ld.
10535 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10537 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10539 (Specific, i?86-*-solaris2.[89]): Likewise.
10540 (Specific, i?86-*-solaris2.10): Likewise.
10541 (Specific, mips-sgi-irix6): Likewise.
10542 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10543 Update for binutils 2.21.
10545 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10547 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10548 Allow -fuse-linker-plugin for non-default plugin linker.
10549 * configure: Regenerate.
10551 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10554 * gengtype.c (files_rules): Added rule for cp/parser.h.
10556 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10559 * config/s390/s390.c (s390_delegitimize_address): Don't call
10560 lowpart_subreg if orig_x has BLKmode.
10562 2011-03-21 Kai Tietz <ktietz@redhat.com>
10565 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10566 * tree.h (attribute_spec): Add new member affects_type_identity.
10567 * attribs.c (empty_attribute_table): Adjust attribute_spec
10569 * config/alpha/alpha.c: Likewise.
10570 * config/arc/arc.c: Likewise.
10571 * config/arm/arm.c: Likewise.
10572 * config/avr/avr.c: Likewise.
10573 * config/bfin/bfin.c: Likewise.
10574 * config/crx/crx.c: Likewise.
10575 * config/darwin.h: Likewise.
10576 * config/h8300/h8300.c: Likewise.
10577 * config/i386/cygming.h: Likewise.
10578 * config/i386/i386.c: Likewise.
10579 * config/ia64/ia64.c: Likewise.
10580 * config/m32c/m32c.c: Likewise.
10581 * config/m32r/m32r.c: Likewise.
10582 * config/m68hc11/m68hc11.c: Likewise.
10583 * config/m68k/m68k.c: Likewise.
10584 * config/mcore/mcore.c: Likewise.
10585 * config/mep/mep.c: Likewise.
10586 * config/microblaze/microblaze.c: Likewise.
10587 * config/mips/mips.c: Likewise.
10588 * config/rs6000/rs6000.c: Likewise.
10589 * config/rx/rx.c: Likewise.
10590 * config/sh/sh.c: Likewise.
10591 * config/sol2.h: Likewise.
10592 * config/sparc/sparc.c: Likewise.
10593 * config/spu/spu.c: Likewise.
10594 * config/stormy16/stormy16.c: Likewise.
10595 * config/v850/v850.c: Likewise.
10597 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10599 * simplify-rtx.c (simplify_binary_operation_1): Handle
10600 (xor (and A B) C) case when B and C are both constants.
10602 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10604 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10606 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10609 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10611 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10613 PR rtl-optimization/48156
10614 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10615 assume df and df_lr are not NULL.
10617 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10620 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10621 between a call and its CALL_ARG_LOCATION note.
10623 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10626 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10627 between a call and its corresponding CALL_ARG_LOCATION note.
10629 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10631 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10632 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10633 * haifa-sched.c (setup_ref_regs): Ditto.
10634 * caller-save.c (add_used_regs_1): Ditto.
10635 * dse.c (look_for_hardregs): Ditto.
10636 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10637 * sched-rgn.c (check_live_1): Ditto.
10639 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10641 * c-decl.c (diagnose_mismatched_decls): Give an error for
10642 redefining a typedef with variably modified type.
10644 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10646 * c-decl.c (grokfield): Don't allow typedefs for structures or
10647 unions with no tag by default.
10648 * doc/extend.texi (Unnamed Fields): Update.
10650 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10652 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10653 Rewrite using indirect functions.
10654 (lwp_slwpcb): Ditto.
10655 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10656 (avx_vinsertf128<mode>): Ditto.
10658 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10660 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10663 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10665 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10666 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10668 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10670 PR rtl-optimization/48170
10671 * gcse.c (hoist_code): Remove bogus asserts.
10673 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10675 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10676 computation for prologue/epilogue.
10678 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10680 * Makefile.in (check-consistency): Remove.
10682 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10685 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10686 arange_table_in_use is 0, but either text_section_used or
10687 cold_text_section_used is true. Don't call it if
10688 !info_section_emitted.
10690 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10692 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10693 FUNCTION_VALUE_REGNO_P): Remove.
10694 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10696 * config/avr/avr.c (avr_ret_register): Make static inline.
10697 (avr_function_value_regno_p): New function.
10698 (avr_libcall_value): Make static. Add 'func' argument.
10699 (avr_function_value): Make static. Rename 'func' argument to
10700 'fn_decl_or_type', forward it to avr_libcall_value. Call
10701 avr_ret_register function instead of RET_REGISTER macro.
10702 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10704 2011-03-18 Jason Merrill <jason@redhat.com>
10707 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10709 2011-03-18 Richard Guenther <rguenther@suse.de>
10711 * doc/install.texi (--enable-gold): Remove.
10712 (--with-plugin-ld): Document.
10713 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10715 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10717 PR middle-end/47790
10718 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10719 again after expansion changes.
10721 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10723 * combine.c (try_combine): Do simplification only call of
10724 subst() on i2 even when i1 is present. Update comments.
10726 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10728 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10729 and UNSPEC_PCREL_SYMOFF.
10731 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10733 * config/s390/s390.md: Use define_c_enum for the unspec constant
10736 2011-03-18 Richard Henderson <rth@redhat.com>
10737 Jakub Jelinek <jakub@redhat.com>
10740 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10741 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10743 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10745 PR middle-end/47725
10746 * combine.c (cant_combine_insn_p): Don't check zero/sign
10747 extended hard registers.
10749 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10751 PR middle-end/47725
10752 * combine.c (cant_combine_insn_p): Check zero/sign extended
10755 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10757 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10758 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10759 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10760 Change return type to bool.
10761 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10763 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10766 * var-tracking.c (prepare_call_arguments): If CALL target
10767 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10768 pc instead of looking it up using cselib_lookup and use
10769 Pmode for it if x has VOIDmode.
10770 * dwarf2out.c (gen_subprogram_die): If also both first and
10771 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10774 * function.c (assign_parms): For data.passed_pointer parms
10775 use MEM of data.entry_parm instead of data.entry_parm itself
10776 as DECL_INCOMING_RTL.
10777 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10778 also when passed and declared mode is the same, DECL_RTL
10779 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10782 2011-03-16 Jeff Law <law@redhat.com>
10784 PR rtl-optimization/37273
10785 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10786 handle them like argument loads from stack slots. Do not double
10787 count memory for memory constants and argument loads from stack slots.
10789 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10792 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10794 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10797 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10799 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10802 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10804 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10805 Clear call_arg_locations and call_arg_loc_last always.
10807 PR middle-end/48152
10808 * var-tracking.c (prepare_call_arguments): If argument needs to be
10809 passed by reference, adjust argtype and mode.
10811 2011-03-17 Richard Guenther <rguenther@suse.de>
10813 PR middle-end/48134
10814 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10815 a value make sure to fold the statement.
10817 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10820 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10821 return condition with !cfun->calls_alloca.
10823 2011-03-17 Richard Guenther <rguenther@suse.de>
10826 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10827 origin for decls in other ltrans units.
10828 (input_varpool_node): Likewise.
10830 2011-03-17 Richard Guenther <rguenther@suse.de>
10832 PR middle-end/48165
10833 * tree-object-size.c (compute_object_offset): Properly return
10834 the offset operand of MEM_REFs as sizetype.
10836 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10838 PR rtl-optimization/48141
10839 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10840 * dse.c: Include params.h.
10841 (active_local_stores_len): New variable.
10842 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10844 (record_store, check_mem_read_rtx): Decrease it when removing
10846 (scan_insn): Likewise. Increase it when adding to chain, if it
10847 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10848 set active_local_stores to NULL before the addition.
10849 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10851 PR rtl-optimization/48141
10852 * dse.c (record_store): If no positions are needed in an insn
10853 that cannot be deleted, at least unchain it from active_local_stores.
10855 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10858 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10859 (lookup_type_die_strip_naming_typedef): ... here.
10860 (get_context_die): Use it.
10861 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10862 the anonymous struct named by the naming typedef.
10864 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10867 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10868 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10870 2011-03-16 Jeff Law <law@redhat.com>
10872 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10873 check for operands of conditional. Allow type to be a pointer.
10875 2011-03-16 Richard Guenther <rguenther@suse.de>
10877 PR tree-optimization/48149
10878 * fold-const.c (fold_binary_loc): Fold
10879 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10881 2011-03-16 Richard Guenther <rguenther@suse.de>
10883 PR tree-optimization/26134
10884 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10885 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10886 (non_rewritable_mem_ref_base): Handle complex type component
10887 accesses, constrain offsets for vector and complex extracts
10890 2011-03-16 Richard Guenther <rguenther@suse.de>
10892 PR tree-optimization/48146
10893 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10894 operands avoiding the need for renaming.
10896 2011-03-16 Richard Guenther <rguenther@suse.de>
10898 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10899 constant folding. Move MEM_REF canonicalization first.
10900 Rely on fold_const_aggregate_ref for initializer folding.
10901 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10903 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10905 PR middle-end/48136
10906 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10907 arg0/arg1 or their arguments are always fold converted to matching
10910 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10913 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10916 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10917 Handle in-tree gold.
10918 (ld_vers): Extract binutils version for gold.
10919 (gcc_cv_ld_hidden): Handle gold here.
10920 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10921 * configure: Regenerate.
10922 * config.in: Regenerate.
10923 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10924 -fuse-linker-plugin otherwise.
10925 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10926 (LINK_COMMAND_SPEC): Use it.
10927 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10929 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10931 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10932 * calls.c: Remove debug.h include.
10933 (emit_call_1): Don't call virtual_call_token debug hook.
10934 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10935 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10936 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10937 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10938 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10939 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10940 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10941 dwarf2out_virtual_call): Remove.
10942 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10943 copy_call_info and virtual_call hooks.
10944 (dwarf2out_init): Don't initialize vcall_insn_table,
10945 debug_dcall_section and debug_vcall_section.
10946 (prune_unused_types): Don't mark nodes from dcall_table.
10947 (dwarf2out_finish): Don't output dcall or vcall tables.
10948 * final.c (final_scan_insn): Don't call direct_call or
10949 virtual_call debug hooks.
10950 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10951 virtual_call_token, copy_call_info and virtual_call hooks.
10952 (debug_nothing_uid): Remove prototype.
10953 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10954 copy_call_info and virtual_call hooks.
10955 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10956 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10957 * debug.c (do_nothing_debug_hooks): Likewise.
10958 (debug_nothing_uid): Remove.
10959 * doc/invoke.texi (-fenable-icf-debug): Remove.
10960 * common.opt (-fenable-icf-debug): Likewise.
10962 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10963 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10964 call's MEM. Handle functions returning aggregate through a hidden
10965 first pointer. For virtual calls add clobbered pc to call arguments
10967 * dwarf2out.c (gen_subprogram_die): Emit
10968 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10972 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10973 * rtl.h (ENTRY_VALUE_EXP): Define.
10974 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10975 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10976 * print-rtl.c (print_rtx): Likewise.
10977 * gengtype.c (adjust_field_rtx_def): Likewise.
10978 * var-tracking.c (vt_add_function_parameter): Adjust
10979 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10980 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10981 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10982 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10983 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10985 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10986 Call var_location debug hook even on CALL_INSNs.
10987 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10988 * rtl.def (ENTRY_VALUE): New.
10989 * dwarf2out.c: Include cfglayout.h.
10990 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10991 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10992 (struct call_arg_loc_node): New type.
10993 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10994 tail_call_site_count): New variables.
10995 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10996 DW_TAG_GNU_call_site_parameter.
10997 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10998 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10999 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11000 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11001 and DW_AT_GNU_all_source_call_sites.
11002 (mem_loc_descriptor): Handle ENTRY_VALUE.
11003 (add_src_coords_attributes): Don't add enything if
11004 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11005 (dwarf2out_abstract_function): Save and clear call_arg_location,
11006 call_site_count and tail_call_site_count around dwarf2out_decl call.
11007 (gen_call_site_die): New function.
11008 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11009 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11010 (dwarf2out_function_decl): Clear call_arg_locations,
11011 call_arg_loc_last, set call_site_count and tail_call_site_count
11012 to -1 and free block_map.
11013 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11014 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11015 followed by any real instructions.
11016 (dwarf2out_begin_function): Set call_site_count and
11017 tail_call_site_count to 0.
11018 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11019 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11020 attempt to force a DIE for it and worst case remove the attribute.
11021 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11022 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11024 * var-tracking.c: Include tm_p.h.
11025 (vt_stack_adjustments): For calls call note_register_arguments.
11026 (argument_reg_set): New variable.
11027 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11028 ensure the VALUE is resolved.
11029 (call_arguments): New variable.
11030 (prepare_call_arguments): New function.
11031 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11032 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11033 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11034 always use the best expression.
11035 (vt_expand_loc): Add ignore_cur_loc argument.
11036 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11037 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11038 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11039 note for all calls.
11040 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11041 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11042 argument. Don't call cselib_preserve_only_values and
11043 cselib_reset_table.
11044 (note_register_arguments): New function.
11045 (vt_initialize): Compute argument_reg_set. Call
11046 vt_add_function_parameters before processing basic blocks instead of
11047 afterwards. For calls call prepare_call_arguments before calling
11048 cselib_process_insn.
11049 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11050 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11051 (var-tracking.o): Depend on $(TM_P_H).
11052 * cfglayout.h (insn_scope): New prototype.
11053 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11054 * cfglayout.c (insn_scope): No longer static.
11055 * insn-notes.def (CALL_ARG_LOCATION): New.
11056 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11057 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11058 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11059 nothing for DECL_EXTERNAL BLOCK_VARS.
11061 2011-03-16 Alan Modra <amodra@gmail.com>
11064 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11065 create invalid offset address for vsx splat insn.
11066 * config/rs6000/predicates.md (splat_input_operand): New.
11067 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11069 2011-03-15 Xinliang David Li <davidxl@google.com>
11072 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11073 (normalize_preds): New function.
11074 (is_use_properly_guarded): Normalize def predicates.
11076 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11079 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11080 in the output template.
11082 2011-03-15 Richard Guenther <rguenther@suse.de>
11084 PR middle-end/47650
11085 * tree-pretty-print.c (dump_function_declaration): Properly
11086 dump unprototyped and varargs function types.
11088 2011-03-15 Richard Guenther <rguenther@suse.de>
11090 PR tree-optimization/13954
11091 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11094 2011-03-15 Richard Guenther <rguenther@suse.de>
11096 PR tree-optimization/48037
11097 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11098 selects into BIT_FIELD_REFs.
11099 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11102 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11104 PR tree-optimization/48129
11105 * builtins.c (fold_builtin_snprintf): Convert to type of
11106 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11107 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11109 2011-03-15 Richard Guenther <rguenther@suse.de>
11111 PR tree-optimization/41490
11112 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11113 value but with VUSE.
11114 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11116 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11117 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11118 * tree-tailcall.c (find_tail_calls): Ignore returns.
11120 2011-03-15 Richard Guenther <rguenther@suse.de>
11122 PR middle-end/48031
11123 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11124 or variable-indexed array accesses when in gimple form.
11126 2011-03-15 Richard Guenther <rguenther@suse.de>
11128 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11130 2011-03-15 Alan Modra <amodra@gmail.com>
11133 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11134 presume symbol_refs without a symbol_ref_decl are suitably
11135 aligned, nor other trees we may see here. Handle anchor symbols.
11136 (legitimate_constant_pool_address_p): Comment. Add mode param.
11137 Check cmodel=medium addresses. Adjust all calls.
11138 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11139 creating cmodel=medium optimized access to locals.
11140 * config/rs6000/constraints.md (R): Pass QImode to
11141 legitimate_constant_pool_address_p.
11142 * config/rs6000/predicates.md (input_operand): Pass mode to
11143 legitimate_constant_pool_address_p.
11144 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11147 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11150 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11151 64-bit constants being loaded into registers other than GPRs such
11152 as loading 0 into a VSX register.
11154 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11156 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11158 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11160 PR middle-end/47917
11161 * builtins.c (fold_builtin_snprintf): New function.
11162 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11163 (fold_builtin_4): Likewise.
11165 PR middle-end/38878
11166 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11167 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11168 and C - X == X also strip nops from +/-/p+ operand.
11169 When optimizing -X == C, fold C to arg0's type.
11172 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11173 emit it as add_AT_int instead of add_AT_unsigned.
11175 2011-03-14 Tom Tromey <tromey@redhat.com>
11177 * unwind-dw2.c: Include sys/sdt.h if it exists.
11178 (_Unwind_DebugHook): Use STAP_PROBE2.
11179 * config.in, configure: Rebuild.
11180 * configure.ac: Check for sys/sdt.h.
11182 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11184 * config/i386/i386.md (ROUND_FLOOR): New constant.
11185 (ROUND_CEIL): Ditto.
11186 (ROUND_TRUNC): Ditto.
11187 (ROUND_MXCSR): Ditto.
11188 (ROUND_NO_EXC): Ditto.
11189 (rint<mode>2): Use new defines instead of numerical constants.
11190 (floor<mode>2): Ditto.
11191 (ceil<mode>2): Ditto.
11192 (btrunc<mode>2): Ditto.
11193 * config/i386/i386-builtin-types.def: Define ROUND function type
11195 * config/i386/i386.c (enum ix86_builtins): Add
11196 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11197 (struct builtin_description): Add
11198 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11199 (ix86_expand_sse_round): New static function.
11200 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11202 (ix86_builtin_vectorized_function): Handle
11203 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11205 2011-03-14 Tom Tromey <tromey@redhat.com>
11207 * c-parser.c (c_parser_asm_string_literal): Clear
11208 warn_overlength_strings.
11210 2011-03-14 Tom Tromey <tromey@redhat.com>
11212 * c-parser.c (disable_extension_diagnostics): Save
11213 warn_overlength_strings.
11214 (restore_extension_diagnostics): Restore warn_overlength_strings.
11216 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11218 * BASE-VER: Change to 4.7.0.
11220 2011-03-14 Richard Guenther <rguenther@suse.de>
11222 PR middle-end/48098
11223 * tree.c (build_vector_from_val): Adjust assert to requirements
11226 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11229 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11231 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11233 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11234 terms of target_flags_explicit. Adjust copyright year.
11236 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11237 * config/rs6000/t-freebsd: New file. Add override for
11240 2011-03-13 Chris Demetriou <cgd@google.com>
11242 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11243 (-fno-diagnostics-show-option): this, to reflect current default.
11244 (-Werror=): Update text about -fno-diagnostics-show-option.
11246 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11249 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11250 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11251 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11252 mode is not V2DImode or V2DFmode.
11253 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11254 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11255 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11257 (movdi_internal64): Likewise.
11259 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11261 PR tree-optimization/47127
11262 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11264 (set_cloog_options): Same.
11265 (scop_to_clast): Same.
11266 (print_clast_stmt): Do not call cloog_state_malloc and
11268 (print_generated_program): Same.
11270 * graphite-clast-to-gimple.h (cloog_state): Declared.
11271 (scop_to_clast): Adjust declaration.
11272 * graphite.c (cloog_state): Defined here.
11273 (graphite_initialize): Call cloog_state_malloc.
11274 (graphite_finalize): Call cloog_state_free.
11276 2011-03-11 Jason Merrill <jason@redhat.com>
11278 * attribs.c (lookup_attribute_spec): Take const_tree.
11281 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11283 * config/sparc/sparc.c (sparc_option_override): Use
11284 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11286 2011-03-11 Richard Guenther <rguenther@suse.de>
11288 PR tree-optimization/48067
11289 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11290 multiplication result will be only used once on the target
11293 2011-03-11 Richard Guenther <rguenther@suse.de>
11295 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11297 2011-03-11 Richard Guenther <rguenther@suse.de>
11300 * tree.c (find_decls_types_r): Do not walk types only reachable
11301 from IDENTIFIER_NODEs.
11303 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11305 PR middle-end/48044
11306 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11307 all vnode->force_output nodes as needed.
11309 2011-03-11 Jason Merrill <jason@redhat.com>
11312 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11313 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11315 2011-03-11 Martin Jambor <mjambor@suse.cz>
11317 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11320 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11322 PR tree-optimization/48063
11323 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11324 inline functions called once if !tree_can_inline_p (node->callers).
11326 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11328 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11330 * config/score/score3.c: Delete.
11331 * config/score/score3.h: Delete.
11332 * config/score/mul-div.S: Delete.
11333 * config/score/sfp-machine.h: Add new file.
11334 * config/score/constraints.md: Add new file.
11335 * config/score/t-score-softfp: Add new file.
11336 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11337 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11338 (score7_extra_constraint): Delete.
11339 (score7_option_override): Remove unused code.
11340 * config/score/score.c: Remove score3 and score5 define and code.
11341 * config/score/score.h: Remove score3 and score5 define and code.
11342 * config/score/score.md: Remove score3 template and unusual insn.
11343 * config/score/score.opt: Remove score3 and score5 options.
11345 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11347 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11348 when _HPUX_SOURCE is defined.
11349 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11351 2011-03-10 Jason Merrill <jason@redhat.com>
11354 * stor-layout.c (layout_type): Don't set structural equality
11355 on arrays of incomplete type.
11356 * tree.c (type_hash_eq): Handle comparing them properly.
11358 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11361 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11362 result mode matches original rtl mode.
11364 2011-03-10 Nick Clifton <nickc@redhat.com>
11366 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11367 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11369 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11371 PR rtl-optimization/47866
11372 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11373 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11374 if target wasn't scalar.
11375 * function.c (assign_stack_temp_for_type): Assert that neither
11376 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11377 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11379 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11381 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11383 * config/s390/s390-protos.h (s390_label_align): New prototype.
11384 * config/s390/s390.c (s390_label_align): New function.
11385 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11387 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11390 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11391 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11392 (output_vec_const_move): Ditto.
11394 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11396 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11397 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11398 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11399 Change 'rclass' argument and result type to reg_class_t.
11400 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11402 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11404 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11405 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11406 (TARGET_MEMORY_MOVE_COST): Define.
11407 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11409 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11412 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11415 PR tree-optimization/48022
11416 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11419 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11422 * var-tracking.c (find_use_val): Return NULL for
11423 cui->sets && cui->store_p BLKmode MEMs.
11425 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11427 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11429 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11430 xstormy16_print_operand_address): Remove.
11431 * config/stormy16/stormy16.c (xstormy16_print_operand,
11432 xstormy16_print_operand_address): Make static.
11433 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11435 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11438 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11439 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11442 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11445 * cfgloopmanip.c (fix_bb_placements): Return immediately
11446 if FROM is BASE_LOOP's header.
11448 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11450 * gimplify.c (gimplify_function_tree): Fix building calls
11451 to __builtin_return_address.
11453 2011-03-07 Alan Modra <amodra@gmail.com>
11455 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11456 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11457 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11458 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11460 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11461 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11462 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11463 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11464 * config/rs6000/rs6000.c
11465 (rs6000_elf_end_indicate_exec_stack): Rename to..
11466 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11467 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11468 (rs6000_file_start): ..here.
11469 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11470 file scope variables.
11471 (call_ABI_of_interest): New function.
11472 (init_cumulative_args): Set above vars when function return value
11473 is a float, vector, or small struct.
11474 (rs6000_function_arg_advance_1): Likewise for function args.
11475 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11476 references float args.
11478 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11480 * doc/cfg.texi: Remove "See" before @ref.
11481 * doc/invoke.texi: Likewise.
11483 2011-03-05 Jason Merrill <jason@redhat.com>
11485 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11487 2011-03-05 Anthony Green <green@moxielogic.com>
11489 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11491 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11493 PR rtl-optimization/47899
11494 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11495 to flow_loop_nested_p when moving the loop upward.
11497 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11500 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11502 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11504 PR tree-optimization/47967
11505 * ipa-cp.c (build_const_val): Return NULL instead of creating
11506 VIEW_CONVERT_EXPR for mismatching sizes.
11507 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11508 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11509 give up on versioning.
11511 2011-03-05 Alan Modra <amodra@gmail.com>
11514 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11515 full cmodel medium/large lo_sum + high addresses.
11517 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11519 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11520 pool references in UNSPEC_LTREL_OFFSET.
11522 2011-03-04 Jan Hubicka <jh@suse.cz>
11525 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11526 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11527 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11529 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11530 cgraph_add_thunk): Add node pointers.
11531 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11532 associated to right node.
11533 (input_node): Update use of cgraph_same_body_alias
11534 and cgraph_add_thunk.
11536 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11538 * config/i386/i386.opt (mprefer-avx128): New flag.
11539 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11540 modes when the flag -mprefer-avx128 is on.
11542 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11544 * dwarf2out.c (compare_loc_operands): Fix address handling.
11546 2011-03-04 Alan Modra <amodra@gmail.com>
11548 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11550 2011-03-04 Richard Guenther <rguenther@suse.de>
11552 PR middle-end/47968
11553 * expmed.c (extract_bit_field_1): Prefer vector modes that
11554 vec_extract patterns can handle.
11556 2011-03-04 Richard Guenther <rguenther@suse.de>
11558 PR middle-end/47975
11559 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11561 2011-03-04 Richard Henderson <rth@redhat.com>
11563 * explow.c (emit_stack_save): Remove 'after' parameter.
11564 (emit_stack_restore): Likewise.
11565 * expr.h: Update to match.
11566 * builtins.c, calls.c, stmt.c: Likewise.
11567 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11568 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11569 * function.c (expand_function_end): Insert the emit_stack_save
11570 sequence before parm_birth_insn instead of after.
11572 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11574 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11575 (ssse3_pmaddubsw128): Ditto.
11576 (ssse3_pmaddubsw): Ditto.
11578 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11580 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11582 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11585 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11586 on TYPE_SIZE_UNIT if it is a DECL.
11589 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11590 first operand is not is_gimple_mem_ref_addr, try to fold it.
11591 If the operand still isn't is_gimple_mem_ref_addr, clear
11594 2011-03-03 Richard Guenther <rguenther@suse.de>
11596 PR middle-end/47283
11597 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11599 (refs_may_alias_p_1): For release branches return true if
11600 we are confused by our input.
11602 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11604 * config/s390/s390.c (s390_function_value): Rename to ...
11605 (s390_function_and_libcall_value): ... this.
11606 (s390_function_value): New function.
11607 (s390_libcall_value): New function.
11608 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11609 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11610 target macro definitions.
11611 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11613 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11615 * config/i386/freebsd64.h (CC1_SPEC): Define.
11616 * config/i386/linux64.h (CC1_SPEC): Define.
11617 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11619 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11621 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11623 * config/stormy16/stormy16.c: Include reload.h.
11624 (xstormy16_memory_move_cost): New function.
11625 (TARGET_MEMORY_MOVE_COST): Define.
11627 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11629 PR rtl-optimization/47925
11630 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11631 with side effects. Remove the more-specific check for volatile asms.
11633 2011-03-02 Alan Modra <amodra@gmail.com>
11636 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11637 toc relative addresses for valid offsets.
11639 2011-03-01 Richard Guenther <rguenther@suse.de>
11641 PR tree-optimization/47890
11642 * tree-vect-loop.c (get_initial_def_for_induction): Set
11643 related stmt properly.
11645 2011-03-01 Richard Guenther <rguenther@suse.de>
11648 * lto-streamer.c (lto_record_common_node): Also register
11649 the canonical type.
11651 2011-03-01 Richard Guenther <rguenther@suse.de>
11654 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11655 Do not stream DECL_ABSTRACT_ORIGIN.
11656 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11657 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11658 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11659 Do not stream DECL_ABSTRACT_ORIGIN.
11660 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11661 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11663 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11665 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11666 FUNCTION_VALUE_REGNO_P): Remove.
11667 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11668 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11669 Add 'outgoing' argument.
11670 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11672 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11673 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11675 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11678 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11679 (lookup_filename): Likewise.
11680 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11682 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11683 Jakub Jelinek <jakub@redhat.com>
11685 PR middle-end/47893
11686 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11687 (assign_stack_local_1): Change last argument type to int.
11688 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11689 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11690 don't record padding space into frame_space_list nor use those areas.
11691 (assign_stack_local): Adjust caller.
11692 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11693 of assign_stack_local, pass 0 as last argument.
11694 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11697 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11700 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11701 Use target address_mode and pointer_mode hooks instead of hardcoded
11702 Pmode and ptr_mode. Handle some simple cases of extending if
11703 POINTERS_EXTEND_UNSIGNED < 0.
11704 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11705 Call convert_debug_memory_address.
11706 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11707 convert_debug_memory_address.
11709 PR middle-end/46790
11710 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11711 * configure: Regenerated.
11712 * config.in: Regenerated.
11713 * varasm.c (default_function_section): Return NULL
11714 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11716 2011-02-28 Martin Jambor <mjambor@suse.cz>
11718 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11719 the description to match the printed values.
11721 2011-02-28 Richard Guenther <rguenther@suse.de>
11723 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11724 of the copied scope tree.
11726 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11728 * doc/extend.texi (Function Attributes): Avoid deeply (and
11729 wrongly) nested tables.
11731 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11733 PR middle-end/47903
11734 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11735 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11736 r isn't op0 nor op1.
11738 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11740 * config/avr/avr.md: Remove magic comment for emacs.
11742 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11745 * config/avr/avr.c (avr_option_override): Use error on bad options.
11746 (avr_help): New function.
11747 (TARGET_HELP): Define.
11749 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11752 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11753 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11755 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11757 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11758 (ARM Options): Ditto.
11759 (i386 and x86-64 Options): Ditto.
11760 (RX Options): Ditto.
11761 (SPARC Options): Ditto.
11763 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11765 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11766 FreeBSD 6 and later. Generally use cpu generic.
11768 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11770 * doc/cpp.texi: Update copyright years.
11772 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11775 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11777 2011-02-25 Jon Beniston <jon@beniston.com>
11780 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11781 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11782 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11783 (lm32_block_move_inline): Add type cast to remove warning.
11784 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11785 (gen_int_relational): Move declarations to start of function.
11787 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11789 PR tree-optimization/45470
11790 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11791 can throw internally only.
11792 * tree-vect-stmts.c (vectorizable_call): Likewise.
11794 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11796 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11797 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11798 * config/stormy16/stormy16-protos.h
11799 (xstormy16_preferred_reload_class): Remove.
11800 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11801 static. Change 'rclass' argument and return type to reg_class_t.
11802 (TARGET_PREFERRED_RELOAD_CLASS,
11803 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11805 2011-02-24 Richard Guenther <rguenther@suse.de>
11807 * lto-streamer-in.c (input_bb): Do not find referenced vars
11808 in debug statements.
11810 2011-02-23 Jason Merrill <jason@redhat.com>
11812 * common.opt (fabi-version): Document v5 and v6.
11814 2011-02-23 Richard Guenther <rguenther@suse.de>
11816 PR tree-optimization/47849
11817 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11819 2011-02-23 Jie Zhang <jie@codesourcery.com>
11821 * opts-common.c (decode_cmdline_option): Print empty string
11822 argument as "" in decoded->orig_option_with_args_text.
11823 * gcc.c (execute): Print empty string argument as ""
11824 in the verbose output.
11825 (do_spec_1): Keep empty string argument.
11827 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11829 * config.gcc: Declare score-* and crx-* obsolete.
11831 2011-02-23 Jie Zhang <jie@codesourcery.com>
11833 PR rtl-optimization/47763
11834 * web.c (web_main): Ignore naked clobber when replacing register.
11836 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11838 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11841 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11844 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11846 2011-02-22 Mike Stump <mikestump@comcast.net>
11848 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11850 * configure: Regenerate.
11852 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11854 PR rtl-optimization/46002
11855 * ira-color.c (update_copy_costs): Change class intersection
11856 test to reg_class_contents[] test of 'hard_regno'.
11858 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11860 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11861 than Driver option.
11862 * config/hpux11.opt (mt): Likewise.
11863 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11864 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11865 * config/vax/elf.opt (mno-asm-pic): Likewise.
11866 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11868 2011-02-21 Mike Stump <mikestump@comcast.net>
11871 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11872 tree so we can get save the type.
11873 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11874 for CFString instead of trying to use past the end of the builtins.
11875 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11876 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11877 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11878 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11879 Rename to darwin_builtin_cfstring.
11880 (darwin_init_cfstring_builtins): Return the built type.
11882 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11885 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11886 (_mm256_insert_epi64): Use _mm_insert_epi64.
11888 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11890 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11891 * config/stormy16/stormy16-protos.h
11892 (xstormy16_mode_dependent_address_p): Remove.
11893 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11894 Make static. Change return type to bool. Change argument type to
11895 const_rtx. Remove dead code.
11896 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11898 2011-02-21 Richard Guenther <rguenther@suse.de>
11901 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11902 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11903 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11905 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11906 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11908 2011-02-20 Richard Guenther <rguenther@suse.de>
11911 * tree.c (free_lang_data_in_decl): Clean builtins from
11912 the TU decl BLOCK_VARS.
11914 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11918 * haifa-sched.c (fix_tick_ready): Skip tick computation
11921 2011-02-19 Richard Guenther <rguenther@suse.de>
11924 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11925 Remove lazy BLOCK_VARS streaming.
11926 (lto_input_ts_block_tree_pointers): Likewise.
11927 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11929 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11931 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11933 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11935 * config/i386/biarch32.h, config/i386/mach.h,
11936 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11938 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11941 * config/i386/i386.md (peephole2 for shift and plus): Use
11942 operands[1] original mode in the first insn.
11944 2011-02-18 Mike Stump <mikestump@comcast.net>
11946 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11948 2011-02-18 Jan Hubicka <jh@suse.cz>
11950 PR middle-end/47788
11951 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11952 to zero when the function is not inlinable at all.
11954 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11956 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11957 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11958 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11959 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11960 * config/pa/t-pa64: Likewise.
11961 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11963 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11966 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11968 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11971 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11973 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11975 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11976 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11977 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11978 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11979 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11980 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11981 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11982 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11983 m32r_legitimate_address_p): New functions.
11984 * config/m32r/constraints.md (constraint "S"): Don't use
11985 STORE_PREINC_PREDEC_P.
11986 (constraint "U"): Don't use LOAD_POSTINC_P.
11988 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11990 PR rtl-optimization/46178
11991 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11992 compute ira_hard_regno_cover_class[].
11994 2011-02-18 Richard Guenther <rguenther@suse.de>
11997 * lto-streamer.h (lto_global_var_decls): Declare.
11998 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11999 statics for global var processing.
12001 2011-02-18 Richard Guenther <rguenther@suse.de>
12003 PR tree-optimization/47737
12004 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12005 edge dominance check.
12007 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12010 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12011 avoid invalid rtx sharing.
12013 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12015 * doc/cpp.texi (Obsolete Features): Add background on the
12016 origin of assertions.
12018 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12020 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12022 * config/darwin.c (output_objc_section_asm_op): Added support for
12024 (is_objc_metadata): New.
12025 (darwin_objc2_section): New.
12026 (darwin_objc1_section): New.
12027 (machopic_select_section): Added support for ABI v1 and v2.
12028 (darwin_emit_objc_zeroed): New.
12029 (darwin_output_aligned_bss): Detect objc metadata and treat it
12031 (darwin_asm_output_aligned_decl_common): Same.
12032 (darwin_asm_output_aligned_decl_local): Same.
12033 * config/darwin-sections.def: Updated for ABI v1 and v2.
12034 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12035 compiling Objective-C code for the NeXT runtime, default to using
12036 ABI version 0 for 32-bit, and version 2 for 64-bit.
12038 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12040 * common.opt (optimize_fast): New Variable.
12041 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12042 instead of local variable ofast.
12044 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12046 * doc/invoke.texi (fobjc-abi-version): Documented.
12047 (fobjc-nilcheck): Documented.
12048 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12051 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12054 * common.opt (export-dynamic): New Driver option.
12055 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12057 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12059 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12061 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12062 Jan Hubicka <jh@suse.cz>
12066 * cfgexpand.c (account_used_vars_for_block): Remove.
12067 (estimated_stack_frame_size): Use referenced vars.
12068 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12069 that were referenced in the original function. Test src_fn
12070 rather than cfun. Drop redundant get_var_ann.
12071 (setup_one_parameter): Drop redundant get_var_ann.
12072 (declare_return_variable): Likewise.
12073 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12074 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12075 * ipa-inline.c (compute_inline_parameters): Do not compute
12076 disregard_inline_limits here.
12077 (compute_inlinable_for_current, pass_inlinable): New.
12078 (pass_inline_parameters): Require PROP_referenced_vars.
12079 * cgraphunit.c (cgraph_process_new_functions): Don't run
12080 compute_inline_parameters explicitly unless function is in SSA form.
12081 (cgraph_analyze_function): Set .disregard_inline_limits.
12082 * tree-sra.c (convert_callers): Compute inliner parameters
12083 only for functions already in SSA form.
12085 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12087 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12088 -mlittle-endian-data.
12090 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12092 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12093 -mno-fpu, not -fpu and -no-fpu.
12094 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12095 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12097 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12100 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12101 input reload with PLUS RTX.
12103 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12105 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12106 of InverseVar(MDMX).
12108 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12110 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12113 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12115 * config/mn10300/mn10300.opt (mno-crt0): New.
12117 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12119 * config/m68k/uclinux.opt (static-libc): New Driver option.
12121 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12123 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12125 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12127 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12128 %{muser-extend-enabled}.
12130 2011-02-16 Richard Guenther <rguenther@suse.de>
12132 PR tree-optimization/47738
12133 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12134 the TODO from tree_predictive_commoning.
12136 2011-02-15 Jeff Law <law@redhat.com>
12139 2011-01-25 Jeff Law <law@redhat.com>
12141 PR rtl-optimization/37273
12142 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12143 handle them like argument loads from stack slots. Do not double
12144 count memory for memory constants and argument loads from stack slots.
12146 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12148 PR middle-end/47725
12149 * combine.c (cant_combine_insn_p): Revert the last change.
12151 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12154 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12155 mode for vector constants. Remove code that checks for TImode.
12157 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12161 * cgraph.h (compute_inline_parameters): Return void.
12162 * ipa-inline.c (compute_inline_parameters): Adjust.
12164 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12168 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12170 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12171 * ipa-inline.c (compute_inline_parameters): Adjust.
12173 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12177 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12178 Adjust all users. Pass FN to...
12179 * tree-flow-inline.h (first_referenced_var): ... this. Add
12181 * ipa-struct-reorg.c: Adjust.
12182 * tree-dfa.c: Adjust.
12183 * tree-into-ssa.c: Adjust.
12184 * tree-sra.c: Adjust.
12185 * tree-ssa-alias.c: Adjust.
12186 * tree-ssa-live.c: Adjust.
12187 * tree-ssa.c: Adjust.
12188 * tree-ssanames.c: Adjust.
12189 * tree-tailcall.c: Adjust.
12191 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12195 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12196 Adjust all callers.
12197 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12198 * tree-flow-inline.h: Adjust.
12199 * gimple-pretty-print.c: Adjust.
12200 * tree-into-ssa.c: Adjust.
12201 * tree-ssa.c: Adjust.
12202 * cfgexpand.c: Adjust.
12204 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12206 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12207 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12208 (EXTRA_CONSTRAINT): Delete.
12209 * config/iq2000/constraints.md: New file.
12210 * config/iq2000/iq2000.md: Include it.
12211 (define_insn ""): Delete.
12212 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12213 unsupported constraint letters from patterns.
12214 (call_value, call_value_internal1): Likewise.
12215 (call_value_multiple_internal1): Likewise.
12217 2011-02-15 Nick Clifton <nickc@redhat.com>
12219 * config/mn10300/mn10300.c: Include tm-constrs.h.
12220 (struct liw_data): New data structure describing an LIW candidate
12222 (extract_bundle): Use struct liw_data. Allow small integer
12223 operands for some instructions.
12224 (check_liw_constraints): Use struct liw_data. Remove swapped
12225 parameter. Add comments describing the checks. Fix bug when
12226 assigning the source of liw1 to the source of liw2.
12227 (liw_candidate): Delete. Code moved into extract_bundle.
12228 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12230 * config/mn10300/predicates.md (liw_operand): New predicate.
12231 Allows registers and small integer constants.
12232 * config/mn10300/constraints.md (O): New constraint. Accetps
12233 integers in the range -8 to +7 inclusive.
12234 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12235 for moving a small integer into a register. Give this alternative
12237 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12238 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12239 using the J,K,L and M constraints,
12240 (liw): Remove SI mode on second operands to allow for HI and QI
12242 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12245 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12247 PR middle-end/47725
12248 * combine.c (cant_combine_insn_p): Check zero/sign extended
12251 2011-02-15 Richard Guenther <rguenther@suse.de>
12253 PR tree-optimization/47743
12254 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12255 for a non-type-compatible VN lookup bail out.
12257 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12259 * config/fr30/constraints.md: New file.
12260 * config/fr30/fr30.md: Include it.
12261 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12262 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12263 (EXTRA_CONSTRAINT): Delete.
12265 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12267 * config/frv/constraints.md: New file.
12268 * config/frv/predicates.md: Include it.
12269 * config/frv/frv.c (reg_class_from_letter): Delete.
12270 (frv_option_override): Don't initialize it.
12271 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12272 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12273 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12274 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12275 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12276 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12277 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12278 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12279 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12280 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12281 (REG_CLASS_FROM_CONSTRAINT): Delete.
12283 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12285 PR middle-end/47581
12286 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12287 if frame size is 0 in a leaf function.
12289 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12292 * config/alpha/host-osf.c: New file.
12293 * config/alpha/x-osf: New file.
12294 * config.host (alpha*-dec-osf*): Use it.
12296 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12298 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12299 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12300 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12301 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12303 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12305 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12307 * config/stormy16/constraints.md: New file.
12308 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12309 Use satisfies_constraint_Q and satisfies_constraint_R.
12310 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12312 (xstormy16_legitiamte_address_p): Declare.
12313 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12314 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12315 (EXTRA_CONSTRAINT): Delete.
12316 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12318 (xstormy16_extra_constraint_p): Delete.
12320 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12322 PR tree-optimization/46494
12323 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12324 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12325 (pass_rtl_loop_done): Add TODO_verify_flow.
12326 * fwprop.c (pass_rtl_fwprop): Likewise.
12327 * modulo-sched.c (pass_sms): Likewise.
12328 * tree-ssa-dom.c (pass_dominator): Likewise.
12329 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12330 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12331 (pass_tree_loop_done): Likewise.
12332 * tree-ssa-pre.c (execute_pre): Likewise.
12333 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12334 * tree-ssa-sink.c (pass_sink_code): Likewise.
12335 * tree-vrp.c (pass_vrp): Likewise.
12337 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12339 * config/v850/constraints.md: New file.
12340 * config/v850/v850.md: Include it.
12341 * config/v850/predicates.md (reg_or_0_operand): Use
12342 satisfies_constraint_G.
12343 (special_symbolref_operand): Use satisfies_constraint_K.
12344 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12345 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12346 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12347 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12348 (EXTRA_CONSTRAINT): Delete.
12349 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12350 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12351 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12353 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12356 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12359 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12361 * config/mcore/constraints.md: New file.
12362 * config/mcore/mcore.md: Include it.
12363 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12364 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12365 (REG_CLASS_FROM_LETTER): Delete.
12366 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12367 insn_const_int_ok_for_constraint.
12368 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12369 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12370 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12371 (EXTRA_CONSTRAINT): Delete.
12373 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12376 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12377 (IS_SIGHANDLER): Define.
12378 (sparc64_is_sighandler): New function, split off from
12379 sparc64_fallback_frame_state.
12380 (sparc_is_sighandler): New function, split off from
12381 sparc_fallback_frame_state.
12382 (sparc64_fallback_frame_state): Merge with ...
12383 (sparc_fallback_frame_state): ... this into ...
12384 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12385 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12386 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12387 stack instead of hardcoded offsets.
12389 2011-02-14 Andriy Gapon <avg@freebsd.org>
12392 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12394 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12396 * configure: Regenerate.
12398 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12401 * gcc.c (asm_options): Correct spec matching --target-help.
12403 2011-02-12 Martin Jambor <mjambor@suse.cz>
12405 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12406 to gimple call error.
12408 2011-02-12 Mike Stump <mikestump@comcast.net>
12410 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12411 comments in backslash regions.
12413 2011-02-12 Mike Stump <mikestump@comcast.net>
12414 Jakub Jelinek <jakub@redhat.com>
12415 Iain Sandoe <iains@gcc.gnu.org>
12418 * dwarf2out.c (output_cfa_loc): When required, apply the
12419 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12420 (output_loc_sequence): Likewise.
12421 (output_loc_operands_raw): Likewise.
12422 (output_loc_sequence_raw): Likewise.
12423 (output_cfa_loc): Likewise.
12424 (output_loc_list): Suppress register number adjustment when
12425 calling output_loc_sequence()
12426 (output_die): Likewise.
12428 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12430 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12432 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12433 xtensa_memory_move_cost): New functions.
12434 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12436 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12439 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12440 in the current directory.
12441 * configure: Rebuilt.
12443 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12445 * config/darwin.c (darwin_override_options): Add a hunk missed
12446 from the commit of r168571. Trim comment line lengths and
12447 correct indents of the preceding block.
12449 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12451 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12454 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12456 * common.opt (nostartfiles): New Driver option.
12458 2011-02-11 Xinliang David Li <davidxl@google.com>
12460 PR tree-optimization/47707
12461 * tree-chrec.c (convert_affine_scev): Keep type precision.
12463 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12465 PR tree-optimization/47420
12466 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12468 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12470 PR rtl-optimization/47614
12471 * rtl.h (check_for_inc_dec): Declare.
12472 * dse.c (check_for_inc_dec): Externalize...
12473 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12474 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12476 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12479 * gcc.c (main): Do not compile inputs if there were errors in
12481 * opts-common.c (read_cmdline_option): Check for wrong language
12482 after other error checks.
12484 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12486 * cgraph.c: Fix comment typos.
12487 * cgraph.h: Likewise.
12488 * cgraphunit.c: Likewise.
12489 * ipa-cp.c: Likewise.
12490 * ipa-inline.c: Likewise.
12491 * ipa-prop.c: Likewise.
12492 * ipa-pure-const.c: Likewise.
12493 * ipa-ref.c: Likewise.
12494 * ipa-reference.c: Likewise.
12496 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12499 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12501 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12504 * doc/sourcebuild.texi (Require Support): Document
12505 dg-require-ascii-locale.
12507 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12509 * doc/lto.texi (Write summary): Fix missing parentheses.
12511 2011-02-10 DJ Delorie <dj@redhat.com>
12513 * config/m32c/m32c.c (m32c_option_override): Disable
12514 -fcombine-stack-adjustments until flag value tracking and compare
12515 optimization can be rewritten.
12517 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12519 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12521 (PROCESSOR_DEFAULT64): Likewise.
12523 2011-02-10 Richard Henderson <rth@redhat.com>
12525 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12526 change from 2011-02-03.
12527 * config/rx/rx.c (flags_from_code): Likewise.
12528 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12529 is valid, n/pz otherwise.
12530 (rx_select_cc_mode): Return CCmode if Y is not zero.
12532 2011-02-10 Richard Guenther <rguenther@suse.de>
12534 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12536 2011-02-10 Richard Guenther <rguenther@suse.de>
12538 PR tree-optimization/47677
12539 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12541 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12544 * combine.c (make_compound_operation): Only change shifts into
12545 multiplication for SCALAR_INT_MODE_P.
12547 2011-02-10 Jie Zhang <jie@codesourcery.com>
12551 2011-02-05 Jie Zhang <jie@codesourcery.com>
12553 * web.c (entry_register): Don't clobber the number of the
12554 first uninitialized reference in used[].
12556 2011-02-09 Richard Guenther <rguenther@suse.de>
12558 PR tree-optimization/47664
12559 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12562 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12566 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12568 (PROCESSOR_DEFAULT64): Same.
12569 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12571 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12573 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12575 2011-02-09 Martin Jambor <mjambor@suse.cz>
12577 PR middle-end/45505
12578 * tree-sra.c (struct access): New flags grp_scalar_read and
12579 grp_scalar_write. Changed description of assignment read and write
12581 (dump_access): Dump new flags, reorder all of them.
12582 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12583 to detect multiple scalar reads.
12584 (analyze_access_subtree): Use the new scalar read write flags instead
12585 of the old flags. Adjusted comments.
12587 2011-02-08 DJ Delorie <dj@redhat.com>
12590 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12593 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12595 * config/m68k/uclinux.opt: New.
12596 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12598 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12600 * config/cris/elf.opt (sim): New Driver option.
12602 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12604 * config/xtensa/elf.opt: New.
12605 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12607 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12609 * config/vax/elf.opt: New.
12610 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12612 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12614 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12616 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12618 * config/gnu-user.opt: New.
12619 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12620 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12621 *-*-uclinux*): Use gnu-user.opt.
12623 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12625 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12626 * config/i386/gnu.h (CPP_SPEC): Likewise.
12628 2011-02-08 Ian Lance Taylor <iant@google.com>
12630 * common.opt (fcx-limited-range): Add SetByCombined flag.
12631 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12632 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12633 (fassociative-math, freciprocal-math): Likewise.
12634 (funsafe-math-optimizations): Likewise.
12635 * opth-gen.awk: Handle SetByCombined.
12636 * optc-gen.awk: Likewise.
12637 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12638 (set_unsafe_math_optimizations_flags): Likewise.
12639 * doc/options.texi (Option properties): Document SetByCombined.
12641 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12643 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12644 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12645 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12646 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12647 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12649 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12651 PR tree-optimization/46834
12652 PR tree-optimization/46994
12653 PR tree-optimization/46995
12654 * graphite-sese-to-poly.c (used_outside_reduction): New.
12655 (detect_commutative_reduction): Call used_outside_reduction.
12656 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12657 translate_scalar_reduction_to_array only when at least one
12658 loop-phi/close-phi tuple has been detected.
12660 2011-02-08 Richard Guenther <rguenther@suse.de>
12662 PR middle-end/47639
12663 * tree-vect-generic.c (expand_vector_operations_1): Update
12665 (expand_vector_operations): ... not here. Cleanup EH info
12666 and the CFG if required.
12668 2011-02-08 Richard Guenther <rguenther@suse.de>
12670 PR tree-optimization/47641
12671 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12672 require type compatibility.
12674 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12676 * gimple-low.c (lower_function_body): Don't remove the location of
12677 the return statement here.
12678 (lower_gimple_return): Do it here instead but only if the return
12679 statement is actually used twice.
12681 2011-02-08 Richard Guenther <rguenther@suse.de>
12683 PR tree-optimization/47632
12684 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12685 unused up_to_stmt parameter, return whether cfg-cleanup is
12686 necessary, remove EH info properly.
12687 (forward_propagate_into_gimple_cond): Adjust caller.
12688 (forward_propagate_into_cond): Likewise.
12689 (forward_propagate_comparison): Likewise.
12690 (tree_ssa_forward_propagate_single_use_vars): Make
12691 forward_propagate_comparison case similar to the two others.
12693 2011-02-08 Nick Clifton <nickc@redhat.com>
12695 * config/mn10300/mn10300.opt (mliw): New command line option.
12696 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12697 (liw_bundling): New automaton.
12698 (liw): New attribute.
12699 (liw_op): New attribute.
12700 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12701 (movsi_internal): Add LIW attributes.
12702 (andsi3): Likewise.
12703 (iorsi3): Likewise.
12704 (xorsi3): Likewise.
12705 (addsi3): Separate register and immediate alternatives.
12706 Add LIW attributes.
12707 (subsi3): Likewise.
12709 (aslsi3): Likewise.
12710 (lshrsi3): Likewise.
12711 (ashrsi3): Likewise.
12712 (liw): New pattern.
12713 * config/mn10300/mn10300.c (liw_op_names): New
12714 (mn10300_print_operand): Handle 'W' operand descriptor.
12715 (extract_bundle): New function.
12716 (check_liw_constraints): New function.
12717 (liw_candidate): New function.
12718 (mn10300_bundle_liw): New function.
12719 (mn10300_reorg): New function.
12720 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12721 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12722 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12723 __LIW__ or __NO_LIW__.
12724 * doc/invoke.texi: Describe the -mliw command line option.
12726 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12728 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12729 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12730 pthread_mutex_unlock): Remove.
12731 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12732 * config/pa/t-pa64: Likewise.
12733 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12734 shared libc if not linking against libpthread.
12735 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12737 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12740 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12741 on 10.6 and later to ensure that we always use the unwinder from
12742 the system. Only add -no_compact_unwind when tarteting darwin
12745 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12748 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12749 (vec_interleave_lowv2sf): Ditto.
12750 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12751 (vec_extract_oddv2sf): Ditto.
12753 2011-02-07 Mike Stump <mikestump@comcast.net>
12756 Add __ieee_divdc3 entry point.
12757 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12759 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12760 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12761 * config/darwin.c (darwin_rename_builtins): Add.
12762 * config/darwin-protos.h (darwin_rename_builtins): Add.
12764 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12767 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12770 2011-02-07 Mike Stump <mikestump@comcast.net>
12772 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12774 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12777 * config/avr/libgcc.S (exit): Move .endfunc
12779 2011-02-07 Richard Guenther <rguenther@suse.de>
12781 PR tree-optimization/47615
12782 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12783 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12784 (run_scc_vn): Initialize it.
12785 (visit_reference_op_load): Use it.
12786 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12788 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12790 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12791 DImode trapping arithmetic libfuncs.
12793 2011-02-07 Richard Guenther <rguenther@suse.de>
12795 PR tree-optimization/47621
12796 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12798 (execute_update_addresses_taken): ... here. Make it more
12799 conservative in what we accept.
12801 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12803 * config/sparc/freebsd.h (ASM_SPEC): Define.
12804 * config/sparc/vxworks.h (ASM_SPEC): Define.
12806 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12808 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12810 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12812 * doc/invoke.texi: Remove reference to compiler internals from
12813 user documentation.
12815 * reg-notes.def: Remove REG_VALUE_PROFILE.
12816 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12818 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12820 PR middle-end/47610
12821 * varasm.c (default_section_type_flags): If decl is NULL,
12822 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12824 2011-02-05 Jie Zhang <jie@codesourcery.com>
12827 * web.c (entry_register): Don't clobber the number of the
12828 first uninitialized reference in used[].
12830 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12832 PR tree-optimization/46194
12833 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12834 (build_classic_dist_vector_1): Do not represent classic distance
12835 vectors when the access functions are variating in different loops.
12837 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12839 * config/mips/iris6.opt: New.
12840 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12842 2011-02-04 Richard Henderson <rth@redhat.com>
12843 Steve Ellcey <sje@cup.hp.com>
12846 * config/ia64/predicates.md (mux1_brcst_element): New.
12847 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12848 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12849 (ia64_unpack_sign): New.
12850 (ia64_expand_unpack): Rewrite using new routines.
12851 (ia64_expand_widen_sum): Ditto.
12852 (ia64_expand_dot_prod_v8qi): Ditto.
12853 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12854 routines, add endian check.
12855 (pmpy2_even): Rename from pmpy2_r, add endian check.
12856 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12857 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12858 (vec_widen_smult_hi_v4hi): Ditto.
12859 (vec_widen_umult_lo_v4hi): Ditto.
12860 (vec_widen_umult_hi_v4hi): Ditto.
12861 (mulv2si3): Change endian checks.
12862 (sdot_prodv4hi): Rewrite with new calls.
12863 (udot_prodv4hi): New.
12864 (vec_pack_ssat_v4hi): Add endian check.
12865 (vec_pack_usat_v4hi): Ditto.
12866 (vec_pack_ssat_v2si): Ditto.
12867 (max1_even): Rename from max1_r, add endian check.
12868 (max1_odd): Rename from max1_l, add endian check.
12869 (*mux1_rev): Format change.
12870 (*mux1_mix): Ditto.
12871 (*mux1_shuf): Ditto.
12872 (*mux1_alt): Ditto.
12873 (*mux1_brcst_v8qi): Use new predicate.
12874 (vec_extract_evenv8qi): Remove endian check.
12875 (vec_extract_oddv8qi): Ditto.
12876 (vec_interleave_lowv4hi): Format change.
12877 (vec_interleave_highv4hi): Ditto.
12878 (mix2_even): Rename from mix2_r, add endian check.
12879 (mix2_odd): Rename from mux2_l, add endian check.
12880 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12881 (vec_extract_evenodd_helper): Format change.
12882 (vec_extract_evenv4hi): Remove endian check.
12883 (vec_extract_oddv4hi): Remove endian check.
12884 (vec_interleave_lowv2si): Format change.
12885 (vec_interleave_highv2si): Format change.
12886 (vec_initv2si): Remove endian check.
12887 (vecinit_v2si): Add endian check.
12888 (reduc_splus_v2sf): Add endian check.
12889 (reduc_smax_v2sf): Ditto.
12890 (reduc_smin_v2sf): Ditto.
12891 (vec_initv2sf): Remove endian check.
12892 (fpack): Add endian check.
12893 (fswap): Add endian check.
12894 (vec_interleave_highv2sf): Add endian check.
12895 (vec_interleave_lowv2sf): Add endian check.
12896 (fmix_lr): Add endian check.
12897 (vec_setv2sf): Format change.
12898 (*vec_extractv2sf_0_be): Use shift to extract operand.
12899 (*vec_extractv2sf_1_be): New.
12900 (vec_pack_trunc_v4hi): Add endian check.
12901 (vec_pack_trunc_v2si): Format change.
12903 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12905 PR inline-asm/23200
12906 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12907 do bb, locus and block comparison and disallow loads if it is not set.
12908 (stmt_is_replaceable_p): New function.
12909 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12911 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12912 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12914 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12916 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12918 * config/rs6000/xilinx.opt: New.
12919 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12921 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12923 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12925 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12927 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12928 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12929 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12930 secondary_reload_info, xtensa_secondary_reload): Remove.
12931 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12932 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12933 (xtensa_preferred_reload_class): Make static. Change return and
12934 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12935 Use CONST_DOUBLE_P predicate.
12936 (xtensa_preferred_output_reload_class): New function.
12937 (xtensa_secondary_reload): Make static.
12939 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12941 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12942 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12943 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12945 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12947 PR middle-end/31490
12948 * output.h (SECTION_RELRO): Define.
12949 (SECTION_MACH_DEP): Adjust.
12950 (get_variable_section): New prototype.
12951 * varpool.c (varpool_finalize_named_section_flags): New function.
12952 (varpool_assemble_pending_decls): Call it.
12953 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12954 * cgraphunit.c (cgraph_output_in_order): Call
12955 varpool_finalize_named_section_flags.
12956 * varasm.c (get_section): Allow section flags conflicts between
12957 relro and read-only sections if the section hasn't been declared yet.
12958 Set SECTION_OVERRIDE after diagnosing section type conflict.
12959 (get_variable_section): No longer static.
12960 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12961 readonly sections that need relocations.
12962 (decl_readonly_section_1): New function.
12963 (decl_readonly_section): Use it.
12966 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12967 Steve Ellcey <sje@cup.hp.com>
12969 PR middle-end/31490
12970 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12971 if section attribute used.
12973 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12975 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12976 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12977 (darwin_init_sections): Remove assertion.
12979 2011-02-03 Nick Clifton <nickc@redhat.com>
12981 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12983 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12984 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12985 instead of "n" and "pz".
12986 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12989 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12992 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12993 fma, expand FMA_EXPR as fma{,f,l} call.
12996 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12997 copy them into a unsigned char variable and pass address of it to
12998 lto_output_data_stream.
13001 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13002 around backend_init_target and lang_dependent_init_target calls.
13003 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13004 (verify_cgraph_node): Don't call set_cfun here. Use
13005 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13006 Set error_found for incorrectly represented calls to thunks.
13008 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13011 PR rtl-optimization/43494
13012 * rtl.h (for_each_inc_dec_fn): New type.
13013 (for_each_inc_dec): Declare.
13014 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13015 (for_each_inc_dec_find_inc_dec): New fn.
13016 (for_each_inc_dec_find_mem): New fn.
13017 (for_each_inc_dec): New fn.
13018 * dse.c (struct insn_size): Remove.
13019 (replace_inc_dec, replace_inc_dec_mem): Remove.
13020 (emit_inc_dec_insn_before): New fn.
13021 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13022 (canon_address): Pass mem modes to cselib_lookup.
13023 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13024 (cselib_lookup_from_insn): Likewise.
13025 (cselib_subst_to_values): Likewise.
13026 * cselib.c (find_slot_memmode): New var.
13027 (cselib_find_slot): New fn. Use it instead of
13028 htab_find_slot_with_hash everywhere.
13029 (entry_and_rtx_equal_p): Use find_slot_memmode.
13030 (autoinc_split): New fn.
13031 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13032 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13033 Deal with autoinc. Special-case recursion into MEMs.
13034 (cselib_hash_rtx): Likewise.
13035 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13036 address and MEM modes.
13037 (cselib_subst_to_values): Add memmode, pass it on.
13039 (cselib_lookup): Add memmode argument, pass it on.
13040 (cselib_lookup_from_insn): Add memmode.
13041 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13042 (struct cselib_record_autoinc_data): New.
13043 (cselib_record_autoinc_cb): New fn.
13044 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13045 mode to cselib_lookup. Reset autoinced REGs here instead of...
13046 (cselib_process_insn): ... here.
13047 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13049 (add_uses): Likewise, also to cselib_subst_to_values.
13050 (add_stores): Likewise.
13051 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13052 cselib_subst_to_values.
13053 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13054 * gcse.c (do_local_cprop): Adjusted.
13055 * postreload.c (reload_cse_simplify_set): Adjusted.
13056 (reload_cse_simplify_operands): Adjusted.
13057 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13059 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13061 PR tree-optimization/45122
13062 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13063 unsafe assumptions when there's more than one loop exit.
13065 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13068 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13069 Document using vector double with the load/store builtins, and
13070 that the load/store builtins always use Altivec instructions.
13072 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13073 to use altivec memory instructions, even on VSX.
13074 (vector_altivec_store_<mode>): Ditto.
13076 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13079 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13080 V2DF, V2DI support to load/store overloaded builtins.
13082 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13083 altivec load/store builtins for V2DF/V2DI types.
13085 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13086 set avoid indexed addresses on power6 if -maltivec.
13087 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13088 vector_altivec_load/vector_altivec_store builtins.
13089 (altivec_expand_st_builtin): Ditto.
13090 (altivec_expand_builtin): Add VSX memory builtins.
13091 (rs6000_init_builtins): Add V2DI types to internal types.
13092 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13093 load/store builtins.
13094 (rs6000_address_for_altivec): Insure memory address is appropriate
13097 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13098 vec_vsx_ld and vec_vsx_st.
13099 (vsx_store_<mode>): Ditto.
13101 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13102 variables to hold long long types for VSX vector memory builtins.
13103 (RS6000_BTI_unsigned_long_long): Ditto.
13104 (long_long_integer_type_internal_node): Ditti.
13105 (long_long_unsigned_type_internal_node): Ditti.
13107 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13108 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13109 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13111 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13113 (vec_vsx_st): Ditto.
13115 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13117 * config/pa/pa-hpux10.opt: New.
13118 * config/hpux11.opt (pthread): New Driver option.
13119 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13120 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13122 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13124 * config/ia64/vms.opt: New.
13125 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13127 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13130 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13131 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13132 generator functions.
13133 (vsx_floatuns<VSi><mode>2): Ditto.
13134 (vsx_fix_trunc<mode><VSi>2): Ditto.
13135 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13137 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13139 * config/i386/djgpp.opt (posix): New Driver option.
13141 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13143 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13144 Move to the unsupported targets list.
13146 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13148 PR rtl-optimization/47525
13149 * df-scan.c: Update copyright years.
13150 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13151 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13153 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13155 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13156 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13157 (ASM_OUTPUT_ASCII): Remove.
13158 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13160 2011-02-02 Jeff Law <law@redhat.com>
13162 PR middle-end/47543
13163 * reload.c (find_reloads_address): Handle reg+d address where both
13164 components are invalid by reloading the entire address.
13166 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13167 Richard Guenther <rguenther@suse.de>
13169 PR tree-optimization/40979
13171 * passes.c (init_optimization_passes): After LIM call copy_prop
13172 and DCE to clean up.
13173 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13175 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13177 PR tree-optimization/47576
13178 PR tree-optimization/47555
13179 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13180 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13181 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13182 * tree-scalar-evolution.c (follow_ssa_edge): Use
13183 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13185 2011-02-02 Richard Guenther <rguenther@suse.de>
13187 PR tree-optimization/47566
13188 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13190 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13194 * tree-inline.c (declare_return_variable): Remove unused caller
13199 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13200 * cfgexpand.c (account_used_vars_for_block): Use them.
13201 * tree-nrv.c (tree_nrv): Likewise.
13202 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13203 (dump_scope_block): Likewise.
13204 (remove_unused_locals): Likewise.
13208 * tree-inline.c (declare_return_variable): Add result decl to
13209 local decls only once.
13210 * gimple-low.c (record_vars_into): Mark newly-created variables
13213 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13219 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13221 (no_real_insns_p, schedule_block, set_priorities): Drop special
13222 treatment of boundary debug insns.
13223 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13224 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13225 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13226 (BOUNDARY_DEBUG_INSN_P): Likewise.
13227 (SCHEDULE_DEBUG_INSN_P): Likewise.
13228 * sched-rgn.c (init_ready_list): Drop special treatment of
13229 boundary debug insns.
13230 * final.c (rest_of_clean_state): Clear notes' BB.
13232 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13234 * config/openbsd.opt (assert=): New Driver option.
13236 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13238 * config/i386/nto.opt: New.
13239 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13241 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13243 * config/i386/netware.opt: New.
13244 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13246 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13248 * config/interix.opt (posix): New Driver option.
13250 2011-02-01 DJ Delorie <dj@redhat.com>
13252 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13254 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13257 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13259 PR tree-optimization/47561
13260 * toplev.c (process_options): Print the Graphite flags. Add
13261 flag_loop_flatten to the list of options requiring Graphite.
13263 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13265 * config/i386/cygming.opt (posix): New Driver option.
13267 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13269 * config/arm/vxworks.opt: New.
13270 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13272 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13274 * config/alpha/elf.opt: New.
13275 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13276 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13278 2011-02-01 Richard Guenther <rguenther@suse.de>
13280 PR tree-optimization/47559
13281 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13282 store-motion on references that can throw.
13284 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13286 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13287 * tree-pass.h (TDF_CSELIB): New macro.
13288 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13289 cselib_lookup): Check for it rather than for TDF_DETAILS.
13291 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13294 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13295 is HOST_BIT_BUCKET.
13297 * opts.c (finish_options): Don't add x_aux_base_name if it is
13300 2011-02-01 Richard Guenther <rguenther@suse.de>
13302 PR tree-optimization/47555
13304 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13306 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13308 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13311 * config/lm32/t-lm32: Add multilib for all CPU options.
13313 2011-02-01 Richard Guenther <rguenther@suse.de>
13315 PR tree-optimization/47541
13316 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13317 sure to have a field at offset zero.
13319 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13321 * config/arc/arc.opt (EB, EL): New Driver options.
13323 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13325 * config/alpha/osf5.opt: New.
13326 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13328 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13330 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13332 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13334 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13335 -floop-interchange.
13336 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13337 is an alias of -floop-interchange and that it requires the
13338 Graphite infrastructure.
13339 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13340 flag_loop_interchange based on the value of flag_tree_loop_linear.
13342 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13343 Richard Guenther <rguenther@suse.de>
13345 PR tree-optimization/47538
13346 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13347 type instead of r1type, except for comparisons. For right
13348 shifts and comparisons punt if there are mismatches in
13349 sizetype vs. non-sizetype types.
13351 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13353 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13356 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13358 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13360 * configure: Regenerate.
13362 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13364 * configure.ac (gcc_cv_ld_static_option): Define.
13365 (gcc_cv_ld_dynamic_option): Define.
13366 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13368 (HAVE_LD_STATIC_DYNAMIC): Update message.
13369 (LD_STATIC_OPTION): Define.
13370 (LD_DYNAMIC_OPTION): Define.
13371 * configure: Regenerate.
13372 * config.in: Regenerate.
13373 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13374 HAVE_LD_STATIC_DYNAMIC]: Use them.
13376 2011-01-31 Nick Clifton <nickc@redhat.com>
13378 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13379 registers inside interrupt handlers if the handler is not a leaf
13382 2011-01-31 Nick Clifton <nickc@redhat.com>
13384 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13385 reg_renumber returning an INVALID_REGNUM.
13387 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13390 * doc/install.texi: Document host options discarded when cross
13391 configuring target libraries.
13393 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13396 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13399 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13401 (no_real_insns_p, schedule_block, set_priorities): Drop special
13402 treatment of boundary debug insns.
13403 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13404 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13405 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13406 (BOUNDARY_DEBUG_INSN_P): Likewise.
13407 (SCHEDULE_DEBUG_INSN_P): Likewise.
13408 * sched-rgn.c (init_ready_list): Drop special treatment of
13409 boundary debug insns.
13410 * final.c (rest_of_clean-state): Clear notes' BB.
13412 2011-01-31 Alan Modra <amodra@gmail.com>
13414 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13415 toc relative expressions as we do in print_operand_address.
13417 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13419 * doc/extend.texi: Follow spelling conventions.
13420 * doc/invoke.texi: Fix a typo.
13422 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13424 * config/hpux11.opt: New.
13425 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13426 ia64*-*-hpux*): Use hpux11.opt.
13428 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13430 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13433 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13435 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13438 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13440 * doc/install.texi (Binaries): Remove outdated reference for
13441 Motorola 68HC11/68HC12 downloads.
13443 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13445 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13448 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13451 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13454 2011-01-28 Ahmad Sharif <asharif@google.com>
13456 * value-prof.c (check_counter): Corrected error message.
13458 2011-01-29 Jie Zhang <jie@codesourcery.com>
13460 * config/arm/arm.c (arm_legitimize_reload_address): New.
13461 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13462 arm_legitimize_reload_address.
13463 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13465 2011-01-28 Ian Lance Taylor <iant@google.com>
13467 * godump.c (go_define): Ignore macros whose definitions include
13468 two adjacent operands.
13470 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13473 * varasm.c (force_const_mem): Store copy of x in desc->constant
13474 instead of x itself.
13475 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13476 itself into REG_EQUAL note.
13478 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13480 * config/freebsd.opt (posix, rdynamic): New Driver options.
13482 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13484 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13485 -Bstatic/-Bdynamic.
13486 * configure: Regenerate.
13488 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13490 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13491 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13493 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13495 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13496 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13497 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13498 (s390_preferred_reload_class): Make static. Change return and
13499 'rclass' argument type to reg_class_t.
13501 2011-01-27 Jan Hubicka <jh@suse.cz>
13503 PR middle-end/46949
13504 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13505 (process_function_and_variable_attributes): Check defined weakrefs.
13507 2011-01-27 Martin Jambor <mjambor@suse.cz>
13509 PR tree-optimization/47228
13510 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13511 build_ref_for_offset.
13513 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13515 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13517 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13519 PR rtl-optimization/46856
13520 * postreload.c (reload_combine_recognize_const_pattern): Do not
13521 separate cc0 setter and user on cc0 targets.
13523 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13526 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13527 passed a VOID_TYPE expression, immediately emit an error and
13528 return error_mark_node.
13530 2011-01-26 Jeff Law <law@redhat.com>
13532 PR rtl-optimization/47464
13533 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13534 rather than may_trap_p as needed.
13536 2011-01-26 DJ Delorie <dj@redhat.com>
13538 PR rtl-optimization/46878
13539 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13540 setter/user dependency as well.
13542 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13544 PR rtl-optimization/44469
13545 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13546 after removing trivially dead basic blocks.
13548 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13550 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13551 * config/frv/frv.h (LINK_SPEC): Likewise.
13552 * config/i386/netware.h (LINK_SPEC): Likewise.
13553 * config/m68k/linux.h (ASM_SPEC): Likewise.
13554 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13555 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13556 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13557 * config/sparc/linux.h (ASM_SPEC): Likewise.
13558 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13559 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13561 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13563 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13564 * config/frv/frv.h (ASM_SPEC): Likewise.
13565 * config/m68k/linux.h (ASM_SPEC): Likewise.
13566 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13567 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13568 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13569 * config/sparc/linux.h (ASM_SPEC): Likewise.
13570 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13571 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13573 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13575 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13576 * config/frv/frv.h (LINK_SPEC): Likewise.
13577 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13579 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13581 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13582 * config/frv/frv.h (ASM_SPEC): Likewise.
13583 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13584 * config/m68k/linux.h (ASM_SPEC): Likewise.
13585 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13586 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13587 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13588 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13589 * config/sparc/linux.h (ASM_SPEC): Likewise.
13590 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13591 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13592 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13594 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13597 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13599 (vec_extract_evenodd_help): Ditto.
13600 (vec_extract_evenv4hi): Ditto.
13601 (vec_extract_oddv4hi): Ditto.
13602 (vec_interleave_lowv2si): Ditto.
13603 (vec_interleave_highv2si): Ditto.
13604 (vec_extract_evenv2si): Ditto.
13605 (vec_extract_oddv2si: Ditto.
13606 (vec_pack_trunc_v2si): Ditto.
13608 2011-01-22 Jan Hubicka <jh@suse.cz>
13611 * cgraph.h (cgraph_local_info): New field can_change_signature.
13612 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13613 signature can change.
13614 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13616 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13617 (cgraph_function_versioning): We can not change signature of functions
13618 that don't allow that.
13619 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13620 (lto_input_node): Likewise.
13621 * ipa-inline.c (compute_inline_parameters): Compute
13622 local.can_change_signature.
13623 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13624 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13625 functions that can not change signature.
13626 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13627 init_cumulative_args): Do not use local calling conventions
13628 for functions that can not change signature.
13630 2011-01-22 Jan Hubicka <jh@suse.cz>
13632 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13634 2011-01-26 Richard Guenther <rguenther@suse.de>
13636 PR tree-optimization/47190
13637 * cgraphunit.c (process_common_attributes): New function.
13638 (process_function_and_variable_attributes): Use it.
13640 2011-01-26 Richard Guenther <rguenther@suse.de>
13643 * cgraphbuild.c (record_eh_tables): Record reference to personality
13646 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13649 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13650 non-debug insns from moving up.
13652 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13655 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13656 t-dlldir{,-x} fragment for build and add it to tmake_file.
13657 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13658 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13659 * config/i386/t-dlldir: New file.
13660 (SHLIB_DLLDIR): Define.
13661 * config/i386/t-dlldir-x: New file.
13662 (SHLIB_DLLDIR): Define.
13663 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13664 (SHLIB_INSTALL): Use it.
13666 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13669 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13670 lower bound of the allowed Thumb-2 coprocessor load/store
13671 index range to -256. Add explaining comment.
13673 2011-01-25 Ian Lance Taylor <iant@google.com>
13675 * godump.c (go_define): Improve lexing of macro expansion to only
13676 accept expressions which match Go spec.
13678 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13681 * tree.c (handle_dll_attribute): Handle it.
13682 * doc/extend.texi (@item dllexport): Mention it.
13683 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13685 2011-01-25 Ian Lance Taylor <iant@google.com>
13687 PR tree-optimization/26854
13688 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13689 (decl_jump_unsafe): Move higher in file, with no other change.
13690 (bind): Set has_jump_unsafe_decl if appropriate.
13691 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13692 (check_earlier_gotos): Likewise.
13693 (c_check_switch_jump_warnings): Likewise.
13695 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13697 * doc/invoke.texi (Warning Options): Add missing hyphen.
13698 (-fprofile-dir): Minor grammatical fixes.
13699 (-fbranch-probabilities): Likewise.
13701 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13705 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13707 (no_real_insns_p, schedule_block, set_priorities): Drop special
13708 treatment of boundary debug insns.
13709 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13710 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13711 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13712 (BOUNDARY_DEBUG_INSN_P): Likewise.
13713 (SCHEDULE_DEBUG_INSN_P): Likewise.
13714 * sched-rgn.c (init_ready_list): Drop special treatment of
13715 boundary debug insns.
13716 * final.c (rest_of_clean-state): Clear notes' BB.
13718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13720 * Makefile.in (LAMBDA_H): Removed.
13721 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13722 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13723 lambda-trans.o, and tree-loop-linear.o.
13724 (lto-symtab.o): Remove dependence on LAMBDA_H.
13725 (tree-loop-linear.o): Remove rule.
13726 (lambda-mat.o): Same.
13727 (lambda-trans.o): Same.
13728 (lambda-code.o): Same.
13729 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13730 (tree-vect-slp.o): Same.
13731 * hwint.h (gcd): Moved here.
13732 (least_common_multiple): Same.
13733 * lambda-code.c: Removed.
13734 * lambda-mat.c: Removed.
13735 * lambda-trans.c: Removed.
13736 * lambda.h: Removed.
13737 * tree-loop-linear.c: Removed.
13738 * lto-symtab.c: Do not include lambda.h.
13739 * omega.c (gcd): Removed.
13740 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13741 * tree-data-ref.c (print_lambda_vector): Moved here.
13742 (lambda_vector_copy): Same.
13743 (lambda_matrix_copy): Same.
13744 (lambda_matrix_id): Same.
13745 (lambda_vector_first_nz): Same.
13746 (lambda_matrix_row_add): Same.
13747 (lambda_matrix_row_exchange): Same.
13748 (lambda_vector_mult_const): Same.
13749 (lambda_vector_negate): Same.
13750 (lambda_matrix_row_negate): Same.
13751 (lambda_vector_equal): Same.
13752 (lambda_matrix_right_hermite): Same.
13753 * tree-data-ref.h: Do not include lambda.h.
13754 (lambda_vector): Moved here.
13755 (lambda_matrix): Same.
13756 (dependence_level): Same.
13757 (lambda_transform_legal_p): Removed declaration.
13758 (lambda_collect_parameters): Same.
13759 (lambda_compute_access_matrices): Same.
13760 (lambda_vector_gcd): Same.
13761 (lambda_vector_new): Same.
13762 (lambda_vector_clear): Same.
13763 (lambda_vector_lexico_pos): Same.
13764 (lambda_vector_zerop): Same.
13765 (lambda_matrix_new): Same.
13766 * tree-flow.h (least_common_multiple): Removed declaration.
13767 * tree-parloops.c (lambda_trans_matrix): Moved here.
13768 (LTM_MATRIX): Same.
13769 (LTM_ROWSIZE): Same.
13770 (LTM_COLSIZE): Same.
13771 (LTM_DENOMINATOR): Same.
13772 (lambda_trans_matrix_new): Same.
13773 (lambda_matrix_vector_mult): Same.
13774 (lambda_transform_legal_p): Same.
13775 * tree-pass.h (pass_linear_transform): Removed declaration.
13776 * tree-ssa-loop.c (tree_linear_transform): Removed.
13777 (gate_tree_linear_transform): Removed.
13778 (pass_linear_transform): Removed.
13779 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13780 flag_loop_interchange.
13782 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13784 PR tree-optimization/47265
13785 PR tree-optimization/47443
13786 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13787 if name still has some uses.
13789 2011-01-25 Martin Jambor <mjambor@suse.cz>
13791 PR tree-optimization/47382
13792 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13793 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13795 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13797 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13798 sjlj_except_unwind_info.
13800 2011-01-25 Richard Guenther <rguenther@suse.de>
13802 PR tree-optimization/47426
13803 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13804 visible functions results escape.
13806 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13809 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13810 (arm_get_frame_offsets): Use it.
13812 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13813 Jakub Jelinek <jakub@redhat.com>
13815 PR tree-optimization/47271
13816 * tree-if-conv.c (bb_postdominates_preds): New.
13817 (if_convertible_bb_p): Call bb_postdominates_preds.
13818 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13819 (predicate_scalar_phi): Call bb_postdominates_preds.
13821 2011-01-25 Nick Clifton <nickc@redhat.com>
13823 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13824 * config/rx/rx.c (rx_function_value): Likewise.
13825 (rx_promote_function_mode): Likewise.
13826 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13827 in order to make it legitimate.
13828 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13829 make sure that the first operand is the same as the result register.
13830 (addsi3_unspec): Delete.
13831 (subdi3): Do not accept immediate operands.
13832 (subdi3_internal): Likewise.
13834 2011-01-25 Jeff Law <law@redhat.com>
13836 PR rtl-optimization/37273
13837 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13838 handle them like argument loads from stack slots. Do not double
13839 count memory for memory constants and argument loads from stack slots.
13841 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13843 PR tree-optimization/47427
13844 PR tree-optimization/47428
13845 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13846 coalesce if the new root var would be TREE_READONLY.
13848 2011-01-25 Richard Guenther <rguenther@suse.de>
13850 PR middle-end/47414
13851 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13852 correct type for TBAA.
13854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13856 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13857 (close_phi_written_to_memory): Call for_each_index with
13858 dr_indices_valid_in_loop.
13860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13862 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13863 when it is initialized.
13865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13867 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13868 call to graphite_find_data_references_in_stmt.
13869 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13870 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13871 call to graphite_find_data_references_in_stmt.
13872 (analyze_drs_in_stmts): Same.
13873 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13874 in which the scalar analysis of indices is performed.
13875 (create_data_ref): Same. Update call to dr_analyze_indices.
13876 (find_data_references_in_stmt): Update call to create_data_ref.
13877 (graphite_find_data_references_in_stmt): Same.
13878 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13880 (create_data_ref): Same.
13881 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13882 call to create_data_ref.
13884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13886 * graphite-sese-to-poly.c (build_poly_scop): Move
13887 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13891 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13892 VAR_DECL, PARM_DECL, and RESULT_DECL.
13894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13896 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13897 in a reduction PBB.
13898 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13899 that have already been marked as PBB_IS_REDUCTION.
13901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13903 * graphite-scop-detection.c (same_close_phi_node): New.
13904 (remove_duplicate_close_phi): New.
13905 (make_close_phi_nodes_unique): New.
13906 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13910 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13911 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13912 of both data references to be the same.
13914 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13916 * graphite-dependences.c (build_lexicographical_constraint): Remove
13917 the gdim parameter.
13918 (build_lexicographical_constraint): Adjust call to
13919 ppl_powerset_is_empty.
13920 (dependence_polyhedron): Same.
13921 (graphite_legal_transform_dr): Same.
13922 (graphite_carried_dependence_level_k): Same.
13923 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13925 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13929 * graphite-sese-to-poly.c
13930 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13931 (close_phi_written_to_memory): New.
13932 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13935 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13937 * doc/install.texi: Update the expected version number of PPL to 0.11.
13938 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13939 #if PPL_VERSION_MINOR < 11.
13941 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13943 * graphite-dependences.c: Include graphite-cloog-util.h.
13944 (new_poly_ddr): Inlined into dependence_polyhedron.
13945 (free_poly_ddr): Moved close by new_poly_ddr.
13946 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13947 Early return NULL when ppl_powerset_is_empty returns true.
13948 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13949 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13950 (graphite_legal_transform_dr): Call new_poly_ddr.
13951 (graphite_carried_dependence_level_k): Same.
13952 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13953 (dot_transformed_deps_stmt_1): Removed.
13954 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13955 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13956 (dot_deps_1): Call dot_deps_2.
13957 * Makefile.in (graphite-dependences.o): Add missing dependence on
13958 graphite-cloog-util.h.
13960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13962 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13963 (build_lexicographical_constraint): Same.
13964 (dependence_polyhedron_1): Same.
13965 (graphite_legal_transform_dr): Same.
13966 (graphite_carried_dependence_level_k): Same.
13967 * graphite-ppl.c (ppl_powerset_is_empty): New.
13968 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13969 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13971 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13973 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13974 the "a followed by b" relation and document it.
13976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13978 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13979 iteration when the bag of constraints is empty.
13981 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13983 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13985 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13987 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13988 nest and two loop depths as parameters.
13989 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13990 lst_perfect_nestify.
13992 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13994 * graphite-dependences.c (print_pddr): Call
13995 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13997 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13999 * graphite-ppl.c (debug_gmp_value): New.
14000 * graphite-ppl.h (debug_gmp_value): Declared.
14002 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14004 * doc/install.texi: Document availability of cloog-0.16.
14006 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14008 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14009 invalid postdominance info.
14011 2011-01-24 Jan Hubicka <jh@suse.cz>
14014 * doc/extend.texi (weak pragma): Drop claim that it must
14015 appear before definition.
14016 * varasm.c (merge_weak, declare_weak): Only sanity check
14017 that DECL is not output at a time it is declared weak.
14019 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14021 * machmode.def: Fixed comments.
14023 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14025 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14027 2011-01-24 Paul Koning <ni1d@arrl.net>
14029 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14032 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14035 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14036 (block_info): Add scanned and prev.
14037 (move_or_delete_vzeroupper_2): Return if the basic block
14038 has been scanned and the upper 128bit state is unchanged
14039 from the last scan.
14040 (move_or_delete_vzeroupper_1): Return true if the exit
14042 (move_or_delete_vzeroupper): Visit basic blocks using the
14043 work-list based algorithm based on vt_find_locations in
14046 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14048 2011-01-24 Nick Clifton <nickc@redhat.com>
14050 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14051 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14052 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14053 then define __v850e1__.
14054 * doc/invoke.texi: Document -mv850es.
14056 2011-01-24 Richard Henderson <rth@redhat.com>
14058 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14059 compound unordered comparisons.
14060 * config/rx/rx.c (rx_split_fp_compare): Remove.
14061 * config/rx/rx-protos.h: Update.
14062 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14063 (cbranchsf4): Don't call rx_split_fp_compare.
14064 (*cbranchsf4): Use rx_split_cbranch.
14065 (*cmpsf): Don't accept "i" constraint.
14066 (*conditional_branch): Only valid after reload.
14067 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14069 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14072 * config/rs6000/altivec.md (vector constant splitters): Add
14073 support for creating vector single precision constants if -mvsx is
14074 used and we would create the constant using Altivec primitives.
14076 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14077 Richard Sandiford <rdsandiford@googlemail.com>
14079 PR rtl-optimization/47166
14080 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14081 mechanism for PRE_MODIFY and POST_MODIFY.
14082 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14085 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14087 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14089 2011-01-22 Jan Hubicka <jh@suse.cz>
14092 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14094 2011-01-22 Jan Hubicka <jh@suse.cz>
14096 PR tree-optimization/43884
14098 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14099 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14101 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14103 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14104 * config/s390/s390.c (s390_register_move_cost,
14105 s390_memory_move_cost): New.
14106 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14108 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14110 PR middle-end/47401
14111 * except.c (sjlj_assign_call_site_values): Move setting the
14112 crtl->uses_eh_lsda flag to ...
14113 (sjlj_mark_call_sites): ... here.
14114 (sjlj_emit_function_enter): Support NULL dispatch label.
14115 (sjlj_build_landing_pads): In a function with no landing pads
14116 that still has must-not-throw regions, generate code to register
14117 a personality function with empty LSDA.
14119 2011-01-21 Richard Henderson <rth@redhat.com>
14121 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14123 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14125 * compare-elim.c: New file.
14126 * Makefile.in (OBJS-common): Add it.
14127 (compare-elim.o): New.
14128 * common.opt (fcompare-elim): New.
14129 * opts.c (default_options_table): Add OPT_fcompare_elim.
14130 * tree-pass.h (pass_compare_elim_after_reload): New.
14131 * passes.c (init_optimization_passes): Add it.
14132 * recog.h: Protect against re-inclusion.
14133 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14134 * doc/invoke.texi (-fcompare-elim): Document it.
14135 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14136 * doc/tm.texi: Rebuild.
14138 2011-01-22 Nick Clifton <nickc@redhat.com>
14140 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14141 rx_split_fp_compare.
14143 2011-01-22 Nick Clifton <nickc@redhat.com>
14145 * config/rx/rx.md (UNSPEC_CONST): New.
14146 (deallocate_and_return): Wrap the amount popped off the stack in
14147 an UNSPEC_CONST in order to stop it being rejected by
14148 -mmax-constant-size.
14149 (pop_and_return): Add a "(return)" rtx.
14150 (call): Drop the immediate operand.
14151 (call_internal): Likewise.
14152 (call_value): Likewise.
14153 (call_value_internal): Likewise.
14154 (sibcall_internal): Likewise.
14155 (sibcall_value_internal): Likewise.
14156 (sibcall): Likewise. Generate an explicit call using
14158 (sibcall_value): Likewise.
14159 (mov<>): FAIL if a constant operand is not legitimate.
14160 (addsi3_unpsec): New pattern.
14162 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14163 (ok_for_max_constant): New function.
14164 (gen_safe_add): New function.
14165 (rx_expand_prologue): Use gen_safe_add.
14166 (rx_expand_epilogue): Likewise.
14167 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14170 2011-01-21 Jeff Law <law@redhat.com>
14172 PR tree-optimization/47053
14173 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14174 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14175 statements are deleted.
14176 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14177 is nonempty, then purge dead edges and cleanup the CFG.
14179 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14182 Temporarily revert:
14183 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14185 * tree-dfa.c (create_var_ann): Mark variable as used.
14187 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14189 PR middle-end/45566
14190 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14191 notes from other section in hot/cold partitioning even if
14192 last_action is -3. Increment call_site_base.
14194 PR rtl-optimization/47366
14195 * fwprop.c (forward_propagate_into): Return bool. If
14196 any changes are made, -fnon-call-exceptions is used and
14197 REG_EH_REGION note is present, call purge_dead_edges
14198 and return true if it purged anything.
14199 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14200 any EH edges were purged.
14202 2011-01-21 Jeff Law <law@redhat.com>
14204 PR rtl-optimization/41619
14205 * caller-save.c (setup_save_areas): Break out code to determine
14206 which hard regs are live across calls by examining the reload chains
14207 so that it is always used.
14208 Eliminate code which checked REG_N_CALLS_CROSSED.
14210 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14212 PR tree-optimization/47355
14213 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14214 NOP has non-debug uses beyond PHIs in new_bb.
14216 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14219 * cfgexpand.c (account_used_vars_for_block): Only account vars
14220 that are annotated as used.
14221 (estimated_stack_frame_size): Don't set TREE_USED.
14222 * tree-dfa.c (create_var_ann): Mark variable as used.
14224 2011-01-21 Richard Guenther <rguenther@suse.de>
14226 PR middle-end/47395
14227 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14229 2011-01-21 Richard Guenther <rguenther@suse.de>
14231 PR tree-optimization/47365
14232 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14233 (vn_reference_lookup_pieces): Adjust.
14234 (vn_reference_lookup): Likewise.
14235 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14236 (vn_reference_lookup_3): Only look through kills if in
14237 VN_WALKREWRITE mode.
14238 (vn_reference_lookup_pieces): Adjust.
14239 (vn_reference_lookup): Likewise.
14240 (visit_reference_op_load): Likewise.
14241 (visit_reference_op_store): Likewise.
14242 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14243 (compute_avail): Likewise.
14244 (eliminate): Likewise.
14246 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14248 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14249 DECL_IGNORED_P non-reg vars if they are used.
14251 PR tree-optimization/47391
14252 * varpool.c (const_value_known_p): Return false if
14255 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14258 * config/i386/i386.c (ix86_local_alignment): Handle
14259 case for va_list_type_node is nil.
14260 (ix86_canonical_va_list_type): Likewise.
14262 2011-01-21 Alan Modra <amodra@gmail.com>
14264 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14265 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14267 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14269 * config/arm/arm.md (define_attr type): Rename f_load
14270 and f_store to f_fpa_load and f_fpa_store. Update.
14271 (write_conflict): Deal with rename fallout.
14272 (*push_fp_multi): Likewise.
14273 * config/arm/fpa.md (f_load): Use f_fpa_load.
14274 (f_store): Use f_fpa_store.
14275 (*movsf_fpa): Likewise.
14276 (*movdf_fpa): Likewise.
14277 (*movxf_fpa): Likewise.
14278 (*thumb2_movsf_fpa): Likewise.
14279 (*thumb2_movdf_fpa): Likewise.
14280 (*thumb2_movxf_fpa): Likewise.
14281 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14282 f_loadd and f_stored.
14283 (*thumb2_movdi_vfp): Likewise.
14284 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14285 (*thumb2_movsi_vfp): Likewise.
14286 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14287 Use f_loads instead of f_load.
14288 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14290 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14292 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14293 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14294 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14295 (xtensa_mode_dependent_address_p): New function.
14296 (constantpool_address_p): Make static. Change return type to bool.
14297 Change argument type to const_rtx. Use CONST_INT_P predicate.
14299 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14302 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14304 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14307 * cfgexpand.c (expand_debug_expr): Instead of generating
14308 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14311 2011-01-20 Richard Guenther <rguenther@suse.de>
14313 PR middle-end/47370
14314 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14315 the pointer operand of MEM_REFs.
14317 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14319 PR tree-optimization/46130
14320 * ipa-split.c (consider_split): If return_bb contains non-virtual
14321 PHIs other than for retval or if split_function would not adjust it,
14324 2011-01-20 Richard Guenther <rguenther@suse.de>
14326 PR tree-optimization/47167
14327 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14328 Revert previous change, only avoid enumeral type changes.
14330 2011-01-19 Mike Stump <mikestump@comcast.net>
14332 * doc/tm.texi.in (BRANCH_COST): Englishify.
14333 * doc/tm.texi (BRANCH_COST): Likewise.
14335 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14338 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14339 (gen_scheduled_generic_parms_dies): New functions.
14340 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14341 generation for the end of CU compilation.
14342 (dwarf2out_finish): Generate template parameters DIEs here.
14344 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14347 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14348 debug bind stmt on merge edges.
14350 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14354 * function.c (instantiate_expr): Instantiate incoming rtl of
14355 implicit arguments, and recurse on VALUE_EXPRs.
14356 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14357 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14359 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14361 * c-parser.c (c_parser_for_statement): Initialize
14362 collection_expression.
14364 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14366 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14368 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14370 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14371 (LINK_SHLIB_SPEC): Don't use %(link_path).
14372 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14374 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14376 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14377 (NO_SHARED_LIB_SUPPORT): Remove.
14378 (LINK_SHLIB_SPEC): Remove one conditional definition.
14380 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14382 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14384 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14385 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14386 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14387 %{call_shared} and conditionals on these options not being passed.
14388 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14391 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14393 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14396 * ipa-split.c: Spelling fixes.
14398 2011-01-19 Richard Henderson <rth@redhat.com>
14400 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14401 (*mulsi3): Likewise.
14403 * longlong.h [__mn10300__] (count_leading_zeros): New.
14404 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14405 [__mn10300__] (add_ssaaaa, subddmmss): New.
14406 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14407 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14409 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14411 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14413 2011-01-19 Richard Henderson <rth@redhat.com>
14415 * config/mn10300/mn10300.md (addsi3_flags): New.
14416 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14417 (subsi3_flags, subc_internal, subdi3): New.
14418 (subdi3_internal, *subdi3_degenerate): New.
14419 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14421 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14422 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14423 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14424 * config/mn10300/mn10300-protos.h: Update.
14425 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14426 (return_ret): Likewise. Rename from return_internal_regs.
14427 (return_internal): Remove.
14429 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14430 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14431 (mn10300_legitimate_constant_p): Likewise.
14432 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14433 (mn10300_frame_size): New.
14434 (mn10300_expand_prologue): Use it.
14435 (mn10300_expand_epilogue): Likewise.
14436 (mn10300_initial_offset): Likewise.
14437 * config/mn10300/mn10300-protos.h: Update.
14438 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14439 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14440 (prologue, epilogue, return_internal): Tidy output code.
14441 (mn10300_store_multiple_operation, return): Likewise.
14442 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14443 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14444 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14445 (load_pic, am33_load_pic): New.
14446 (mn10300_load_pic0, mn10300_load_pic1): New.
14448 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14449 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14450 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14451 (cc_flags_for_mode, cc_flags_for_code): New.
14452 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14453 overflow flag is not valid. Validate that the flags we need
14454 for the comparison are valid.
14455 (mn10300_output_cmp): Remove.
14456 (mn10300_output_add): New.
14457 (mn10300_select_cc_mode): Use cc_flags_for_code.
14458 (mn10300_split_cbranch): New.
14459 (mn10300_match_ccmode): New.
14460 (mn10300_split_and_operand_count): New.
14461 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14463 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14464 (addsi3): ... here. Use mn10300_output_add.
14465 (*addsi3_flags): New.
14466 (*am33_subsi3, *mn10300_subsi3): Merge...
14467 (subsi3): ... here. Use attribute isa.
14468 (*subsi3_flags): New.
14469 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14471 (*am33_andsi3, *mn10300_andsi3): Merge...
14472 (andsi3): ... here.
14473 (*andsi3_flags): New.
14474 (andsi3 splitters): New.
14475 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14476 (iorsi3): ... here.
14477 (*iorsi3_flags): New.
14478 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14479 (xorsi3): ... here.
14480 (*xorsi3_flags): New.
14481 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14482 (one_cmplsi2): ... here.
14483 (*one_cmplsi2_flags): New.
14484 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14485 instead of "dax" in constraints. Use mn10300_split_cbranch.
14486 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14487 use matching constraints to eliminate a self-comparison.
14488 (*integer_conditional_branch): Rename from integer_conditional_branch.
14489 Use int_mode_flags to match CC_REG.
14490 (*cbranchsi4_btst, *btstsi): New.
14491 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14492 mn10300_split_cbranch.
14493 (*am33_cmpsf): Rename from am33_cmpsf.
14494 (*float_conditional_branch): Rename from float_conditional_branch.
14495 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14496 (zero_extendqisi2): ... here.
14497 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14498 (zero_extendhisi2): ... here.
14499 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14500 (extendqisi2): ... here.
14501 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14502 (extendhisi2): ... here.
14503 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14504 (ashlsi3): ... here.
14505 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14506 (lshrsi3): ... here.
14507 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14508 (ashrsi3): ... here.
14509 (consecutive add peephole): Remove.
14510 * config/mn10300/predicates.md (label_ref_operand): New.
14511 (int_mode_flags): New.
14512 (CCZN_comparison_operator): New.
14514 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14515 (throughput_42_latency_43): New reservation.
14516 (mulsidi3, umulsidi3): New expanders.
14517 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14518 the MDR register to allocation; separately allocate the low and
14519 high parts of the DImode result.
14520 (umulsidi3_internal): Similarly.
14521 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14522 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14523 (udivsi3, umodsi3): Remove.
14524 (udivmodsi4, divmodsi4): New expanders.
14525 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14526 (*divmodsi4): Simiarly.
14527 (ext_internal): New.
14529 * config/mn10300/constraints.md ("z"): New constraint.
14530 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14531 (FIXED_REGISTERS): Don't fix MDR.
14532 (CALL_USED_REGSITERS): Reformat nicely.
14533 (REG_ALLOC_ORDER): Add MDR.
14534 (enum regclass): Add MDR_REGS.
14535 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14536 (IRA_COVER_CLASSES): Add MDR_REGS.
14537 (REGNO_REG_CLASS): Handle MDR_REG.
14538 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14539 (mn10300_register_move_cost): Likewise.
14540 * config/mn10300/mn10300.md (MDR_REG): New.
14541 (*movsi_internal): Handle moves to/from MDR_REGS.
14543 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14545 (mn10300_secondary_reload): Tidy combination reload classes.
14546 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14547 addresses for AM33. Allow symbolic offsets for reg+imm.
14548 (mn10300_regno_in_class_p): New.
14549 (mn10300_legitimize_reload_address): New.
14550 * config/mn10300/mn10300.h (enum reg_class): Remove
14551 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14552 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14553 SP_OR_GENERAL_REGS.
14554 (REG_CLASS_NAMES): Update to match.
14555 (REG_CLASS_CONTENTS): Likewise.
14556 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14557 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14558 (REGNO_IN_RANGE_P): Remove.
14559 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14560 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14561 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14562 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14563 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14564 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14565 (REGNO_GENERAL_P): New.
14566 (HAVE_POST_MODIFY_DISP): New.
14567 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14568 (LEGITIMIZE_RELOAD_ADDRESS): New.
14569 * config/mn10300/mn10300-protos.h: Update.
14571 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14572 DATA_REGS for AM33 stack-pointer destination.
14573 (mn10300_preferred_output_reload_class): Likewise.
14574 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14575 into a form appropriate for ...
14576 (TARGET_SECONDARY_RELOAD): New.
14577 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14578 * config/mn10300/mn10300-protos.h: Update.
14579 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14580 reload_insi; use the "A" constraint for the scratch; handle AM33
14581 moves of sp to non-address registers.
14583 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14584 (*movqi_internal): ... here.
14585 (*am33_movhi, *mn10300_movhi): Merge into...
14586 (*movhi_internal): ... here.
14587 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14588 as the source/destination of moves from/to SP.
14589 (movsf): Only allow for AM33-2.
14590 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14591 any integer constant constraint. Only allow for AM33-2. Tidy
14592 all of the alternative outputs.
14593 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14594 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14596 (udivsi3, umodsi3): New patterns for MN103 only.
14598 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14600 * doc/tm.texi.in: Spell out that a lack of register class unions
14602 * doc/tm.texi: Regenerate.
14604 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14606 PR rtl-optimization/47337
14607 * dce.c (check_argument_store): New function.
14608 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14610 PR tree-optimization/47290
14611 * tree-eh.c (infinite_empty_loop_p): New function.
14612 (cleanup_empty_eh): Use it.
14614 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14617 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14618 (a64_expand_widen_sum): Ditto.
14619 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14620 (vec_extract_evenodd_help): Ditto.
14621 (vec_extract_evenv4hi): Ditto.
14622 (vec_extract_oddv4hi): Ditto.
14623 (vec_extract_evenv2si): Ditto.
14624 (vec_extract_oddv2si): Ditto.
14625 (vec_extract_evenv2sf): Ditto.
14626 (vec_extract_oddv2sf): Ditto.
14627 (vec_pack_trunc_v4hi: Ditto.
14628 (vec_pack_trunc_v2si): Ditto.
14629 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14630 (vec_interleave_highv8qi): Ditto.
14632 (vec_extract_oddv8qi): Ditto.
14633 (vec_interleave_lowv4hi): Ditto.
14634 (vec_interleave_highv4hi): Ditto.
14635 (vec_interleave_lowv2si): Ditto.
14636 (vec_interleave_highv2si): Ditto.
14638 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14640 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14641 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14642 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14643 (pa_c_mode_for_suffix): New.
14644 (TARGET_EXPAND_BUILTIN): Define.
14645 (TARGET_C_MODE_FOR_SUFFIX): Define.
14646 (pa_builtins): Define.
14647 (pa_init_builtins): Register __float128 type and init new support
14649 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14650 * config/pa/quadlib.c (_U_Qfcopysign): New.
14652 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14654 PR middle-end/46894
14655 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14656 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14659 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14661 PR tree-optimization/47179
14662 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14663 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14665 2011-01-18 Richard Guenther <rguenther@suse.de>
14667 PR rtl-optimization/47216
14668 * emit-rtl.c: Include tree-flow.h.
14669 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14670 of replicating it with different semantics.
14671 * Makefile.in (emit-rtl.o): Adjust.
14673 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14675 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14676 (cortex_a9_dp): Handle neon types correctly.
14678 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14680 PR rtl-optimization/47299
14681 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14682 subtarget. Use normal multiplication if both operands are constants.
14683 * expmed.c (expand_widening_mult): Don't try to optimize constant
14684 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14687 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14689 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14690 spacing after 'e.g.', typos, comma, hyphenation.
14692 2011-01-17 Richard Henderson <rth@redhat.com>
14694 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14695 (rx_restricted_mem_operand): New.
14696 (rx_shift_operand): Use register_operand.
14697 (rx_source_operand, rx_compare_operand): Likewise.
14698 * config/rx/rx.md (addsi3_flags): New expander.
14699 (adddi3): Rewrite as expander.
14700 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14701 (subsi3_flags): New expander.
14702 (subdi3): Rewrite as expander.
14703 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14705 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14706 (rx_init_builtins): Remove sat builtin.
14707 (rx_expand_builtin): Likewise.
14708 * config/rx/rx.md (ssaddsi3): New.
14709 (*sat): Rename from sat. Represent the CC_REG input.
14711 * config/rx/predicates.md (rshift_operator): New.
14712 * config/rx/rx.c (rx_expand_insv): Remove.
14713 * config/rx/rx-protos.h: Update.
14714 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14715 operand to the canonical position.
14716 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14717 (*bitclr, *bitclr_in_memory): Similarly.
14718 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14719 (insv): Retain the zero_extract in the expansion.
14721 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14722 (bswaphi2, bitinvert, revw): Likewise.
14724 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14725 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14726 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14727 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14728 (bitset, bitset_in_memory): Likewise.
14729 (bitinvert, bitinvert_in_memory): Likewise.
14730 (bitclr, bitclr_in_memory): Likewise.
14731 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14732 (rx_strend, rx_cmpstrn): Likewise.
14733 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14734 (bitop peep2 patterns): Remove.
14736 * config/rx/rx.c (rx_match_ccmode): New.
14737 * config/rx/rx-protos.h: Update.
14738 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14739 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14740 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14741 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14742 (fix_truncsfsi2, floatsisf2): Likewise.
14743 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14744 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14745 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14746 (*subsi3_flags, *xorsi3_flags): New.
14748 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14750 * config/rx/rx.c (rx_print_operand): Remove workaround for
14751 unsplit comparison operations.
14753 * config/rx/rx.md (movsicc): Split after reload.
14754 (*movsicc): Merge *movsieq and *movsine via match_operator.
14755 (*stcc): New pattern.
14757 * config/rx/rx.c (rx_float_compare_mode): Remove.
14758 * config/rx/rx.h (rx_float_compare_mode): Remove.
14759 * config/rx/rx.md (cstoresi4): Split after reload.
14760 (*sccc): New pattern.
14762 * config/rx/predicates.md (label_ref_operand): New.
14763 (rx_z_comparison_operator): New.
14764 (rx_zs_comparison_operator): New.
14765 (rx_fp_comparison_operator): New.
14766 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14767 Validate that the flags are set properly for the comparison.
14768 (rx_gen_cond_branch_template): Remove.
14769 (rx_cc_modes_compatible): Remove.
14770 (mode_from_flags): New.
14771 (flags_from_code): Rename from flags_needed_for_conditional.
14772 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14773 (rx_select_cc_mode): Likewise.
14774 (rx_split_fp_compare): New.
14775 (rx_split_cbranch): New.
14776 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14777 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14778 (*cbranchsf4): Similarly.
14779 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14780 match_operator and rx_split_cbranch.
14781 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14782 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14783 (*cmpsi): Rename from cmpsi.
14784 (*tstsi): Rename from tstsi.
14785 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14786 (*conditional_branch): Rename from conditional_branch.
14787 (*reveresed_conditional_branch): Remove.
14788 (b<code>): Remove expander.
14789 * config/rx/rx-protos.h: Update.
14791 * config/rx/rx.c (rx_compare_redundant): Remove.
14792 * config/rx/rx.md (cmpsi): Don't use it.
14793 * config/rx/rx-protos.h: Update.
14795 * config/rx/rx-modes.def (CC_F): New mode.
14796 * config/rx/rx.c (rx_select_cc_mode): New.
14797 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14798 * config/rx/rx-protos.h: Update.
14800 2011-01-17 Richard Henderson <rth@redhat.com>
14802 * except.c (dump_eh_tree): Fix stray ; after for statement.
14804 2011-01-17 Richard Guenther <rguenther@suse.de>
14806 PR tree-optimization/47313
14807 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14808 handling before copying the body. Properly deal with
14809 by-reference result in SSA form.
14811 2011-01-17 Ian Lance Taylor <iant@google.com>
14814 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14815 (struct_value_alias_set): Don't define.
14816 (sparc_option_override): Don't set sparc_sr_alias_set and
14817 struct_value_alias_set.
14818 (save_or_restore_regs): Use gen_frame_mem rather than calling
14820 (sparc_struct_value_rtx): Likewise.
14822 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14825 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14826 (_mm_maskstore_pd): Likewise.
14827 (_mm_maskload_ps): Likewise.
14828 (_mm_maskstore_ps): Likewise.
14829 (_mm256_maskload_pd): Change mask to __m256i.
14830 (_mm256_maskstore_pd): Likewise.
14831 (_mm256_maskload_ps): Likewise.
14832 (_mm256_maskstore_ps): Likewise.
14834 * config/i386/i386-builtin-types.def: Updated.
14835 (ix86_expand_special_args_builtin): Likewise.
14837 * config/i386/i386.c (bdesc_special_args): Update
14838 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14839 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14840 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14841 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14843 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14844 Use <avxpermvecmode> on mask register.
14845 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14847 2011-01-17 Olivier Hainque <hainque@adacore.com>
14848 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14849 Eric Botcazou <ebotcazou@adacore.com>
14852 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14853 if <= USHRT_MAX in 32-bit mode.
14855 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14857 * doc/install.texi (Configuration, Specific): Wrap long
14858 lines in examples. Allow line wrapping in long options
14859 and URLs where beneficial for PDF output.
14861 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14863 * config/mips/mips.c (mips_classify_symbol): Don't return
14864 SYMBOL_PC_RELATIVE for nonlocal labels.
14866 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14868 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14870 2011-01-15 Jan Hubicka <jh@suse.cz>
14872 PR tree-optimization/47276
14873 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14874 declarations as needed.
14876 2011-01-15 Martin Jambor <mjambor@suse.cz>
14878 * common.opt (fdevirtualize): New flag.
14879 * doc/invoke.texi (Option Summary): Document it.
14880 * opts.c (default_options_table): Add devirtualize flag.
14881 * ipa-prop.c (detect_type_change): Return immediately if
14882 devirtualize flag is not set.
14883 (detect_type_change_ssa): Likewise.
14884 (compute_known_type_jump_func): Likewise.
14885 (ipa_analyze_virtual_call_uses): Likewise.
14887 2011-01-14 Martin Jambor <mjambor@suse.cz>
14889 PR tree-optimization/45934
14890 PR tree-optimization/46302
14891 * ipa-prop.c (type_change_info): New type.
14892 (stmt_may_be_vtbl_ptr_store): New function.
14893 (check_stmt_for_type_change): Likewise.
14894 (detect_type_change): Likewise.
14895 (detect_type_change_ssa): Likewise.
14896 (compute_complex_assign_jump_func): Check for dynamic type change.
14897 (compute_complex_ancestor_jump_func): Likewise.
14898 (compute_known_type_jump_func): Likewise.
14899 (compute_scalar_jump_functions): Likewise.
14900 (ipa_analyze_virtual_call_uses): Likewise.
14901 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14903 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14905 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14906 * config/i386/i386.opt (msse5): New Alias.
14908 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14910 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14911 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14912 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14913 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14915 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14917 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14919 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14920 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14921 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14922 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14924 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14926 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14928 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14930 2011-01-14 Mike Stump <mikestump@comcast.net>
14932 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14933 * config/fr30/fr30.md: Likweise
14934 (movsi_push): Likewise.
14935 (movsi_pop): Likewise.
14936 (enter_func): Likewise.
14937 * config/moxie/moxie.md (movsi_push): Likewise.
14938 (movsi_pop): Likewise.
14940 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14942 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14943 %{no_archive} %{exact_version}.
14944 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14945 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14946 %{no_archive} %{exact_version}.
14947 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14948 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14949 * config/mips/vxworks.h: Likewise.
14951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14953 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14955 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14957 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14958 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14960 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14962 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14965 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14967 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14969 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14970 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14972 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14973 Don't handle -shlib.
14975 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14977 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14978 (CC1_SPEC): Don't handle -profile.
14980 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14982 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14983 * config/mips/mips.h (CC1_SPEC): Likewise.
14985 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14987 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14988 * config/mips/mips.h (CC1_SPEC): Likewise.
14990 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14992 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14993 * config/m32r/linux.h (LINK_SPEC): Likewise.
14994 * config/mips/linux.h (LINK_SPEC): Likewise.
14995 * config/mips/linux64.h (LINK_SPEC): Likewise.
14996 * config/sparc/linux.h (LINK_SPEC): Likewise.
14997 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14998 LINK_SPEC): Likewise.
14999 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15001 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15003 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15005 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15007 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15009 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15010 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15012 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15014 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15016 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15018 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15019 supports -Bstatic/-Bdynamic.
15020 * configure: Regenerate.
15022 2011-01-14 Jan Hubicka <jh@suse.cz>
15023 Jack Howarth <howarth@bromo.med.uc.edu>
15026 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15027 when checking debug_info_level. Test write_symbols instead of
15028 debug_hooks->var_location when setting flag_var_tracking_uninit.
15030 2011-01-14 Richard Guenther <rguenther@suse.de>
15032 PR tree-optimization/47179
15033 * target.def (ref_may_alias_errno): New target hook.
15034 * targhooks.h (default_ref_may_alias_errno): Declare.
15035 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15036 (default_ref_may_alias_errno): New function.
15037 * target.h (struct ao_ref_s): Declare.
15038 * tree-ssa-alias.c: Include target.h.
15039 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15040 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15041 (targhooks.o): Likewise.
15042 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15043 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15045 2011-01-14 Richard Guenther <rguenther@suse.de>
15047 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15049 2011-01-14 Richard Guenther <rguenther@suse.de>
15051 PR tree-optimization/47280
15052 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15053 return CFG changes.
15054 (tree_ssa_forward_propagate_single_use_vars): Deal with
15055 CFG changes from associate_plusminus.
15057 2011-01-14 Richard Guenther <rguenther@suse.de>
15059 PR middle-end/47281
15061 2011-01-11 Richard Guenther <rguenther@suse.de>
15063 PR tree-optimization/46076
15064 * tree-ssa.c (useless_type_conversion_p): Conversions from
15065 unprototyped to empty argument list function types are useless.
15067 2011-01-14 Richard Guenther <rguenther@suse.de>
15069 PR tree-optimization/47286
15070 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15072 2011-01-14 Martin Jambor <mjambor@suse.cz>
15074 PR middle-end/46823
15075 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15077 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15079 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15080 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15081 * config/xtensa/xtensa.c (xtensa_libcall_value,
15082 xtensa_function_value_regno_p): New functions.
15083 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15085 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15088 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15090 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15091 New function prototype.
15092 * config/i386/winnt.c (i386_pe_assemble_visibility):
15093 Warn only if attribute was specified by user.
15095 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15098 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15100 (floatunsdidf2_fcfidu): Ditto.
15102 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15104 * config/s390/s390.c (print_operand_address): Replace 'error' with
15105 'output_operand_lossage'.
15106 (print_operand): Likewise.
15108 2011-01-13 Jeff Law <law@redhat.com>
15110 PR rtl-optimization/39077
15111 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15112 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15113 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15114 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15115 * gcse.c (prune_insertions_deletions): New function.
15116 (compute_pre_data): Use it.
15118 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15121 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15123 (prune_unused_types_mark): Use it.
15125 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15127 PR rtl-optimization/45352
15128 * sel-sched.c: Update copyright years.
15129 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15130 in the advancing loop when we have issued issue_rate insns.
15132 2011-01-12 Richard Henderson <rth@redhat.com>
15134 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15135 (TARGET_MD_ASM_CLOBBERS): New.
15137 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15138 (TARGET_DELEGITIMIZE_ADDRESS): New.
15140 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15141 (clzsi2, *bsch): New patterns.
15143 * config/mn10300/mn10300.md (INT): New mode iterator.
15144 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15146 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15147 flag_split_wide_types.
15149 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15150 (mn10300_trampoline_init): Rewrite without a template, an immediate
15151 load and a direct branch.
15152 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15154 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15156 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15157 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15158 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15159 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15161 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15164 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15167 2011-01-12 Jan Hubicka <jh@suse.cz>
15170 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15171 (PLUGIN_COND_CLOSE): New macro.
15172 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15174 2011-01-12 Richard Guenther <rguenther@suse.de>
15177 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15178 register variables in a MEM_REF.
15180 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15182 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15183 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15184 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15185 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15186 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15187 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15188 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15189 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15190 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15191 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15192 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15193 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15194 * config/gnu-user.h: New. Copied from linux.h.
15195 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15196 GNU_USER_TARGET_STARTFILE_SPEC.
15197 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15198 GNU_USER_TARGET_ENDFILE_SPEC.
15199 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15200 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15201 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15202 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15203 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15204 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15205 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15206 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15207 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15208 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15209 * config/arm/linux-eabi.h (CC1_SPEC): Use
15210 GNU_USER_TARGET_CC1_SPEC.
15211 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15212 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15213 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15214 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15215 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15216 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15217 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15218 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15220 2011-01-12 Richard Guenther <rguenther@suse.de>
15223 * doc/invoke.texi (ffast-math): Document it is turned on
15226 2011-01-12 Jan Hubicka <jh@suse.cz>
15228 PR tree-optimization/47233
15229 * opts.c (common_handle_option): Disable ipa-reference with profile
15232 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15234 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15237 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15239 * c-parser.c (c_lex_one_token): Updated and reindented some
15240 comments. No changes in code.
15242 2011-01-11 Ian Lance Taylor <iant@google.com>
15244 * godump.c (go_output_var): Don't output the variable if there is
15245 already a type with the same name.
15247 2011-01-11 Ian Lance Taylor <iant@google.com>
15249 * godump.c (go_format_type): Don't generate float80.
15251 2011-01-11 Richard Henderson <rth@redhat.com>
15253 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15254 declaration. Rewrite for both speed and size.
15255 (mn10300_address_cost_1): Remove.
15256 (mn10300_register_move_cost): New.
15257 (mn10300_memory_move_cost): New.
15258 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15259 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15260 extensions, shifts, BSWAP, CLZ.
15261 (mn10300_wide_const_load_uses_clr): Remove.
15262 (TARGET_REGISTER_MOVE_COST): New.
15263 (TARGET_MEMORY_MOVE_COST): New.
15264 * config/mn10300/mn10300-protos.h: Update.
15265 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15267 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15268 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15269 * config/mn10300/mn10300-protos.h: Update.
15270 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15271 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15272 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15273 (*test_int_bitfield, *test_byte_bitfield): Remove.
15274 (*bit_test, *subreg_bit_test): Remove.
15275 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15277 * config/mn10300/constraints.md ("c"): Rename from "A".
15278 ("A", "D"): New constraint letters.
15279 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15280 (fmssf4, fnmasf4, fnmssf4): Likewise.
15282 * config/mn10300/mn10300.md (isa): New attribute.
15283 (enabled): New attribute.
15285 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15286 (abssf2, negsf2): Define only for hardware fp.
15287 (sqrtsf2): Reformat.
15288 (addsf3, subsf3, mulsf3): Merge expander and insn.
15290 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15291 (DEBUGGER_AUTO_OFFSET): Remove.
15292 (DEBUGGER_ARG_OFFSET): Remove.
15294 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15295 Emit register stores with the same offsets as the hardware.
15296 (mn10300_store_multiple_operation): Don't check that the register
15297 save offsets are monotonic.
15298 * config/mn10300/mn10300-protos.h: Update.
15300 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15302 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15303 in terms of the value on the stack, not the MDR register.
15305 2011-01-11 Jan Hubicka <jh@suse.cz>
15309 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15310 (symbol_alias_set_destroy, symbol_alias_set_contains,
15311 propagate_aliases_backward): Declare.
15312 * lto-streamer-out.c (struct sets): New sturcture.
15313 (trivally_defined_alias): New function.
15314 (output_alias_pair_p): Rewrite.
15315 (output_unreferenced_globals): Fix output of alias pairs.
15316 (produce_symtab): Likewise.
15317 * ipa.c (function_and_variable_visibility): Set weak alias destination
15319 * varasm.c (symbol_alias_set_t): Remove.
15320 (symbol_alias_set_destroy): Export.
15321 (propagate_aliases_forward, propagate_aliases_backward): New functions
15323 (compute_visible_aliases): ... this one; remove.
15324 (trivially_visible_alias): New
15325 (trivially_defined_alias): New.
15326 (remove_unreachable_alias_pairs): Rewrite.
15327 (finish_aliases_1): Reorganize code checking if alias is defined.
15328 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15331 2011-01-11 Richard Guenther <rguenther@suse.de>
15333 PR tree-optimization/46076
15334 * tree-ssa.c (useless_type_conversion_p): Conversions from
15335 unprototyped to empty argument list function types are useless.
15337 2011-01-11 Richard Guenther <rguenther@suse.de>
15339 PR middle-end/45235
15340 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15341 volatile MEMs as MEM_READONLY_P.
15343 2011-01-11 Richard Guenther <rguenther@suse.de>
15345 PR tree-optimization/47239
15346 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15348 2011-01-11 Jeff Law <law@redhat.com>
15350 PR tree-optimization/47086
15351 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15352 IVs from statements that might throw.
15354 2011-01-10 Jan Hubicka <jh@suse.cz>
15357 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15359 2011-01-10 Jan Hubicka <jh@suse.cz>
15362 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15363 when correcting profile.
15365 2011-01-10 Jan Hubicka <jh@suse.cz>
15368 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15369 DECL_FINI_PRIORITY.
15370 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15371 Restore DECL_FINI_PRIORITY.
15373 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15375 * doc/gimple.texi: Fix quoting of multi-word return values in
15376 @deftypefn statements. Ensure presence of return value. Wrap
15377 overlong @deftypefn lines.
15378 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15379 descriptions of removed functions.
15380 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15381 of multi-word return value in @deftypefn statement.
15383 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15385 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15386 (Conditional Expressions, Logical Operators)
15387 (Statement and operand traversals): Do not indent smallexample
15388 code. Fix duplicate function argument in example.
15390 2011-01-10 Jeff Law <law@redhat.com>
15392 PR tree-optimization/47141
15393 * ipa-split.c (split_function): Handle case where we are
15394 returning a value and the return block has a virtual operand phi.
15396 2011-01-10 Jan Hubicka <jh@suse.cz>
15398 PR tree-optimization/47234
15399 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15400 (pass_feedback_split_functions): Declare.
15401 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15403 * ipa-split.c (gate_split_functions): Update comments; disable
15404 split-functions for profile_arc_flag and branch_probabilities.
15405 (gate_feedback_split_functions): New function.
15406 (execute_feedback_split_functions): New function.
15407 (pass_feedback_split_functions): New global var.
15409 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15412 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15413 calling gimple_call_set_cannot_inline.
15415 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15417 * config/darwin-sections.def: Remove unused section.
15419 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15422 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15424 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15427 * c-parser.c (c_parser_declaration_or_fndef): Improved
15430 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15432 * config/i386/winnt.c (i386_pe_start_function): Make sure
15433 to switch back to function's section.
15435 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15439 * plugin.c: Move include of dlfcn.h from here...
15440 * system.h: ... to here.
15442 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15444 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15446 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15447 two extra empty pages in PDF output.
15449 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15452 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15453 for error recovery purposes behave as if it was not specified so
15454 that the default type is usd.
15456 2011-01-07 Jan Hubicka <jh@suse.cz>
15458 PR tree-optmization/46469
15459 * ipa.c (function_and_variable_visibility): Clear needed flags on
15460 nodes with external decls; handle weakrefs merging correctly.
15462 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15464 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15467 2011-01-07 Jan Hubicka <jh@suse.cz>
15469 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15470 and no longer claim that gold is required for linker plugin.
15471 * configure: Regenerate.
15472 * gcc.c (PLUGIN_COND): New macro.
15473 (LINK_COMMAND_SPEC): Use it.
15474 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15475 * config.in (HAVE_LTO_PLUGIN): New.
15476 * configure.ac (--with-lto-plugin): New parameter; autodetect
15479 2011-01-07 Jan Hubicka <jh@suse.cz>
15481 PR tree-optimization/46367
15482 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15483 when we can update original.
15484 (cgraph_mark_inline_edge): Sanity check.
15485 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15487 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15489 * config/spu/spu.h (ASM_COMMENT_START): Define.
15491 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15494 * gcc.c (%>S): New.
15495 (SWITCH_KEEP_FOR_GCC): Likewise.
15496 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15497 (do_spec_1): Handle "%>".
15499 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15501 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15504 * config/i386/i386.c (ix86_delegitimize_address): If
15505 simplify_gen_subreg fails, return orig_x.
15508 * value-prof.c (gimple_stringop_fixed_value): Handle
15509 lhs of the call properly.
15511 2011-01-07 Jan Hubicka <jh@suse.cz>
15514 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15516 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15518 * target.def (function_switched_text_sections): New hook.
15519 * doc/tm.texi: Regenerated.
15520 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15521 * final.c (default_function_switched_text_sections): New.
15522 (final_scan_insn): Call function_switched_text_sections when a
15523 mid-function section change occurs.
15524 * output.h (default_function_switched_text_sections): Declare.
15525 * config/darwin-protos.h (darwin_function_switched_text_sections):
15527 * config/darwin.c (darwin_function_switched_text_sections): New.
15528 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15530 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15532 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15533 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15534 the secondary code fragment when outputting for DWARF == 2.
15536 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15538 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15539 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15541 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15542 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15544 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15547 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15548 when it is not empty.
15550 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15553 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15554 (case ${target}): Add btver1.
15555 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15556 -march=native recognize btver1 processors.
15557 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15558 btver1 def_and_undef
15559 * config/i386/i386.c (struct processor_costs btver1_cost): New
15561 (m_BTVER1): New definition.
15562 (m_AMD_MULTIPLE): Includes m_BTVER1.
15563 (initial_ix86_tune_features): Add btver1 tune.
15564 (processor_target_table): Add btver1 entry.
15565 (static const char *const cpu_names): Add btver1 entry.
15566 (software_prefetching_beneficial_p): Add btver1.
15567 (ix86_option_override_internal): Add btver1 instruction sets.
15568 (ix86_issue_rate): Add btver1.
15569 (ix86_adjust_cost): Add btver1.
15570 * config/i386/i386.h (TARGET_BTVER1): New definition.
15571 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15572 (enum processor_type): Add PROCESSOR_BTVER1.
15573 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15575 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15578 * config/i386/i386.c (legitimize_tls_address)
15579 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15580 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15581 (tls_initial_exec_64_sun): New pattern.
15583 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15585 * doc/invoke.texi (Overall Options): Improve wording and markup
15586 of the description of -wrapper.
15588 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15590 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15591 rdynamic, threads): New Driver options.
15593 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15596 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15597 if coming from .tdata.
15598 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15600 2011-01-06 Jan Hubicka <jh@suse.cz>
15603 * collect2.c (main): Do not enable LTOmode when plugin is active.
15605 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15608 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15609 --version output if supported.
15610 * configure: Regenerate.
15612 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15614 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15617 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15620 * c-convert.c (convert): When converting a complex expression
15621 other than COMPLEX_EXPR to a different complex type, ensure
15622 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15623 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15624 when converting COMPLEX_TYPE.
15626 2011-01-06 Ira Rosen <irar@il.ibm.com>
15628 PR tree-optimization/47139
15629 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15630 only the last reduction value is used outside the loop. Update
15633 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15635 * config/rtems.opt: New.
15636 * config.gcc (*-*-rtems*): Use rtems.opt.
15638 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15640 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15641 processors do not support 3DNow instructions.
15643 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15645 * config/spu/spu.c (spu_option_override): Set parameter
15646 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15648 2011-01-05 Jan Hubicka <jh@suse.cz>
15650 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15651 at the command line.
15653 2011-01-05 Martin Jambor <mjambor@suse.cz>
15656 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15657 deltas on streamed outgoing edges.
15658 (output_node_opt_summary): Output info for outgoing edges only when
15659 the node is in new parameter set.
15660 (output_cgraph_opt_summary): New parameter set, passed to the two
15661 aforementioned functions. Update its forward declaration and its
15664 2011-01-05 Tom Tromey <tromey@redhat.com>
15666 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15667 operator to c_finish_omp_atomic.
15668 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15669 (build_unary_op): Update.
15670 (build_modify_expr): Update.
15671 (build_asm_expr): Update.
15673 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15675 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15676 newly inserted insns.
15677 (pad_bb): Likewise.
15678 (spu_emit_branch_hint): Likewise.
15679 (insert_hbrp_for_ilb_runout): Likewise.
15680 (spu_machine_dependent_reorg): Call df_finish_pass after
15681 schedule_insns returns.
15683 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15685 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15687 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15689 PR tree-optimization/47005
15690 * tree-sra.c (struct access): Add 'non_addressable' bit.
15691 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15692 (decide_one_param_reduction): Return 0 if the parameter is passed by
15693 reference and one of the accesses in the group is non_addressable.
15695 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15697 PR tree-optimization/47056
15698 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15699 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15700 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15702 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15704 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15705 initializer. Skip view conversions from aggregate types.
15707 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15710 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15712 2011-01-04 Philipp Thomas <pth@suse.de>
15714 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15717 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15719 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15720 on empty epilogue sequences.
15722 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15724 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15725 non-static): New Driver options.
15727 2011-01-04 Jie Zhang <jie@codesourcery.com>
15730 * gcc.c (default_compilers[]): Set combinable field to 0
15731 for all assembly languages.
15733 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15735 * config/mips/loongson3a.md: New file.
15736 * config/mips/mips.md: Include loongson3a.md.
15737 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15740 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15742 PR middle-end/47017
15743 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15744 instead of convert_memory_address_addr_space on the base expression.
15746 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15748 * config/spu/spu.c (spu_option_override): Update error text
15749 for bad -march= / -mtune= values.
15751 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15753 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15754 if branch-hint optimization will be performed.
15756 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15758 PR tree-optimization/47148
15759 * ipa-split.c (split_function): Convert arguments to
15760 DECL_ARG_TYPE if possible.
15762 PR tree-optimization/47155
15763 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15764 when computing uns.
15766 PR rtl-optimization/47157
15767 * combine.c (try_combine): If undobuf.other_insn becomes
15768 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15769 and set *new_direct_jump_p too.
15771 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15773 PR tree-optimization/47021
15774 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15776 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15778 * gcc.c (process_command): Update copyright notice dates.
15779 * gcov.c (print_version): Likewise.
15780 * gcov-dump.c (print_version): Likewise.
15781 * mips-tfile.c (main): Likewise.
15782 * mips-tdump.c (main): Likewise.
15784 2011-01-03 Martin Jambor <mjambor@suse.cz>
15786 PR tree-optimization/46801
15787 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15788 aggregate fields start at byte boundary instead of the bit-field flag.
15790 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15793 * gcc.c (main): Revert revision 168407.
15795 2011-01-03 Martin Jambor <mjambor@suse.cz>
15797 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15799 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15801 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15802 vector optab to expand vector/scalar shift, update gimple to vector.
15804 2011-01-03 Martin Jambor <mjambor@suse.cz>
15806 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15809 2011-01-03 Martin Jambor <mjambor@suse.cz>
15811 PR tree-optimization/46984
15812 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15814 (cgraph_create_indirect_edge): Fixed line length.
15815 (cgraph_indirect_call_info): Declare.
15816 (cgraph_make_edge_direct) Update declaration.
15817 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15818 (cgraph_create_indirect_edge): Use it.
15819 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15821 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15822 the new thunk_delta representation.
15823 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15825 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15826 (ipa_read_indirect_edge_info): Likewise.
15827 * lto-cgraph.c (output_edge_opt_summary): New function.
15828 (output_node_opt_summary): Call it on all outgoing edges.
15829 (input_edge_opt_summary): New function.
15830 (input_node_opt_summary): Call it on all outgoing edges.
15832 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15835 * gcc.c (main): Don't check have_o when settting combine_inputs.
15837 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15839 * regrename.c: Add general comment describing the pass.
15840 (struct du_head): Remove 'length' field.
15841 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15842 (regrename_optimize): Do not sort chains. Rework comments, add others.
15843 Force renaming to the preferred class (if any) in the first pass and do
15844 not consider registers that belong to it in the second pass.
15845 (create_new_chain): Do not set 'length' field.
15846 (scan_rtx_reg): Likewise.
15848 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15850 PR tree-optimization/47140
15851 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15852 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15853 to bit_value_binop.
15855 PR rtl-optimization/47028
15856 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15857 parm_birth_insn instead of at the beginning of first bb.
15859 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15861 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15862 Remove the word "see" before "@pxref".
15863 * doc/rtl.texi: Remove the word "see" before "@pxref".
15865 2011-01-01 Jan Hubicka <jh@suse.cz>
15867 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15870 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15873 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15876 Copyright (C) 2011 Free Software Foundation, Inc.
15878 Copying and distribution of this file, with or without modification,
15879 are permitted in any medium without royalty provided the copyright
15880 notice and this notice are preserved.