1 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2 Uros Bizjak <ubizjak@gmail.com>
4 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5 (HAVE_AS_IX86_TLSGDPTL): Define.
6 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7 (HAVE_AS_IX86_TLSLDMPLT): Define.
8 * configure: Regenerate.
9 * config.in: Regenerate.
10 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12 TARGET_SUN_TLS, use @tlsgdplt or @plt.
13 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
18 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
20 * sched-int.h (struct _haifa_deps_insn_data): New members cond
22 (INSN_COND, INSN_REVERSE_COND): New macros.
23 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
25 (sched_get_condition_with_rev): Cache the results, and look them up
27 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
28 are clobbered by the current insn.
29 * target.def (exposed_pipline): New sched data hook.
30 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
31 * doc/tm.texi: Regenerate.
33 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35 PR tree-optimization/49170
36 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
39 2011-05-27 Richard Guenther <rguenther@suse.de>
42 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
45 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
47 * haifa-sched.c (sched_scan_info): Remove.
48 (schedule_block): Call sched_extend_luids rather than sched_init_luids
50 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
53 (sched_extend_luids): Renamed from luids_extend_insn and no longer
54 static. All callers changed.
55 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
56 static. All callers changed.
57 (sched_init_luids): Remove all arguments except the first. All
58 callers changed. Don't use sched_scan.
59 (haifa_init_h_i_d): Likewise.
60 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
61 manually rather than using sched_init_luids. Likewise with
62 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
63 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
64 rather than sched_init_luids with NULL args.
65 * sel-sched-ir.c (new_insns): Remove variable.
66 (sched_scan): New static function, previously in haifa-sched.c. Remove
67 all arguments but the first two; all callers changed.
68 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
69 rather than sched_init_luids.
70 (sel_init_bbs): Remove second argument. All callers changed.
71 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
73 (create_insn_rtx_from_pattern): Likewise.
74 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
75 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
76 (sched_init_insn_luid, sched_extend_luids): Declare.
77 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
80 2011-05-27 Richard Guenther <rguenther@suse.de>
83 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
84 A CMP B ? (T) true : (T) false for non-integral types T again.
86 2011-05-27 Jan Hubicka <jh@suse.cz>
88 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
89 so 0 means NULL string.
90 (lto_output_string_with_length): ... here.
91 (lto_output_string, output_string_cst, output_identifier): Update
92 handling of NULL strings.
93 (lto_output_location_bitpack): New function.
94 (lto_output_location): Use it.
95 (lto_output_tree_ref): Use output_record_start.
96 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
98 * lto-streamer-in.c (string_for_index): Break out from ...; offset
100 (input_string_internal): ... here;
101 (input_string_cst, input_identifier, lto_input_string): Update handling
103 (lto_input_location_bitpack): New function
104 (lto_input_location): Use it.
105 (unpack_ts_type_common_value_fields): Pack align & alias in var len
107 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
108 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
109 (bp_pack_value): Sanity check the value range.
110 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
112 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
115 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
117 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
118 call_arg_location instructions down the floor.
120 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
122 PR rtl-optimization/49154
123 * ira.c (setup_pressure_classes): Process class without sublcasses
124 as a candidate for pressure classes.
126 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
128 PR rtl-optimization/48575
129 * genrecog.c (position_type): New enum.
130 (position): New structure.
131 (decision): Use position structure instead of a string.
132 (root_pos, peep2_insn_pos_list): New variables.
133 (next_position, compare_positions): New functions.
134 (new_decision): Use position structures instead of strings.
135 (maybe_both_true): Likewise.
136 (change_state): Likewise.
137 (write_tree): Likewise.
138 (make_insn_sequence): Likewise.
140 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
142 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
143 TS_BASE instead of TS_COMMON.
144 (find_decls_types_r): Check for TS_TYPED structure before looking at
146 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
148 (BLOCK_CHAIN): Use new chain field.
150 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
152 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
153 moves expensive on Power7 also.
155 2011-05-26 Richard Guenther <rguenther@suse.de>
157 * fold-const.c (fold_unary_loc): Remove bogus code.
159 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
161 * tree.h (struct tree_identifier): Inherit from tree_typed, not
163 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
164 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
165 TS_BASE instead of TS_COMMON.
166 * varasm.c (assemble_name): Remove assert.
168 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
170 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
172 * libgcc-std.ver: Delete file.
174 2011-05-26 Richard Guenther <rguenther@suse.de>
176 PR tree-optimization/48702
177 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
178 only when we know the base address is within bounds.
179 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
180 assume the base address of TARGET_MEM_REFs is in bounds.
182 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
185 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
186 declaration in TARGET_SOLARIS.
188 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
190 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
191 The instruction is then expanded explicitly.
192 (supported_compare): Callable instruction.
195 2011-05-26 Jakub Jelinek <jakub@redhat.com>
198 * gimplify.c (shortcut_cond_r): Don't special case
199 COND_EXPRs if they have void type on one of their arms.
201 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
203 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
204 to reduce duplication, and to achieve a slightly more logical order
207 2011-05-26 Jakub Jelinek <jakub@redhat.com>
209 PR tree-optimization/49161
210 * tree-vrp.c (struct case_info): New type.
211 (compare_case_labels): Sort case_info structs instead of
212 trees, and not primarily by CASE_LABEL uids but by
213 label_for_block indexes.
214 (find_switch_asserts): Put case labels into struct case_info
215 array instead of TREE_VEC, adjust sorting, compare label_for_block
216 values instead of CASE_LABELs.
218 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
220 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
221 ("orndi3_neon"): Likewise.
222 ("bic<mode>3_neon"): Likewise.
224 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
226 PR tree-optimization/49038
227 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
228 Ensure at least one epilogue iteration if required by data
230 * tree-vectorizer.h (struct _loop_vec_info): Add new field
231 to mark loops that require peeling for gaps.
232 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
233 (vect_get_known_peeling_cost): Take peeling for gaps into
235 (vect_transform_loop): Generate epilogue if required by data
237 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
238 loop as requiring an epilogue if there are gaps in the end of
241 2011-05-25 Ian Lance Taylor <iant@google.com>
243 * godump.c (go_format_type): Output the first field with a usable
246 2011-05-25 Ian Lance Taylor <iant@google.com>
248 * godump.c (go_format_type): Check for invalid type names, pointer
249 target types, and struct field types.
251 2011-05-25 Jason Merrill <jason@redhat.com>
253 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
255 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
257 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
259 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
261 * config/i386/i386.md (*movqi_extv_1)): Put back
262 "register_operand" check in "type" calculation.
263 (*movqi_extzv_2): Likewise.
265 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
267 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
269 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
272 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
273 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
274 __divxc3, __divtc3): Wrap definitions in #ifndef.
276 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
279 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
280 "register_operand" check and replace q_regs_operand with
281 QIreg_operand in "type" calculation.
282 (*movqi_extv_1): Likewise.
283 (*movqi_extzv_2_rex64): Likewise.
284 (*movqi_extzv_2): Likewise.
286 * config/i386/predicates.md (QIreg_operand): New.
288 2011-05-25 Richard Guenther <rguenther@suse.de>
290 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
291 type-based offset disambiguation, streamline MEM_REF and
292 TARGET_MEM_REF handling.
294 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
296 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
297 (bdesc_special_args): Add pause intrinsic.
299 * config/i386/i386.md (UNSPEC_PAUSE): New.
302 * config/i386/ia32intrin.h (__pause): Likewise.
304 * doc/extend.texi (X86 Built-in Functions): Add documentation for
307 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
309 PR tree-optimization/46728
310 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
311 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
313 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
315 * tree.h (struct tree_exp): Inherit from struct tree_typed.
316 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
317 instead of TS_COMMON.
319 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
321 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
322 LIBGCC2_GNU_PREFIX is defined.
324 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
325 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
326 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
327 __clz_tab): Define using __N.
328 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
329 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
330 * target.def (libfunc_gnu_prefix): New hook.
331 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
332 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
333 * doc/tm.texi: Regenerate.
334 * system.h (LIBGCC2_GNU_PREFIX): Poison.
335 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
337 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
338 (init_optabs): Likewise for the bswap libfuncs.
339 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
341 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
342 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
343 * libgcc-std.ver: Remove.
344 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
345 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
347 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
348 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
349 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
350 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
351 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
352 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
353 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
354 * config/fixed-bit.h (FIXED_OP): Define differently depending on
355 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
356 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
358 2011-05-25 Jan Hubicka <jh@suse.cz>
360 * lto-streamer-out.c (output_record_start): Use lto_output_enum
361 (lto_output_tree): Use output_record_start.
362 * lto-streamer-in.c (input_record_start): Use lto_input_enum
363 (lto_get_pickled_tree): Use input_record_start.
364 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
365 (lto_value_range_error): New function.
366 * lto-streamer.h (lto_value_range_error): Declare.
367 (lto_output_int_in_range, lto_input_int_in_range): New functions.
368 (lto_output_enum, lto_input_enum): New macros.
370 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
372 * common.opt (flag_stack_usage_info): New variable.
373 (-Wstack-usage): New option.
374 * doc/invoke.texi (Warning options): Document -Wstack-usage.
375 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
376 <OPT_fstack_usage>: Likewise.
377 * toplev.c (output_stack_usage): Handle -Wstack-usage.
378 * calls.c (expand_call): Test flag_stack_usage_info variable instead
380 (emit_library_call_value_1): Likewise.
381 * explow.c (allocate_dynamic_stack_space): Likewise.
382 * function.c (instantiate_virtual_regs ): Likewise.
383 (prepare_function_start): Likewise.
384 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
385 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
386 * config/arm/arm.c (arm_expand_prologue): Likewise.
387 (thumb1_expand_prologue): Likewise.
388 * config/avr/avr.c (expand_prologue): Likewise.
389 * config/i386/i386.c (ix86_expand_prologue): Likewise.
390 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
391 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
392 * config/mips/mips.c (mips_expand_prologue): Likewise.
393 * config/pa/pa.c (hppa_expand_prologue): Likewise.
394 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
395 * config/s390/s390.c (s390_emit_prologue): Likewise.
396 * config/sh/sh.c (sh_expand_prologue): Likewise.
397 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
398 * config/spu/spu.c (spu_expand_prologue): Likewise.
400 2011-05-25 Richard Guenther <rguenther@suse.de>
402 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
403 (gimple_canonical_types_compatible_p): Likewise.
405 2011-05-25 Jan Hubicka <jh@suse.cz>
408 * ipa.c (function_and_variable_visibility): Only add to same
409 comdat group list if DECL_ONE_ONLY.
411 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
413 PR rtl-optimization/49014
414 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
416 2011-05-25 Jakub Jelinek <jakub@redhat.com>
419 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
421 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
423 PR rtl-optimization/48757
424 * ira-build.c (loop_with_eh_edge_p): Rename to
425 loop_with_complex_edge_p, check edges on complexity, make function
427 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
430 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
432 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
433 force flag_ira_share_save_slots to 0.
435 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
437 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
438 (vt_initialize): Set PROLOGUE_BB unconditionally.
439 Add block comment about CFA_BASE_RTX machinery.
440 Reset FP_CFA_OFFSET to -1 on all invalid paths.
441 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
443 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
446 * c-parser.c (c_parser_objc_class_instance_variables): More robust
447 parsing of syntax error in ObjC instance variable lists. In
448 particular, avoid an infinite loop if there is a stray ']'.
449 Updated error message.
451 2011-05-24 Ian Lance Taylor <iant@google.com>
453 * godump.c (go_define): Don't accept a string immediately after
456 2011-05-24 Ian Lance Taylor <iant@google.com>
458 * godump.c (struct godump_container): Add invalid_hash field.
459 (go_format_type): Return false if type is found in invalid_hash.
460 (go_output_typedef): Add invalid type to invalid_hash.
461 (go_finish): Create and delete invalid_hash.
463 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
465 PR tree-optimization/46728
466 * tree-ssa-math-opts.c (powi_table): New.
467 (powi_lookup_cost): New.
469 (powi_as_mults_1): New.
470 (powi_as_mults): New.
471 (gimple_expand_builtin_powi): New.
472 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
473 (gate_cse_sincos): Remove sincos/cexp restriction.
475 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
478 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
480 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
481 * mips-tdump.c: Likewise.
483 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
486 * config/i386/driver-i386.c (host_detect_local_cpu): Always
487 add -mno-XXX. Handle FMA.
489 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
491 PR rtl-optimization/48633
492 * ira-build.c (loop_with_eh_edge_p): New function.
493 (mark_loops_for_removal): Use it.
495 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
497 PR rtl-optimization/48971
498 * ira.c (setup_pressure_classes): Don't check register move cost
499 for classes with one registers. Don't add pressure class if there
500 is a pressure class with the same available hard registers.
501 Check contains_reg_of_mode. Fix a typo in collecting
502 temp_hard_regset. Ignore hard registers not belonging to a class.
504 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
507 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
509 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
510 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512 PR gcov-profile/48845
513 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
515 2011-05-24 Richard Guenther <rguenther@suse.de>
517 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
518 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
519 (gimple_types_compatible_p_1): Adjust.
520 (iterative_hash_canonical_type): Do not bother about complete vs.
522 (gimple_canonical_types_compatible_p): Likewise.
524 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
528 2011-05-24 Richard Guenther <rguenther@suse.de>
531 * gimple.c (gimple_register_canonical_type): Revert
533 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
534 does not for a tree for the case where it matters. Cache
535 pointer-type alias-sets.
537 2011-05-24 Joseph Myers <joseph@codesourcery.com>
539 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
540 (OBJS): Remove options.o, opts-common.o and prefix.o.
541 (OBJS-libcommon-target): New.
542 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
543 (BACKEND): Include libcommon-target.a.
544 (MOSTLYCLEANFILES): Include libcommon-target.a.
545 (libcommon-target.a): New.
546 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
549 2011-05-23 Joseph Myers <joseph@codesourcery.com>
551 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
552 parts of output shared with the driver.
553 * optc-gen.awk: Don't generate parts of output not shared with the
555 * opth-gen.awk: Remove GCC_DRIVER conditionals.
556 * doc/options.texi (SourcerInclude): Mention options-save.c.
557 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
558 (OBJS): Add options-save.o.
559 (options-save.c, options-save.o): New.
560 (options.o): Update dependencies.
561 (gcc-options.o): Remove.
562 (mostlyclean): Remove options-save.c.
564 2011-05-23 Jakub Jelinek <jakub@redhat.com>
567 * dbxout.c: Include cgraph.h.
568 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
569 and without value expr, return NULL if no varpool node exists for
570 it or if it is not needed.
571 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
574 * c-decl.c (start_decl): Convert expr to void_type_node.
576 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
578 PR rtl-optimization/48826
579 * emit-rtl.c (try_split): When splitting a call that is followed
580 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
582 2011-05-23 Jakub Jelinek <jakub@redhat.com>
584 * cfgexpand.c (expand_debug_expr): For unused non-addressable
585 parameters passed in memory prefer using DECL_INCOMING_RTL over
586 the pseudos it will be copied into.
588 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
591 * config/i386/i386.c (ix86_option_override_internal): Save the
592 initial options after checking vzeroupper.
594 2011-05-23 David Li <davidxl@google.com>
596 PR tree-optimization/48988
597 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
598 Initialize has_valid_pred for each pred chain.
600 2011-05-23 Richard Guenther <rguenther@suse.de>
602 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
603 (iterative_hash_gimple_type): Always hash type names.
605 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
607 * c-typeck.c (build_function_call_vec): Tweak call to
608 check_function_arguments.
610 2011-05-23 Richard Guenther <rguenther@suse.de>
612 PR tree-optimization/49115
613 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
614 is not necessarily carried out, do not claim it kills the ref.
615 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
617 2011-05-23 Richard Guenther <rguenther@suse.de>
620 * builtins.c (fold_builtin_memory_op): Be less restrictive about
621 what pointer types we accept for folding.
623 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
625 * gthr-gnat.c: Remove.
626 * gthr-gnat.h: Remove.
627 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
628 * config/t-freebsd (LIB2ADDEH): Likewise.
629 * config/t-linux (LIB2ADDEH): Likewise.
630 * config/t-sol2 (LIB2ADDEH): Likewise.
631 * config/ia64/t-vms (LIB2ADDEH): Likewise.
632 * configure.ac (target_thread_file): Remove gnat handling.
633 * configure: Regenerate.
634 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
636 2011-05-23 Tristan Gingold <gingold@adacore.com>
637 Eric Botcazou <ebotcazou@adacore.com>
639 * gcov.c (create_file_names): If no object directory is specified,
640 keep the directory of the file.
642 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
644 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
645 * configure: Regenerate.
647 2011-05-23 Jakub Jelinek <jakub@redhat.com>
650 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
651 failed and the comparison has a single bit signed type, use
652 constm1_rtx instead of const1_rtx for true value.
653 (do_store_flag): If ops->type is single bit signed type, disable
654 signel bit test optimization and pass -1 instead of 1 as last
655 parameter to emit_store_flag_force.
657 2011-05-23 Tom de Vries <tom@codesourcery.com>
660 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
662 (infer_loop_bounds_from_undefined): Use new function.
664 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
666 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
667 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
668 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
670 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
672 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
674 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
675 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
678 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
680 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
682 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
684 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
685 UNSPEC_MOVE_PIC pattern.
687 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
689 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
690 (sparc-*-rtems*): Likewise.
691 (sparc64-*-elf*): Likewise.
692 (sparc64-*-rtems*): Likewise.
693 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
694 * config/sparc/t-crtin: New file.
695 * config/sparc/t-sol2 (crti.o): Delete rule.
697 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
698 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
699 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
700 (ENDFILE_SPEC): Add crtn.o.
702 2011-05-22 Tom de Vries <tom@codesourcery.com>
705 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
706 CODE_CONTAINS_STRUCT (TS_COMMON).
708 2011-05-22 Jakub Jelinek <jakub@redhat.com>
711 * expmed.c (extract_fixed_bit_field): Test whether target can be used
712 only after deciding which mode to use.
714 2011-05-22 Tom de Vries <tom@codesourcery.com>
717 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
718 for call to get_shiftadd_cost.
720 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
723 * config/i386/cpuid.h (bit_MMXEXT): New define.
725 2011-05-22 Nick Clifton <nickc@redhat.com>
727 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
728 initialisation of non-existant args[2] element. Use args[] array
729 not arg[] array to pass arguments to build_function_type_list.
731 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
733 PR tree-optimization/49087
734 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
736 2011-05-21 Jason Merrill <jason@redhat.com>
739 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
740 static storage duration.
742 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
744 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
747 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
749 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
750 false if there are call-saved registers here...
751 (sparc_can_use_return_insn_p): ...but here instead.
752 (save_or_restore_regs): Fix thinko.
753 (sparc_expand_prologue): Use current_function_is_leaf.
754 (sparc_frame_pointer_required): Likewise.
756 2011-05-21 Nick Clifton <nickc@redhat.com>
759 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
761 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
763 * gengtype.c (walk_type): Implemented "atomic" GTY option.
764 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
766 2011-05-21 Joseph Myers <joseph@codesourcery.com>
768 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
769 * optc-gen.awk: Move common code to opt-read.awk.
770 * opth-gen.awk: Likewise.
771 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
773 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
775 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
777 2011-05-20 Tom de Vries <tom@codesourcery.com>
780 * tree-ssa-loop-ivopts.c: Include expmed.h.
781 (get_shiftadd_cost): New function.
782 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
784 2011-05-20 Jakub Jelinek <jakub@redhat.com>
787 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
788 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
790 2011-05-20 Joseph Myers <joseph@codesourcery.com>
792 * Makefile.in: Update comment referring to $(OBJS-common).
794 2011-05-20 Ian Lance Taylor <iant@google.com>
796 * godump.c (go_output_typedef): Put enum constants in the macro
797 hash table to avoid duplicate Go const definitions.
799 2011-05-20 Joseph Myers <joseph@codesourcery.com>
801 * Makefile.in (LIBDEPS): Add libcommon.a.
803 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
804 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
805 pretty-print.o and version.o.
806 (OBJS-libcommon): New.
807 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
808 (BACKEND): Add libcommon.a.
809 (MOSTLYCLEANFILES): Likewise.
811 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
812 (cpp$(exeext)): Likewise.
813 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
814 pretty-print.o and input.o.
815 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
816 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
818 (mips-tfile): Don't explicitly use version.o.
819 (mips-tdump): Likewise.
820 (gcov.o): Depend on $(DIAGNOSTIC_H).
821 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
822 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
823 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
824 * gcov-dump.c: Include intl.h and diagnostic.h.
825 (main): Initialize diagnostics.
826 * gcov.c: Include diagnostic.h.
828 (main): Initialize diagnostics.
829 * lto-wrapper.c: Include diagnostic.h.
830 (main): Initialize diagnostics.
832 2011-05-20 Michael Matz <matz@suse.de>
834 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
836 2011-05-20 Michael Matz <matz@suse.de>
837 Richard Guenther <rguenther@suse.de>
839 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
840 use lto_streamer_cache_append directly instead of returning a VEC.
841 (preload_common_node): Remove.
842 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
844 (lto_streamer_cache_create): Call lto_preload_common_nodes.
846 2011-05-20 Richard Guenther <rguenther@suse.de>
848 PR tree-optimization/49079
849 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
850 MEM_REFs correctly for the trailing array access detection.
851 Special case constants the same way as decls for overall size
854 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
856 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
859 2011-05-20 Jakub Jelinek <jakub@redhat.com>
861 PR tree-optimization/49073
862 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
863 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
864 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
866 2011-05-20 Richard Guenther <rguenther@suse.de>
869 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
870 of pointer types the same way the middle-end does.
872 2011-05-20 Richard Guenther <rguenther@suse.de>
874 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
875 or pointer-to chains. Delay all fixup to uniquify_nodes.
877 2011-05-19 Quentin Neill <quentin.neill@amd.com>
879 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
880 (fma4_fmaddsub): Likewise
882 2011-05-19 Jan Hubicka <jh@suse.cz>
884 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
885 (GIMPLE_TYPE_PAIR_SIZE): New macro.
886 (type_pair_cache): New static var.
887 (lookup_type_pair): Use fixed sized custom hash; make inline.
888 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
889 calls of lookup_type_pair.
890 (print_gimple_types_stats): Remove cache stats.
891 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
894 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
896 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
897 when TARGET_RDRND is active.
898 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
899 Generate dummy SImode target register when target is NULL.
901 2011-05-19 Joseph Myers <joseph@codesourcery.com>
903 * config/arm/arm-fpus.def: New.
904 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
906 * config/arm/arm-tables.opt: Regenerate.
907 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
908 (arm_option_override): Don't decode FPU name to string here.
909 * config/arm/arm.opt (mfpu=): Use Enum.
910 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
913 2011-05-19 Joseph Myers <joseph@codesourcery.com>
915 * collect2.c: Include diagnostic.h.
916 (fatal_perror, fatal, error, fancy_abort): Remove.
917 (main): Set progname. Call xmalloc_set_program_name and
918 diagnostic_initialize.
919 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
920 scan_libraries, resolve_lib_name): Call fatal_error instead of
921 fatal and fatal_perror.
922 * collect2.h (error, fatal, fatal_perror): Don't declare.
923 * tlink.c: Include diagnostic-core.h.
924 (recompile_files): Call fatal_error instead of fatal_perror.
925 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
926 pretty-print.o and input.o.
927 (collect2.o, tlink.o): Update dependencies.
929 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
931 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
933 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
937 COMDAT group syntax, both SPARC and x86 variants.
938 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
939 * configure: Regenerate.
940 * config/sol2.h (TARGET_SOLARIS): Define.
941 (PUSHSECTION_FORMAT): Remove.
942 (SECTION_NAME_FORMAT): Define.
943 * config/sol2.c: Include hashtab.h.
944 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
945 expansion, using SECTION_NAME_FORMAT.
946 (solaris_comdat_htab): New variable.
947 (struct comdat_entry): Define.
948 (comdat_hash): New function.
949 (comdat_eq): New function.
950 (solaris_elf_asm_comdat_section): New function.
951 (solaris_define_comdat_signature): New function.
952 (solaris_code_end): New function.
953 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
954 (solaris_code_end): Declare.
955 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
956 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
958 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
959 Remove ATTRIBUTE_UNUSED.
960 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
961 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
962 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
963 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
964 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
965 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
966 (PUSHSECTION_FORMAT): Remove.
967 (SECTION_NAME_FORMAT): Redefine.
969 2011-05-19 Kai Tietz <ktietz@redhat.com>
971 * tree-cfg.c (verify_gimple_assign_binary): Barf on
972 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
973 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
975 2011-05-19 Anatoly Sokolov <aesok@post.ru>
976 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
978 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
980 2011-05-19 Richard Guenther <rguenther@suse.de>
983 * tree-object-size.c (addr_object_size): If the pointed-to
984 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
986 2011-05-19 Richard Guenther <rguenther@suse.de>
988 * gimple.c (gimple_types_compatible_p_1): Compare names of
989 the types themselves.
990 (iterative_hash_gimple_type): And hash them that way.
991 (gimple_register_type_1): If we register a main variant properly
992 initialize the leader to ourselves.
994 2011-05-19 Tom de Vries <tom@codesourcery.com>
997 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
998 get_loop_invariant_expr_id.
999 (get_loop_invariant_expr_id): Use get_expr_id.
1000 (parm_decl_cost): New function.
1001 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1002 Improve bound cost estimation. Use different inv_expr_id for elim and
1005 2011-05-19 Tom de Vries <tom@codesourcery.com>
1008 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1009 cost_base.cost == 0.
1011 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1014 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1015 Properly handle load cast.
1017 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1019 PR tree-optimization/49039
1020 * tree-vrp.c (extract_range_from_binary_expr): For
1021 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1022 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1024 2011-05-18 Tom de Vries <tom@codesourcery.com>
1027 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1029 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1031 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1032 (*tls_global_dynamic_64): Ditto.
1033 (*tls_local_dynamic_base_32_gnu): Ditto.
1034 (*tls_local_dynamic_base_64): Ditto.
1035 (tls_initial_exec_64_sun): Ditto.
1037 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1039 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1040 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1042 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1043 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1044 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1045 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1046 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1047 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1048 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1050 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1052 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1053 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1054 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1055 target_thread_pointer, arm_structure_size_boundary, struct
1056 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1057 struct abi_name, arm_all_abis): Remove.
1058 (arm_option_override) Don't process most enumerated option values here.
1059 Don't process target_fpe_name here. Work with integer not string for
1060 structure size boundary; use separate diagnostics for each case.
1061 * config/arm/arm.h (enum float_abi_type, enum
1062 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1064 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1065 arm_structure_size_boundary): Remove.
1066 * config/arm/arm.opt (mabi=): Use Enum and Init.
1067 (arm_abi_type): New Enum and EnumValue entries.
1068 (mfloat-abi=): Use Enum and Init.
1069 (float_abi_type): New Enum and EnumValue entries.
1070 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1071 (mfp16-format=): Use Enum and Init.
1072 (arm_fp16_format_type): New Enum and EnumValue entries.
1073 (mstructure-size-boundary=): Use UInteger and Init.
1074 (mtp=): Use Enum and Init.
1075 (arm_tp_type): New Enum and EnumValue entries.
1077 2011-05-18 Richard Guenther <rguenther@suse.de>
1079 PR tree-optimization/49018
1080 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1081 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1082 gimple_has_side_effects.
1084 2011-05-18 Richard Guenther <rguenther@suse.de>
1086 * gimple.c (gimple_register_type_1): New function, split out from ...
1087 (gimple_register_type): ... here. Avoid infinite recursion.
1089 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1091 PR tree-optimization/41881
1092 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1093 reduction_chains along with a macro for its access.
1094 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1095 (destroy_loop_vec_info): Free reduction chains.
1096 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1097 (vect_is_slp_reduction): New function.
1098 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1099 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1100 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1101 definition types for reduction chains.
1102 (vect_supported_load_permutation_p): Don't allow permutations for
1104 (vect_analyze_slp_instance): Support reduction chains.
1105 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1106 (vect_get_constant_vectors): Handle reduction chains.
1107 (vect_schedule_slp_instance): Mark the first statement of the
1108 reduction chain as reduction.
1110 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1112 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1113 names for group elements access.
1114 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1115 reduction chains as well. Remove data reference and interleaving
1116 related words from the fields names.
1117 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1119 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1120 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1121 vect_update_interleaving_chain, vect_same_range_drs,
1122 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1123 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1124 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1125 vect_analyze_group_access, vect_analyze_data_ref_access,
1126 vect_create_data_ref_ptr, vect_transform_strided_load,
1127 vect_record_strided_load_vectors): Likewise.
1128 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1129 vect_model_load_cost, vectorizable_store, vectorizable_load,
1130 vect_remove_stores, new_stmt_vec_info): Likewise.
1131 * tree-vect-slp.c (vect_build_slp_tree,
1132 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1134 2011-05-18 Richard Guenther <rguenther@suse.de>
1137 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1138 operand verification.
1139 (verify_gimple_assign_binary): Likewise.
1140 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1141 to non-1-precision BOOLEAN_TYPEs.
1143 2011-05-18 Tom de Vries <tom@codesourcery.com>
1146 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1148 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1150 PR tree-optimization/49000
1151 * tree-ssa.c (execute_update_addresses_taken): Call
1152 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1153 be rewritten and decl has been marked for renaming, reset
1156 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1158 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1159 enum_opts_set when testing if attributes have set -mfpmath=.
1161 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1163 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1165 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1167 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1169 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1170 id.transform_lang_insert_block with NULL.
1172 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1174 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1175 (output_fp_compare): Change args 3 and 4 to bool.
1176 (ix86_expand_call): Change arg 6 to bool.
1177 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1178 (ix86_attr_length_vex_default): Change arg 3 to bool.
1179 * config/i386/i386.md: Update all uses.
1180 * config/i386/i386.c: Ditto.
1181 (ix86_flags_dependent): Change return type to bool.
1183 2011-05-17 Richard Guenther <rguenther@suse.de>
1185 * gimple.c (type_hash_pair_compare): Fix comparison.
1187 2011-05-17 Richard Guenther <rguenther@suse.de>
1189 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1190 case some more, fix final hash value of the non-singleton case.
1192 2011-05-17 Richard Guenther <rguenther@suse.de>
1196 2011-05-16 Richard Guenther <rguenther@suse.de>
1198 * gimple.c (gimple_types_compatible_p_1): Use names of the
1199 type itself, not its main variant.
1200 (iterative_hash_gimple_type): Likewise.
1202 2011-05-17 Richard Guenther <rguenther@suse.de>
1204 * gimple.c (gimple_register_canonical_type): Use the main-variant
1205 leader for computing the canonical type.
1207 2011-05-17 Nick Clifton <nickc@redhat.com>
1209 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1212 * config/rx/rx.md: Add peephole to remove redundant extensions
1214 (bitset_in_memory): Use rx_restricted_mem_operand.
1215 (bitinvert_in_memory): Likewise.
1216 (bitclr_in_memory): Likewise.
1218 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1219 Nick Clifton <nickc@redhat.com>
1221 * config/rx/rx.md: Add peepholes to match a register move followed
1222 by a comparison of the moved register. Replace these with an
1223 addition of zero that does both actions in one instruction.
1225 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1228 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1229 predicate to allow CONST_INT.
1230 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1232 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1234 * opts-common.c (opt_enum_arg_to_value): New.
1235 * opts.h (opt_enum_arg_to_value): Declare.
1236 * config/i386/i386.opt (fpmath): Remove.
1237 (mfpmath=): Use Enum, Init and Save.
1238 (fpmath_unit): New Enum and EnumValue entries.
1239 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1240 name for function fpmath state.
1241 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1242 * config/i386/i386.c: Include diagnostic.h.
1243 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1244 (ix86_target_string): Take enum fpmath_unit value instead of string.
1245 (ix86_debug_options): Update call to ix86_target_string.
1246 (ix86_option_override_internal): Don't process fpmath strings here.
1247 (x86_function_specific_save, ix86_function_specific_restore):
1248 Don't handle fpmath state specially.
1249 (ix86_function_specific_print): Pass fpmath state to
1250 ix86_target_string instead of printing in this function.
1251 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1252 Handle enum attributes.
1253 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1254 (ix86_valid_target_attribute_tree): Update option_strings
1255 handling. Handle fpmath as enum option.
1256 (ix86_can_inline_p): Update field names for function fpmath state.
1257 (ix86_expand_builtin): Update call to ix86_target_string.
1258 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1259 (ix86_fpmath): Remove.
1260 * config/i386/t-i386 (i386.o): Update dependencies.
1262 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1264 PR preprocessor/48677
1265 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1266 from decoded_options[0], not from itself.
1268 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1270 * config/i386/constraints.md (z): New constraint.
1271 * config/i386/i386.c (c): New mode attribute.
1272 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1273 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1274 constraint for operand 0.
1275 (*call_vzeroupper): Ditto.
1276 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1277 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1278 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1279 Use "lzm" constraint for operand 0.
1280 (*call_pop_vzeroupper): Ditto.
1281 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1282 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1283 constraint for operand 0.
1284 (*sibcall_vzeroupper): Ditto.
1285 (*sibcall_rex64_ms_sysv): Ditto.
1286 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1287 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1288 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1289 (*sibcall_pop_vzeroupper): Ditto.
1290 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1291 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1292 mode iterator. Use "<c>zm" constraint for operand 1.
1293 (*call_value_vzeroupper): Ditto.
1294 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1296 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1297 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1298 *call_value_pop_1. Use "lzm" constraint for operand 1.
1299 (*call_value_pop_vzeroupper): Ditto.
1300 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1301 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1302 mode iterator. Use "Uz" constraint for operand 1.
1303 (*sibcall_value_vzeroupper): Ditto.
1304 (*sibcall_value_rex64_ms_sysv): Ditto.
1305 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1306 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1307 constraint for operand 1.
1308 (*sibcall_value_pop_vzeroupper): Ditto.
1309 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1310 and "z" constraint for operand 2.
1311 (*tls_global_dynamic_32_gnu): Ditto.
1312 (*tls_local_dynamic_base_32_gnu): Ditto.
1313 (*tls_local_dynamic_base_64): Ditto.
1314 (*tls_local_dynamic_32_once): Ditto.
1315 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1317 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1319 2011-05-16 Richard Guenther <rguenther@suse.de>
1321 * gimple.c (gimple_types_compatible_p_1): Use names of the
1322 type itself, not its main variant.
1323 (iterative_hash_gimple_type): Likewise.
1325 2011-05-16 Richard Guenther <rguenther@suse.de>
1327 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1328 always visit pointer target and function result and argument types.
1330 2011-05-16 Jason Merrill <jason@redhat.com>
1333 * tree-inline.c (copy_statement_list): Put back recursion.
1335 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1339 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1340 * config/avr/avr.md ("*ior<mode>qi.byte0",
1341 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1343 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1346 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1347 register is needed for a function argument.
1349 2011-05-16 Richard Guenther <rguenther@suse.de>
1351 * gimple.c (struct type_hash_pair): New type.
1352 (type_hash_pair_compare): New function.
1353 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1355 2011-05-16 Revital Eres <revital.eres@linaro.org>
1357 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1359 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1361 * config/i386/i386.md (floating point move splitters): Fix
1362 usage of standard_80387_constant_p.
1363 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1365 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1367 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1369 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1371 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1372 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1373 (tree_ssa_lim_finalize): Likewise.
1375 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1377 * config/i386/constraint.md (Yd, Yx): New register constraints.
1378 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1379 Yd conditional register constraint.
1380 (*movtf_internal): Use standard_sse_constant_opcode.
1381 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1382 Yx conditional register constraint.
1383 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1384 Yd conditional register constraint. Use standard_sse_constant_p to
1385 check for valid SSE constants and call standard_sse_constant_opcode to
1387 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1388 constants and call standard_sse_constant_opcode to output SSE insn.
1389 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1390 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1391 optimize_size is set.
1392 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1394 2011-05-14 Tobias Burnus <burnus@net-b.de>
1396 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1398 2011-05-13 Martin Jambor <mjambor@suse.cz>
1400 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1401 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1402 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1403 (evaluate_conditions_for_ipcp_clone): Removed.
1404 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1405 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1406 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1408 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1410 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1411 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1412 lieu of MAY_HAVE_DEBUG_STMTS.
1413 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1414 debug statements if !MAY_HAVE_DEBUG_STMTS.
1416 2011-05-13 Martin Thuresson <martint@google.com>
1418 PR gcov-profile/47793
1419 * libgcov.c (gcov_exit): Support relative profile paths.
1420 * doc/invoke.texi (-fprofile-dir): Update for above change.
1422 2011-05-13 Richard Guenther <rguenther@suse.de>
1424 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1425 type-pair caching, do not compare hashes.
1427 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1430 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1431 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1433 2011-05-13 Kai Tietz <ktietz@redhat.com>
1435 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1436 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1437 compatible type for TRUTH_NOT_EXPR.
1439 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1441 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1442 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1443 can_create_pseudo_p ().
1445 2011-05-13 Richard Guenther <rguenther@suse.de>
1448 * gimple.c (iterative_hash_gimple_type): Revert change in
1449 pointer target and function result and argument hashing.
1451 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1453 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1454 (*movxf_internal_nointeger): Ditto.
1455 (*movdf_internal_rex64): Ditto.
1456 (*movdf_internal): Ditto.
1457 (*movdf_internal_nointeger): Ditto.
1458 (*movsf_internal): Ditto.
1459 (sincos splitters): Use can_create_pseudo ().
1461 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1463 * config/i386/i386-opts.h: New.
1464 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1465 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1466 ix86_section_threshold): Remove.
1467 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1468 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1470 (ix86_option_override_internal): Don't decode strings for options
1471 other than -march=, -mtune= and -mfpmath=. Don't allow for
1472 __attribute__ uses in remaining diagnostics for options with
1473 string arguments. Don't check for integer arguments being negative.
1474 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1475 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1476 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1477 ix86_branch_cost, ix86_section_threshold): Remove.
1478 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1480 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1482 (masm=): Use Enum and Init.
1483 (asm_dialect): New Enum and EnumValue entries.
1484 (mbranch-cost=): Use UInteger.
1485 (mlarge-data-threshold=): Use UInteger and Init.
1486 (mcmodel=): Use Enum and Init.
1487 (cmodel): New Enum and EnumValue entries.
1488 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1489 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1490 mregparm=): Use UInteger.
1491 (mstringop-strategy=): Use Enum and Init.
1492 (stringop_alg): New Enum and EnumValue entries.
1493 (mtls-dialect=): Use Enum and Init.
1494 (tls_dialect): New Enum and EnumValue entries.
1495 (mabi=): Use Enum and Init.
1496 (calling_abi): New Enum and EnumValue entries.
1497 (mveclibabi=): Use Enum and Init.
1498 (ix86_veclibabi): New Enum and EnumValue entries.
1500 2011-05-13 Nick Clifton <nickc@redhat.com>
1502 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1503 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1505 2011-05-13 Kai Tietz <ktietz@redhat.com>
1508 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1509 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1510 (gimple_boolify): Check for cast for boolean_type_node instead for
1513 2011-05-13 Richard Guenther <rguenther@suse.de>
1515 PR tree-optimization/48172
1516 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1517 multiplying by number of iterations for equal step.
1518 (vect_create_cond_for_alias_checks): Likewise.
1520 2011-05-13 Andreas Schwab <schwab@redhat.com>
1522 * configure.ac: Use AS_HELP_STRING throughout.
1523 * configure: Regenerate.
1525 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1527 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1528 (ix86_emit_restore_regs_using_mov): Likewise.
1529 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1531 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1533 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1534 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1535 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1536 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1537 RTX_OK_FOR_OLO10_P): ...here.
1538 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1541 2011-05-12 Kai Tietz <ktietz@redhat.com>
1543 * gimplify.c (gimple_boolify): Re-boolify expression
1544 arguments even if expression type is of kind BOOLEAN_TYPE.
1545 (gimplify_boolean_expr): Removed.
1546 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1547 and XOR. Additional take care that we keep expression's type.
1548 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1549 of TRUTH_AND|OR|XOR_EXPR.
1551 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1553 PR tree-optimization/48975
1554 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1555 on all bbs here and free and clear ifc_bbs at the end.
1557 2011-05-12 Richard Guenther <rguenther@suse.de>
1559 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1560 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1561 until after simple checks.
1562 (gimple_types_compatible_p): Likewise.
1563 (iterative_hash_gimple_type): Always hash pointer targets
1564 and function return and argument types.
1565 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1566 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1567 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1568 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1569 completely in the simple compare section.
1570 (gimple_register_canonical_type): Query the cache again after
1573 2011-05-12 Richard Guenther <rguenther@suse.de>
1575 PR tree-optimization/48172
1576 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1577 the number of iterations from the segment size calculation.
1578 (vect_create_cond_for_alias_checks): Adjust.
1580 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1583 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1584 if validate_subreg fails.
1586 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1588 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1589 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1592 2011-05-12 DJ Delorie <dj@redhat.com>
1594 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1595 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1596 created builtin into rx_builtins array.
1597 (rx_builtin_decl): New function.
1598 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1600 2011-05-12 DJ Delorie <dj@redhat.com>
1601 Nick Clifton <nickc@redhat.com>
1603 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1604 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1605 (rx_is_legitimate_address): Add pre-decrement and post-increment
1606 addressing in HImode and QImode. Fix test for out of range
1608 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1609 (rx_align_for_label): Test label before extracting its usage count.
1610 (rx_adjust_insn_lengths): Fix selection of insn codes.
1611 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1613 2011-05-11 Jason Merrill <jason@redhat.com>
1615 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1617 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1619 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1620 reindent the subsequent block.
1622 2011-05-11 Satoru Takabayashi <satorux@google.com>
1623 Paul Pluzhnikov <ppluzhnikov@google.com>
1625 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1626 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1627 * config.in: Add LINKER_HASH_STYLE.
1628 * configure.ac: Add --with-linker-hash-style.
1629 * configure: Regenerate.
1631 2011-05-11 Richard Guenther <rguenther@suse.de>
1634 * gimple.c (iterative_hash_canonical_type): Fix typo.
1636 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1638 * config/i386/i386.c (legitimize_tls_address)
1639 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1640 expanders directly for TARGET_GNU2_TLS. Determine pic and
1641 __tls_get_addr symbol reference here. Update call to
1642 gen_tls_global_dynamic_{32,64} for added arguments.
1643 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1644 expanders directly for TARGET_GNU2_TLS. Determine
1645 __tls_get_addr symbol reference here. Update call to
1646 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1647 unique UNSPEC REG_EQUIV to libcall block.
1648 (ix86_tls_get_addr): Declare static.
1649 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1650 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1651 Do not determine pic and __tls_get_addr symbol reference here. Do not
1652 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1653 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1654 (tls_global_dynamic_64): Add operand 2. Do not determine
1655 __tls_get_addr symbol reference here. Do not call
1656 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1657 (tls_local_dynamic_base64): Ditto for operand 1.
1659 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1661 * function.c (expand_function_start): Initialize stack_check_probe_note
1662 only if the generic stack checking mechanism is used.
1664 2011-05-11 Richard Guenther <rguenther@suse.de>
1666 PR tree-optimization/15256
1667 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1668 (A & B) | C, combine (A op CST1) op CST2.
1669 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1670 visit assigns that have uses.
1672 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1674 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1675 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1676 (unpack_ts_type_common_value_fields): ...this. Update comment.
1677 (unpack_value_fields): Adjust for renaming.
1678 (lto_input_ts_type_tree_pointers): Split into...
1679 (lto_input_ts_type_common_tree_pointer): ...this and...
1680 (lto_input_ts_type_non_common_tree_pointers): ...this.
1681 (lto_input_tree_pointers): Adjust for above split.
1682 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1683 (pack_ts_type_common_value_fields): ...this. Update comment.
1684 (lto_output_ts_type_tree_pointers): Split into...
1685 (lto_output_ts_type_common_tree_pointers): ...this and...
1686 (lto_output_ts_type_non_common_tree_pointers): ...this.
1687 (lto_output_tree_pointers): Adjust for above split.
1688 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1689 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1690 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1691 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1693 (struct tree_type): Split into...
1694 (struct tree_type_common: ...this and...
1695 (struct tree_type_with_lang_specific): ...this and...
1696 (struct tree_type_non_common): ...this. Adjust accessor macros
1698 (TYPE_VALUES_RAW): Define.
1699 (union tree_node): Update for above changes.
1700 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1702 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1703 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1704 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1705 * treestructu.def (TS_TYPE): Remove.
1706 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1709 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1712 * tree-ssa.c (reset_debug_uses): New function.
1713 * tree-flow.h (reset_debug_uses): New prototype.
1714 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1715 * tree-loop-distribution.c (generate_loops_for_partition): Call
1716 reset_debug_uses on the stmts that will be removed. Keep around
1717 all debug stmts, don't count them as bits in partition bitmap.
1718 (generate_builtin): Don't count debug stmts or labels as bits in
1721 2011-05-11 Richard Guenther <rguenther@suse.de>
1723 * gimple.c (gimple_type_hash_1): Merge with ...
1724 (gimple_type_hash): ... this.
1725 (gtc_visit): Remove mode parameter and simplify accordingly.
1726 (gimple_types_compatible_p_1): Likewise.
1727 (gimple_types_compatible_p): Likewise.
1728 (iterative_hash_gimple_type): Likewise.
1730 (gimple_type_eq): Adjust.
1732 2011-05-11 Revital Eres <revital.eres@linaro.org>
1734 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1735 enters the branch create an anti edge in the opposite direction
1736 to prevent the creation of reg-moves.
1737 * modulo-sched.c: Adjust comment to reflect the fact we are
1738 scheduling closing branch.
1739 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1740 (stage_count): New field in struct partial_schedule.
1741 (calculate_stage_count): New function.
1742 (normalize_sched_times): Rename to reset_sched_times and handle
1743 incrementing the sched time of the nodes by a constant value
1744 passed as parameter.
1745 (duplicate_insns_of_cycles): Skip closing branch.
1746 (sms_schedule_by_order): Schedule closing branch.
1747 (ps_insn_find_column): Handle closing branch.
1748 (sms_schedule): Call reset_sched_times and adjust the code to
1749 support scheduling of the closing branch.
1750 (ps_insert_empty_row): Update calls to normalize_sched_times
1751 and rotate_partial_schedule functions.
1753 2011-05-11 Richard Guenther <rguenther@suse.de>
1756 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1758 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1760 * opts.c (finish_options): Move warning settings from process_options.
1761 * toplev.c (process_options): Move warning settings to finish_options.
1763 2011-05-11 Richard Guenther <rguenther@suse.de>
1765 PR tree-optimization/18041
1766 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1767 (simplify_bitwise_binary): ... this. Handle operand conversions
1768 by applying them to the result instead.
1769 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1771 2011-05-11 Richard Guenther <rguenther@suse.de>
1773 * gimple.c (gimple_canonical_types_compatible_p): Split out
1774 from gimple_types_compatible_p and friends. Do not recurse
1775 to pointed-to types.
1776 (gimple_canonical_type_eq): Use it.
1777 (iterative_hash_canonical_type): Split out from
1778 iterative_hash_gimple_type and friends. Do not recurse
1779 to pointed-to types.
1780 (gimple_canonical_type_hash): Use it, allocate the hash here.
1782 2011-05-11 Revital Eres <revital.eres@linaro.org>
1784 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1787 2011-05-11 Revital Eres <revital.eres@linaro.org>
1789 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1790 instead of PREV_INSN.
1792 2011-05-11 Revital Eres <revital.eres@linaro.org>
1794 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1795 * loop-doloop.c (doloop_condition_get): Likewise.
1796 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1798 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1800 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1802 * tree.def (CASE_LABEL_EXPR): Add an operand.
1803 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1805 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1807 * c-decl.c (c_override_global_bindings_to_false): Remove.
1808 (global_bindings_p): Don't check
1809 c_override_global_bindings_to_false.
1810 * c-tree.h (c_override_global_bindings_to_false): Remove.
1811 * c-typeck.c (composite_type): Don't set
1812 c_override_global_bindings_to_false.
1814 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1816 PR target/48857, 48495
1817 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1819 (VSX_MOVE_MODE): Ditto.
1820 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1821 VSX vector types. Add V2DImode.
1822 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1823 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1824 (MODES_TIEABLE_P): Ditto.
1826 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1827 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1829 (init_cumulative_args): Ditto.
1830 (rs6000_function_arg_boundary): Ditto.
1831 (rs6000_function_arg_advance_1): Ditto.
1832 (rs6000_function_arg): Ditto.
1833 (rs6000_function_ok_for_sibcall): Ditto.
1834 (emit_frame_save): Ditto.
1835 (rs6000_function_value): Ditto.
1836 (rs6000_libcall_value): Ditto.
1838 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1840 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1841 i386/darwin-lib.h to $libgcc_tm_file.
1842 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1844 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1846 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1848 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1850 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1851 * config/rs6000/rs6000-tables.opt: New file (generated).
1852 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1853 rs6000/rs6000-tables.opt to extra_options.
1854 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1855 * config/rs6000/rs6000.c (rs6000_select): Remove.
1856 (processor_target_table): Move contents to rs6000-cpus.def.
1857 (darwin_rs6000_override_options): Check
1858 global_options_set.x_rs6000_cpu_index instead of
1859 rs6000_select[1].string.
1860 (rs6000_option_override_internal): Likewise.
1861 (rs6000_handle_option): Don't assert that global structures are in
1862 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1863 (rs6000_default_cpu): New variable.
1864 (rs6000_file_start): Set it instead of local default_cpu. Check
1865 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1866 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1867 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1868 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1869 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1870 rs6000_select): Remove.
1871 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1873 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1874 * config/rs6000/t-rs6000
1875 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1876 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1877 global_options_set.x_rs6000_cpu_index instead of
1878 rs6000_select[1].string.
1879 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1880 global_options_set.x_rs6000_cpu_index instead of
1881 rs6000_select[1].string.
1883 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1885 * config.gcc (libgcc_tm_file): Define instead of including files
1886 from ../../libgcc/config/ in tm_file.
1887 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1888 * configure: Regenerate.
1889 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1890 libgcc_tm.h, cs-libgcc_tm.h): New.
1891 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1892 (clean): Remove libgcc_tm.h.
1893 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1894 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1895 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1897 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1900 * config/avr/avr.c (avr_ret_register): Return unsigned int
1902 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1903 it to avr_libcall_value.
1904 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1906 (avr_expand_binop_builtin): Ditto.
1907 (avr_expand_unop_builtin): Ditto.
1909 2011-05-10 DJ Delorie <dj@redhat.com>
1911 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1912 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1913 * config/rx/rx.c (rx_align_for_label): Add label and
1914 uses_threshold parameters. Do not align when the label is not
1916 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1918 2011-05-10 Richard Guenther <rguenther@suse.de>
1920 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1921 a series of conversions and apply foldings similar to what
1923 (tree_ssa_forward_propagate_single_use_vars): Call it.
1925 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1927 PR tree-optimization/48611
1928 PR tree-optimization/48794
1929 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1930 referenced from RESX or EH_DISPATCH arguments.
1933 * dfp.c (decimal_to_decnumber): Handle conversion from
1934 dconst{1,2,m1,half}.
1936 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1938 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1939 for !flag_prefer_avx128.
1940 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1942 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1944 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1945 (fold_ternary_loc): Use expr_location_or.
1947 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1950 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1951 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1952 Pmode and mem_mode is not VOIDmode.
1954 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1956 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1957 TYPE_QUAL_RESTRICT): Convert to enum.
1959 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1961 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1962 (const_pow2_1_to_8_operand): Ditto.
1963 (const_pow2_1_to_128_operand): Ditto.
1964 (const_pow2_1_to_32768_operand): Ditto.
1965 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1966 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1967 in insn constraint to check integer value of operand 3.
1968 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1970 (PINSR_MODE): New mode iterator.
1971 (sse2p4_1): New mode attribute.
1972 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1973 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1974 iterator. Use const_int_operand instead of
1975 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1976 exact_log2 in insn constraint to check integer value of operand 3.
1978 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1980 * config/i386/sse.md (blendbits): Remove mode attribute.
1981 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1982 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1983 Check integer value of operand 3 in insn constraint.
1985 2011-05-09 Richard Guenther <rguenther@suse.de>
1987 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1989 (lto_symtab_merge): Likewise. Do not register types here.
1990 (lto_symtab_merge_decls_2): Likewise.
1991 (lto_symtab_merge_decls_1): Likewise.
1992 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1993 * gimple.c (enum gtc_mode): Declare.
1994 (gimple_types_compatible_p): Make static.
1996 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1998 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1999 temporary register to match Pmode.
2001 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2003 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2004 and *vec_concatv4si_1_avx.
2006 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2008 PR rtl-optimization/48927
2009 * ira-conflicts.c (commutative_constraint_p): Use
2010 recog_data.alternative_enabled_p to disable alternatives where
2011 "enabled" attribute is false.
2012 (get_dup_num): Ditto.
2013 * ira-lives.c (single_reg_class): Ditto.
2014 (ira_implicitly_set_insn_hard_regs): Ditto.
2016 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2018 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2019 (dataflow_set_preserve_mem_locs): Likewise.
2021 2011-05-09 Philipp Thomas <pth@suse.de>
2023 * config/mep/mep.c (mep_validate_vliw): Syntax description
2024 should not be translated.
2026 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2028 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2029 * config/mips/mips-tables.opt: New file (generated).
2030 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2031 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2032 MIPS_ARCH_OPTION_NATIVE): Define.
2033 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2035 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2036 mips_parse_cpu): Remove.
2037 (mips_cpu_info_from_opt, mips_default_arch): New.
2038 (mips_handle_option): Don't assert that global structures are in
2039 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2040 (mips_option_override): Use new variables and functions to set
2041 state of these options. Use strcmp to check for individual CPU names.
2042 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2044 * config/mips/mips.opt (march=): Use ToLower and Enum.
2045 (mips): Use ToLower, Enum and Var.
2046 (mtune=): Use ToLower and Enum.
2047 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2049 2011-05-08 Jan Hubicka <jh@suse.cz>
2051 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2052 Arrange type pairs to be UID ordered.
2053 (gimple_lookup_type_leader): Make inline.
2055 2011-05-09 Nick Clifton <nickc@redhat.com>
2058 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2062 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2065 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2067 * combine.c (simplify_comparison): Abstract out parts into...
2068 (simplify_compare_const): ... new function.
2069 (try_combine): Generalize parallel arithmetic/compare combining
2070 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2072 2011-05-08 Jan Hubicka <jh@suse.cz>
2074 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2075 (cgraph_create_virtual_clone): Call hooks once virtual clone
2077 * cgraph.h (cgraph_clone_node): Update prototype.
2078 * ipa-cp.c (ipcp_estimate_growth): Use
2079 estimate_ipcp_clone_size_and_time.
2080 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2081 * lto-cgraph.c (input_node): Update.
2082 * ipa-inline.c (recursive_inlining): Update.
2083 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2084 (evaluate_conditions_for_known_args): Break out from ...
2085 (evaluate_conditions_for_edge): ... here.
2086 (evaluate_conditions_for_ipcp_clone): New function.
2087 (inline_node_duplication_hook): Update clone summary based
2089 (estimate_callee_size_and_time): Rename to ...
2090 (estimate_node_size_and_time): take NODE instead of EDGE;
2091 take POSSIBLE_TRUTHS as argument.
2092 (estimate_callee_size_and_time): Update.
2093 (estimate_ipcp_clone_size_and_time): New function.
2094 (do_estimate_edge_time): Update.
2096 2011-05-08 Richard Guenther <rguenther@suse.de>
2100 * expmed.c (expand_shift_1): Compute adjusted constant shift
2103 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2105 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2107 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2109 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2111 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2113 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2115 2011-05-07 Jan Hubicka <jh@suse.cz>
2117 * ipa-inline-transform.c (inline_call): Account when program size
2119 * ipa-inline.c (relative_time_benefit): New function.
2120 (edge_badness): Reorganize to be power 2 based; fix thinko when
2121 computing badness for negative growth; update comments to match
2122 reality; better dumps.
2124 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2126 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2127 type to bool and adjust comment.
2128 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2129 (fold_mathfn_compare): Remove calls to global_bindings_p.
2130 (fold_inf_compare): Likewise.
2131 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2132 * c-tree.h (global_bindings_p): Adjust prototype.
2133 * c-decl.c (global_bindings_p): Return bool and simplify.
2135 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2137 PR tree-optimization/48837
2138 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2139 when accumulator transformation is performed.
2141 2011-05-06 Jan Hubicka <jh@suse.cz>
2143 * i386.h (ix86_tune_indices): Add
2144 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2145 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2146 * i386.c (initial_ix86_tune_features): Add
2147 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2148 (software_prefetching_beneficial_p): Remove predicate.
2149 (ix86_option_override_internal): Use new macro.
2151 2011-05-06 Jan Hubicka <jh@suse.cz>
2153 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2155 2011-05-06 Jan Hubicka <jh@suse.cz>
2157 * cgraph.c (cgraph_add_thunk): Create real function node instead
2158 of alias node; finalize it and mark needed/reachale; arrange visibility
2159 to be right and add it into the corresponding same comdat group list.
2160 (dump_cgraph_node): Dump thunks.
2161 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2162 cgraph_function_with_gimple_body_p,
2163 cgraph_first_function_with_gimple_body,
2164 cgraph_next_function_with_gimple_body): New functions.
2165 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2167 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2168 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2169 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2170 devirtualization when optimizing.
2171 (verify_cgraph_node): Verify thunks.
2172 (cgraph_analyze_function): Analyze thunks.
2173 (cgraph_mark_functions_to_output): Output thunks only in combination
2174 with function they are assigned to.
2175 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2176 alias into normal node.
2177 (assemble_thunks): New functoin.
2178 (cgraph_expand_function): Use it.
2179 * lto-cgraph.c (lto_output_node): Stream thunks.
2180 (input_overwrite_node): Stream in thunks.
2181 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2182 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2183 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2184 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2185 (inline_analyze_function): Do not care about thunk jump functions.
2186 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2187 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2188 cgraph_function_with_gimple_body_p.
2189 * passes.c (do_per_function_toporder): Use
2190 cgraph_function_with_gimple_body_p.
2191 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2192 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2193 (function_called_by_processed_nodes_p): Likewise.
2195 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2197 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2198 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2200 (mabi=): Replace with separate entries for mabi=altivec,
2201 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2202 mabi=ieeelongdouble and mabi=ibmlongdouble.
2203 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2204 check for -mabi=spe without SPE ABI support here.
2205 (rs6000_handle_option): Replace OPT_mabi_ handling with
2206 OPT_mabi_altivec and OPT_mabi_spe handling.
2208 2011-05-06 Cary Coutant <ccoutant@google.com>
2210 * dwarf2out.c (contains_subprogram_definition): New function.
2211 (should_move_die_to_comdat): Call it.
2213 2011-05-06 Jeff Law <law@redhat.com>
2215 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2216 remove_ctrl_stmt_and_useless_edges.
2217 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2218 (fixup_template_block, thread_single_edge): Likewise.
2219 (mark_threaded_blocks): Use THREAD_TARGET.
2221 2011-05-06 Alan Modra <amodra@gmail.com>
2224 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2225 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2227 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2229 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2230 constraint modifier to "r".
2232 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2234 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2235 fall through for OPT_mcmodel_.
2237 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2239 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2241 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2243 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2246 * config/arm/arm.opt (marm): Document it.
2247 (mthumb): Reject negative variant.
2249 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2252 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2253 Fix typo in "ccvt" variable name.
2255 2011-05-06 Tristan Gingold <gingold@adacore.com>
2258 * config/vms/vms-ar.c (main): Remove cwd variable.
2260 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2263 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2265 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2267 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2268 * gimplify.c (gimplify_switch_expr): Likewise.
2269 * omp-low.c (expand_omp_sections): Likewise.
2270 * tree-eh.c (lower_try_finally_switch): Likewise.
2271 (lower_eh_dispatch): Likewise.
2272 * tree.h (build_case_label): Declare.
2273 * tree.c (build_case_label): Define.
2275 2011-05-05 Jason Merrill <jason@redhat.com>
2278 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2279 (copy_statement_list): Don't recurse.
2280 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2283 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2285 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2286 through from -mfpu= handling.
2287 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2289 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2291 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2294 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2296 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2298 (hppa[12]*-*-hpux11*): Ditto.
2299 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2300 * config/ia64/hpux-unix2003.h: New.
2301 * config/pa/pa-hpux1131.opt: New.
2302 * config/pa/pa-hpux1131.h: New.
2303 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2304 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2305 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2307 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2310 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2311 instead of mode as 3rd argument to recursive call.
2312 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2313 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2315 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2316 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2317 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2318 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2320 2011-05-05 Julian Brown <julian@codesourcery.com>
2322 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2323 parenthesis in D-register case.
2325 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2327 * opt-functions.awk (var_type_struct): Handle Enum options.
2328 * optc-gen.awk: Don't check range of variables of character type.
2329 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2330 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2331 rs6000_sdata_name, rs6000_explicit_options): Remove.
2332 (rs6000_option_override_internal): Check for -malign-power here.
2333 Use global_options_set instead of rs6000_explicit_options.
2334 (rs6000_parse_fpu_option): Remove.
2335 (rs6000_handle_option): Access variables via opts and opts_set
2336 pointers. Use error_at and warning_at. Add fall-through
2337 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2338 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2339 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2340 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2341 here. Don't use rs6000_parse_fpu_option.
2342 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2343 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2344 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2346 (mspe): Use Var and Save.
2347 (mtraceback=): Use Enum and Var.
2348 (rs6000_traceback_type): New Enum and EnumValue entries.
2349 (mfloat-gprs=): Use Enum, Var and Save.
2350 (rs6000_float_gprs): New Enum and EnumValue entries.
2351 (mlong-double-): use Var and Save.
2352 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2353 (malign-): Use Enum and Var.
2354 (rs6000_alignment_flags): New Enum and EnumValue entries.
2356 (fpu_type_t): New Enum and EnumValue entries.
2357 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2358 global_options_set instead of rs6000_explicit_options.
2359 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2360 global_options_set instead of rs6000_explicit_options.
2361 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2362 global_options_set instead of rs6000_explicit_options.
2363 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2364 global_options_set instead of rs6000_explicit_options.
2365 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2366 global_options_set instead of rs6000_explicit_options.
2367 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2368 global_options_set instead of rs6000_explicit_options.
2369 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2371 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2372 global_options_set instead of rs6000_explicit_options.
2373 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2374 (rs6000_cmodel): New Enum and EnumValue entries.
2375 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2376 global_options_set instead of rs6000_explicit_options.
2377 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2378 (mtls-size=): Use Enum and Var.
2379 (rs6000_tls_size): New Enum and EnumValue entries.
2381 2011-05-05 Michael Matz <matz@suse.de>
2383 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2384 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2385 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2386 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2387 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2388 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2389 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2390 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2391 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2392 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2393 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2394 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2395 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2396 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2397 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2398 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2400 2011-05-05 Richard Guenther <rguenther@suse.de>
2402 * expmed.c (expand_variable_shift): Rename to ...
2403 (expand_shift_1): ... this. Take an expanded shift amount.
2404 For rotates recurse directly not building trees for the shift amount.
2405 (expand_variable_shift): Wrap around expand_shift_1.
2406 (expand_shift): Adjust.
2408 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2410 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2412 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2414 * tree.h (get_pending_sizes): Remove prototype.
2415 (put_pending_size): Likewise.
2416 (put_pending_sizes): Likewise.
2417 * stor-layout.c (pending_sizes): Delete.
2418 (get_pending_sizes): Likewise.
2419 (put_pending_size): Likewise.
2420 (put_pending_sizes): Likewise.
2421 (variable_size): Do not call put_pending_size and tidy up.
2422 * function.h (struct function): Remove dont_save_pending_sizes_p.
2423 * lto-streamer-in.c (input_function): Do not stream it.
2424 * lto-streamer-out.c (output_function): Likewise.
2425 * tree-inline.c (initialize_cfun): Do not copy it.
2426 * c-decl.c (store_parm_decls): Do not set it.
2427 * omp-low.c (create_task_copyfn): Likewise.
2428 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2430 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2432 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2434 (*movdf_internal): Ditto.
2435 (*movdf_internal_nointeger): Ditto.
2436 (*movsf_internal): Ditto.
2438 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2440 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2441 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2442 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2443 (c_variable_size): Remove.
2444 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2445 call put_pending_sizes.
2446 (get_parm_info): Add parameter expr. Use it to set
2447 arg_info->pending_sizes.
2448 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2450 * c-parser.c (c_parser_parms_declarator): Update call to
2451 c_parser_parms_list_declarator.
2452 (c_parser_parms_list_declarator): Take parameter expr. Update
2453 call to push_parm_decl. Update recursive call. Don't call
2454 get_pending_sizes. Update calls to get_parm_info.
2455 (c_parser_objc_method_definition): Update calls to
2456 c_parser_objc_method_decl and objc_start_method_definition.
2457 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2458 (c_parser_objc_method_decl): Add parameter expr. Update call to
2460 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2461 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2462 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2464 2011-05-05 Michael Hope <michael.hope@linaro.org>
2467 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2470 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2472 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2473 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2474 (spu_output_mi_thunk): New function.
2476 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2478 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2479 targetm.asm_out.print_operand.
2480 * config/sol2.c: Include target.h.
2482 2011-05-04 Jan Hubicka <jh@suse.cz>
2484 * ipa-inline.c (reset_edge_caches): New function.
2485 (update_caller_keys): Add check_inlinablity_for; do not
2486 reset edge caches; remove now unnecesary loop.
2487 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2488 (update_all_callee_keys): Likewise.
2489 (inline_small_functions): Sanity check cache; update code
2492 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2494 PR rtl-optimization/47612
2495 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2496 as the last insn of the sequence to be moved.
2498 2011-05-04 Tobias Burnus <burnus@net-b.de>
2501 * doc/invoke.texi (Ofast): Document that it
2502 enables Fortran's -fno-protect-parens.
2504 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2506 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2508 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2510 * stor-layout.c (variable_size): Do not issue errors.
2512 2011-05-04 Richard Guenther <rguenther@suse.de>
2514 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2515 for array-ref indices.
2516 (tree_coverage_counter_addr): Likewise.
2517 (build_fn_info_type): Use size_int for index types.
2518 (build_gcov_info): Likewise.
2520 2011-05-04 Richard Guenther <rguenther@suse.de>
2522 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2524 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2525 for constructor indices.
2526 (push_init_level): Likewise.
2528 2011-05-04 Richard Guenther <rguenther@suse.de>
2530 * explow.c (promote_mode): Move variable declarations before code.
2532 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2534 * tree.h (build_function_type_array): Declare.
2535 (build_varargs_function_type_array): Declare.
2536 (build_function_type_vec, build_varargs_function_type_vec): Define.
2537 * tree.c (build_function_type_array_1): New function.
2538 (build_function_type_array): New function.
2539 (build_varargs_function_type_array): New function.
2541 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2543 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2544 before setting STMT_VINFO_TYPE.
2546 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2548 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2549 instead of spu_pass_by_reference.
2551 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2553 * calls.c (emit_library_call_value_1): Invoke
2554 promote_function_mode hook on libcall arguments.
2555 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2556 argument being NULL.
2557 * targhooks.c (default_promote_function_mode): Lisewise.
2558 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2559 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2561 * doc/tm.texi: Document that TYPE argument might be NULL.
2563 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2565 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2567 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2570 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2572 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2574 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2575 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2577 * mips-tfile.c: ... here.
2578 Don't include coretypes.h, tm.h, filenames.h.
2579 (saber_stop): Remove definition and all calls.
2580 [__SABER__]: Remove.
2581 (__LINE__): Remove default.
2582 (Size_t, Ptrdiff_t): Remove definitions.
2583 Replace by size_t, ptrdiff_t.
2584 [!MIPS_DEBUGGING_INFO]: Remove.
2585 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2586 (progname): Add const.
2588 Replace all uses by static.
2589 (ALIGN_SYMTABLE_OFFSET): Remove default.
2590 * mips-tdump.c: Don't include coretypes.h, tm.h.
2591 Remove !MIPS_IS_STAB guard.
2592 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2593 $(TM_H), filenames.h dependencies.
2594 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2596 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2599 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2600 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2602 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2605 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2606 account and save/restore RETS.
2607 (PROFILE_BEFORE_PROLOGUE): Define.
2608 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2609 the push insn to use predecrement.
2611 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2614 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2616 2011-05-04 Nick Clifton <nickc@redhat.com>
2618 * config/mn10300/mn10300.c: Include cfgloop.h.
2620 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2621 Lcc or a FLcc insn into the instruction stream.
2622 (mn10300_block_contains_call): New function. Returns true if the
2623 given basic block contains a CALL insn.
2624 (mn10300_loop_contains_call_insn): New function. Returns true if
2625 the given loop contains a CALL insn.
2626 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2627 to use the SETLB and Lcc or FLcc insns.
2628 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2629 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2630 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2631 disable the SETLB optimization.
2632 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2633 __SETLB__ or __NO_SETLB__.
2634 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2635 (movsf_internal): Handle MDR register.
2636 (cmpsi): Make visible.
2637 (setlb): New pattern.
2639 (FLcc): New pattern.
2641 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2644 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2645 for reg<->xmm moves.
2646 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2647 (vec_concatv2di_rex64_sse): Ditto.
2648 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2649 (*vec_extractv2di_1_rex64): Ditto.
2652 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2654 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2656 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2658 2011-05-04 Richard Guenther <rguenther@suse.de>
2660 * tree.h (int_const_binop): Remove notrunc argument.
2661 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2662 create integer constants that are properly truncated.
2663 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2664 (const_binop): Remove zero notrunc argument to int_const_binop.
2665 (size_binop_loc): Likewise.
2666 (fold_div_compare): Likewise.
2667 (maybe_canonicalize_comparison_1): Likewise.
2668 (fold_comparison): Likewise.
2669 (fold_binary_loc): Likewise.
2670 (multiple_of_p): Likewise.
2671 * expr.c (store_constructor): Likewise.
2672 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2673 (maybe_fold_stmt_addition): Likewise.
2674 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2675 * stor-layout.c (layout_type): Likewise.
2676 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2677 * tree-sra.c (build_ref_for_offset): Likewise.
2678 (build_user_friendly_ref_for_offset): Likewise.
2679 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2680 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2681 * tree-ssa-loop-niter.c (inverse): Likewise.
2682 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2683 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2684 * tree-switch-conversion.c (check_range): Likewise.
2685 (build_constructors): Likewise.
2686 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2687 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2688 (extract_range_from_assert): Likewise.
2689 (vrp_int_const_binop): Likewise.
2690 (extract_range_from_binary_expr): Likewise.
2691 (extract_range_from_unary_expr): Likewise.
2692 (check_array_ref): Likewise.
2693 (find_case_label_range): Likewise.
2694 (simplify_div_or_mod_using_ranges): Likewise.
2695 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2696 comparing case labels for merging.
2698 2011-05-03 Mark Wielaard <mjw@redhat.com>
2700 * dwarf2out.c (debug_str_hash_forced): Removed.
2701 (gen_label_for_indirect_string): Removed.
2702 (get_debug_string_label): Removed.
2703 (AT_string_form): Generate label directly.
2704 (output_indirect_string): Test indirect_string_node for
2705 DW_FORM_strp instead of checking label and refcount.
2706 (prune_indirect_string): Removed.
2707 (prune_unused_types): Don't check debug_str_hash_forced or
2708 call prune_indirect_string.
2710 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2713 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2715 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2719 * combine.c (try_combine): Skip debug insns at m_split tests.
2721 2011-04-26 Mark Wielaard <mjw@redhat.com>
2724 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2725 when info_section_emitted.
2727 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2729 * config/mips/mips-opts.h: New.
2730 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2732 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2733 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2734 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2736 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2738 (mips_abi, mips_code_readable): Don't declare.
2739 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2740 (mabi=): Use Enum and Var.
2741 (mips_abi): New Enum and EnumValue entries.
2742 (mcode-readable=): Use Enum and Var.
2743 (mips_code_readable_setting): New Enum and EnumValue entries.
2744 (mr10k-cache-barrier=): Use Enum and Var.
2745 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2747 2011-05-03 Jan Hubicka <jh@suse.cz>
2749 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2750 replace hash by pointer map.
2751 (cgraph_node_set_element_def, cgraph_node_set_element,
2752 const_cgraph_node_set_element, varpool_node_set_element_def,
2753 varpool_node_set_element, const_varpool_node_set_element): Remove.
2754 (free_cgraph_node_set, free_varpool_node_set): New function.
2755 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2756 * tree-emutls.c: Free varpool node set.
2757 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2758 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2759 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2760 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2761 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2762 Move here from ipa.c; implement using pointer_map
2763 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2764 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2765 debug_cgraph_node_set, varpool_node_set_new,
2766 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2767 dump_varpool_node_set, debug_varpool_node_set):
2768 Move to ipa-uitls.c.
2769 * passes.c (ipa_write_summaries): Update.
2771 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2773 From Mike Frysinger:
2774 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2775 bf542/bf544/bf547/bf548/bf549.
2777 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2779 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2781 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2784 * config/bfin/bfin.md (MOVCC): New mode_macro.
2785 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2786 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2787 comments from generated assembly.
2789 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2792 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2793 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2794 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2795 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2796 * config/bfin/lib1funcs.asm (___muldi3): New function.
2798 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2800 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2801 build_function_type_list instead of build_function_type.
2802 Rearrange initialization of `args' to do so.
2804 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2806 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2807 instead of build_function_type.
2809 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2811 * config/rs6000/rs6000.c (spe_init_builtins): Call
2812 build_function_type_list instead of build_function_type.
2813 (paired_init_builtins, altivec_init_builtins): Likewise.
2814 (builtin_function_type): Likewise.
2816 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2818 * config/sh/sh.c (sh_media_init_builtins): Call
2819 build_function_type_list instead of build_function_type.
2821 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2823 * config/sparc/sparc.c (sparc_file_end): Call
2824 build_function_type_list instead of build_function_type.
2826 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2828 * config/alpha/alpha.c (alpha_init_builtins): Call
2829 build_function_type_list instead of build_function_type.
2831 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2833 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2834 build_function_type_list instead of build_function_type.
2836 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2838 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2839 build_function_type_list instead of build_function_type.
2840 Delete `endlink' variable.
2842 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2844 * config/avr/avr.c (avr_init_builtins): Call
2845 build_function_type_list instead of build_function_type.
2847 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2849 * config/picochip/picochip.c (picochip_init_builtins): Call
2850 build_function_type_list instead of build_function_type.
2851 Delete `endlink' variable.
2853 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2855 * config/bfin/bfin.c (bfin_init_builtins): Call
2856 build_function_type_list instead of build_function_type.
2858 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2861 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2862 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2864 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2867 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2868 libbffastfp overrides libgcc when -mfast-fp.
2870 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2872 Originally from Bernd Schmidt
2873 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2874 * config/bfin/bfin.c (override_options): Test it and error if
2877 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2879 Originally From Bernd Schmidt
2880 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2883 2011-05-03 Jeff Law <law@redhat.com>
2885 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2886 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2887 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2888 than accessing AUX field directly. Free the AUX field before
2890 (thread_block, thread_through_loop_header): Likewise.
2891 (thread_single_edge, mark_threaded_blocks): Likewise.
2892 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2893 (register_jump_thread): Do not attempt to thread to a NULL edge.
2895 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2897 * function.c (init_function_start): Call decide_function_section.
2898 * varasm.c (decide_function_section): New function.
2899 (assemble_start_function): When not using
2900 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2901 or first_function_block_is_cold.
2902 * rtl.h (decide_function_section): Declare.
2904 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2905 Jakub Jelinek <jakub@redhat.com>
2908 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2909 only succeed if req_mode is the same as set_mode.
2911 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2913 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2914 * genemit.c (gen_exp): Handle RETURN.
2915 * emit-rtl.c (verify_rtx_sharing): Likewise.
2916 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2917 * rtl.c (copy_rtx): RETURN is shared.
2918 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2920 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2921 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2922 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2923 * config/cris/cris.c (cris_expand_return): Likewise.
2924 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2925 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2926 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2927 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2928 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2930 * config/v850/v850.c (expand_epilogue): Likewise.
2931 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2932 * config/arm/arm.md (epilogue): Likewise.
2933 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2934 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2935 variable to ret_reg.
2937 2011-05-03 Richard Guenther <rguenther@suse.de>
2940 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2941 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2942 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2944 2011-05-03 Richard Guenther <rguenther@suse.de>
2946 * c-decl.c (grokdeclarator): Instead of looking at
2947 TREE_OVERFLOW check if the constant fits in the index type.
2949 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2951 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2952 (vec_store_lanes<mode><mode>): Likewise.
2954 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2956 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2957 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2958 convert_optab_index values.
2959 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2960 * genopinit.c (optabs): Initialize the new optabs.
2961 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2962 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2963 (expand_STORE_LANES): New functions.
2964 * tree.h (build_array_type_nelts): Declare.
2965 * tree.c (build_array_type_nelts): New function.
2966 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2967 (vect_model_load_cost): Likewise.
2968 (vect_store_lanes_supported, vect_load_lanes_supported)
2969 (vect_record_strided_load_vectors): Declare.
2970 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2971 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2972 (vect_transform_strided_load): Split out statement recording into...
2973 (vect_record_strided_load_vectors): ...this new function.
2974 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2975 (write_vector_array, create_array_ref): New functions.
2976 (vect_model_store_cost): Add store_lanes_p argument.
2977 (vect_model_load_cost): Add load_lanes_p argument.
2978 (vectorizable_store): Try to use store-lanes functions for
2980 (vectorizable_load): Likewise load-lanes and loads.
2981 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2982 to vect_model_store_cost.
2983 (vect_build_slp_tree): Likewise vect_model_load_cost.
2985 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2987 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2988 * hooks.c (hook_bool_mode_uhwi_false): New function.
2989 * target.def (array_mode_supported_p): New hook.
2990 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2991 * doc/tm.texi: Regenerate.
2992 * stor-layout.c (mode_for_array): New function.
2993 (layout_type): Use it.
2994 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2995 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2997 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3000 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3001 for -fstack-check if the size to allocate is negative.
3003 2011-05-02 Lawrence Crowl <crowl@google.com>
3005 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3006 (timevar_cond_start): New for starting a timer only when it is not
3008 (timevar_cond_stop): New for stopping a timer when it was not already
3011 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3012 (timevar_cond_start): New as above.
3013 (timevar_cond_stop): New as above.
3015 * timevar.def: Add start/stop timers for compiler phases,
3016 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3017 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3018 and TV_PHASE_FINALIZE.
3019 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3020 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3021 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3022 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3023 Make unused TV_OVERLOAD into a start/stop timer.
3025 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3026 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3027 to indicate that they are start/stop timers.
3029 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3030 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3031 Move initialization to do_compile.
3032 (do_compile): Add initialization from above.
3033 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3035 * c-decl.c (c_write_global_declarations): Add start/stop of
3036 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3038 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3039 or TV_PARSE_INLINE, as appropriate.
3040 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3041 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3043 2011-05-02 Jason Merrill <jason@redhat.com>
3046 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3048 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3051 * c-decl.c (finish_decl): Only create a composite if the types are
3054 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3056 * config/fr30/fr30-protos.h (Mmode): Don't define.
3057 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3058 definition where used.
3059 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3060 define. Expand definitions where used.
3061 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3062 Expand definitions where used.
3063 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3064 rx_function_arg, rx_function_arg_advance,
3065 rx_function_arg_boundary): Expand definitions of those macros.
3066 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3067 definition where used.
3069 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3071 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3073 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3074 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3075 with *movv2sf_internal_rex64_avx.
3076 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3077 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3078 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3079 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3080 "vex" in "prefix" attribute calculation.
3081 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3083 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3086 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3087 inputs match the output.
3089 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3092 * config/m68k/m68k.c (m68k_expand_prologue): Set
3093 current_function_static_stack_size.
3095 2011-05-02 Jan Hubicka <jh@suse.cz>
3097 * lto-streamer.c (lto_streamer_cache_insert_1,
3098 lto_streamer_cache_lookup, lto_streamer_cache_create,
3099 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3100 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3102 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3104 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3105 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3106 config/m68k/t-opts: New files.
3107 * config/m68k/m68k-tables.opt: New file (generated).
3108 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3109 extra_options and m68k/t-opts to tmake_file.
3110 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3111 (all_isas): Initialize using m68k-isas.def.
3112 (all_microarchs): Initialize using m68k-microarchs.def.
3113 (m68k_find_selection): Remove.
3114 (m68k_handle_option): Don't assert that global structures are in
3115 use. Use error_at. Access variables via opts pointer. Don't
3116 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3117 directly for -m68020-40 and -m68020-60.
3118 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3119 m68k_tune_entry here.
3120 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3122 (m68k_library_id_string): Remove declaration.
3123 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3124 (m68k_library_id_string): New Variable.
3125 (march=, mcpu=, mtune=): Use Enum and Var.
3127 2011-05-02 Richard Guenther <rguenther@suse.de>
3129 * varasm.c (output_constructor_regular_field): Compute zero-based
3130 index with double-ints. Make sure to ICE instead of producing
3132 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3133 in asserts. Properly use a signed type.
3135 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3137 * config/i386/sse.md (V): New mode iterator.
3138 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3140 (V_256): Rename from AVX256MODE.
3141 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3142 condition to all users.
3144 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3145 condition to all users.
3146 (VF_128): Make V4SF mode unconditional.
3147 (VF_256): Rename from AVX256MODEF2P.
3148 (VI4F_128): Rename from SSEMODE4S.
3149 (VI8F_128): Rename from SSEMODE2D.
3150 (VI4F_256): Rename from AVX256MODE8P.
3151 (VI8F_256): Rename from AVX256MODE4P.
3152 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3153 (ssescalarmodesuffix): Remove SF and DF modes.
3154 (SSEMODE124): Remove.
3155 (SSEMODE1248): Ditto.
3156 (SSEMODEF2P): Ditto.
3157 (AVXMODEF2P): Ditto.
3158 (AVXMODEFDP): Ditto.
3159 (AVXMODEFSP): Ditto.
3160 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3162 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3164 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3165 xop_pcmov_<mode>256. Use V mode iterator.
3167 Adjust RTX patterns globally for renamed mode attributes.
3169 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3171 * haifa-sched.c (sched_emit_insn): Emit insn before first
3172 non-scheduled insn. Inform back-end about new insn. Add
3173 new insn to scheduled_insns list.
3175 2011-05-02 Richard Guenther <rguenther@suse.de>
3177 PR tree-optimization/48822
3178 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3179 (process_scc): Indicate which iteration we start.
3181 2011-05-02 Jan Hubicka <jh@suse.cz>
3183 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3184 (lto_section_overrun): New.
3185 * lto-section-out.c (append_block): Rename to ...
3186 (lto_append_block): ... this one; export.
3187 (lto_output_1_stream): Move lto lto-streamer.h
3188 (lto_output_data_stream): Update.
3189 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3190 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3193 2011-05-02 Richard Guenther <rguenther@suse.de>
3195 * tree.c (tree_code_counts): New global array.
3196 (record_node_allocation_statistics): Count individual tree codes.
3197 (dump_tree_statistics): Dump individual code stats.
3199 2011-05-01 Jan Hubicka <jh@suse.cz>
3201 * ipa-inline.c (caller_growth_limits): Fix thinko when
3202 looking for largest stack frame.
3203 * ipa-inline.h (dump_inline_summary): Declare.
3204 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3206 (dump_inline_summary): Export.
3207 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3209 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3211 * reginfo.c (memory_move_cost): Change rclass argument type form
3212 'enum reg_class' to reg_class_t.
3213 * reload.h (memory_move_cost): Update prototype.
3214 * postreload.c reload_cse_simplify_set): Change type dclass var to
3216 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3218 (ira_allocate_and_set_costs): Change aclass argument type form
3219 'enum reg_class' to reg_class_t.
3220 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3221 Change aclass argument type to reg_class_t.
3222 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3224 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3225 memory_move_cost call.
3227 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3228 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3229 Change type tmp var to reg_class_t.
3231 2011-04-30 Jan Hubicka <jh@suse.cz>
3233 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3234 inlining into function with flatten attribute.
3235 (want_inline_small_function_p): Be more realistic about inlining
3236 cold calls where callee size grows.
3238 2011-04-30 Jan Hubicka <jh@suse.cz>
3240 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3243 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3245 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3246 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3247 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3248 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3249 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3250 (print_operand): Rename to...
3251 (sparc_print_operand): ...this. Make static. Adjust
3252 sparc_print_operand function call.
3253 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3256 2011-04-30 Jan Hubicka <jh@suse.cz>
3259 * ipa-inline.c (early_inliner): Disable when doing late
3260 addition of function.
3262 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3264 * dwarf2out.c (get_address_mode): New inline.
3265 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3266 if not dwarf_strict emit
3267 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3268 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3269 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3270 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3271 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3272 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3273 mem_loc_descriptor callers.
3274 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3275 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3276 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3277 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3278 (base_types): New variable.
3279 (get_base_type_offset, calc_base_type_die_sizes,
3280 base_type_for_mode, mark_base_types, base_type_cmp,
3281 move_marked_base_types): New functions.
3282 (calc_die_sizes): Assert that die_offset is 0 or equal to
3284 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3285 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3286 callers. If not dwarf_strict, call mem_loc_descriptor even for
3287 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3288 (gen_subprogram_die): Don't give up on call site parameters
3289 with non-integral or large integral modes. Adjust
3290 mem_loc_descriptor callers.
3291 (prune_unused_types): Call prune_unused_types_mark on base_types
3293 (resolve_addr): Call mark_base_types.
3294 (dwarf2out_finish): Call move_marked_base_types.
3296 PR tree-optimization/48809
3297 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3299 (gen_inbound_check): Don't compute index_expr - range_min in utype
3300 again, instead reuse SSA_NAME initialized in build_arrays.
3301 Remove two useless gsi_for_stmt calls.
3303 2011-04-29 Jeff Law <law@redhat.com>
3305 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3307 2011-04-29 Martin Jambor <mjambor@suse.cz>
3309 * cgraph.h (cgraph_postorder): Remove declaration.
3310 * ipa-utils.h (ipa_free_postorder_info): Declare.
3311 (ipa_reverse_postorder): Likewise.
3312 * cgraphunit.c: Include ipa-utils.h.
3313 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3314 * ipa-inline.c: Include ipa-utils.h.
3315 (ipa_inline): Update call to ipa_reverse_postorder.
3316 * ipa-pure-const.c (propagate_pure_const): Update call to
3317 ipa_reduced_postorder and ipa_print_order. Call
3318 ipa_free_postorder_info to clean up.
3319 (propagate_nothrow): Likewise.
3320 * ipa-reference.c (propagate): Removed a useless call to
3321 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3322 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3323 * ipa.c: Include ipa-utils.h.
3324 (ipa_profile): Update call to ipa_reverse_postorder.
3325 (cgraph_postorder): Moved to...
3326 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3327 (ipa_utils_print_order): Renamed to ipa_print_order.
3328 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3330 (ipa_free_postorder_info): New function.
3331 * passes.c: Include ipa-utils.h.
3332 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3333 (ipa_write_summaries): Likewise.
3334 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3335 (cgraphunit.o): Likewise.
3337 (ipa-inline.o): Likewise.
3339 2011-04-29 Jan Hubicka <jh@suse.cz>
3341 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3342 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3343 * ipa-inline.h (clause_t): Turn into unsigned int.
3344 * ipa-inline-analysis.c (add_clause): Do more simplification.
3345 (and_predicates): Shortcut more cases.
3346 (predicates_equal_p): Move forward; check that clauses are properly
3348 (or_predicates): Shortcut more cases.
3349 (edge_execution_predicate): Rewrite as...
3350 (set_cond_stmt_execution_predicate): ... this function; handle
3351 __builtin_constant_p.
3352 (set_switch_stmt_execution_predicate): New .
3353 (compute_bb_predicates): New.
3354 (will_be_nonconstant_predicate): Update TODO.
3355 (estimate_function_body_sizes): Use compute_bb_predicates
3356 and free them later, always try to estimate if stmt is constant.
3357 (estimate_time_after_inlining, estimate_size_after_inlining):
3358 Gracefully handle optimized out edges.
3359 (read_predicate): Fix off by one error.
3361 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3363 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3365 2011-04-27 Xinliang David Li <davidxl@google.com>
3367 * tree-profile.c (init_ic_make_global_vars): Set
3368 tls attribute on ic vars.
3369 * coverage.c (coverage_end_function): Initialize
3370 function_list with zero.
3372 2011-04-29 Richard Guenther <rguenther@suse.de>
3374 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3375 for the type of the result.
3376 (fold_builtin_isascii): Likewise.
3377 (fold_builtin_toascii): Use integer_type_node where appropriate.
3378 (fold_builtin_logb): Likewise.
3379 (fold_builtin_frexp): Likewise.
3380 (fold_builtin_strstr): Likewise.
3381 (fold_builtin_strpbrk): Likewise.
3382 (fold_builtin_fputs): Likewise.
3383 (fold_builtin_sprintf): Likewise.
3384 (fold_builtin_snprintf): Likewise.
3385 (fold_builtin_printf): Likewise.
3386 (do_mpfr_remquo): Use a proper type for the assigned constant.
3387 (do_mpfr_lgamma_r): Likewise.
3388 * dwarf2out.c (resolve_one_addr): Use size_int.
3389 * except.c (init_eh): Likewise.
3390 (assign_filter_values): Use integer_type_node for filter values.
3391 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3393 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3394 for EH region numbers.
3395 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3396 for the shift amount.
3398 2011-04-29 Richard Guenther <rguenther@suse.de>
3400 * expr.h (expand_shift): Rename to ...
3401 (expand_variable_shift): ... this.
3402 (expand_shift): Take a constant shift amount.
3403 * expmed.c (expand_shift): Rename to ...
3404 (expand_variable_shift): ... this.
3405 (expand_shift): New wrapper around expand_variable_shift.
3406 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3407 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3408 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3409 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3410 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3411 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3412 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3413 emit_store_flag_1, emit_store_flag): Likewise.
3414 * builtins.c (expand_builtin_signbit): Likewise.
3415 * calls.c (load_register_parameters): Likewise.
3416 * function.c (assign_parm_setup_block): Likewise.
3417 * lower-subreg.c (resolve_shift_zext): Likewise.
3418 * optabs.c (widen_bswap, expand_abs_nojump,
3419 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3420 * spu/spu.c (spu_expand_extv): Likewise.
3421 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3423 2011-04-29 Richard Guenther <rguenther@suse.de>
3425 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3426 for the remapped region number.
3427 * predict.c (build_predict_expr): Use integer_type_node for the
3429 * fold-const.c (fold_binary_loc): Use integer_type_node for
3430 the shift amount. Use a proper type for the PLUS_EXPR operand.
3432 2011-04-29 Michael Matz <matz@suse.de>
3434 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3435 other trees that just builtins.
3436 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3438 2011-04-29 Richard Guenther <rguenther@suse.de>
3440 * tree-nested.c (get_trampoline_type): Use size_int.
3441 (get_nl_goto_field): Likewise.
3442 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3444 (lower_eh_constructs_2): Likewise.
3445 (lower_resx): Likewise.
3446 (lower_eh_dispatch): Likewise.
3447 * tree-mudflap.c (mf_build_string): Use size_int.
3448 (mudflap_register_call): Use integer_type_node for the flag.
3449 (mudflap_enqueue_constant): Use size_int.
3450 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3451 instead of rebuilding it.
3453 2011-04-29 Richard Guenther <rguenther@suse.de>
3455 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3456 Handle OBJ_TYPE_REF.
3457 (find_func_aliases_for_call): Use it more consistently.
3459 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3461 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3462 (rank_for_schedule): Use it.
3463 (schedule_block): Set it.
3465 2011-04-28 David Li <davidxl@google.com>
3467 * tree.c (crc32_string): Use crc32_byte.
3468 (crc32_byte): New function.
3469 * tree.h (crc32_byte): New function.
3470 * gcov.c (read_graph_file): Handle new cfg_cksum.
3471 (read_count_file): Ditto.
3472 * profile.c (instrument_values): Ditto.
3473 (get_exec_counts): Ditto.
3474 (read_profile_edge_counts): Ditto.
3475 (compute_branch_probabilities): Ditto.
3476 (compute_value_histograms): Ditto.
3477 (branch_prob): Ditto.
3478 (end_branch_prob): Ditto.
3479 * coverage.c (read_counts_file): Ditto.
3480 (get_coverage_counts): Ditto.
3481 (tree_coverage_counter_addr): Ditto.
3482 (coverage_checksum_string): Ditto.
3483 (coverage_begin_output): Ditto.
3484 (coverage_end_function): Ditto.
3485 (build_fn_info_type): Ditto.
3486 (build_fn_info_value): Ditto.
3487 * libgcov.c (gcov_exit): Ditto.
3488 * gcov-dump.c (tag_function): Ditto.
3489 (compute_checksum): Remove.
3491 2011-04-29 Alan Modra <amodra@gmail.com>
3493 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3494 unspec plus offset. Tidy macho code.
3496 2011-04-29 Martin Jambor <mjambor@suse.cz>
3498 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3499 node instead of a decl. Update all callers.
3500 * cgraph.h: Update declaration.
3502 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3504 PR tree-optimization/48765
3505 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3506 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3507 to indicate if loop aware SLP is being used. Scan the statements
3508 and update the vectorization factor according to the type of
3509 vectorization before statement analysis.
3510 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3511 pass it to vect_analyze_loop_operations.
3512 (vectorizable_reduction): Set number of copies to 1 in case of pure
3514 * tree-vect-stmts.c (vectorizable_conversion,
3515 vectorizable_assignment, vectorizable_shift,
3516 vectorizable_operation, vectorizable_type_demotion,
3517 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3519 (vectorizable_condition): Move the check that it is not SLP
3520 vectorization before the number of copies check.
3521 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3522 to vectorize the loop using SLP.
3524 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3527 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3530 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3532 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3533 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3534 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3535 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3536 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3538 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3539 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3540 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3541 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3542 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3543 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3545 * config/i386/linux.h (REG_NAME): Don't define.
3546 * config/i386/linux64.h (REG_NAME): Don't define.
3547 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3548 Undefine before defining.
3550 2011-04-28 Jan Hubicka <jh@suse.cz>
3552 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3553 nonconstant_names array.
3554 (estimate_function_body_sizes): Build nonconstant_names array; handle
3555 BUILT_IN_CONSTANT_P.
3557 2011-04-28 Richard Guenther <rguenther@suse.de>
3561 2011-04-28 Richard Guenther <rguenther@suse.de>
3563 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3564 as late as possible.
3566 2011-04-28 Richard Guenther <rguenther@suse.de>
3568 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3569 (debug_constraint): Do it here.
3570 (dump_constraints): And here.
3571 (rewrite_constraints): And here.
3572 (dump_constraint_edge): Remove.
3573 (dump_constraint_graph): Rewrite to produce DOT output.
3574 (solve_constraints): Build succ graph as late as possible.
3575 Dump constraint graphs before and after solving.
3577 2011-04-28 Richard Guenther <rguenther@suse.de>
3579 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3580 New function split out from ...
3581 (find_func_aliases): ... here. Call it.
3582 (find_func_aliases_for_call): Likewise.
3584 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3586 * internal-fn.h (internal_fn_name_array): Declare.
3587 (internal_fn_flags_array): Likewise.
3589 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3591 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3592 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3594 (ssemodefsuffix): Remove.
3595 (ssevecmodesuffix): New mode attribute.
3596 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3597 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3598 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3599 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3600 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3601 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3602 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3603 ssemodesuffix mode attribute.
3604 (float splitters): Use ssevecmodesuffix mode attribute.
3605 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3606 (sseinsmode): Rename from avxvecmode.
3607 (avxsizesuffix): Rename from avxmodesuffix.
3608 (sseintvecmode): Rename from avxpermvecmode.
3609 (ssedoublevecmode): Rename from ssedoublesizemode.
3610 (ssehalfvecmode): Rename from avxhalfvecmode.
3611 (ssescalarmode): Rename from avxscalarmode.
3612 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3613 templates for ssemodesuffix mode attribute.
3614 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3617 Adjust RTX patterns globally for renamed mode attributes.
3619 2011-04-27 Jan Hubcika <jh@suse.cz>
3621 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3622 * ipa-inline-analysis.c: Include alloc-pool.h.
3623 (edge_predicate_pool): New.
3624 (trye_predicate_p): New function
3625 (false_predicate_p): New function.
3626 (add_clause): Sanity check that false clauses are "optimized";
3627 never add clauses to predicate that is already known to be false.
3628 (and_predicate): Use flase_predicate_p.
3629 (evaulate_predicate): Rename to ...
3630 (evaluate_predicate): ... this one; update all callers; assert
3631 that false is not listed among possible truths.
3632 (dump_predicate): Use true_predicate_p.
3633 (account_size_time): Use false_predicate_p.
3634 (evaulate_conditions_for_edge): Rename to ...
3635 (evaluate_conditions_for_edge) ... this one.
3636 (edge_set_predicate): New function.
3637 (inline_edge_duplication_hook): Duplicate edge predicates.
3638 (inline_edge_removal_hook): Free edge predicates.
3639 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3640 (dump_inline_summary): Update.
3641 (estimate_function_body_sizes): Set edge predicates.
3642 (estimate_calls_size_and_time): Handle predicates.
3643 (estimate_callee_size_and_time): Update.
3644 (remap_predicate): Add toplev_predicate; update comment.
3645 (remap_edge_predicates): New function.
3646 (inline_merge_summary): Compute toplev predicate; update.
3647 (read_predicate): New function.
3648 (read_inline_edge_summary): Use it.
3649 (inline_read_section): Likewise.
3650 (write_predicate): New function.
3651 (write_inline_edge_summary): Use it.
3652 (inline_write_summary): Likewise.
3653 (inline_free_summary): Free alloc pool and edge summary vec.
3655 2011-04-27 Richard Guenther <rguenther@suse.de>
3657 * tree-ssa-structalias.c (changed_count): Remove.
3658 (changed): Use a bitmap.
3659 (unify_nodes): Adjust.
3660 (do_sd_constraint): Likewise.
3661 (do_ds_constraint): Likewise.
3662 (do_complex_constraint): Likewise.
3663 (solve_graph): Likewise.
3665 2011-04-27 Jan Hubicka <jh@suse.cz>
3667 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3669 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3671 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3672 (avx_vperm2f128_*_operand): Ditto.
3673 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3674 Use avx_vpermilp_parallel in insn condition.
3675 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3676 Use avx_vperm2f128_parallel in insn condition.
3678 2011-04-27 Richard Guenther <rguenther@suse.de>
3680 * Makefile.in (tree-ssa-structalias.o): Remove
3681 gt-tree-ssa-structalias.h dependency.
3682 (GTFILES): Remove tree-ssa-structalias.c.
3683 * tree.c (allocate_decl_uid): New function.
3684 (make_node_stat): Use it.
3685 (copy_node_stat): Likewise.
3686 * tree.h (allocate_decl_uid): Declare.
3687 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3688 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3689 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3690 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3691 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3692 (struct heapvar_map): Likewise.
3693 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3694 heapvar_insert): Likewise.
3695 (make_heapvar_for): Rename to ...
3696 (make_heapvar): ... this. Simplify.
3697 (fake_var_decl_obstack): New global var.
3698 (build_fake_var_decl): New function.
3699 (make_constraint_from_heapvar): Adjust.
3700 (handle_lhs_call): Likewise.
3701 (create_function_info_for): Likewise.
3702 (intra_create_variable_infos): Likewise.
3703 (init_alias_vars): Allocate fake_var_decl_obstack.
3704 (init_alias_heapvars, delete_alias_heapvars): Remove.
3705 (compute_points_to_sets): Do not call init_alias_heapvars.
3706 (ipa_pta_execute): Likewise.
3707 (delete_points_to_sets): Free fake_var_decl_obstack.
3709 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3711 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3712 (si_from_UTItype, si_to_UTItype): New functions.
3713 (__udivmodti4): Use them to implement type-punning.
3714 * config/spu/multi3.c (union qword_TItype): New data type.
3715 (si_from_TItype, si_to_TItype): New functions.
3716 (__multi3): Use them to implement type-punning.
3718 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3720 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3722 2011-04-27 Jan Hubicka <jh@suse.cz>
3724 * ipa-prop.c (function_insertion_hook_holder): New holder.
3725 (ipa_add_new_function): New function.
3726 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3727 Register/deregister holder.
3729 2011-04-27 Richard Guenther <rguenther@suse.de>
3731 PR tree-optimization/48772
3732 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3734 2011-04-27 Richard Guenther <rguenther@suse.de>
3736 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3737 TARGET_MEM_REF handling.
3739 2011-04-27 Nick Clifton <nickc@redhat.com>
3741 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3742 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3743 (REG_CLASS_NAMES): Likewise.
3744 (REG_CLASS_CONTENTS): Likewise.
3745 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3746 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3747 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3748 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3749 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3750 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3751 duplicate register classes.
3752 (frv_class_likely_spilled_p): Likewise.
3753 (frv_register_move_cost): Likewise.
3755 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3756 end of the regno_reg_class array.
3758 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3761 * c-typeck.c (build_binary_op): Don't wrap arguments if
3762 int_operands is true.
3764 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3767 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3768 targetm.calls.must_pass_in_stack for void type.
3770 2011-04-26 Jan Hubicka <jh@suse.cz>
3772 * cgraphbuild.c (build_cgraph_edges): Update call
3773 of cgraph_create_edge and cgraph_create_indirect_edge.
3774 * cgraph.c (cgraph_create_edge_including_clones,
3775 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3776 cgraph_update_edges_for_call_stmt_node): Do not take nest
3777 argument; do not initialize call_stmt_size/time.
3778 (dump_cgraph_node): Do not dump nest.
3779 (cgraph_clone_edge): Do not take loop_nest argument;
3780 do not propagate it; do not clone call_stmt_size/time.
3781 (cgraph_clone_node): Likewise.
3782 (cgraph_create_virtual_clone): Update.
3783 * cgraph.h (struct cgraph_edge): Remove
3784 call_stmt_size/call_stmt_time/loop_nest.
3785 (cgraph_create_edge, cgraph_create_indirect_edge,
3786 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3788 * tree-emutls.c (gen_emutls_addr): Update.
3789 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3790 loop_nest; handle indirect calls, too.
3791 (clone_inlined_nodes): Do not care about updating inline summaries.
3792 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3793 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3794 stream call_stmt_size/call_stmt_time/loop_nest.
3795 * ipa-inline.c (edge_badness): Update.
3796 (ipa_inline): dump summaries after inlining.
3797 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3799 (inline_edge_summary): New function.
3800 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3801 (inline_edge_removal_hook): Handle edge summaries.
3802 (inline_edge_duplication_hook): New hook.
3803 (inline_summary_alloc): Alloc hooks.
3804 (initialize_growth_caches): Do not register removal hooks.
3805 (free_growth_caches); Do not free removal hook.
3806 (dump_inline_edge_summary): New function.
3807 (dump_inline_summary): Use it.
3808 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3809 (inline_update_callee_summaries): New function.
3810 (inline_merge_summary): Use it.
3811 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3812 (read_inline_edge_summary): New function.
3813 (inline_read_section): Use it.
3814 (write_inline_edge_summary): New function.
3815 (inline_write_summary): Use it.
3816 (inline_free_summary): Free edge new holders.
3817 * tree-inline.c (copy_bb): Update.
3819 2011-04-26 Jason Merrill <jason@redhat.com>
3821 * tree-eh.c (lower_try_finally_switch): Create the label along with
3822 the CASE_LABEL_EXPR.
3824 2011-04-26 David S. Miller <davem@davemloft.net>
3825 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3827 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3828 * configure: Regenerate.
3830 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3833 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3835 (VEC_reduc): New code iterator and splitters for vector reduction.
3836 (VEC_reduc_name): Ditto.
3837 (VEC_reduc_rtx): Ditto.
3838 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3839 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3841 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3842 support for extracting SF on VSX.
3844 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3845 generating xscvspdp.
3846 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3847 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3848 double add, minimum, maximum vector reduction.
3849 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3850 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3851 optimize double vector reduction.
3852 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3854 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3856 * config/fr30/fr30.h (inhibit_libc): Don't define.
3857 * config/m32r/m32r-protos.h: Correct comment.
3858 * config/v850/v850.h (GHS_default_section_names,
3859 GHS_current_section_names): Use tree, not union tree_node *.
3861 2011-04-26 Xinliang David Li <davidxl@google.com>
3863 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3864 * c-family/c-opts.c (c_common_handle_option): Set
3865 warn_maybe_uninitialized.
3866 * opts.c (common_handle_option): Ditto.
3867 * common.opt: New option.
3868 * tree-ssa.c (warn_uninit): Add one more parameter.
3869 (warn_uninitialized_var): Pass warning code.
3870 * tree-flow.h: Interface change.
3873 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3875 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3876 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3877 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3879 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3881 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3882 * config/mips/mips.opt (mmips-tfile): Remove.
3884 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3885 mips-tdump reference to ...
3886 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3887 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3888 reference by Tru64 UNIX.
3890 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3893 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3894 is error_mark_node, set value to NULL.
3896 PR tree-optimization/48734
3897 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3898 if return value from maybe_fold_*_comparsions isn't something
3899 the code is prepared to handle.
3901 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3903 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3905 (ext_QIreg_nomode_operands): Remove.
3906 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3910 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3912 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3914 2011-04-26 Richard Guenther <rguenther@suse.de>
3916 * c-typeck.c (build_unary_op): Do not expand array-refs via
3917 pointer arithmetic. Only adjust qualifiers for function types.
3919 2011-04-26 Richard Guenther <rguenther@suse.de>
3922 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3923 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3924 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3925 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3927 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3929 * doc/extend.texi: Document __underlying_type.
3931 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3933 * config/rs6000/titan.md (automata_option "progress"): Remove.
3935 2011-04-25 Jeff Law <law@redhat.com>
3937 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3939 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 * system.h (ENUM_BITFIELD): Remove.
3943 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3944 Eric Botcazou <ebotcazou@adacore.com>
3946 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3947 for STORE_FLAG_VALUE==-1 case.
3949 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3952 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3953 LEGITIMATE_PIC_OPERAND_P.
3955 2011-04-24 Jan Hubicka <jh@suse.cz>
3957 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3959 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3960 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3961 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3962 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3963 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3964 Sanity check predicate length.
3965 (remap_predicate): Likewise; sanity check jump functions.
3966 (inline_read_section, inline_write_summary): Sanity check
3969 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3972 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3973 __is_literal_type, and __is_trivial; update throughout about
3974 possibly cv-qualified void types.
3976 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3978 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3979 testsuite and make it version agnostic.
3981 2011-04-22 Jan Hubicka <jh@suse.cz>
3983 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3985 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3988 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3989 to VOID_TYPE even around MODIFY_EXPR.
3991 2011-04-22 Mike Stump <mikestump@comcast.net>
3993 * gensupport.c (read_md_rtx): Fix typo in comment.
3994 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3997 2011-04-22 Jan Hubicka <jh@suse.cz>
3999 * gengtype.c (open_base_files): Add ipa-inline.h include.
4000 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4001 ipa-prop.c; update all uses.
4002 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4003 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4004 merge summary of inlined function into former caller.
4005 * ipa-inline.c (max_benefit): Remove.
4006 (edge_badness): Compensate for removal of benefits.
4007 (update_caller_keys): Use
4008 reset_node_growth_cache/reset_edge_growth_cache.
4009 (update_callee_keys): Likewise.
4010 (update_all_callee_keys): Likewise.
4011 (inline_small_functions): Do not collect max_benefit; do not reset
4012 estimated_growth; call free_growth_caches and initialize_growth_caches.
4013 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4014 struct size_time_entry): New structures.
4015 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4016 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4017 and estimated_growth.
4018 (edge_growth_cache_entry): New structure.
4019 (node_growth_cache, edge_growth_cache): New global vars.
4020 (estimate_growth): Turn into inline.
4021 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4022 initialize_growth_caches, free_growth_caches): Declare.
4023 (estimate_edge_growth): Rewrite.
4024 (estimate_edge_time): Implement as inline cache lookup.
4025 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4027 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4028 (NUM_CONDITIONS): New constant.
4029 (predicate_conditions): New enum.
4030 (IS_NOT_CONSTANT): New constant.
4031 (edge_removal_hook_holder): New var.
4032 (node_growth_cache, edge_growth_cache): New global vars.
4033 (true_predicate, single_cond_predicate, false_predicate,
4034 not_inlined_predicate, add_condition, add_clause, and_predicates,
4035 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4036 dump_clause, dump_predicate, account_size_time,
4037 evaulate_conditions_for_edge): New functions.
4038 (inline_summary_alloc): Move to heap.
4039 (inline_node_removal_hook): Clear condition and entry vectors.
4040 (inline_edge_removal_hook): New function.
4041 (initialize_growth_caches, free_growth_caches): New function.
4042 (dump_inline_summary): Update.
4043 (edge_execution_predicate): New function.
4044 (will_be_nonconstant_predicate): New function.
4045 (estimate_function_body_sizes): Compute BB and constantness predicates.
4046 (compute_inline_parameters): Do not clear estimated_growth.
4047 (estimate_edge_size_and_time): New function.
4048 (estimate_calls_size_and_time): New function.
4049 (estimate_callee_size_and_time): New function.
4050 (remap_predicate): New function.
4051 (inline_merge_summary): New function.
4052 (do_estimate_edge_time): New function based on...
4053 (estimate_edge_time): ... this one.
4054 (do_estimate_edge_growth): New function.
4055 (do_estimate_growth): New function based on....
4056 (estimate_growth): ... this one.
4057 (inline_analyze_function): Analyze after deciding on jump functions.
4058 (inline_read_section): New function.
4059 (inline_read_summary): Use it.
4060 (inline_write_summary): Write all the new data.
4061 * ipa-prop.c (ipa_get_param_decl_index): Export.
4062 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4063 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4065 (ipa_get_lattice): Move here from ipa-cp.c
4066 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4067 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4068 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4069 cgraph_edge_inlinable_p): Remove.
4070 * cgraphunit.c: Include ipainline.h
4071 (cgraph_process_new_functions): Update call of
4072 compute_inline_parameters.
4074 2011-04-22 Richard Guenther <rguenther@suse.de>
4076 * tree.c (build_int_cst): Properly create canonicalized integer
4078 (build_int_cst_type): Remove scary comments.
4080 2011-04-22 Xinliang David Li <davidxl@google.com>
4082 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4083 by default when -Wno-error is not specified.
4084 * opts-global.c (decode_options): Remove call to
4085 control_warning_options.
4087 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4089 PR tree-optimization/48717
4090 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4091 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4093 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4095 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4096 definition where used.
4098 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4101 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4102 TREE_STATIC variables declared inside of some OpenMP construct.
4104 2011-04-22 Martin Jambor <mjambor@suse.cz>
4107 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4109 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4112 * c-typeck.c (pop_init_level): Do not warn about initializing
4115 2011-04-22 Alan Modra <amodra@gmail.com>
4117 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4118 when returning call_cookie.
4119 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4120 pointers, to functions with no more vector args than the current
4121 function, and some non-local calls for ABI_V4.
4122 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4123 sibcall_nonlocal_aix64): Combine to ..
4124 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4125 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4126 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4127 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4128 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4130 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4131 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4132 sibcall_value_symbolic_64): Delete.
4134 2011-04-21 Xinliang David Li <davidxl@google.com>
4136 * cgraph.h: Remove pid.
4137 * cgraph.c: Remove pid.
4138 * value-prof.c (init_node_map): New function.
4139 (del_node_map): New function.
4140 (find_func_by_funcdef_no): New function.
4141 (gimple_ic_transform): Call new function.
4142 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4143 * function.c (get_last_funcdef_no): New function.
4144 * function.h (get_last_funcdef_no): New function.
4145 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4146 to libgcov function.
4147 (tree-profiling): Call node map init and delete function.
4149 2011-04-21 Ian Lance Taylor <iant@google.com>
4151 * godump.c (go_format_type): Use exported Go name for anonymous
4154 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4156 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4157 Call builtin_function_type_list instead of builtin_function_type.
4158 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4160 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4162 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4163 build_function_type_list instead of build_function_type.
4164 Delete variable `endlink'.
4166 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4168 * config/s390/s390.c (s390_init_builtins): Call
4169 build_function_type_list instead of build_function_type.
4171 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4173 * config/ia64/ia64.c (ia64_init_builtins): Call
4174 build_function_type_list instead of builtin_function_type.
4176 2011-04-21 Easwaran Raman <eraman@google.com>
4178 * cfgexpand.c (stack_var): Remove OFFSET...
4179 (add_stack_var): ...and its reference here...
4180 (expand_stack_vars): ...and here.
4181 (stack_var_cmp): Sort by descending order of size.
4182 (partition_stack_vars): Change heuristic.
4183 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4184 (dump_stack_var_partition): Add newline after each partition.
4186 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4187 Jeff Law <law@redhat.com>
4189 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4190 * gengtype.c (matching_file_name_substitute): Likewise.
4192 2011-04-21 Richard Guenther <rguenther@suse.de>
4195 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4197 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4199 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4201 2011-04-21 Richard Guenther <rguenther@suse.de>
4203 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4206 2011-04-21 Richard Guenther <rguenther@suse.de>
4208 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4209 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4210 Use DECL_P, not SSA_VAR_P.
4211 (ptr_derefs_may_alias_p): Likewise.
4212 (ptr_deref_may_alias_ref_p_1): Likewise.
4213 (decl_refs_may_alias_p): Likewise.
4214 (refs_may_alias_p_1): Likewise.
4215 (ref_maybe_used_by_call_p_1): Likewise.
4216 (call_may_clobber_ref_p_1): Likewise.
4217 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4218 are either MEM_REF or TARGET_MEM_REF.
4219 (indirect_refs_may_alias_p): Likewise.
4220 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4221 for MEM_EXPR of indirect calls.
4223 2011-04-21 Tristan Gingold <gingold@adacore.com>
4225 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4226 (dst_file_info_struct): Remove flen field.
4227 (lookup_filename): Remove code that set flen field.
4229 2011-04-21 Tristan Gingold <gingold@adacore.com>
4231 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4233 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4236 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4237 vec_extract and vec_concat for non-SSE4_1 targets.
4239 2011-04-21 Richard Guenther <rguenther@suse.de>
4241 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4244 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4246 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4248 (FILE): Don't undefine.
4250 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4252 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4254 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4256 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4257 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4258 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4260 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4261 definitions where used.
4262 * config/microblaze/microblaze.h (struct microblaze_args): Use
4263 rtx, not struct rtx_def *.
4264 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4266 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4267 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4268 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4269 not struct rtx_def *.
4270 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4272 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4274 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4276 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4278 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4279 operand_equal_p to compare DR_BASE_ADDRESSes.
4280 (vect_check_interleaving): Likewise.
4282 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4285 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4286 for all Neon struct constants.
4288 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4290 * target.def (legitimate_constant_p): New hook.
4291 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4292 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4293 * doc/tm.texi: Regenerate.
4294 * hooks.h (hook_bool_mode_rtx_true): Declare.
4295 * hooks.c (hook_bool_mode_rtx_true): Define.
4296 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4297 * calls.c (precompute_register_parameters): Replace uses of
4298 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4299 (emit_library_call_value_1): Likewise.
4300 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4301 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4302 * ira-costs.c (scan_one_insn): Likewise.
4303 * recog.c (general_operand, immediate_operand): Likewise.
4304 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4305 * reload1.c (init_eliminable_invariants): Likewise.
4307 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4309 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4310 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4312 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4313 * config/alpha/predicates.md (input_operand): Update call to
4314 alpha_legitimate_constant_p.
4316 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4317 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4318 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4319 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4320 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4321 (arm_legitimate_constant_p): New functions.
4322 (arm_cannot_force_const_mem): Make static.
4324 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4326 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4327 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4328 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4329 instead of bfin_legitimate_constant_p.
4330 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4331 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4333 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4335 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4337 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4338 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4339 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4340 (frv_legitimate_constant_p): Make static. Add a mode argument.
4342 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4343 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4344 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4346 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4347 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4348 * config/i386/i386.c (legitimate_constant_p): Rename to...
4349 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4351 (ix86_cannot_force_const_mem): Update accordingly.
4352 (ix86_legitimate_address_p): Likewise.
4353 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4354 * config/i386/i386.md: Update commentary.
4356 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4357 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4358 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4359 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4361 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4363 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4364 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4365 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4366 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4368 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4369 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4370 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4372 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4373 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4374 (m32r_legitimate_constant_p): New function.
4376 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4377 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4378 LEGITIMATE_CONSTANT_P.
4379 (LEGITIMATE_CONSTANT_P): Delete.
4380 * config/m68k/m68k.c (m68k_expand_prologue): Call
4381 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4382 (m68k_legitimate_constant_p): New function.
4383 * config/m68k/m68k.md: Update comments.
4385 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4386 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4387 (mcore_legitimate_constant_p): New function.
4389 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4390 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4391 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4392 Add a mode argument.
4393 (mep_legitimate_address): Update accordingly.
4394 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4396 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4398 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4399 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4400 static. Check OP's mode for VOIDmode.
4401 (microblaze_legitimate_constant_p): New function.
4402 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4404 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4405 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4406 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4407 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4408 * config/mips/predicates.md: Update comments.
4410 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4411 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4412 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4413 (mmix_legitimate_constant_p): Make static, return a bool, and take
4415 (mmix_print_operand_address): Update accordingly.
4417 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4419 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4420 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4421 static. Add a mode argument.
4422 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4424 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4426 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4427 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4428 (pa_legitimate_constant_p): New function.
4430 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4432 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4433 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4434 (pdp11_legitimate_constant_p): New function.
4436 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4437 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4438 (rs6000_legitimate_constant_p): New function.
4440 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4441 (rx_legitimate_constant_p): ...this.
4442 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4443 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4444 (rx_legitimate_constant_p): ...this.
4445 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4446 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4448 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4449 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4450 * config/s390/s390.c (legitimate_constant_p): Rename to...
4451 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4452 and add a mode argument.
4453 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4455 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4457 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4458 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4459 (sh_legitimate_constant_p): New function.
4461 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4462 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4463 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4464 (legitimate_constant_p): Rename to...
4465 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4467 (constant_address_p): Update accordingly.
4469 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4470 argument and return a bool.
4471 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4472 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4473 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4474 (spu_rtx_costs): Update accordingly.
4475 * config/spu/predicates.md (vec_imm_operand): Likewise.
4477 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4479 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4480 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4481 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4483 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4484 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4485 * config/vax/vax.c (legitimate_constant_p): Likewise.
4487 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4488 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4489 (xtensa_legitimate_constant_p): New function.
4491 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4493 * target.def (cannot_force_const_mem): Add a mode argument.
4494 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4495 * doc/tm.texi: Regenerate.
4496 * hooks.h (hook_bool_mode_rtx_false): Declare.
4497 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4498 (hook_bool_mode_const_rtx_true): Likewise.
4499 (hook_bool_mode_rtx_false): New function.
4500 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4501 to be non-VOID. Update call to cannot_force_const_mem.
4502 (find_reloads): Update accordingly.
4503 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4504 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4506 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4507 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4508 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4509 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4510 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4511 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4512 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4513 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4514 (m68k_cannot_force_const_mem): ...this new function.
4515 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4517 (mips_const_insns, mips_legitimize_const_move): Update calls.
4518 (mips_secondary_reload_class): Likewise.
4519 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4520 (pa_cannot_force_const_mem): ...this new function.
4521 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4522 (rs6000_cannot_force_const_mem): ...this new function.
4523 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4525 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4526 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4528 (xtensa_cannot_force_const_mem): ...this new function.
4530 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4532 * config/mips/mips.c (mips16_build_function_stub): Call
4533 build_function_type_list instead of build_function_type.
4534 (mips16_build_call_stub): Likewise.
4536 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4538 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4539 instead of build_function_type.
4541 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4543 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4544 instead of build_function_type.
4546 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4549 * config/i386/i386.md (insv): Change operand 0 constraint to
4550 "register_operand". Change operand 1 and 2 constraint to
4551 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4552 * config/i386/sse.md (sse4_1_pinsrb): Export.
4553 (sse2_pinsrw): Ditto.
4554 (sse4_1_pinsrd): Ditto.
4555 (sse4_1_pinsrq): Ditto.
4556 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4557 * config/i386/i386.c (ix86_expand_pinsr): New.
4559 2011-04-20 Easwaran Raman <eraman@google.com>
4561 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4562 containing union type only with -fstrict-aliasing.
4564 2011-04-20 Jim Meyering <meyering@redhat.com>
4566 Remove useless if-before-free tests.
4567 * calls.c (expand_call, save_area): Likewise.
4568 * cfgcleanup.c (try_forward_edges): Likewise.
4569 * collect2.c (collect_execute): Likewise.
4570 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4571 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4572 * coverage.c (coverage_checksum_string): Likewise.
4573 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4574 * cselib.c (cselib_init): Likewise.
4575 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4576 (df_set_clean_cfg): Likewise.
4577 * function.c (free_after_compilation): Likewise.
4578 * gcc.c (do_spec_1, main): Likewise.
4579 * gcov.c (create_file_names): Likewise.
4580 * gensupport.c (identify_predicable_attribute): Likewise.
4581 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4582 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4583 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4584 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4585 * ipa-pure-const.c (local_pure_const): Likewise.
4586 * ipa-reference.c (propagate): Likewise.
4587 * ira-costs.c (free_ira_costs): Likewise.
4588 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4589 * matrix-reorg.c (mat_free): Likewise.
4590 * prefix.c (get_key_value): Likewise.
4591 * profile.c (compute_value_histograms): Likewise.
4592 * reload1.c (free_reg_equiv): Likewise.
4593 * sched-deps.c (free_deps): Likewise.
4594 * sel-sched-ir.c (fence_clear): Likewise.
4595 * sese.c (set_rename, if_region_set_false_region): Likewise.
4596 * tree-data-ref.c (free_rdg): Likewise.
4597 * tree-eh.c (lower_try_finally): Likewise.
4598 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4599 * tree-ssa-live.c (delete_var_map): Likewise.
4600 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4601 * tree-ssa-pre.c (phi_trans_add): Likewise.
4603 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4605 PR tree-optimization/48611
4606 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4607 beyond ERT_MUST_NOT_THROW region.
4609 2011-04-20 Catherine Moore <clm@codesourcery.com>
4611 * config/mips/mips.opt (mfix-24k): New.
4612 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4613 * config/mips/mips.md (length): Increase by 4 for stores if
4615 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4616 all noreorder if fixing 24K errata.
4617 * doc/invoke.texi: Document mfix-24k.
4619 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4621 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4622 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4624 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4626 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4627 (const_ok_for_op): ... to here.
4629 2011-04-20 Kai Tietz <ktietz@redhat.com>
4631 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4632 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4634 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4636 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4638 2011-04-20 Richard Guenther <rguenther@suse.de>
4640 PR tree-optimization/47892
4641 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4644 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4646 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4648 2011-04-20 Tristan Gingold <gingold@adacore.com>
4650 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4652 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4656 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4657 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4658 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4659 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4660 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4662 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4665 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4666 (avr_asm_named_section, avr_asm_output_aligned_common,
4667 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4668 New functions to update...
4669 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4670 (avr_asm_init_sections): Overwrite section callbacks for
4671 data_section, bss_section.
4672 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4674 (avr_file_end): ...here.
4676 2011-04-20 Richard Guenther <rguenther@suse.de>
4679 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4680 objects and types here. Adjust for their offset before comparing.
4682 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4684 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4687 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4689 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4690 (GIMPLE_H): Include $(INTERNAL_FN_H).
4691 (OBJS-common): Add internal-fn.o.
4692 (internal-fn.o): New rule.
4693 * internal-fn.def: New file.
4694 * internal-fn.h: Likewise.
4695 * internal-fn.c: Likewise.
4696 * gimple.h: Include internal-fn.h.
4697 (GF_CALL_INTERNAL): New gf_mask.
4698 (gimple_statement_call): Put fntype into a union with a new
4700 (gimple_build_call_internal): Declare.
4701 (gimple_build_call_internal_vec): Likewise.
4702 (gimple_call_same_target_p): Likewise.
4703 (gimple_call_internal_p): New function.
4704 (gimple_call_internal_fn): Likewise.
4705 (gimple_call_fntype): Return null for internal calls.
4706 (gimple_call_set_fntype): Assert that the function is not internal.
4707 (gimple_call_set_fn): Likewise.
4708 (gimple_call_set_fndecl): Likewise.
4709 (gimple_call_set_internal_fn): New function.
4710 (gimple_call_addr_fndecl): Handle null functions.
4711 (gimple_call_return_type): Likewise null types.
4712 * gimple.c (gimple_build_call_internal_1): New function.
4713 (gimple_build_call_internal): Likewise.
4714 (gimple_build_call_internal_vec): Likewise.
4715 (gimple_call_same_target_p): Likewise.
4716 (gimple_call_flags): Handle calls to internal functions.
4717 (gimple_call_fnspec): New function.
4718 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4719 (gimple_has_side_effects): Handle null functions.
4720 (gimple_rhs_has_side_effects): Likewise.
4721 (gimple_call_copy_skip_args): Handle calls to internal functions.
4722 * cfgexpand.c (expand_call_stmt): Likewise.
4723 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4724 * gimple-fold.c (gimple_fold_call): Handle null functions.
4725 (gimple_fold_stmt_to_constant_1): Don't fold
4726 calls to internal functions.
4727 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4729 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4730 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4731 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4732 (do_warn_unused_result): Likewise.
4733 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4734 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4735 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4736 the target of a call.
4737 (initialize_hash_element): Update accordingly.
4738 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4739 (iterative_hash_hashable_expr): Handle calls to internal functions.
4740 (print_expr_hash_elt): Likewise.
4741 * tree-ssa-pre.c (can_value_number_call): Likewise.
4742 (eliminate): Handle null functions.
4743 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4744 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4745 (find_func_aliases): Likewise.
4746 * value-prof.c (gimple_ic_transform): Likewise.
4747 (gimple_indirect_call_to_profile): Likewise.
4748 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4749 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4751 2011-04-19 Jan Hubicka <jh@suse.cz>
4753 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4754 * ipa-inline.c (inline_small_functions): Compute summaries first,
4755 populate heap later.
4757 2011-04-19 Jan Hubicka <jh@suse.cz>
4759 * cgraph.h (save_inline_function_body): Remove.
4760 * ipa-inline-transform.c: New file, broke out of...
4761 * ipa-inline.c: ... this one; Update toplevel comment.
4762 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4764 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4765 (cgraph_mark_inline_edge): Rename to inline_call; move to
4766 ipa-inline-transform.c.
4767 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4768 move to ipa-inline-transform.c
4769 (recursive_inlining, inline_small_functions, flatten_function,
4770 ipa_inline, inline_always_inline_functions,
4771 early_inline_small_functions): Update.
4772 (inline_transform): Move to ipa-inline-transform.c.
4773 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4775 * Makefile.in (ipa-inline-transform.o): New file.
4776 * cgraphunit.c (save_inline_function_body): Move to
4777 ipa-inline-transform.c
4779 2011-04-19 DJ Delorie <dj@redhat.com>
4781 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4782 registers if we already know there aren't any.
4783 (m32c_emit_epilogue): Don't emit a barrier here.
4784 (m32c_emit_eh_epilogue): Likewise.
4785 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4786 operands at expand time.
4787 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4789 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4790 duplicates. Provide aliases instead.
4791 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4792 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4795 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4797 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4798 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4799 (general_or_i64_p, sparc_register_move_cost): New function.
4801 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4803 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4804 Add lynx, mipssde. Sort table.
4806 2011-04-19 Xinliang David Li <davidxl@google.com>
4808 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4811 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4814 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4815 is a SUBREG with non-MODE_INT mode inside of it.
4817 2011-04-19 Martin Jambor <mjambor@suse.cz>
4819 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4820 also according to actual contants.
4821 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4822 (gimple_fold_call): Use it.
4823 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4825 2011-04-19 Martin Jambor <mjambor@suse.cz>
4827 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4828 non-pointer assignments.
4830 2011-04-19 Martin Jambor <mjambor@suse.cz>
4832 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4833 account anc_offset and otr_type from the indirect edge info.
4834 * ipa-prop.c (get_ancestor_addr_info): New function.
4835 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4836 get_ancestor_addr_info, call it.
4837 (ipa_note_param_call): Do not initialize information about polymorphic
4838 calls, return the indirect call graph edge. Remove the last
4839 parameter, adjust all callers.
4840 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4841 parameters. Initialize polymorphic information in the indirect edge.
4843 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4846 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4847 the types if they have different enumeration identifiers.
4849 2011-04-19 Jan Hubicka <jh@suse.cz>
4851 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4852 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4853 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4854 (optimize_function_for_size_p) ... here.
4856 2011-04-19 Richard Guenther <rguenther@suse.de>
4859 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4862 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4864 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4865 if DECL_NO_INLINE_WARNING_P is set on the function.
4867 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4870 * reload1.c (inc_for_reload): Return void. All callers changed.
4871 (emit_input_reload_insns): Don't try to delete previous output
4872 reloads to a register, or record spill_reg_store for autoincs.
4874 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4876 * gengtype.h: Updated copyright year.
4877 (struct input_file_st): Add inpisplugin field.
4878 (type_fileloc): New function.
4880 (write_typed_struct_alloc_def): Add gcc_assert.
4881 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4882 (write_typed_alloc_defns): Don't output for plugin files.
4883 (input_file_by_name): Clear inpisplugin field.
4884 (main): Set inpisplugin field for plugin files.
4886 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4888 * gengtype-state.c (string_eq): New.
4889 (read_state): Use string_eq instead of strcmp when creating the
4892 2011-04-19 Wei Guozhi <carrot@google.com>
4895 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4896 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4898 * config/arm/constraints.md (Uu): New constraint.
4899 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4901 2011-04-19 Tristan Gingold <gingold@adacore.com>
4903 * config.gcc (-*-*-*vms): Added.
4904 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4906 * config/vms/vms-ld.c: New file.
4907 * config/vms/vms-ar.c: New file.
4908 * config/vms/t-vmsnative: New file.
4910 2011-04-18 Xinliang David Li <davidxl@google.com>
4912 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4914 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4917 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4918 if TREE_TYPE (v) is non-NULL.
4920 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4921 gimple_get_virt_mehtod_for_binfo.
4922 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4923 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4925 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4927 2011-04-18 Michael Matz <matz@suse.de>
4928 Steve Ellcey <sje@cup.hp.com>
4930 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4931 use its mode as source mode if it isn't VOIDmode.
4933 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4935 * doc/passes.texi: Fill crossref nodes.
4937 2011-04-18 Jim Meyering <meyering@redhat.com>
4939 Fix doubled-word typos in comments and strings
4940 * config/alpha/vms-unwind.h: s/for for/for/
4941 * config/arm/unwind-arm.h: Likewise.
4942 * config/microblaze/microblaze.c: Likewise.
4943 * config/sh/constraints.md: s/in in/in/
4944 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4946 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4948 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4949 (AVX_FLOAT_MODE_P): Ditto.
4950 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4951 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4952 (AVX_VEC_FLOAT_MODE_P): Ditto.
4953 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4954 (UNSPEC_MASKSTORE): Ditto.
4955 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4956 Merge from <sse>_movmsk<ssemodesuffix> and
4957 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4958 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4960 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4961 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4962 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4964 2011-04-18 Jan Hubicka <jh@suse.cz>
4966 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4968 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4969 (want_inline_function_called_once_p): Break out the logic from
4971 (edge_badness): Ensure that profile is not misupdated.
4972 (lookup_recursive_calls): Prioritize by call frequencies.
4973 (inline_small_functions): Move program size estimates here;
4974 actually process whole queue even when unit growth has been
4975 met. (to properly compute inline_failed reasons and for the
4976 case unit size decrease.) Revisit comments on recursive inlining.
4977 (ipa_inline): Remove unit summary code; first inline hot calls
4978 of functions called once, cold calls next.
4979 (order, nnodes): Remove unused variables.
4980 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4981 (GTFILES): Remove ipa-inline.c
4982 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4984 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4986 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4988 2011-04-18 Jie Zhang <jie@codesourcery.com>
4989 Richard Earnshaw <rearnsha@arm.com>
4991 * arm.c (neon_builtin_type_bits): Remove.
4992 (typedef enum neon_builtin_mode): New.
4993 (T_MAX): Don't define.
4994 (typedef enum neon_builtin_datum): Remove bits, codes[],
4995 num_vars and base_fcode. Add mode, code and fcode.
4996 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4997 VAR10): Change accordingly.
4998 (neon_builtin_data[]): Change accordingly
4999 (arm_init_neon_builtins): Change accordingly.
5000 (neon_builtin_compare): Remove.
5001 (locate_neon_builtin_icode): Remove.
5002 (arm_expand_neon_builtin): Change accordingly.
5004 * arm.h (enum arm_builtins): Move to ...
5005 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5007 * arm.c (arm_builtin_decl): Declare.
5008 (TARGET_BUILTIN_DECL): Define.
5009 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5010 (arm_builtin_decls[]): New.
5011 (arm_init_neon_builtins): Store builtin declarations in
5012 arm_builtin_decls[].
5013 (arm_init_tls_builtins): Likewise.
5014 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5015 (arm_builtin_decl): New.
5017 2011-04-18 Richard Guenther <rguenther@suse.de>
5019 * tree.c (upper_bound_in_type): Build properly canonicalized
5021 (lower_bound_in_type): Likewise.
5023 2011-04-18 Richard Guenther <rguenther@suse.de>
5025 * gimple.h (gimple_call_addr_fndecl): New function.
5026 (gimple_call_fndecl): Use it.
5027 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5029 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5030 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5032 2011-04-18 Richard Guenther <rguenther@suse.de>
5035 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5037 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5040 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5041 DECL_IN_CONSTANT_POOL without RTL.
5043 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5044 Ira Rosen <ira.rosen@linaro.org>
5047 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5048 to match neon_vzip/vuzp/vtrn_internal.
5049 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5050 outputs explicitly dependent on both inputs.
5051 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5053 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5055 PR tree-optimization/48616
5056 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5057 whether the shift is by scalar or vector based on whether all SLP
5058 scalar stmts have the same rhs.
5060 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5062 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5065 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5067 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5070 2011-04-17 Jan Hubicka <jh@suse.cz>
5072 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5073 * cgrpahunit.c (cgraph_finalize_function): Do not set
5074 finalized_by_frontend.
5075 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5076 finalized_by_frontend.
5078 2011-04-17 Jan Hubicka <jh@suse.cz>
5080 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5081 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5082 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5083 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5085 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5087 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5089 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5092 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5093 is non-null before accessing it.
5094 (input_cgraph): Remove trailing spaces.
5096 2011-04-17 Revital Eres <revital.eres@linaro.org>
5098 * params.def (sms-min-sc): New param flag.
5099 * modulo-sched.c (sms_schedule): Use it.
5100 * doc/invoke.texi (sms-min-sc): Document it.
5102 2011-04-17 Jan Hubicka <jh@suse.cz>
5104 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5105 present, also set gimple_call_set_cannot_inline.
5106 * ipa-inline.c: Update toplevel comment.
5108 (cgraph_clone_inlined_nodes): Fix linebreaks.
5109 (cgraph_check_inline_limits): Restructure to ...
5110 (caller_growth_limits): ... this one; be more tolerant
5111 on growth in nested inline chains; add explanatory comment;
5112 fix stack accounting thinko introduced by previous patch.
5113 (cgraph_default_inline_p): Remove.
5114 (report_inline_failed_reason): New function.
5115 (can_inline_edge_p): New function.
5116 (can_early_inline_edge_p): New function.
5117 (leaf_node_p): Move upwards in file.
5118 (want_early_inline_function_p): New function.
5119 (want_inline_small_function_p): New function.
5120 (want_inline_self_recursive_call_p): New function.
5121 (cgraph_edge_badness): Rename to ...
5122 (edge_badness) ... this one; fix linebreaks.
5123 (update_edge_key): Update call of edge_baddness; add
5124 detailed dump about queue updates.
5125 (update_caller_keys): Use can_inline_edge_p and
5126 want_inline_small_function_p.
5127 (cgraph_decide_recursive_inlining): Rename to...
5128 (recursive_inlining): Use can_inline_edge_p and
5129 want_inline_self_recursive_call_p; simplify and remove no longer
5131 (cgraph_set_inline_failed): Remove.
5132 (add_new_edges_to_heap): Use can_inline_edge_p and
5133 want_inline_small_function_p.
5134 (cgraph_decide_inlining_of_small_functions): Rename to ...
5135 (inline_small_functions): ... this one; cleanup; use
5136 can/want predicates; cleanup debug ouput; work edges till fibheap
5137 is exhausted and do not stop once unit growth is reached; remove
5138 later loop processing remaining edges.
5139 (cgraph_flatten): Rename to ...
5140 (flatten_function): ... this one; use can_inline_edge_p
5141 and can_early_inline_edge_p predicates.
5142 (cgraph_decide_inlining): Rename to ...
5143 (ipa_inline): ... this one; remove unreachable nodes before
5144 inlining functions called once; simplify the pass.
5145 (cgraph_perform_always_inlining): Rename to ...
5146 (inline_always_inline_functions): ... this one; use
5147 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5148 (cgraph_decide_inlining_incrementally): Rename to ...
5149 (early_inline_small_functions): ... this one; simplify
5150 using new predicates; cleanup; make dumps prettier.
5151 (cgraph_early_inlining): Rename to ...
5152 (early_inliner): newer inline regular functions into always-inlines;
5153 fix updating of call stmt summaries.
5154 (pass_early_inline): Update for new names.
5155 (inline_transform): Fix formating.
5156 (gate_cgraph_decide_inlining): Rename to ...
5157 (pass_ipa_inline): ... this one.
5158 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5159 * ipa-inline-analysis.c (dump_inline_summary): Update.
5160 (compute_inline_parameters): Do not compute disregard_inline_limits;
5161 look for mismatching arguments.
5162 (estimate_growth): Fix handlig of non-trivial self recursion.
5163 (inline_read_summary): Do not read info->disregard_inline_limits.
5164 (inline_write_summary): Do not write info->disregard_inline_limits.
5165 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5166 and move all checks into can_inline_edge_p predicate; re-enable code
5167 comparing optimization levels.
5168 (expand_call_inline): Do not test inline_forbidden_into_p.
5169 * Makefile.in (ipa-inline.o): Update arguments.
5171 2011-04-17 Revital Eres <revital.eres@linaro.org>
5173 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5175 2011-04-17 Revital Eres <revital.eres@linaro.org>
5177 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5179 2011-04-17 Michael Matz <matz@suse.de>
5181 PR tree-optimization/48622
5183 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5184 in same order as they're written.
5186 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5188 * config/pa/predicates.md: Reorganize and simplify predicates.
5189 Eliminate duplicate code checks.
5190 (arith_operand): Rename to arith14_operand
5191 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5192 * config/pa/pa.md: Use renamed operands.
5193 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5194 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5195 arith11_operand, adddi3_operand, indexed_memory_operand,
5196 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5197 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5198 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5199 move_dest_operand, move_src_operand, prefetch_cc_operand,
5200 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5201 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5202 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5203 div_operand, int5_operand, movb_comparison_operator,
5204 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5205 arith_double_operand, ireg_operand, lhs_lshift_operand,
5206 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5207 integer_store_memory_operand): Likewise.
5208 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5209 (integer_store_memory_operand, read_only_operand,
5210 function_label_operand, borx_reg_operand,
5211 non_hard_reg_operand): Likewise.
5212 (eq_neq_comparison_operator): Delete unused operator.
5213 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5214 function_label_operand.
5215 (emit_move_sequence): Likewise.
5217 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5219 * config/i386/sse.md (sseunpackmode): New mode attribute.
5220 (ssepackmode): Ditto.
5221 (vec_pack_trunc_<mode>): Macroize expander from
5222 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5223 (vec_unpacks_lo_<mode>): Macroize expander from
5224 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5225 (vec_unpacks_hi_<mode>): Macroize expander from
5226 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5227 (vec_unpacku_lo_<mode>): Macroize expander from
5228 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5229 (vec_unpacku_hi_<mode>): Macroize expander from
5230 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5231 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5232 ix86_expand_sse4_unpack.
5233 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5235 2011-04-16 Jan Hubicka <jh@suse.cz>
5237 * cgraphbuild.c: Include ipa-inline.h.
5238 (reset_inline_failed): Use initialize_inline_failed.
5239 * cgraph.c: Include ipa-inline.h.
5240 (cgraph_create_node_1): Do not initialize estimated_growth.
5241 (initialize_inline_failed): More to ipa-inline-analysis.c
5242 (dump_cgraph_node): Do not dump inline flags.
5243 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5244 and disregard_inline_limits flags.
5245 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5246 time, size, estimated_growth.
5247 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5249 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5250 DECL_DISREGARD_INLINE_LIMITS.
5251 (cgraph_analyze_function): Do not initialize
5252 node->local.disregard_inline_limits.
5253 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5254 inlinable, versionable and disregard_inline_limits.
5255 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5256 cgraph_check_inline_limits, cgraph_default_inline_p,
5257 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5258 add_new_edges_to_heap): Update.
5259 (cgraph_decide_inlining_of_small_function): Update; set
5260 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5261 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5262 cgraph_decide_inlining_incrementally): Update.
5263 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5264 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5265 time, size and estimated_growth parameters.
5266 (estimate_edge_growth): Update.
5267 (initialize_inline_failed): Declare.
5268 * ipa-split.c: Include ipa-inline.h
5269 (execute_split_functions): Update.
5270 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5271 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5272 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5273 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5274 estimated_growth to INT_MIN.
5275 (inline_node_duplication_hook): Likewise.
5276 (dump_inline_summary): Dump new fields.
5277 (compute_inline_parameters): Update.
5278 (estimate_edge_time, estimate_time_after_inlining,
5279 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5280 inline_write_summary):
5281 (initialize_inline_failed): Move here from cgraph.c.
5282 * tree-sra.c: Include ipa-inline.h.
5283 (ipa_sra_preliminary_function_checks): Update.
5284 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5287 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5289 * config/i386/sse.md (V16): New mode iterator.
5291 (AVXMODEQI, AVXMODEDI): Remove.
5292 (sse2, sse3): New mode attribute.
5293 (mov<mode>): Use V16 mode iterator.
5294 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5295 (push<mode>1): Use V16 mode iterator.
5296 (movmisalign<mode>): Ditto.
5297 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5298 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5299 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5300 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5301 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5302 avx_movdqu<avxmodesuffix>.
5303 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5304 *avx_movdqu<avxmodesuffix>.
5305 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5306 avx_lddqu<avxmodesuffix>.
5307 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5308 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5309 avx_movnt<AVXMODEDI:mode>.
5310 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5311 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5313 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5316 * haifa-sched.c (prune_ready_list, schedule_block): Use
5317 sched_pressure_p rather than flag_sched_pressure.
5319 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5321 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5322 cgraph_get_node instead of cgraph_get_create_node.
5324 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5326 * cfgexpand.c (expand_debug_expr): Use
5327 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5329 2011-04-15 Michael Matz <matz@suse.de>
5331 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5332 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5333 * function.c (gimplify_parameters): Ditto.
5334 * gimplify.c (gimplify_vla_decl): Ditto.
5336 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5337 (gimple_call_set_alloca_for_var): New inline function.
5338 (gimple_call_alloca_for_var_p): Ditto.
5339 * gimple.c (gimple_build_call_from_tree): Remember
5340 CALL_ALLOCA_FOR_VAR_P state.
5341 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5343 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5344 calls if they were for VLA objects.
5346 2011-04-15 Martin Jambor <mjambor@suse.cz>
5348 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5351 2011-04-15 Martin Jambor <mjambor@suse.cz>
5354 * tree-emutls.c (lower_emutls_function_body): Call
5355 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5358 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5360 * c-decl.c (detect_field_duplicates): Call
5361 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5363 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5365 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5366 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5367 * ipa-pure-const.c (check_stmt): Call it.
5368 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5370 2011-04-15 Richard Guenther <rguenther@suse.de>
5372 PR tree-optimization/48290
5373 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5374 Properly decide inhibiting propagation based on the valueized
5375 operand. Do loop-closed SSA form preserving here ...
5376 (init_copy_prop): ... not here.
5378 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5381 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5382 (*ieee_smax<mode>3): Likewise.
5384 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5386 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5387 Replace match_operand with match_dup for the third operand in
5390 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5392 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5393 to track processing of conditionals. Update all callers.
5394 (try_combine, simplify_if_then_else): Update.
5396 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5398 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5401 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5403 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5404 instead of match_operand for operand 3.
5406 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5408 * recog.h (insn_operand_data): Add an "allows_mem" field.
5409 * genoutput.c (output_operand_data): Initialize it.
5410 * optabs.c (maybe_legitimize_operand_same_code): New function.
5411 (maybe_legitimize_operand): Use it when matching the original
5414 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5416 * gimplify.c: Fix issues in comments throughout.
5417 (voidify_wrapper_expr): Fix long line.
5418 (build_stack_save_restore): Likewise.
5419 (gimplify_loop_expr): Likewise.
5420 (gimplify_compound_lval): Likewise.
5421 (gimplify_init_ctor_eval): Likewise.
5422 (gimplify_modify_expr_rhs): Likewise.
5423 (omp_notice_threadprivate_variable): Likewise.
5425 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5427 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5428 original one if this is not a builtin function.
5430 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5433 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5434 offset it as needed based on top 2 bits in operands[3], change
5435 MEM mode to SFmode and mask those 2 bits away from operands[3].
5437 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5439 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5440 change from objc_declare_protocols() to objc_declare_protocol().
5442 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5444 * config/i386/sse.md (sse4_1): New mode attribute.
5445 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5446 avx_blend<ssemodesuffix><avxmodesuffix> and
5447 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5448 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5449 avx_blendv<ssemodesuffix><avxmodesuffix> and
5450 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5451 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5452 avx_dp<ssemodesuffix><avxmodesuffix> and
5453 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5454 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5455 (sse4_1_packusdw): Merge with *avx_packusdw.
5456 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5457 (sse4_1_pblendw): Merge with *avx_pblendw.
5458 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5459 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5460 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5462 (sse4_1_round<ssescalarmodesuffix>): Merge with
5463 *avx_round<ssescalarmodesuffix>.
5464 (aesenc): Merge with *avx_aesenc.
5465 (aesenclast): Merge with *avx_aesenclast.
5466 (aesdec): Merge with *avx_aesdec.
5467 (aesdeclast): Merge with *avx_aesdeclast.
5468 (pclmulqdq): Merge with *pclmulqdq.
5469 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5471 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5473 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5476 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5477 (align_local_variable): This. Update DECL_ALIGN.
5478 (add_stack_var): Updated.
5479 (expand_one_stack_var): Likewise.
5481 2011-04-14 Richard Guenther <rguenther@suse.de>
5483 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5485 (dse_initialize_block_local_data, dse_leave_block,
5486 record_voperand_set, get_stmt_uid): Likewise.
5487 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5488 (dse_optimize_stmt): Remove voperand set handling code.
5489 Simplify and improve to handle any kind of killing stmt.
5490 (dse_record_phi): Remove.
5491 (dse_enter_block): Simplify.
5492 (tree_ssa_dse): Likewise.
5493 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5495 2011-04-14 Jan Hubicka <jh@suse.cz>
5497 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5498 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5499 (cgraph_local_info): Remove inline_summary.
5500 * ipa-cp.c: Include ipa-inline.h.
5501 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5502 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5504 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5505 (input_overwrite_node): Do not set inline summary.
5506 (input_node): Do not stream inline summary.
5507 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5508 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5509 growth; we do not have inline parameters computed for that anyway.
5510 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5511 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5512 (inline_summary_t): New type and VECtor.
5513 (debug_inline_summary, dump_inline_summaries): Declare.
5514 (inline_summary): Use VOCtor.
5515 (estimate_edge_growth): Kill hack computing call stmt size directly.
5516 * lto-section-in.c (lto_section_name): Add inline section.
5517 * ipa-inline-analysis.c: Include lto-streamer.h
5518 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5519 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5520 (inline_summary_vec): Define.
5521 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5522 dump_inline_summaries): New functions.
5523 (estimate_function_body_sizes): Properly compute size/time of outgoing
5525 (compute_inline_parameters): Alloc inline_summary; do not compute
5526 size/time of incomming calls.
5527 (estimate_edge_time): Avoid missing time summary hack.
5528 (inline_read_summary): Read inline summary info.
5529 (inline_write_summary): Write inline summary info.
5530 (inline_free_summary): Free all hooks and inline summary vector.
5531 * lto-streamer.h: Add LTO_section_inline_summary section.
5532 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5533 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5535 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5537 * tree-vectorizer.h (vect_strided_store_supported): Add a
5538 HOST_WIDE_INT argument.
5539 (vect_strided_load_supported): Likewise.
5540 (vect_permute_store_chain): Return void.
5541 (vect_transform_strided_load): Likewise.
5542 (vect_permute_load_chain): Delete.
5543 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5544 count argument. Check that the count is a power of two.
5545 (vect_strided_load_supported): Likewise.
5546 (vect_permute_store_chain): Return void. Update after above changes.
5547 Assert that the access is supported.
5548 (vect_permute_load_chain): Likewise.
5549 (vect_transform_strided_load): Return void.
5550 * tree-vect-stmts.c (vectorizable_store): Update calls after
5551 above interface changes.
5552 (vectorizable_load): Likewise.
5553 (vect_analyze_stmt): Don't check for strided powers of two here.
5555 2011-04-14 Richard Guenther <rguenther@suse.de>
5557 PR tree-optimization/48590
5558 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5559 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5560 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5561 BUILT_IN_STACK_SAVE.
5562 * tree-ssa-dce.c (propagate_necessity): Handle
5563 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5565 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5567 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5570 2011-04-14 Richard Guenther <rguenther@suse.de>
5572 * tree.h (get_object_alignment_1): Declare.
5573 * builtins.c (get_object_alignment_1): Split out worker from ...
5574 (get_object_alignment): ... here.
5575 * fold-const.c (get_pointer_modulus_and_residue): Use
5576 get_object_alignment_1.
5578 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5580 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5582 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5583 parameter. Generalise code to handle arrays as well as vectors.
5584 (vect_setup_realignment): Update accordingly.
5585 * tree-vect-stmts.c (vectorizable_store): Likewise.
5586 (vectorizable_load): Likewise.
5588 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5590 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5591 within the per-copy loop.
5593 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5595 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5598 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5600 * doc/options.texi (Negative): Explicitly mention that the
5601 Negative chain must be circular.
5603 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5605 * function.h (block_chainon): Declare.
5606 * function.c (block_chainon): Define.
5608 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5609 Eric Weddington <eric.weddington@atmel.com>
5610 Georg-Johann Lay <avr@gjlay.de>
5612 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5614 (avr_init_builtins, avr_expand_builtin,
5615 avr_expand_delay_cycles, avr_expand_unop_builtin,
5616 avr_expand_binop_builtin ): New functions.
5617 (avr_builtin_id): New enum
5618 (struct avr_builtin_description): New struct
5619 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5620 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5622 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5623 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5624 UNSPECV_DELAY_CYCLES): new enumeration values
5625 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5626 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5627 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5628 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5629 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5630 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5631 "fmulsu"): New insns
5633 * config/avr/avr-c.c: fix line endings
5634 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5635 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5636 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5637 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5638 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5640 * doc/extend.texi (AVR Built-in Functions): New node
5641 (Target Builtins): Add documentation of AVR
5644 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5647 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5648 alone. Error if non-const data has attribute progmem.
5650 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5652 * tree.h (struct tree_constructor): Include tree_typed instead of
5654 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5655 TS_TYPED instead of TS_COMMON.
5657 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5659 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5660 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5661 (sse2_psadbw): Merge with *avx_psadbw.
5662 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5663 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5664 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5665 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5666 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5667 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5668 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5669 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5670 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5671 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5672 (ssse3_palignrti): Merge with *avx_palignrti.
5674 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5676 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5677 * tree-ssanames.c (fini_ssanames): VEC_free it.
5678 (make_ssa_name_fn): Update for VECness of free_ssanames.
5679 (release_ssa_name, release_dead_ssa_names): Likewise.
5680 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5682 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5683 TS_TYPED instead of TS_COMMON.
5685 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5687 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5688 statistics_counter_event.
5689 * tree-ssa-copyrename.c (stats): Define.
5690 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5691 statistics_counter_event.
5692 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5693 (bswap_stats, widen_mul_stats): Define.
5694 (insert_reciprocals): Increment rdivs_inserted.
5695 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5696 rfuncs_inserted. Add calls to statistics_counter_event.
5697 (execute_cse_sincos_1): Increment inserted.
5698 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5699 statistics_counter_event.
5700 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5701 of bswap_stats. Add calls to statistics_counter_event.
5702 (convert_mult_to_widen): Increment widen_mults_inserted.
5703 (convert_plusminus_to_widen): Increment maccs_inserted.
5704 (convert_mult_to_fma): Increment fmas_inserted.
5705 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5706 calls to statistics_counter_event.
5708 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5710 PR rtl-optimization/48455
5711 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5712 `temp_costs->mem_cost'.
5714 2011-04-13 Jan Hubicka <jh@suse.cz>
5716 * ipa-inline.h: New file.
5717 * ipa-inline-analysis.c: New file. Broken out of ...
5718 * ipa-inline.c: ... this file; update toplevel comment;
5719 include ipa-inline.h
5720 (inline_summary): Move to ipa-inline.h
5721 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5722 ipa-inline-analysis.c.
5723 (cgraph_estimate_time_after_inlining): Rename to
5724 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5725 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5726 to estimate_edge_growth.
5727 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5728 rename to estimate_size_after_inlining.
5729 (cgraph_mark_inline_edge): Update for new naming convention.
5730 (cgraph_check_inline_limits): Likewise.
5731 (cgraph_edge_badness): Likewise.
5732 (cgraph_decide_recursive_inlining): Likewise.
5733 (cgraph_decide_inlining_of_small_functions): Likewise.
5734 (cgraph_decide_inlining_incrementally): Likewise.
5735 (cgraph_estimate_growth): Rename to estimate_growth; move to
5736 ipa-inline-analysis.c.
5737 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5738 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5739 (compute_inline_parameters): Likewise.
5740 (compute_inline_parameters_for_current): Likewise.
5741 (pass_inline_parameters): Likewise.
5742 (inline_indirect_intraprocedural_analysis): Likewise.
5743 (analyze_function): Rename to inline_analyze_function; likewise.
5744 (add_new_function): Move to ipa-inline-analysis.c.
5745 (inline_generate_summary): Likewise.
5746 (inline_read_summary): Likewise.
5747 (inline_write_summary): Likewise.
5748 * Makefile.in (ipa-inline-analysis.c): New file.
5750 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5752 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5753 * configure: Regenerate.
5755 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5757 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5758 instead of tree_common.
5759 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5761 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5762 TS_TYPED rather than TS_COMMON.
5763 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5765 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5768 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5769 r20 around calls of __tablejump_elpm__
5771 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5774 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5776 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5778 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5780 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5781 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5782 (cfi_vec): New typedef.
5783 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5784 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5785 (cie_cfi_vec): New static variable.
5786 (cie_cfi_head): Delete.
5787 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5788 declaration changed. Use vector rather than list operations.
5789 (new_cfi): Don't initialize the dw_cfi_next field.
5790 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5791 rather than list operations.
5792 (lookup_cfa): Use vector rather than list operations.
5793 (output_cfis): New argument upto. Accept a cfi_vec rather than
5794 a dw_cfi_ref list head as argument. All callers changed.
5795 Iterate over the vector using upto as a maximum index.
5796 (output_all_cfis): New static function.
5797 (output_fde): Use vector rather than list operations. Use the
5798 new upto argument for output_cfis rather than manipulating a
5800 (dwarf2out_begin_prologue): Change initializations to match
5802 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5803 from the vector length rather than searching for the end of a list.
5804 Use output_all_cfis.
5805 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5807 2011-04-13 Nick Clifton <nickc@redhat.com>
5809 * config/rx/rx.md (movmemsi): Do not use this pattern when
5810 volatile pointers are involved.
5812 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5814 * config/i386/sse.md (pinsrbits): Remove.
5815 (sse2_packsswb): Merge with *avx_packsswb.
5816 (sse2_packssdw): Merge with *avx_packssdw.
5817 (sse2_packuswb): Merge with *avx_packuswb.
5818 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5819 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5820 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5821 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5822 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5823 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5824 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5825 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5826 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5827 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5828 (sse2_loadld): Merge with *avx_loadld.
5829 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5830 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5831 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5832 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5833 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5835 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5837 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5839 * print-tree.c (print_node): Likewise.
5840 * tree-inline.c (copy_tree_r): Likewise.
5841 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5842 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5843 instead of TS_COMMON.
5844 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5845 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5846 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5847 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5848 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5850 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5852 (TREE_CHAIN): Check for a TS_COMMON structure.
5853 (TREE_TYPE): Check for a TS_TYPED structure.
5855 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5857 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5858 cgraph_get_create_node instead of cgraph_node.
5860 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5862 * c-parser.c (c_parser_initelt): Updated call to
5863 objc_build_message_expr.
5864 (c_parser_postfix_expression): Likewise.
5866 2011-04-12 Kai Tietz <ktietz@redhat.com>
5868 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5869 MASK_MS_BITFIELD_LAYOUT bit.
5871 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5873 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5874 assert it is always true.
5875 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5878 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5880 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5881 compiling Objective-C to be more efficient.
5883 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5885 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5888 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5890 * recog.h, genoutput.c, optabs.c: Revert last patch.
5892 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5895 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5897 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5899 * recog.h (insn_operand_data): Add an "allows_mem" field.
5900 * genoutput.c (output_operand_data): Initialize it.
5901 * optabs.c (maybe_legitimize_operand_same_code): New function.
5902 (maybe_legitimize_operand): Use it when matching the original
5905 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5907 * genpreds.c (process_define_predicate): Move most processing
5908 to gensupport.c. Continue to validate the expression.
5909 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5910 (process_define_predicate): Move processing to gensupport.c.
5911 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5912 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5913 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5915 (valid_predicate_name_p): New function, split out from old
5916 genpreds.c:process_define_predicate.
5917 (process_define_predicate): New function, combining code from
5918 old genpreds.c and genrecog.c functions.
5919 (process_rtx): Call it for DEFINE_PREDICATE and
5920 DEFINE_SPECIAL_PREDICATE.
5922 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5924 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5925 size of a '%A' memory reference.
5926 (T_DREG, T_QREG): New neon_builtin_type_bits.
5927 (arm_init_neon_builtins): Assert that the load and store operands
5928 are neon_struct_operands.
5929 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5930 (NEON_ARG_MEMORY): New builtin_arg.
5931 (neon_dereference_pointer): New function.
5932 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5933 Handle NEON_ARG_MEMORY.
5934 (arm_expand_neon_builtin): Update after above interface changes.
5935 Use NEON_ARG_MEMORY for loads and stores.
5936 * config/arm/predicates.md (neon_struct_operand): New predicate.
5937 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5938 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5939 (V_four_elem): Tweak formatting.
5940 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5941 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5942 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5943 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5944 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5945 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5946 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5947 Use %A in the output template.
5948 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5949 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5950 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5951 the width of the memory access. Remove post-increment.
5952 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5954 2011-04-12 Nick Clifton <nickc@redhat.com>
5956 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5957 instruction for interrupt handlers if the target is the basic V850
5959 (expand_epilogue): Likewise.
5961 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5963 PR rtl-optimization/48549
5964 * combine.c (propagate_for_debug): Also stop after BB_END of
5965 this_basic_block. Process LAST and just stop processing after it.
5966 (combine_instructions): If last_combined_insn has been deleted,
5967 set last_combined_insn to its PREV_INSN.
5969 2011-04-12 Richard Guenther <rguenther@suse.de>
5971 PR tree-optimization/46076
5972 * gimple.h (struct gimple_statement_call): Add fntype field.
5973 (gimple_call_fntype): Adjust.
5974 (gimple_call_set_fntype): New function.
5975 * gimple.c (gimple_build_call_1): Set the call function type.
5976 * gimplify.c (gimplify_call_expr): Preserve the function
5977 type the frontend used for the call.
5978 (gimplify_modify_expr): Likewise.
5979 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5981 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5983 * tree-ssa.c (useless_type_conversion_p): Function pointer
5984 conversions are useless.
5986 2011-04-12 Martin Jambor <mjambor@suse.cz>
5988 * cgraph.h (cgraph_node): Remove function declaration.
5989 (cgraph_create_node): Declare.
5990 (cgraph_get_create_node): Likewise.
5991 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5992 Updated all callers.
5993 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5994 the decl does not already exist. Call cgraph_get_create_node instead
5996 (cgraph_get_create_node): New function.
5997 (cgraph_same_body_alias): Update comment.
5998 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5999 assert it does not return NULL.
6000 (cgraph_update_edges_for_call_stmt): Likewise.
6001 (cgraph_clone_edge): Likewise.
6002 (cgraph_create_virtual_clone): Likewise.
6003 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6004 instead of cgraph_node.
6005 (cgraph_add_new_function): Call cgraph_create_node or
6006 cgraph_get_create_node instead of cgraph_node.
6007 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6008 instead of cgraph_node.
6009 (record_eh_tables): Likewise.
6010 (mark_address): Likewise.
6011 (mark_load): Likewise.
6012 (build_cgraph_edges): Call cgraph_get_create_node instead
6014 (rebuild_cgraph_edges): Likewise.
6015 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6016 instead of cgraph_node.
6017 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6019 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6020 cgraph_create_node instead of cgraph_node.
6021 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6023 * lto-cgraph.c (input_node): Likewise.
6024 * lto-streamer-in.c (input_function): Likewise.
6025 * varasm.c (mark_decl_referenced): Likewise.
6026 (assemble_alias): Likewise.
6028 2011-04-12 Martin Jambor <mjambor@suse.cz>
6030 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6031 instead of cgraph_node and assert it does not return NULL.
6032 * lto-streamer-in.c (lto_read_body): Likewise.
6033 * omp-low.c (new_omp_context): Likewise.
6034 (create_task_copyfn): Likewise.
6035 * tree-emutls.c (lower_emutls_function_body): Likewise.
6036 * matrix-reorg.c (transform_allocation_sites): Likewise.
6038 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6041 * c-typeck.c (build_asm_expr): Error out on attempts to use
6042 void type outputs or inputs for constraints that allow reg or
6045 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6046 Richard Earnshaw <rearnsha@arm.com>
6049 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6050 to use sign-magnitude offsets. Reject unsupported unaligned
6051 cases. Add detailed description in comments.
6052 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6053 condition from TARGET_32BIT to TARGET_ARM.
6055 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6057 * tree.h (struct typed_tree): New.
6058 (struct tree_common): Include it instead of tree_base.
6059 (TREE_TYPE): Update for new location of type field.
6060 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6061 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6062 (union tree_node): Add typed field.
6063 * treestruct.def (TS_TYPED): New.
6064 * lto-streamer.c (check_handled_ts_structures): Handle it.
6065 * tree.c (MARK_TS_TYPED): New macro.
6066 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6068 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6070 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6071 (force_nonfallthru): Do not alter the loop nest if no basic block
6074 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6076 * config/i386/sse.md (VI): New mode iterator.
6078 (AVX256MODEI): Ditto.
6079 (AVXMODEF4P): Ditto.
6080 (avxvecpsmode): Ditto.
6081 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6082 (sse2_andnot<mode>3): New expander.
6083 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6084 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6085 (<any_logic:code><mode>3): Use VI mode iterator.
6086 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6087 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6088 (*andnottf3): Handle AVX three-operand constraints.
6089 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6091 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6092 Robert Millan <rmh@gnu.org>
6094 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6095 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6096 GNU_USER_DYNAMIC_LINKER64): Define.
6097 (REG_NAME): Don't undefine.
6098 (MD_UNWIND_SUPPORT): Undefine.
6099 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6100 (REG_NAME): Don't undefine.
6101 (MD_UNWIND_SUPPORT): Undefine.
6102 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6104 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6106 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6107 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6109 2011-04-11 Xinliang David Li <davidxl@google.com>
6111 * value-profile.c (check_ic_target): New function.
6112 (gimple_ic_transform): Sanity check indirect call target.
6113 * gimple-low.c (gimple_check_call_args): Interface change.
6114 (gimple_check_call_matching_types): New function.
6115 * tree-inline.c (tree_can_inline_p): Call new function.
6117 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6119 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6120 tree-pretty-print.h & realmpfr.h.
6122 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6125 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6126 (setup_allocno_and_important_classes): Ditto.
6128 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6130 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6131 GNU_USER_DYNAMIC_LINKER.
6132 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6133 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6134 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6135 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6136 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6137 GNU_USER_TARGET_OS_CPP_BUILTINS.
6138 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6139 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6140 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6141 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6142 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6143 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6144 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6145 GNU_USER_TARGET_OS_CPP_BUILTINS.
6146 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6147 GNU_USER_DYNAMIC_LINKER.
6148 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6149 GNU_USER_TARGET_OS_CPP_BUILTINS.
6150 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6151 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6152 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6153 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6154 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6155 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6156 GNU_USER_DYNAMIC_LINKER64): Remove.
6157 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6158 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6159 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6160 GNU_USER_DYNAMIC_LINKER.
6161 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6162 GNU_USER_TARGET_OS_CPP_BUILTINS.
6163 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6164 GNU_USER_TARGET_OS_CPP_BUILTINS.
6165 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6166 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6167 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6168 GNU_USER_TARGET_OS_CPP_BUILTINS.
6169 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6170 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6171 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6172 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6173 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6174 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6175 GNU_USER_DYNAMIC_LINKER.
6176 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6177 GNU_USER_TARGET_OS_CPP_BUILTINS.
6178 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6179 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6180 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6181 GNU_USER_DYNAMIC_LINKER.
6182 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6183 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6184 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6185 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6186 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6187 GNU_USER_DYNAMIC_LINKER.
6188 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6189 GNU_USER_DYNAMIC_LINKERN32.
6190 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6191 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6192 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6193 GNU_USER_DYNAMIC_LINKER32.
6194 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6196 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6197 GNU_USER_DYNAMIC_LINKER.
6198 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6199 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6200 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6201 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6202 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6203 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6204 GNU_USER_DYNAMIC_LINKER32.
6205 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6206 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6207 GNU_USER_DYNAMIC_LINKER.
6208 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6209 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6210 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6211 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6212 GNU_USER_DYNAMIC_LINKER64.
6213 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6214 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6215 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6216 GNU_USER_DYNAMIC_LINKER.
6217 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6218 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6219 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6220 GNU_USER_DYNAMIC_LINKER.
6221 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6222 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6223 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6224 GNU_USER_DYNAMIC_LINKER32.
6225 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6226 GNU_USER_DYNAMIC_LINKER64.
6227 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6228 GNU_USER_DYNAMIC_LINKER64.
6229 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6230 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6231 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6232 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6233 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6235 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6237 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6238 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6239 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6240 GNU_USER_DYNAMIC_LINKER.
6241 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6242 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6243 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6244 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6245 GNU_USER_DYNAMIC_LINKER64.
6246 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6247 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6248 GNU_USER_LINK_EMULATION.
6249 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6250 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6251 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6252 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6253 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6254 CPP_SPEC, CC1_SPEC): Remove.
6255 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6256 (GNU_USER_DYNAMIC_LINKER): Define.
6257 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6258 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6259 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6260 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6261 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6262 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6263 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6264 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6265 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6266 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6267 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6268 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6269 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6270 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6271 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6272 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6273 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6274 GNU_USER_DYNAMIC_LINKER.
6275 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6276 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6277 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6278 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6279 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6280 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6281 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6282 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6283 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6284 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6286 2011-04-11 Kai Tietz <ktietz@redhat.com>
6290 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6291 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6293 (ix86_is_msabi_thiscall): Removed.
6294 (ix86_is_type_thiscall): Likewise.
6295 (ix86_get_callcvt): New function.
6296 (ix86_comp_type_attributes): Simplify check.
6297 (ix86_function_regparm): Use ix86_get_callcvt for calling
6298 convention attribute checks.
6299 (ix86_return_pops_args): Likewise.
6300 (ix86_static_chain): Likewise.
6301 (x86_this_parameter): Likewise.
6302 (x86_output_mi_thunk): Likewise.
6303 (ix86_function_type_abi): Optimize check for types without attributes.
6304 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6305 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6306 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6308 (IX86_BASE_CALLCVT): Helper macro.
6309 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6310 Use ix86_get_callcvt for calling convention attribute checks and avoid
6311 symbol-decoration for stdcall in TARGET_RTD case.
6312 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6314 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6317 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6319 * config/i386/sse.md (VI_128): New mode iterator.
6320 (VI12_128): Rename from SSEMODE12.
6321 (VI14_128): Rename from SSEMODE14.
6322 (VI124_128): New mode iterator.
6323 (VI24_128): Rename from SSEMODE248.
6324 (VI248_128): Rename from SSEMODE248.
6325 (SSEMODE124C8): Remove.
6326 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6327 (*sse2_<plusminus_insn><mode>3): Merge with
6328 *avx_<plusminus_insn><mode>3.
6329 (*mulv8hi3): Merge with *avx_mulv8hi3.
6330 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6331 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6332 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6333 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6334 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6335 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6336 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6337 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6338 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6339 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6340 (*<smaxmin:code>v8hi3): Ditto.
6341 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6342 (*<smaxmin:code>v16qi3): Ditto.
6343 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6344 (*sse2_eq<mode>3): Ditto.
6345 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6346 (*sse2_gt<mode>3): Ditto.
6347 (vcondv2di): Split out of vcond<mode>.
6348 (vconduv2di): Split out of vcondu<mode>.
6350 2011-04-11 Richard Guenther <rguenther@suse.de>
6352 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6353 before calling tree_low_cst.
6355 2011-04-11 Richard Guenther <rguenther@suse.de>
6357 * stor-layout.c (layout_type): Compute all array index size operations
6358 in the original type.
6359 (initialize_sizetypes): Add comment.
6360 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6362 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6364 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6366 2011-04-11 Martin Jambor <mjambor@suse.cz>
6368 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6369 of cgraph_node, handle NULL return value.
6370 (cgraph_global_info): Likewise.
6371 (cgraph_rtl_info): Likewise.
6372 * tree-inline.c (estimate_num_insns): Likewise.
6373 * gimplify.c (unshare_body): Likewise.
6374 (unvisit_body): Likewise.
6375 (gimplify_body): Likewise.
6376 * predict.c (optimize_function_for_size_p): Likewise.
6377 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6378 (call_may_clobber_ref_p_1): Likewise.
6379 * varasm.c (function_section_1): Likewise.
6380 (assemble_start_function): Likewise.
6382 2011-04-11 Martin Jambor <mjambor@suse.cz>
6384 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6386 * final.c (rest_of_clean_state): Likewise.
6387 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6388 * passes.c (pass_init_dump_file): Likewise.
6389 (execute_all_ipa_transforms): Likewise.
6390 (function_called_by_processed_nodes_p): Likewise.
6391 * predict.c (maybe_hot_frequency_p): Likewise.
6392 (probably_never_executed_bb_p): Likewise.
6393 (compute_function_frequency): Likewise.
6394 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6395 (unnest_nesting_tree_1): Likewise.
6396 (lower_nested_functions): Likewise.
6397 * tree-optimize.c (execute_fixup_cfg): Likewise.
6398 (tree_rest_of_compilation): Likewise.
6399 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6400 * tree-sra.c (ipa_early_sra): Likewise.
6401 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6402 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6403 * ipa.c (record_cdtor_fn): Likewise.
6404 * ipa-inline.c (cgraph_early_inlining): Likewise.
6405 (compute_inline_parameters_for_current): Likewise.
6406 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6407 * ipa-pure-const.c (local_pure_const): Likewise.
6408 * ipa-split.c (split_function): Likewise.
6409 (execute_split_functions): Likewise.
6410 * cgraphbuild.c (build_cgraph_edges): Likewise.
6411 (rebuild_cgraph_edges): Likewise.
6412 (cgraph_rebuild_references): Likewise.
6413 (remove_cgraph_callee_edges): Likewise.
6414 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6415 (verify_cgraph_node): Likewise.
6416 (cgraph_analyze_functions): Likewise.
6417 (cgraph_preserve_function_body_p): Likewise.
6418 (save_inline_function_body): Likewise.
6419 (save_inline_function_body): Likewise.
6420 * tree-inline.c (copy_bb): Likewise.
6421 (optimize_inline_calls): Likewise.
6423 2011-04-11 Martin Jambor <mjambor@suse.cz>
6425 PR tree-optimization/48195
6426 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6427 ipa_check_create_edge_args.
6428 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6429 ipa_check_create_edge_args.
6430 * ipa-inline.c (inline_generate_summary): Do not call
6431 ipa_check_create_node_params and ipa_check_create_edge_args.
6432 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6433 ipa_check_create_edge_args.
6435 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6437 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6439 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6440 * function.c (record_hard_reg_sets): Likewise.
6441 * ira.c (compute_regs_asm_clobbered): Likewise.
6442 * sched-deps.c (sched_analyze_1): Likewise.
6443 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6445 2011-04-09 Xinliang David Li <davidxl@google.com>
6447 PR tree-optimization/PR48484
6448 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6449 has_valid_pred lazily
6451 2011-04-09 Duncan Sands <baldrick@free.fr>
6453 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6455 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6457 * combine.c (combine_validate_cost): Adjust comments. Set registered
6458 cost of I0 to zero at the end, if any.
6460 2011-04-08 Xinliang David Li <davidxl@google.com>
6462 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6463 to insane profile data.
6465 2011-04-08 Xinliang David Li <davidxl@google.com>
6467 * ipa-cp.c (ipcp_update_profiling): Correct
6468 negative scale factor due to insane profile data.
6470 2011-04-08 Xinliang David Li <davidxl@google.com>
6472 * final.c (dump_basic_block_info): New function.
6473 (final): Dump basic block.
6474 (final_scan_insn): Remove old dump.
6476 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6479 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6482 2011-04-08 Michael Matz <matz@suse.de>
6485 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6487 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6488 * rtl.h (rebuild_jump_labels_chain): Declare.
6489 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6490 insns inserted on edges.
6492 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6494 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6495 * config/arm/arm-arches.def: New.
6496 * config/arm/arm-opts.h: New.
6497 * config/arm/genopt.sh: New.
6498 * config/arm/arm-tables.opt: New (generated).
6499 * config/arm/arm.c (arm_handle_option, arm_target_help,
6500 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6501 (all_architectures): Get most table contents from arm-arches.def.
6502 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6503 arm_selected_tune here.
6504 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6505 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6506 (march=, mcpu=, mtune=): Use Enum and Var.
6507 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6508 (arm.o): Update dependencies.
6510 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6512 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6514 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6515 (write_typed_alloc_defns): Likewise.
6516 (main): Calls write_typed_alloc_defns with output_header.
6518 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6521 * ira-color.c (setup_profitable_hard_regs): Add comments.
6522 Don't take prohibited hard regs into account.
6523 (setup_conflict_profitable_regs): Rename to
6524 get_conflict_profitable_regs.
6525 (check_hard_reg_p): Check prohibited hard regs.
6527 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6529 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6530 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6531 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6533 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6536 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6537 move from floating point to shift amount register.
6538 (emit_move_sequence): Remove secondary reload support for floating
6539 point to shift amount amount register copies.
6540 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6541 amount register copies.
6542 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6543 register, return false if mode isn't a scalar integer mode.
6544 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6546 2011-04-08 Richard Guenther <rguenther@suse.de>
6548 * gimple.c (gimple_call_flags): Remove kludge.
6550 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6552 * sel-sched.c (sel_region_init): Move call to
6553 sel_setup_region_sched_flags after setup_current_loop_nest.
6555 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6557 PR rtl-optimization/48272
6558 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6559 init_insn_reg_pressure_info. Adjust a caller.
6560 * sched-int.h (init_insn_reg_pressure_info): Declare.
6561 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6562 when sched-pressure is enabled.
6564 2011-04-08 Richard Guenther <rguenther@suse.de>
6566 * gimple.c (gimple_set_modified): Do not queue calls to
6567 MODIFIED_NORETURN_CALLS here ...
6568 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6570 2011-04-08 Richard Guenther <rguenther@suse.de>
6573 * toplev.c (lang_dependent_init): Do not open asm_out_file
6574 in WPA mode, nor perform debug machinery initialization.
6575 (finalize): Do not unlink asm_out_file in WPA mode.
6577 2011-04-08 Richard Guenther <rguenther@suse.de>
6579 * gimple.h (gimple_call_fntype): New function.
6580 (gimple_call_return_type): Use it.
6581 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6582 * gimple-low.c (gimple_check_call_args): Likewise.
6583 * gimple.c (gimple_call_flags): Likewise.
6584 (gimple_call_arg_flags): Likewise.
6585 (gimple_call_return_flags): Likewise.
6586 * tree-cfg.c (verify_gimple_call): Likewise.
6587 (do_warn_unused_result): Likewise.
6588 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6589 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6591 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6593 PR rtl-optimization/48235
6594 * sel-sched.c (code_motion_process_successors): Recompute the last
6595 insn in basic block if control flow changed.
6596 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6597 Update condition for ilist_remove.
6599 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6601 PR rtl-optimization/48302
6602 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6603 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6604 it to record added preheader blocks.
6605 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6606 on to sel_add_loop_preheaders.
6607 (sel_region_init): Move call to setup_current_loop_nest after
6610 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6613 * cfgloop.h (loop_has_exit_edges): New helper.
6614 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6616 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6617 that have no exit edges.
6619 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6621 PR rtl-optimization/48442
6622 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6623 all callers. Adjust assert.
6625 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6627 PR tree-optimization/48377
6628 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6629 is_packed to true even for types with smaller TYPE_ALIGN than
6632 2011-04-08 Richard Guenther <rguenther@suse.de>
6635 * doc/tm.texi: Re-generate.
6637 2011-04-08 Wei Guozhi <carrot@google.com>
6640 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6641 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6642 * config/arm/arm.md (*push_multi): Change the length computation to
6645 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6647 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6648 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6649 * doc/tm.texi: Regenerate.
6650 * system.h (ASM_OUTPUT_BSS): Poison.
6651 * varasm.c (asm_output_bss): Remove function.
6652 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6654 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6655 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6656 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6657 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6659 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6661 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6663 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6665 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6667 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6670 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6672 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6673 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6674 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6676 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6677 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6678 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6679 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6680 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6681 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6682 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6683 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6684 options. Don't map other m68k options manually. Don't handle
6685 old-style options as canonical.
6686 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6687 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6689 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6691 * basic-block.h (force_nonfallthru): Move to...
6692 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6693 (force_nonfallthru): ...here.
6694 * cfghooks.c (force_nonfallthru): New function.
6695 * cfgrtl.c (force_nonfallthru): Rename into...
6696 (rtl_force_nonfallthru): ...this.
6697 (commit_one_edge_insertion): Do not set AUX field.
6698 (commit_edge_insertions): Do not discover new basic blocks.
6699 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6700 (cfg_layout_rtl_cfg_hooks): Likewise.
6701 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6702 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6703 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6705 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6707 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6710 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6712 * config/i386/sse.md: Update copyright year.
6713 (avxcvtvecmode): Remove.
6714 (sse_movhlps): Merge with *avx_movhlps.
6715 (sse_movlhps): Merge with *avx_movlhps.
6716 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6717 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6718 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6719 (sse_loadhps): Merge with *avx_loadhps.
6720 (sse_storelps): Merge with *avx_storelps.
6721 (sse_loadlps): Merge with *avx_loadlps.
6722 (sse_movss): Merge with *avx_movss.
6723 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6724 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6725 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6726 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6727 (vec_set<mode>_0): Ditto.
6728 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6729 (sse4_1_insertps): Merge with *avx_insertps.
6730 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6731 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6732 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6733 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6734 (sse2_storehpd): Merge with *avx_storehpd.
6735 (sse2_loadhpd): Merge with *avx_loadhpd.
6736 (sse2_loadlpd): Merge with *avx_loadlpd.
6737 (sse2_movsd): Merge with *avx_movsd.
6738 (*vec_concatv2df): Merge with *vec_concatv2df.
6740 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6743 * combine.c (combine_instructions): Add last_combined_insn,
6744 update it if insn is after it, pass it to all try_combine calls.
6745 (try_combine): Add last_combined_insn parameter, pass it instead of
6746 i3 to propagate_for_debug.
6748 2011-04-07 Nick Clifton <nickc@redhat.com>
6750 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6751 to handle MDR <-> data register transfers.
6752 (movhi_internal): Likewise.
6754 2011-04-07 Alan Modra <amodra@gmail.com>
6756 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6757 previous stack info.
6759 2011-04-07 Tom de Vries <tom@codesourcery.com>
6762 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6763 flow_find_cross_jump. Swap variables to implement backward replacement.
6764 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6766 2011-04-07 Tom de Vries <tom@codesourcery.com>
6769 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6770 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6772 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6773 src1 or src2. Redirect edges to the last basic block. Update
6774 frequency and count on multiple basic blocks in case of fallthru.
6776 2011-04-07 Tom de Vries <tom@codesourcery.com>
6779 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6781 (old_insns_match_p): Change return type. Replace return false/true
6782 with return dir_none/dir_both. Use can_replace_by.
6783 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6784 direction from dir_p. Register replacement direction in dir, last_dir
6785 and afterlast_dir. Handle new return type of old_insns_match_p using
6786 merge_dir. Return replacement direction in dir_p.
6787 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6788 return type of old_insns_match_p.
6789 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6790 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6791 flow_find_cross_jump.
6792 * basic-block.h (enum replace_direction): New type.
6793 (flow_find_cross_jump): Add parameter to declaration.
6795 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6797 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6798 (AVXMODEDCVTPS2DQ): Ditto.
6799 (VEC_FLOAT_MODE): Ditto.
6800 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6801 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6802 (<any_logic:code><mode>3): Use VF mode iterator.
6803 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6804 Use VF mode iterator.
6805 (copysign<mode>3): Use VF mode iterator.
6806 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6807 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6808 (*<any_logic:code><MODEF:mode>3): Merge with
6809 *avx_<any_logic:code><MODEF:mode>3.
6810 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6811 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6812 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6813 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6814 (sse2_cvtdq2ps): Use %v modifier.
6815 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6816 (avx_cvtps2dq<avxmodesuffix>): Remove.
6817 (sse2_cvtps2dq): Use %v modifier.
6818 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6819 (avx_cvttps2dq<avxmodesuffix>): Remove.
6820 (sse2_cvttps2dq): Use %v modifier.
6821 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6822 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6823 (sse2_cvtsd2siq): Fix insn template.
6824 (sse2_cvtsd2siq_2): Ditto.
6825 (sse2_cvttsd2siq): Ditto.
6826 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6827 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6829 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6831 * gcov-io.c: Use GCC Runtime Library Exception.
6833 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6836 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6837 as base_reg whatever register reg has been eliminated to, instead
6838 of hardcoding STACK_POINTER_REGNUM.
6840 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6842 * doc/tm.texi.in: Document C target hooks as separate from general
6844 * doc/tm.texi: Regenerate.
6845 * genhooks.c (struct hook_desc): Add docname field.
6846 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6848 (hook_array): Include c-target.def.
6849 (emit_documentation): Use docname field in output.
6850 (emit_init_macros): Take docname argument. Only emit definitions
6851 for hooks matching docname.
6852 (main): Expect additional arguments in all cases. Pass argument
6853 to emit_init_macros.
6854 * target.def: Move initial macro definitions and comments to
6855 target-hooks-macros.h.
6856 (gcc_targetcm): Move to c-family/c-target.def.
6857 * target.h (targetcm): Move declaration to c-family/c-target.h.
6858 * targhooks.c (default_handle_c_option): Move to
6860 * targhooks.h (default_handle_c_option): Move declaration to
6861 c-family/c-common.h.
6862 * target-hooks-macros.h: New file.
6863 * config.gcc (target_has_targetcm): Define and use to add to
6864 c_target_objs and cxx_target_objs.
6865 * config/default-c.c: New file.
6866 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6867 of target.h and target-def.h.
6868 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6869 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6870 darwin_check_cfstring_format_arg): Make static.
6871 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6872 TARGET_STRING_OBJECT_REF_TYPE_P,
6873 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6874 * config/darwin-protos.h (darwin_objc_construct_string,
6875 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6877 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6878 TARGET_STRING_OBJECT_REF_TYPE_P,
6879 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6880 * config/t-darwin (darwin-c.o): Update dependencies.
6881 * system.h (TARGET_HAS_TARGETCM): Poison.
6882 * Makefile.in (TARGET_H): Update.
6883 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6884 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6885 (default-c.o): New target.
6886 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6887 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6888 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6890 (build/genhooks.o): Update dependencies.
6892 2011-04-06 Richard Guenther <rguenther@suse.de>
6894 * ipa-inline.c (enum inlining_mode): Remove.
6895 (cgraph_flatten): Use some other token.
6896 (cgraph_edge_early_inlinable_p): New function, split out from ...
6897 (cgraph_perform_always_inlining): New function, split out from ...
6898 (cgraph_decide_inlining_incrementally): ... here.
6899 (cgraph_mark_inline_edge): Adjust.
6900 (cgraph_early_inlining): Re-structure.
6901 (pass_early_inline): Require SSA form.
6903 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6904 Julian Brown <julian@codesourcery.com>
6905 Mark Shinwell <shinwell@codesourcery.com>
6907 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6908 LO_REGS only for Thumb-1.
6909 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6910 be used in short instructions when optimising for size on Thumb-2.
6912 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6914 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6915 associated with user returns to be preserved.
6917 2011-04-06 Tristan Gingold <gingold@adacore.com>
6919 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6920 symbol_queue_size, DBXOUT_DECR_NESTING,
6921 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6922 if XCOFF_DEBUGGING_INFO.
6924 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6926 * config/i386/i386.md (attribute isa): New.
6927 (attribute enabled): New.
6928 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6929 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6930 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6931 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6932 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6933 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6934 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6935 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6937 * config/i386/sse.md (VF): New mode iterator.
6941 (SSEMODEF4): Remove.
6942 (attribute sse): Handle V8SF and V4DF modes.
6943 (<absneg:code><mode>2): Use VF mode iterator.
6944 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6946 (<plusminus_insn><mode>3): Use VF mode iterator.
6947 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6948 Use VF mode iterator.
6949 (<sse>_vm<plusminus_insn><mode>3): Merge with
6950 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6951 (mul<mode>3): Use VF mode iterator.
6952 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6953 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6955 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6956 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6957 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6958 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6960 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6961 Use VF1 mode iterator.
6962 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6963 (sqrt<VF2:mode>2): New expander.
6964 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6965 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6966 and sqrtv2df2. Use VF mode iterator.
6967 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6969 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6970 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6971 Use VF1 mode iterator.
6972 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6973 (<smaxmin:code><mode>3): Use VF mode iterator.
6974 (*<smaxmin:code><mode>3_finite): Merge with
6975 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6976 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6977 (<sse>_vm<smaxmin:code><mode>2): Merge with
6978 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6979 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6981 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6983 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6984 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6985 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6986 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6987 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6989 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6990 Use VF_128 mode iterator.
6991 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6993 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6994 VF_128 mode iterator.
6995 (vcond<mode>): Use VF mode iterator.
6996 * config/i386/predicates.md (sse_comparison_operator): Merge with
6997 avx_comparison_float_operator. Do not declare as special_predicate.
6998 * config/i386/i386.c (struct builtin_description): Update for renamed
7000 (ix86_expand_args_builtin): Ditto.
7001 (ix86_expand_sse_compare_mask): Ditto.
7003 2011-04-06 Richard Guenther <rguenther@suse.de>
7005 * tree-inline.c (estimate_num_insns): For calls simply account
7006 for all passed arguments and a used return value.
7008 2011-04-06 Richard Guenther <rguenther@suse.de>
7010 PR tree-optimization/47663
7011 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7012 call_stmt_time fields.
7013 (cgraph_edge_inlinable_p): Declare.
7014 (cgraph_edge_recursive_p): New inline function.
7015 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7016 (cgraph_clone_edge): Copy it.
7017 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7018 Account for call stmt time.
7019 (cgraph_estimate_time_after_inlining): Take edge argument.
7020 (cgraph_estimate_edge_growth): Account call stmt size.
7021 (cgraph_estimate_size_after_inlining): Take edge argument.
7022 (cgraph_mark_inline_edge): Adjust.
7023 (cgraph_check_inline_limits): Likewise.
7024 (cgraph_recursive_inlining_p): Remove.
7025 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7026 (cgraph_decide_recursive_inlining): Take edge argument and
7028 (cgraph_decide_inlining_of_small_functions): Do not avoid
7029 diags for recursive inlining here.
7030 (cgraph_flatten): Adjust.
7031 (cgraph_decide_inlining_incrementally): Likewise.
7032 (estimate_function_body_sizes): Remove call cost handling.
7033 (compute_inline_parameters): Initialize caller edge call costs.
7034 (cgraph_estimate_edge_growth): New function.
7035 (cgraph_estimate_growth): Use it.
7036 (cgraph_edge_badness): Likewise.
7037 (cgraph_check_inline_limits): Take an edge argument.
7038 (cgraph_decide_inlining_of_small_functions): Adjust.
7039 (cgraph_decide_inlining): Likewise.
7040 * tree-inline.c (estimate_num_insns): Only account for call
7041 return value if it is used.
7042 (expand_call_inline): Avoid diagnostics on recursive inline
7044 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7045 (input_edge): Input edge call costs.
7047 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7049 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7051 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7053 * doc/invoke.texi (Spec Files): Fix typo.
7055 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7057 * profile.c (branch_prob): Move declaration of local variable. Remove
7058 obsolete ??? comment. Expand the location explicitly instead of using
7059 the LOCATION_FILE and LOCATION_LINE macros.
7061 2011-04-06 Wei Guozhi <carrot@google.com>
7064 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7065 (arm_cond_branch): Likewise.
7066 (arm_cond_branch_reversed): Likewise.
7067 (arm_jump): Likewise.
7068 (push_multi): Likewise.
7069 * config/arm/constraints.md (Py): New constraint.
7071 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7074 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7076 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7077 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7078 #ifdef DBX_DEBUGGING_INFO.
7080 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7083 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7084 if old and new states differ.
7086 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7088 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7089 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7090 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7091 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7092 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7094 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7095 ColdFire options to -mcpu= options.
7097 2011-04-05 Jeff Law <law@redhat.com>
7099 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7100 check if BB is a successor of LOOP->header and return
7101 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7103 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7105 * cprop.c (struct reg_use): Remove.
7106 (reg_use_table): Make an array of RTX.
7107 (find_used_regs, constprop_register, local_cprop_pass,
7108 bypass_block): Simplify users of reg_use_table.
7109 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7110 on one of the uses found by find_used_regs.
7112 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7115 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7118 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7120 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7122 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7124 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7127 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7129 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7131 * combine.c: Include obstack.h.
7132 (struct insn_link): Define.
7133 (uid_log_links): Adjust type.
7134 (FOR_EACH_LOG_LINK): New macro.
7135 (insn_link_obstack): Declare.
7136 (alloc_insn_link): Define.
7137 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7138 type of link variables.
7139 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7140 (try_combine, record_promoted_values, distribute_notes): Likewise.
7141 (distribute_links): Likewise. Tweak prototype.
7142 (clear_log_links): Delete.
7143 (adjust_for_new_dest): Call alloc_insn_link.
7144 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7146 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7148 * gcse.c (modify_mem_list): Convert to an array of VECs.
7149 (canon_modify_mem_list, compute_transp): Tweak formatting.
7150 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7151 (load_killed_in_block_p): Likewise.
7152 (record_last_mem_set_info): Likewise.
7153 (clear_modify_mem_tables): Likewise.
7155 2011-04-05 Tom de Vries <tom@codesourcery.com>
7158 * function.c (emit_use_return_register_into_block): Only define if
7161 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7163 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7165 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7167 * config/rx/rx-opts.h: New.
7168 * config/rx/rx.c (rx_cpu_type): Remove.
7169 (rx_handle_option): Don't assert that global structures are in
7170 use. Access variables via opts pointer. Defer most handling of
7171 OPT_mint_register_. Use error_at.
7172 (rx_option_override): Handle deferred OPT_mint_register_ here.
7173 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7174 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7175 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7176 (rx_cpu_types): New Enum and EnumValue entries.
7177 (mint-register=): Use Defer and use Var accordingly.
7179 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7181 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7182 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7183 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7185 (debug_free_queue, debug_nesting, symbol_queue_index):
7187 * dbxout.c: ...to here. Make static.
7189 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7191 * gcse.c (modify_pair): Define. Define a VEC of it.
7192 (canon_modify_mem_list): Convert to an array of VECs.
7193 (free_insn_expr_list_list): Delete.
7194 (clear_modify_mem_tables): Call VEC_free instead.
7195 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7196 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7197 (canon_list_insert, compute_transp): Likewise.
7199 2011-04-05 Tom de Vries <tom@codesourcery.com>
7202 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7205 2011-04-05 Tom de Vries <tom@codesourcery.com>
7208 * function.c (emit_use_return_register_into_block): New function.
7209 (thread_prologue_and_epilogue_insns): Use
7210 emit_use_return_register_into_block.
7212 2011-04-05 Tom de Vries <tom@codesourcery.com>
7215 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7218 2011-04-05 Tom de Vries <tom@codesourcery.com>
7220 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7222 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7224 * config/arm/arm.md (define_constants for unspec): Replace with
7226 (define_constants for unspecv): Replace with define_c_enum.
7227 * config/arm/neon.md (define_constants for unspec): Replace with
7230 2011-04-04 Richard Henderson <rth@redhat.com>
7233 * dwarf2out.c (output_line_info): Always emit line info from
7234 at least one section.
7235 (dwarf2out_init): Create text_section_line_info here ...
7236 (set_cur_line_info_table): ... not here.
7238 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7241 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7244 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7246 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7248 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7249 (expr_equiv_p): Remove.
7250 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7251 (hash_scan_set): Update call to insert_set_in_table.
7252 (dump_hash_table): Dump <dest, src> pair.
7253 (lookup_set): Simplify. Lookup <dest, src> pair.
7254 (compute_transp): Remove, fold heavily simplified code into...
7255 (compute_local_properties): ...here. Expect COMP and TRANSP
7257 (find_avail_set): Take set directly from struct expr.
7258 (find_bypass-set): Likewise.
7259 (bypass_block): Likewise.
7260 (cprop_insn): Likewise. Remove redundant INSN_P test.
7262 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7263 checks on form of COND from find_implicit_sets to here.
7264 (find_implicit_sets): Cleanup control flow. Split critical edges
7265 if it exposes implicit sets. Allocate/resize implicit_sets as
7267 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7268 changed something. Run df_analyze after find_implicit_sets if any
7269 edges were split. Do not allocate implicit_sets here.
7271 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7272 (gcse_obstack): Renamed to cprop_obstack.
7273 (GNEW, GNEWVEC, GNEWVAR): Remove.
7275 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7276 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7277 (gcse_alloc): Likewise, and rename to cprop_alloc.
7278 (alloc_gcse_men, free_gcse_mem): Remove.
7279 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7280 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7281 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7283 * cprop.c (oprs_not_set_p): Remove.
7284 (mark_set, mark_clobber): Remove.
7285 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7286 (reg_not_set_p): New function.
7287 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7288 (cprop_insn): Likewise.
7289 (cprop_jump): Use FOR_EACH_EDGE.
7291 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7294 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7295 (rank_for_schedule): Use scheduled_insns vector instead of
7296 last_scheduled_insn.
7297 (ok_for_early_queue_removal): Likewise.
7298 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7300 (choose_ready): Likewise.
7301 (commit_schedule): Use VEC_iterate.
7302 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7303 a dbg_cnt, use it and ensure the first insn is in the ready list.
7304 (haifa_sched_init): Allocate scheduled_insns.
7305 (sched_extend_ready_list): Don't allocate it; reserve space.
7306 (haifa_sched_finish): Free it.
7308 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7310 * optc-gen.awk: Always remove type from Variable entry before
7311 recording in var_seen.
7313 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7315 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7316 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7317 call to tidy_fallthru_edges.
7319 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7321 * doc/options.texi (ToLower): Document.
7322 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7323 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7324 * opts.h (cl_option): Add cl_tolower field.
7325 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7326 arguments with lowercase strings.
7327 * config/rx/rx.opt (mcpu=): Add ToLower.
7328 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7331 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7333 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7335 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7337 * config/vax/vax.c: Include reload.h.
7339 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7341 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7342 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7343 (sparc_preferred_reload_class): New function.
7345 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7348 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7349 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7351 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7353 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7354 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7356 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7358 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7359 (ASM_OUTPUT_ALIGNED_BSS): Define.
7361 2011-04-03 Michael Matz <matz@suse.de>
7363 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7364 and next_slot members.
7365 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7366 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7367 (lto_streamer_cache_append): Declare.
7368 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7369 unsigned index, remove offset parameter, ensure that we append
7370 or update existing entries.
7371 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7372 parameter, update next_slot for append.
7373 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7375 (lto_streamer_cache_insert_at): Likewise.
7376 (lto_streamer_cache_append): New function.
7377 (lto_streamer_cache_lookup): Use unsigned index.
7378 (lto_streamer_cache_get): Likewise.
7379 (lto_record_common_node): Don't test tree_node_can_be_shared.
7380 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7381 (lto_streamer_cache_delete): Don't free offsets member.
7382 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7383 (lto_output_string_with_length): Use lto_output_data_stream.
7384 (lto_output_tree_header): Remove ix parameter, don't write it.
7385 (lto_output_builtin_tree): Likewise.
7386 (lto_write_tree): Adjust callers to above, don't track and write
7387 offset, write unsigned index.
7388 (output_unreferenced_globals): Don't emit all global vars.
7389 (write_global_references): Use unsigned indices.
7390 (lto_output_decl_state_refs): Likewise.
7391 (write_symbol): Likewise.
7392 * lto-streamer-in.c (lto_input_chain): Move earlier.
7393 (input_function): Use unsigned index.
7394 (input_alias_pairs): Don't read and then ignore all global vars.
7395 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7396 don't pass it back, use lto_streamer_cache_append.
7397 (lto_register_var_decl_in_symtab): Use unsigned index.
7398 (lto_register_function_decl_in_symtab): Likewise.
7399 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7401 (lto_get_builtin_tree): Don't read index, use
7402 lto_streamer_cache_append.
7403 (lto_read_tree): Adjust call to lto_materialize_tree.
7405 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7406 don't use function calls in arguments to MIN.
7408 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7411 * gimple.c (gimple_type_leader_entry): Mark deletable.
7413 2011-04-03 Alan Modra <amodra@gmail.com>
7415 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7417 2011-04-03 Michael Matz <matz@suse.de>
7419 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7421 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7423 2011-04-03 Michael Matz <matz@suse.de>
7425 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7426 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7427 without function context.
7428 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7429 current_function_decl and cfun.
7431 2011-04-03 Michael Matz <matz@suse.de>
7433 * tree.c (decl_init_priority_insert): Don't create entry for
7435 (decl_fini_priority_insert): Ditto.
7436 (fields_compatible_p, find_compatible_field): Remove.
7437 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7438 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7440 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7442 * combine.c (try_combine): Remove useless local variable.
7444 2011-04-03 Richard Guenther <rguenther@suse.de>
7445 Ira Rosen <ira.rosen@linaro.org>
7447 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7448 non-variable offsets and compare the remaining bases of the two
7449 accesses instead of looking for exact same data-ref.
7451 2011-04-02 Kai Tietz <ktietz@redhat.com>
7454 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7456 * i386.c (ix86_is_msabi_thiscall): New helper function.
7457 (ix86_is_type_thiscall): New helper function.
7458 (ix86_comp_type_attributes): Handle thiscall for method-functions
7460 (init_cumulative_args): Likewise.
7461 (find_drap_reg): Likewise.
7462 (ix86_static_chain): Likewise.
7463 (x86_this_parameter): Likewise.
7464 (x86_output_mi_thunk): Likewise.
7466 2011-04-01 Olivier Hainque <hainque@adacore.com>
7467 Nicolas Setton <setton@adacore.com>
7468 Eric Botcazou <ebotcazou@adacore.com>
7470 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7471 (add_gnat_descriptive_type_attribute): New function.
7472 (gen_array_type_die): Call it.
7473 (gen_enumeration_type_die): Likewise.
7474 (gen_struct_or_union_type_die): Likewise.
7475 (modified_type_die): Likewise.
7476 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7477 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7478 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7480 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7483 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7484 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7487 2011-03-17 Richard Guenther <rguenther@suse.de>
7490 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7491 origin for decls in other ltrans units.
7492 (input_varpool_node): Likewise.
7494 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7497 * expr.c (expand_assignment): Handle all possibilities
7498 if TO_RTX is CONCAT.
7499 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7500 (store_split_bit_field): If SUBREG_REG (op0) or
7501 op0 itself has smaller mode than word, return it
7502 for offset 0 and const0_rtx for out-of-bounds stores.
7503 If word is const0_rtx, skip it.
7505 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7507 * config/h8300/h8300.c (print_operand_address): Rename to...
7508 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7509 Call h8300_print_operand and h8300_print_operand_address instead of
7510 print_operand and print_operand_address. Declare.
7511 (print_operand): Renake to...
7512 (h8300_print_operand): ...this. Make static. Adjust comments.
7513 Call h8300_print_operand instead of print_operand. Declare.
7514 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7515 (h8300_register_move_cost): Likewise.
7516 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7517 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7518 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7519 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7520 * config/h8300/h8300-protos.h (print_operand): Delete.
7521 (print_operand_address): Delete.
7523 2011-04-01 Richard Henderson <rth@redhat.com>
7526 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7527 in strict mode before dwarf4. Re-order tests to early out
7528 before switching sections.
7530 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7532 * config/h8300/constraints.md: New file.
7533 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7534 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7535 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7536 * config/h8300/predicates.md (bit_operand): Likewise.
7537 (incdec_operand): Use satisfies_constraint_M and
7538 satisfies_constraint_O. Don't use C code block.
7539 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7540 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7541 (compute_mov_length): Use satisfies_constraint_G.
7542 (fix_bit_operand): Use satisfies_constraint_U.
7543 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7544 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7545 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7546 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7547 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7548 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7549 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7550 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7551 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7552 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7553 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7554 (EXTRA_MEMORY_CONSTRAINT): Delete.
7556 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7557 Michael Meissner <meissner@linux.vnet.ibm.com>
7560 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7561 operands, as per the specifications.
7563 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7564 (vec_extract_evenv4sf): Ditto.
7565 (vec_extract_evenv8hi): Ditto.
7566 (vec_extract_evenv16qi): Ditto.
7567 (vec_extract_oddv4si): Ditto.
7569 2011-03-31 Mark Wielaard <mjw@redhat.com>
7571 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7572 high_pc attribute if the CU has no associated code. Only output
7573 DW_AT_entry_pc for CU if not generating strict dwarf and
7576 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7578 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7579 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7581 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7582 * final.c (final_start_function): Call the new function rather
7583 than using a NULL argument for dwarf2out_frame_debug.
7585 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7586 that contains the prologue.
7588 * haifa-sched.c (queue_insn): New arg REASON. All callers
7589 changed. Print it in debugging output.
7591 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7593 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7594 Split most of the code into...
7595 (begin_move_insn): ... here. New function.
7596 (ebb_sched_info): Add a pointer to it.
7597 * haifa-sched.c (scheduled_insns): New static variable.
7598 (sched_extend_ready_list): Allocate it.
7599 (schedule_block): Use it to record the order of scheduled insns.
7600 Perform RTL changes to move insns only after all scheduling
7601 decisions have been made.
7602 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7603 begin_move_insn field.
7604 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7605 * sched-int.h (struct haifa_sched_info): Remove second argument
7606 from begin_schedule_ready hook. Add new member begin_move_insn.
7607 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7608 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7610 * haifa-sched.c (prune_ready_list): New function, broken out of
7612 (schedule_block): Use it.
7614 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7616 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7618 2011-04-01 Kai Tietz <ktietz@redhat.com>
7620 * config.gcc (*-*-mingw*): Allow as option the
7621 posix threading model.
7622 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7623 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7625 (CPP_SPEC): Add pthread/no-pthread handling.
7626 (LIB_SPEC): Likewise.
7627 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7628 (LIB_SPEC): Likewise.
7629 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7630 flag to pass -pthread option for shared libgcc build.
7631 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7632 for shared libgcc build.
7633 * config/i386/t-mingw-pthread: New file.
7634 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7635 New define to enable use of library pthread by default.
7636 * config/i386/mingw.opt (pthread): New driver option.
7637 (no-pthread): New driver option.
7638 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7639 * config/i386/mingw-w64.opt: Likewise.
7641 2011-04-01 Gary Funck <gary@intrepid.com>
7643 * c-decl.c (grokdeclarator): Fix formatting.
7645 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7647 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7648 instead of n_operands.
7649 (set_storage_via_setmem): Likewise.
7650 * optabs.c (maybe_gen_insn): Likewise.
7651 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7652 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7653 (mips_expand_builtin_direct): Likewise.
7654 * config/spu/spu.c (expand_builtin_args): Likewise.
7656 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7658 * recog.h (insn_data_d): Add n_generator_args.
7659 * genoutput.c (data): Likewise.
7660 (output_insn_data): Print it.
7661 (max_opno, num_dups): Delete.
7662 (scan_operands): Just fill in "d->operand[...]".
7663 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7665 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7667 * gensupport.h (pattern_stats): New structure.
7668 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7669 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7670 (max_operand_1, max_operand_vec): Delete.
7671 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7673 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7675 * emit-rtl.c (emit_pattern_after_setloc): New function.
7676 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7677 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7678 (emit_pattern_after): New function.
7679 (emit_insn_after, emit_jump_insn_after): Call it.
7680 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7681 (emit_pattern_before_setloc): New function.
7682 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7683 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7685 (emit_pattern_before): New function.
7686 (emit_insn_before, emit_jump_insn_before): Call it.
7687 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7689 2011-03-31 Richard Henderson <rth@redhat.com>
7691 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7692 (dw_separate_line_info_entry): Remove.
7693 (enum dw_line_info_opcode): New.
7694 (dw_line_info_entry): Use it.
7695 (dw_line_info_table, dw_line_info_table_p): New.
7696 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7697 (line_info_table, line_info_label_num): Remove.
7698 (line_info_table_in_use): Remove.
7699 (separate_line_info_table): Remove.
7700 (separate_line_info_table_allocated): Remove.
7701 (separate_line_info_table_in_use): Remove.
7702 (LINE_INFO_TABLE_INCREMENT): Remove.
7703 (line_info_label_num): New.
7704 (cur_line_info_table): New.
7705 (text_section_line_info, cold_text_section_line_info): New.
7706 (separate_line_info): New.
7707 (SEPARATE_LINE_CODE_LABEL): Remove.
7708 (print_dwarf_line_table): Remove.
7709 (debug_dwarf): Don't dump it.
7710 (output_one_line_info_table): New.
7711 (output_line_info): Use it.
7712 (new_line_info_table): New.
7713 (set_cur_line_info_table): New.
7714 (dwarf2out_switch_text_section): Use it.
7715 (dwarf2out_begin_function): Likewise.
7716 (push_dw_line_info_entry): New.
7717 (dwarf2out_source_line): Rewrite for new line info tables.
7718 (dwarf2out_init): Remove dead initailizations.
7720 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7722 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7724 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7725 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7726 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7727 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7728 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7729 * opt-functions.awk (flag_init, switch_bit_fields): New.
7730 (switch_flags): Don't handle flags moved to bit-fields. Don't
7731 generate CL_MISSING_OK or CL_SAVE.
7732 * optc-gen.awk: Update to generate bit-field output as well as
7734 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7735 bit-field instead of CL_REJECT_DRIVER flag.
7736 * opts-common.c (generate_canonical_option,
7737 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7738 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7739 instead of CL_REJECT_NEGATIVE flag.
7740 * toplev.c (print_switch_values): Use cl_report bit-field instead
7743 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7745 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7746 a zero minimum index only if it is redundant.
7748 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7750 PR rtl-optimization/48381
7751 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7752 instead of ira_class_hard_reg_index for calculating conflicting
7755 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7757 * cprop.c: Clean up hash table building.
7758 (reg_avail_info): Remove.
7759 (oprs_available_p): Remove.
7760 (record_last_reg_set_info): Remove.
7761 (record_last_set_info): Remove.
7762 (reg_available_p): New function.
7763 (gcse_constant_p): Do not treat unfolded conditions as constants.
7764 (make_set_regs_unavailable): New function.
7765 (hash_scan_set): Simplify with new reg_available_p.
7766 (compute_hash_table_work): Traverse insns stream only once.
7767 Do not compute reg_avail_info. Traverse insns in reverse order.
7768 Record implicit sets after recording explicit sets from the block.
7770 2011-03-31 Michael Matz <matz@suse.de>
7772 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7774 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7776 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7777 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7778 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7779 (h8300_mode_dependent_address_p): New function.
7780 (h8300_get_index): Make static.
7782 2011-03-31 Jeff Law <law@redhat.com>
7784 * reload1.c (elimination_effects): Fix typo in recent change.
7786 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7787 typo potentially leading to null pointer dereference.
7789 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7790 (setup_save_areas): Corresponding changes to avoid useless
7793 * jump.c (reversed_comparison_code_parts): Avoid successive return
7794 statements when REVERSE_CONDITION is defined.
7796 * expr.c (expand_assignment): Avoid useless assignments.
7797 (expand_expr_real_1): Likewise.
7798 (expand_expr_real_2): Avoid useless statements.
7800 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7802 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7804 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7807 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7809 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7812 * doc/tm.texi.in (TARGET_VERSION): Remove.
7813 * doc/tm.texi: Regenerate.
7814 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7815 * collect2.c (main): Don't use TARGET_VERSION.
7816 * mips-tdump.c (main): Don't use TARGET_VERSION.
7817 * mips-tfile.c (main): Don't use TARGET_VERSION.
7818 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7819 * config/rs6000/vxworksae.h: Remove.
7820 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7821 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7822 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7823 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7824 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7825 * config/arm/arm.h (TARGET_VERSION): Remove.
7826 * config/arm/coff.h (TARGET_VERSION): Remove.
7827 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7828 * config/arm/elf.h (TARGET_VERSION): Remove.
7829 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7830 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7831 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7832 * config/arm/pe.h (TARGET_VERSION): Remove.
7833 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7834 * config/arm/semi.h (TARGET_VERSION): Remove.
7835 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7836 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7837 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7838 * config/avr/avr.h (TARGET_VERSION): Remove.
7839 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7840 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7841 * config/frv/frv.h (TARGET_VERSION): Remove.
7842 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7843 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7844 * config/i386/darwin.h (TARGET_VERSION): Remove.
7845 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7846 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7847 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7848 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7849 * config/i386/gnu.h (TARGET_VERSION): Remove.
7850 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7851 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7852 * config/i386/linux.h (TARGET_VERSION): Remove.
7853 * config/i386/linux64.h (TARGET_VERSION): Remove.
7854 * config/i386/lynx.h (TARGET_VERSION): Remove.
7855 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7856 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7857 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7858 * config/i386/netware.h (TARGET_VERSION): Remove.
7859 * config/i386/nto.h (TARGET_VERSION): Remove.
7860 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7861 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7862 * config/ia64/elf.h (TARGET_VERSION): Remove.
7863 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7864 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7865 * config/ia64/linux.h (TARGET_VERSION): Remove.
7866 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7867 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7868 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7869 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7870 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7871 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7872 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7873 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7874 * config/m68k/linux.h (TARGET_VERSION): Remove.
7875 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7876 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7877 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7878 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7879 * config/mep/mep.h (TARGET_VERSION): Remove.
7880 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7881 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7882 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7883 * config/mips/linux.h (TARGET_VERSION): Remove.
7884 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7885 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7886 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7887 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7888 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7889 * config/pa/pa.h (TARGET_VERSION): Remove.
7890 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7891 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7892 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7893 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7894 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7895 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7896 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7897 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7898 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7899 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7900 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7901 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7902 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7903 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7904 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7905 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7906 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7907 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7908 * config/s390/linux.h (TARGET_VERSION): Remove.
7909 * config/s390/s390.h (TARGET_VERSION): Remove.
7910 * config/s390/tpf.h (TARGET_VERSION): Remove.
7911 * config/score/score.h (TARGET_VERSION): Remove.
7912 * config/sh/linux.h (TARGET_VERSION): Remove.
7913 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7914 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7915 * config/sh/sh.h (TARGET_VERSION): Remove.
7916 * config/sh/sh64.h (TARGET_VERSION): Remove.
7917 * config/sh/superh.h (TARGET_VERSION): Remove.
7918 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7919 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7920 * config/sparc/linux.h (TARGET_VERSION): Remove.
7921 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7922 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7923 TARGET_NAME32, TARGET_NAME): Remove.
7924 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7925 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7926 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7927 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7928 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7929 * config/spu/spu.h (TARGET_VERSION): Remove.
7930 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7931 * config/v850/v850.h (TARGET_VERSION): Remove.
7932 * config/vax/linux.h (TARGET_VERSION): Remove.
7933 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7934 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7935 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7937 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7940 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7941 frame-related from frame-unrelated adjustments to the stack pointer.
7943 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7945 * common.opt (fdebug-types-section): Move earlier.
7946 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7948 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7950 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7953 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7955 * tree.h (CASE_CHAIN): Define.
7956 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7957 (gimple_redirect_edge_and_branch): Likewise.
7959 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7962 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7965 2011-03-30 Jeff Law <law@redhat.com>
7967 * PR bootstrap/48371
7968 * reload1.c (reload): Fix botch in last change.
7970 * reload.h (struct reload): Fix typo introduced in last change.
7972 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7974 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7975 Undocumented. Remove help text.
7976 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7979 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7981 * doc/options.texi (NegativeAlias): Document.
7982 (Alias): Mention NegativeAlias.
7983 * opt-functions.awk: Handle NegativeAlias.
7984 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7985 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7986 * opts.h (CL_NEGATIVE_ALIAS): Define.
7987 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7988 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7990 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7992 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7993 mno-spe and mno-isel instead of mspe=no and -misel=no.
7995 2011-03-29 Mark Wielaard <mjw@redhat.com>
7997 * common.opt (fdebug-types-section): New flag.
7998 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7999 * dwarf2out.c (use_debug_types): New define.
8000 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8001 (print_die): Guard output of type unit signatures using
8003 (build_abbrev_table): Replace assert of dwarf_version >= 4
8004 with assert on use_debug_types.
8005 (size_of_die): Likewise.
8006 (unmark_dies): Likewise.
8007 (value_format): Decide AT_ref_external form on use_debug_types.
8008 (output_die): Replace dwarf_version version check guard with
8009 use_debug_types where appropriate.
8010 (modified_type_die): Likewise.
8011 (gen_reference_type_die): Likewise.
8012 (dwarf2out_start_source_file): Likewise.
8013 (dwarf2out_end_source_file): Likewise.
8014 (prune_unused_types_walk_attribs): Likewise.
8015 (dwarf2out_finish): Likewise.
8017 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8019 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8021 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8023 PR rtl-optimization/48332
8024 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8025 mode of input operand N and modeN to its actual mode.
8027 2011-03-30 Jeff Law <law@redhat.com>
8029 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8030 define accessor macro.
8031 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8032 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8033 (reg_equiv_init): Likewise.
8034 (reg_equivs_size): New variable.
8035 (reg_equiv_init_size): Remove.
8036 (allocate_initial_values): Move prototype to here from....
8037 * integrate.h (allocate_initial_values): Remove prototype.
8038 * integrate.c: Include reload.h.
8039 (allocate_initial_values): Corresponding changes.
8040 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8041 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8042 (update_equiv_regs): Corresponding changes.
8043 (ira): Corresponding changes.
8044 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8045 (push_secondary_reload): Corresponding changes.
8046 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8047 (make_memloc, find_reloads_address): Corresponding changes.
8048 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8049 (find_reloads_address_1): Corresponding changes.
8050 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8051 (refers_to_regno_for_reload_p): Corresponding changes.
8052 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8053 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8054 * reload1.c: Include ggc.h.
8055 (grow_reg_equivs): New function.
8056 (replace_pseudos_in, reload): Corresponding changes.
8057 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8058 (eliminate_regs_1, elimination_effects): Corresponding changes.
8059 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8060 (delete_output_reload): Likewise.
8061 * caller-save.c (mark_referenced_regs): Corresponding changes.
8062 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8063 * frv/predicates.md (frv_load_operand): Corresponding changes.
8064 * microblaze/microblaze.c (double_memory_operand): Corresponding
8066 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8067 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8068 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8069 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8070 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8072 * pa/pa.c (emit_move_sequence): Corresponding changes.
8073 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8075 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8078 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8079 structure modes. Don't check neon_vector_mem_operand for
8080 vector or structure modes.
8082 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8083 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8086 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8087 operand 1 and reshuffle the operands to match.
8088 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8090 2011-03-30 Christian Schüler <cschueler@gmx.de>
8093 * config/c.opt (F): Added 'Driver' to -F option.
8096 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8098 * config/darwin.opt: Added '-arch' option.
8100 2011-03-30 Nick Clifton <nickc@redhat.com>
8102 * config/rx/rx.md: Add peepholes and patterns to combine
8103 extending loads and simple arithmetic instructions.
8104 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8105 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8106 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8107 modes to use pre-decrement and post-increment addressing.
8108 (rx_is_restricted_memory_address): Add range checking of REG+INT
8110 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8111 (rx_memory_move_cost): Adjust cost of stores.
8112 (rx_adjust_insn_length): New function.
8114 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8117 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8118 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8119 matching arg00/arg01 types.
8121 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8123 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8124 last_location to UNKNOWN_LOCATION.
8126 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8129 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8132 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8133 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8136 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8138 (sparc_cpu): Likewise.
8139 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8142 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8146 PR rtl-optimization/48345
8147 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8148 hard regs for given mode from profitable regs when doing secondary
8151 2011-03-29 Jeff Law <law@redhat.com>
8154 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8155 do_not_duplicate field.
8156 (lookup_redirection_data): Corresponding changes.
8157 (create_duplicates): Always create a template block.
8158 (redirect_edges): Remove code which reused the original block
8159 when it was going to become unreachable code.
8160 (thread_block): Don't set do_not_duplicate field.
8162 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8164 * lto-opts.c (register_user_option_p, lto_register_user_option):
8165 Make type argument unsigned.
8166 * lto-streamer.h (lto_register_user_option): Make type argument
8168 * opth-gen.awk: Make CL_* macros unsigned.
8169 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8170 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8171 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8172 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8173 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8174 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8175 (find_opt): Make lang_mask argument unsigned.
8177 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8179 PR rtl-optimization/48331
8180 PR rtl-optimization/48334
8181 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8182 for any used algorithm.
8184 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8186 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8189 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8191 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8192 (alpha_option_override): Don't set alpha_sr_alias_set.
8193 (emit_frame_store_1): Use gen_frame_mem rather than calling
8195 (alpha_expand_epilogue): Ditto.
8197 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8199 PR tree-optimization/48290
8200 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8201 vectorization, check that relevant phis in the basic block after
8202 the inner loop are really inner loop's exit phis.
8204 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8207 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8208 (cached_dw_loc_list_def): New structure.
8209 (cached_dw_loc_list): New typedef.
8210 (cached_dw_loc_list_table): New variable.
8211 (cached_dw_loc_list_table_hash): New function.
8212 (cached_dw_loc_list_table_eq): Likewise.
8213 (add_location_or_const_value_attribute): Take a bool cache_p.
8214 Cache the list when the parameter is true.
8215 (gen_formal_parameter_die): Update caller.
8216 (gen_variable_die): Likewise.
8217 (dwarf2out_finish): Likewise.
8218 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8219 while generating debug info for the decl.
8220 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8221 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8222 (resolve_addr): Cache the result of resolving a chain of
8225 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8227 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8228 conflict object hard regset nodes have intersecting hard reg sets.
8230 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8231 after regstat_init_n_sets_and_refs.
8233 * ira.c: Add more comments at the top.
8234 (setup_stack_reg_pressure_class, setup_pressure_classes):
8235 Add comments how we compute the register pressure classes.
8236 (setup_allocno_and_important_classes): Add more comments.
8237 (setup_class_translate_array, reorder_important_classes)
8238 (setup_reg_class_relations): Add comments.
8240 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8243 * ira-color.c: Add 2011 to the Copyright line.
8244 (assign_hard_reg): Add more comments.
8245 (improve_allocation): Ditto.
8247 * ira-costs.c: Add 2011 to the Copyright line.
8248 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8250 (setup_regno_cost_classes_by_mode): Ditto.
8252 Initial patches from ira-improv branch:
8254 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8256 * ira-build.c (ira_create_object): Remove initialization of
8257 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8258 (ira_create_allocno): Remove initialization of
8259 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8260 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8261 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8262 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8263 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8264 Initialize ALLOCNO_ADD_DATA.
8265 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8266 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8268 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8269 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8271 * ira.c (ira_reallocate): Remove.
8272 (setup_pressure_classes): Call
8273 ira_init_register_move_cost_if_necessary. Use
8274 ira_register_move_cost instead of ira_get_register_move_cost.
8275 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8276 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8278 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8279 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8280 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8281 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8282 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8283 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8285 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8286 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8287 (struct allocno_color_data): New.
8288 (allocno_color_data_t): New typedef.
8289 (allocno_color_data): New definition.
8290 (ALLOCNO_COLOR_DATA): New macro.
8291 (struct object_color_data): New.
8292 (object_color_data_t): New typedef.
8293 (object_color_data): New definition.
8294 (OBJECT_COLOR_DATA): New macro.
8295 (update_copy_costs, calculate_allocno_spill_cost): Call
8296 ira_init_register_move_cost_if_necessary. Use
8297 ira_register_move_cost instead of ira_get_register_move_cost.
8298 (move_spill_restore, update_curr_costs): Ditto.
8299 (allocno_spill_priority): Make it inline.
8300 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8301 (struct coalesce_data, coalesce_data_t): New.
8302 (allocno_coalesce_data): New definition.
8303 (ALLOCNO_COALESCE_DATA): New macro.
8304 (merge_allocnos, coalesced_allocno_conflict_p): Use
8305 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8306 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8307 (coalesce_allocnos): Ditto.
8308 (setup_coalesced_allocno_costs_and_nums): Ditto.
8309 (collect_spilled_coalesced_allocnos): Ditto.
8310 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8311 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8312 (coalesce_spill_slots): Ditto.
8313 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8314 free allocno_coalesce_data.
8316 * ira-conflicts.c: Fix formatting.
8317 (process_regs_for_copy): Call
8318 ira_init_register_move_cost_if_necessary. Use
8319 ira_register_move_cost instead of ira_get_register_move_cost.
8320 (build_object_conflicts): Optimize.
8322 * ira-costs.c (record_reg_classes): Optimize. Call
8323 ira_init_register_move_cost_if_necessary. Use
8324 ira_register_move_cost, ira_may_move_in_cost, and
8325 ira_may_move_out_cost instead of ira_get_register_move_cost and
8326 ira_get_may_move_cost.
8327 (record_address_regs): Ditto.
8328 (scan_one_insn): Optimize.
8329 (find_costs_and_classes): Optimize.
8330 (process_bb_node_for_hard_reg_moves): Call
8331 ira_init_register_move_cost_if_necessary. Use
8332 ira_register_move_cost instead of ira_get_register_move_cost.
8334 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8335 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8336 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8337 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8339 (ira_initiate_emit_data, ira_finish_emit_data)
8340 (create_new_allocno): New functions.
8341 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8342 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8343 Use ira_register_move_cost instead of ira_get_register_move_cost.
8345 * ira-int.h: Fix some comments.
8346 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8347 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8348 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8349 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8351 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8352 bitfield after mode. Make hard_regno a short int. Make
8353 hard_regno short. Remove first_coalesced_allocno and
8354 next_coalesced_allocno. Move mem_optimized_dest_p,
8355 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8356 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8357 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8358 temp, colorable_p. Add new member add_data.
8359 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8360 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8361 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8362 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8363 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8364 (ALLOCNO_ADD_DATA): New macro.
8365 (ira_emit_data_t): New typedef.
8366 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8367 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8368 from struct ira_allocno.
8369 (ALLOCNO_EMIT_DATA): New macro.
8370 (ira_allocno_emit_data, allocno_emit_reg): New.
8371 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8372 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8373 (OBJECT_ADD_DATA): New macro.
8374 (ira_reallocate): Remove.
8375 (ira_initiate_emit_data, ira_finish_emit_data): New.
8376 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8377 (ira_init_register_move_cost_if_necessary): New.
8378 (ira_object_conflict_iter_next): Merge into
8379 ira_object_conflict_iter_cond.
8380 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8382 * ira-live.c (process_single_reg_class_operands): Call
8383 ira_init_register_move_cost_if_necessary. Use
8384 ira_register_move_cost instead of ira_get_register_move_cost.
8386 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8388 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8390 * ira-costs.c: Fix formatting.
8391 (cost_classes, cost_classes_num): Remove.
8392 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8393 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8394 (cost_classes_del, cost_classes_htab): New.
8395 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8396 (initiate_regno_cost_classes, setup_cost_classes): New.
8397 (setup_regno_cost_classes_by_aclass): New.
8398 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8399 (record_reg_classes): Use regno_cost_classes instead of
8400 cost_classes. Move checking opposite operand up.
8401 (record_address_regs): Use regno_cost_classes
8402 instead of cost_classes.
8403 (scan_one_insn): Ditto. Use always general register.
8404 (print_allocno_costs): Use regno_cost_classes instead of
8406 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8407 (find_costs_and_classes): Set up cost classes for each registers.
8408 Use also their mode for this. Use regno_cost_classes instead of
8410 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8412 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8413 (ira_costs, ira_set_pseudo_classes): Call
8414 initiate_regno_cost_classes and finish_regno_cost_classes.
8416 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8418 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8420 * target.def (ira_cover_classes): Remove.
8422 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8424 * doc/tm.texi.in: Ditto.
8426 * ira-conflicts.c: Remove mentioning cover classes from the file.
8427 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8428 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8430 * targhooks.c (default_ira_cover_classes): Remove.
8432 * targhooks.h (default_ira_cover_classes): Ditto.
8434 * haifa-sched.c: Remove mentioning cover classes from the file.
8435 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8436 ira_pressure_classes and ira_pressure_classes_num instead of
8437 ira_reg_class_cover_size and ira_reg_class_cover. Use
8438 sched_regno_pressure_class instead of sched_regno_cover_class.
8439 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8440 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8442 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8443 classes from the file.
8444 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8445 (struct object_hard_regs, struct object_hard_regs_node): New.
8446 (struct ira_object): New members profitable_hard_regs,
8447 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8448 (struct ira_allocno): Rename cover_class to aclass. Rename
8449 cover_class_cost and updated_cover_class_cost to class_cost and
8450 updated_class_cost. Remove splay_removed_p and
8451 left_conflict_size. Add new members colorable_p.
8452 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8453 (ALLOCNO_COLORABLE_P): New macro.
8454 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8455 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8456 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8457 (OBJECT_...): Rename parameter C to O.
8458 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8459 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8460 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8461 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8462 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8463 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8464 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8465 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8466 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8467 x_ira_reg_class_subunion.
8468 (ira_max_memory_move_cost, ira_max_register_move_cost)
8469 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8470 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8471 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8472 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8473 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8474 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8475 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8476 (ira_tune_allocno_costs_and_cover_classes): Rename to
8477 ira_tune_allocno_costs.
8478 (ira_debug_hard_regs_forest): New.
8479 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8480 (ira_object_conflict_iter_next): Fix comments.
8481 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8482 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8483 cover_class to aclass.
8484 (ira_allocate_and_accumulate_costs): Ditto.
8485 (ira_allocate_and_set_or_copy_costs): Ditto.
8487 * opts.c (decode_options): Remove ira_cover_class check.
8489 * ira-color.c: Remove mentioning cover classes from the file. Use
8490 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8491 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8492 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8493 (splay-tree.h): Remove include.
8494 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8495 before copy_freq_compare_func.
8496 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8497 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8499 (hard_regs_roots, hard_regs_node_vec): Ditto.
8500 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8501 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8502 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8503 (create_new_object_hard_regs_node): Ditto.
8504 (add_new_object_hard_regs_node_to_forest): Ditto.
8505 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8506 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8508 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8509 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8510 (remove_unused_object_hard_regs_nodes): Ditto.
8511 (enumerate_object_hard_regs_nodes): Ditto.
8512 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8513 (object_hard_regs_subnode_t): Ditto.
8514 (struct object_hard_regs_subnode): Ditto.
8515 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8516 (setup_object_hard_regs_subnode_index): Ditto.
8517 (get_object_hard_regs_subnodes_num): Ditto.
8518 (form_object_hard_regs_nodes_forest): Ditto.
8519 (finish_object_hard_regs_nodes_tree): Ditto.
8520 (finish_object_hard_regs_nodes_forest): Ditto.
8521 (allocnos_have_intersected_live_ranges_p): Rename to
8522 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8523 (pseudos_have_intersected_live_ranges_p): Rename to
8524 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8525 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8526 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8527 (update_copy_costs): Remove assert. Skip cost update if the hard
8528 reg does not belong the class.
8529 (assign_hard_reg): Process only profitable hard regs.
8530 (uncolorable_allocnos_num): Make it scalar.
8531 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8532 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8533 and ira_reg_class_max_nregs.
8534 (bucket_allocno_compare_func): Check frequency first.
8535 (sort_bucket): Add compare function as a parameter.
8536 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8537 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8538 (push_allocno_to_stack): Rewrite for checking new allocno
8540 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8541 (push_only_colorable): Pass new parameter to sort_bucket.
8542 (push_allocno_to_spill): Remove.
8543 (allocno_spill_priority_compare): Make it inline and rewrite.
8544 (splay_tree_allocate, splay_tree_free): Remove.
8545 (allocno_spill_sort_compare): New function.
8546 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8547 build and use splay tree. Choose first allocno in uncolorable
8548 allocno bucket to spill. Remove setting spill cost.
8549 (all_conflicting_hard_regs): Remove.
8550 (setup_allocno_available_regs_num): Check only profitable hard
8551 regs. Print info about hard regs nodes.
8552 (setup_allocno_left_conflicts_size): Remove.
8553 (put_allocno_into_bucket): Don't call
8554 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8555 (improve_allocation): New.
8556 (color_allocnos): Call setup_profitable_hard_regs,
8557 form_object_hard_regs_nodes_forest, improve_allocation,
8558 finish_object_hard_regs_nodes_forest. Setup spill cost.
8559 (print_loop_title): Use pressure classes.
8560 (color_allocnso): Ditto.
8561 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8562 and allocnos_for_spilling.
8563 (ira_sort_regnos_for_alter_reg): Don't setup members
8564 {first,next}_coalesced_allocno.
8565 (color): Remove allocating and freeing removed_splay_allocno_vec.
8566 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8567 prohibited_class_mode_regs.
8569 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8571 (update_allocno_pressure_excess_length): Use pressure classes.
8572 (inc_register_pressure, dec_register_pressure): Check for pressure
8574 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8575 pressure class. Use ira_reg_class_nregs instead of
8576 ira_reg_class_max_nregs.
8577 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8578 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8579 (single_reg_class): Use ira_reg_class_nregs instead of
8580 ira_reg_class_max_nregs.
8581 (process_bb_node_lives): Use pressure classes.
8583 * ira-emit.c: Remove mentioning cover classes from the file. Use
8584 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8585 (change_loop): Use pressure classes.
8586 (modify_move_list): Call ira_set_allocno_class instead of
8587 ira_set_allocno_cover_class.
8589 * ira-build.c: Remove mentioning cover classes from the file. Use
8590 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8591 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8592 ALLOCNO_UPDATED_CLASS_COST instead of
8593 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8594 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8595 (ira_create_allocno): Remove initialization of
8596 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8597 ALLOCNO_COLORABLE_P.
8598 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8599 Update conflict regs for the objects.
8600 (create_cap_allocno): Remove assert. Don't propagate
8601 ALLOCNO_AVAILABLE_REGS_NUM.
8602 (ira_free_allocno_costs): New function.
8603 (finish_allocno): Change a part of code into call of
8604 ira_free_allocno_costs.
8605 (low_pressure_loop_node_p): Use pressure classes.
8606 (object_range_compare_func): Don't compare classes.
8607 (setup_min_max_conflict_allocno_ids): Ditto.
8609 * loop-invariant.c: Remove mentioning cover classes from the file.
8610 Use ira_pressure_classes and ira_pressure_classes_num instead of
8611 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8612 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8613 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8614 Use reg_allocno_class instead of reg_cover_class.
8615 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8616 STACK_REG_COVER_CLASS.
8617 (get_regno_cover_class): Rename to get_regno_pressure_class.
8618 (move_loop_invariants): Initialize and finalize regstat.
8620 * ira.c: Remove mentioning cover classes from the file. Add
8621 comments about coloring without cover classes. Use ALLOCNO_CLASS
8622 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8623 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8624 setup_class_subset_and_memory_move_costs.
8625 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8626 (setup_cover_and_important_classes): Rename to
8627 setup_allocno_and_important_classes.
8628 (setup_class_translate_array): New.
8629 (setup_class_translate): Call it for allocno and pressure classes.
8630 (cover_class_order): Rename to allocno_class_order.
8631 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8632 of ira_class_translate.
8633 (reorder_important_classes): Set up ira_important_class_nums.
8634 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8635 (print_class_cover): Rename to print_classes. Add parameter.
8636 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8637 Print pressure classes too.
8638 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8639 setup_reg_subclasses.
8640 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8641 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8642 (setup_prohibited_class_mode_regs): Use
8643 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8644 (clarify_prohibited_class_mode_regs): New function.
8645 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8646 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8647 (ira_init_once): Initialize them.
8648 (free_register_move_costs): Process them.
8649 (ira_init): Move calls of find_reg_classes and
8650 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8651 Call clarify_prohibited_class_mode_regs.
8652 (ira_no_alloc_reg): Remove.
8653 (too_high_register_pressure_p): Use pressure classes.
8655 * sched-deps.c: Remove mentioning cover classes from the file.
8656 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8657 ira_pressure_classes and ira_pressure_classes_num instead of
8658 ira_reg_class_cover_size and ira_reg_class_cover.
8659 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8660 sched_regno_pressure_class instead of sched_regno_cover_class.
8661 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8662 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8664 * ira.h: Add 2010 to Copyright.
8665 (ira_no_alloc_reg): Remove external.
8666 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8667 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8668 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8669 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8670 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8671 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8672 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8673 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8674 x_ira_no_alloc_regs.
8675 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8676 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8677 ira_allocno_classes_num and ira_allocno_classes.
8678 (ira_class_translate): Rename to ira_allocno_class_translate.
8679 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8680 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8681 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8682 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8683 (ira_no_alloc_regs): New.
8685 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8686 classes from the file. Use ALLOCNO_CLASS instead of
8687 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8688 ALLOCNO_COVER_CLASS_COST.
8689 (regno_cover_class): Rename to regno_aclass.
8690 (record_reg_classes): Use ira_reg_class_subunion instead of
8691 ira_reg_class_union.
8692 (record_address_regs): Check overflow.
8693 (scan_one_insn): Ditto.
8694 (print_allocno_costs): Print total mem cost fore regional allocation.
8695 (print_pseudo_costs): Use REG_N_REFS.
8696 (find_costs_and_classes): Use classes intersected with them on the
8697 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8698 ira_reg_class_union. Use ira_allocno_class_translate and
8699 regno_aclass instead of ira_class_translate and regno_cover_class.
8700 Modify code for finding regno_aclass. Setup preferred classes for
8702 (setup_allocno_cover_class_and_costs): Rename to
8703 setup_allocno_class_and_costs. Use regno_aclass instead of
8704 regno_cover_class. Use ira_set_allocno_class instead of
8705 ira_set_allocno_cover_class.
8706 (init_costs, finish_costs): Use regno_aclass instead of
8708 (ira_costs): Use setup_allocno_class_and_costs instead of
8709 setup_allocno_cover_class_and_costs.
8710 (ira_tune_allocno_costs_and_cover_classes): Rename to
8711 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8712 by processing objects. Use ira_reg_class_max_nregs instead of
8713 ira_reg_class_nregs.
8715 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8717 * sched-int.h: Remove mentioning cover classes from the file.
8718 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8720 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8721 classes from the file.
8722 (struct reg_pref): Rename coverclass into allocnoclass.
8723 (reg_cover_class): Rename to reg_allocno_class.
8725 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8727 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8729 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8731 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8733 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8735 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8737 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8739 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8741 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8743 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8745 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8746 (i386_ira_cover_classes): Ditto.
8748 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8750 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8752 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8754 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8756 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8758 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8760 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8761 (mips_ira_cover_classes): Ditto.
8763 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8765 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8767 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8769 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8771 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8773 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8774 (IRA_COVER_CLASSES_VSX): Ditto.
8776 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8777 (rs6000_ira_cover_classes): Ditto.
8779 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8781 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8783 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8785 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8787 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8789 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8791 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8793 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8795 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8797 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8799 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8802 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8803 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8804 dw_fde_unlikely_section_end_label, cold_in_std_section,
8805 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8806 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8808 (output_fde): Use dw_fde_second_{begin,end} if second is
8809 true, otherwise dw_fde_{begin,end}.
8810 (output_call_frame_info): Test dw_fde_second_begin != NULL
8811 instead of dw_fde_switched_sections.
8812 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8813 fields, initialize new fields. Initialize in_std_section
8814 unconditionally from the first partition.
8815 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8816 dw_fde_second_begin is non-NULL.
8817 (dwarf2out_switch_text_section): Stop initializing removed
8818 dw_fde_struct fields, initialize new fields, initialize
8819 also dw_fde_end here. Set dw_fde_switch_cfi even when
8820 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8821 (struct var_loc_list_def): Add last_before_switch field.
8822 (arange_table, arange_table_allocated, arange_table_in_use,
8823 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8824 (size_of_aranges): Count !in_std_section and !second_in_std_section
8825 hunks in fdes, instead of looking at arange_table_in_use.
8826 (output_aranges): Add aranges_length argument, don't call
8827 size_of_aranges here. Instead of using aranges_table*
8828 emit ranges for fdes when !in_std_section resp.
8829 !second_in_std_section.
8830 (dw_loc_list): Break ranges crossing section switch.
8831 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8832 use dw_fde_second_end instead of dw_fde_end as end of last range.
8833 (gen_subprogram_die): Don't call add_arange. Use
8834 dw_fde_{begin,end} for first partition and if switched
8835 section dw_fde_second_{begin,end} for the second.
8836 (var_location_switch_text_section_1,
8837 var_location_switch_text_section): New functions.
8838 (dwarf2out_begin_function): Initialize cold_text_section even
8839 when function_section () isn't text_section.
8840 (prune_unused_types): Don't walk arange_table.
8841 (dwarf2out_finish): Don't needlessly test
8842 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8843 If info_section_emitted, call size_of_aranges and if it indicates
8844 non-empty .debug_aranges, call output_aranges with the computed
8845 size. Stop using removed dw_fde_struct fields, use
8846 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8850 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8851 create ENTRY_VALUE if incoming or address of incoming's MEM
8853 * dwarf2out.c (mem_loc_descriptor): Don't emit
8854 DW_OP_GNU_entry_value of DW_OP_fbreg.
8855 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8856 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8857 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8858 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8860 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8861 is a REG_P or MEM_P with REG_P address, compute hash directly
8862 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8863 (preserve_only_constants): Don't clear VALUES forwaring
8864 ENTRY_VALUE to some other VALUE.
8866 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8868 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8871 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8873 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8874 block before expanding the statement.
8875 (expand_gimple_stmt_1): Likewise. Set them here...
8876 (expand_gimple_stmt): ...and not here. Tidy.
8877 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8880 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8882 * Makefile.in: New rule for cprop.o.
8883 * gcse.c: Move constant/copy propagation to cprop.c.
8884 (compute_local_properties): Only handle expression tables.
8885 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8886 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8887 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8888 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8889 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8890 compute_cprop_data, find_used_regs, try_replace_reg,
8891 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8892 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8893 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8894 find_bypass_set, reg_killed_on_edge, bypass_block,
8895 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8896 execute_rtl_cprop, pass_rtl_cprop): Move to...
8897 * cprop.c: ...here. New file, constant/copy propagation for RTL
8898 moved from gcse.c to here with minor cleanups in duplicated code.
8900 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8902 * config/i386/i386.c (flag_opts): Fix a typo in
8903 -mavx256-split-unaligned-store.
8905 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8907 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8908 LIBCALL_VALUE): Remove macros.
8909 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8910 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8911 (h8300_function_value, h8300_libcall_value,
8912 h8300_function_value_regno_p): New functions.
8914 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8916 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8918 2011-03-28 Jeff Law <law@redhat.com>
8920 * tree-ssa-threadupdate.c (redirect_edges): Call
8921 create_edge_and_update_destination_phis as needed.
8922 (create_edge_and_update_destination_phis): Accept new BB argument.
8923 All callers updated.
8924 (thread_block): Do not update the profile when threading around
8925 intermediate blocks.
8926 (thread_single_edge): Likewise.
8927 (determine_bb_domination_status): If BB is not a successor of the
8928 loop header, return NONDOMINATING.
8929 (register_jump_thread): Note when we register a jump thread around
8930 an intermediate block.
8931 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8932 (thread_across_edge): Use it.
8934 2011-03-28 Tristan Gingold <gingold@adacore.com>
8936 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8937 when for_return is 2.
8939 2011-03-28 Jeff Law <law@redhat.com>
8941 * var-tracking.c (canonicalize_values_mark): Delete unused
8943 (canonicalize_values_star, set_variable_part): Likewise.
8944 (clobber_variable_part, delete_variable_part): Likewise.
8946 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8948 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8950 2011-03-28 Martin Jambor <mjambor@suse.cz>
8952 * tree-inline.c (expand_call_inline): Do not check that destination
8954 (optimize_inline_calls): Assert that destination node is analyzed.
8955 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8956 not call tree_lowering_passes.
8957 * cgraph.h (cgraph_analyze_function): Declare.
8958 * cgraphunit.c (cgraph_analyze_function): Make public.
8960 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8962 * config/sparc/sparc-opts.h: New.
8963 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8964 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8965 (sparc_option_override): Store processor_type enumeration rather
8966 than string in cpu_default. Remove name and enumeration from
8967 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8968 without using sparc_select. Use target_flags_explicit instead of
8970 * config/sparc/sparc.h (enum processor_type): Move to
8972 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8973 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8974 HeaderInclude entry.
8975 (mcpu=, mtune=): Use Var and Enum.
8976 (sparc_processor_type): New Enum and EnumValue entries.
8978 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8979 Iain Sandoe <iains@gcc.gnu.org>
8982 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8984 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8986 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8987 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8988 Insert new statements at it in lieu of STMT.
8989 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8990 * tree-vect-stmts.c (vectorizable_store): Likewise.
8991 (vectorizable_load): Likewise.
8993 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8995 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9000 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9002 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9003 unaligned 256bit load/store.
9004 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9005 (*avx_movdqu<avxmodesuffix>): Likewise.
9007 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9010 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9011 * config/pa/pa.md (iordi3): Use new predicate in expander.
9014 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9016 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9017 FUNCTION_VALUE_REGNO_P): Remove macros.
9018 * config/mips/mips-protos.h (mips_function_value): Remove.
9019 * config/mips/mips.c (mips_function_value): Rename to...
9020 (mips_function_value_1): ... this. Make static. Handle receiving
9021 the function type in 'fn_decl_or_type' argument.
9022 (mips_function_value, mips_libcall_value,
9023 mips_function_value_regno_p): New function.
9024 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9025 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9027 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9029 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9030 and -mavx256-split-unaligned-store.
9031 (ix86_option_override_internal): Split 32-byte AVX unaligned
9032 load/store by default.
9033 (ix86_avx256_split_vector_move_misalign): New.
9034 (ix86_expand_vector_move_misalign): Use it.
9036 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9037 -mavx256-split-unaligned-store.
9039 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9040 256bit load/store. Generate unaligned store on misaligned memory
9042 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9044 (*avx_movdqu<avxmodesuffix>): Likewise.
9046 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9047 -mavx256-split-unaligned-store.
9049 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9052 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9055 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9057 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9058 opno arguments with an expand_operand. Use create_input_operand.
9059 (mips_prepare_builtin_target): Delete.
9060 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9062 (mips_expand_builtin_direct): Use create_output_operand and
9063 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9064 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9065 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9067 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9069 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9071 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9073 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9075 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9076 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9077 basic blocks and call commit_edge_insertions directly.
9078 (fixup_abnormal_edges): Move from here to...
9079 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9080 on the edges and return whether some have actually been inserted.
9081 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9084 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9086 PR rtl-optimization/48144
9087 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9088 (merge_expr_data): ... here.
9089 (av_set_intersect): Rename to av_set_code_motion_filter.
9090 Update all callers. Call merge_history_vect when an expression
9091 is found in both sets.
9092 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9094 2011-03-26 Alan Modra <amodra@gmail.com>
9096 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9097 cmodel medium addresses.
9098 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9099 64-bit gpr loads and stores.
9100 (rs6000_secondary_reload_ppc64): New function.
9101 * config/rs6000/rs6000-protos.h: Declare it.
9102 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9104 2011-03-26 Alan Modra <amodra@gmail.com>
9107 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9108 GNU Go in traceback table.
9110 2011-03-25 Richard Henderson <rth@redhat.com>
9112 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9113 if there are exactly 6 operands.
9114 (set_storage_via_setmem): Similarly.
9116 2011-03-25 Kai Tietz <ktietz@redhat.com>
9118 * collect2.c (write_c_file_stat): Handle backslash
9119 as right-hand directory separator.
9120 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9121 checking just for slash.
9122 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9123 instead of checking for trailing slash.
9124 * gcc.c (record_temp_file): Use filename_cmp instead
9126 (do_spec_1): Likewise.
9127 (replace_outfile_spec_function): Likewise.
9128 (is_directory): Use filename_ncmp instead of strncmp.
9129 (print_multilib_info): Likewise.
9130 * gcov.c (find_source): Use filename_cmp instead
9132 (make_gcov_file_name): Fix order of slash/backslash
9134 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9135 (add_standard_paths): Likewise.
9136 * mips-tfile.c (saber_stop): Handle backslash.
9137 * prefix.c (update_path): Use filename_ncmp instead of
9139 * profile.c (output_location): Use filename_cmp instead
9141 * read-md.c (handle_toplevel_file): Handle backslash.
9142 * tlink.c (frob_extension): Likewise.
9143 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9145 * tree-dump.c (dequeue_and_dump): Handle backslash.
9146 * tree.c (get_file_function_name): Likewise.
9147 * gengtype.c (read_input_list): Likewise.
9148 (get_file_realbasename): Likewise.
9149 (get_output_file_with_visibility): Use filename_cmp
9152 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9154 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9157 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9159 * fold-const.c (expr_location_or): New function.
9160 (fold_truth_not_expr): Call it.
9162 2011-03-25 Jeff Law <law@redhat.com>
9164 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9166 * c-family/c-common.c (def_fn_type): Likewise.
9167 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9168 * emit-rtl.c (gen_rtvec): Likewise.
9169 * lto/lto-lang.c (def_fn_type): Likewise.
9171 2011-03-25 Richard Guenther <rguenther@suse.de>
9173 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9174 also generate copies.
9175 (fini_copy_prop): Handle constant values properly.
9177 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9179 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9180 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9181 (hash_loc_operands, compare_loc_operands): Handle
9182 DW_OP_GNU_entry_value.
9184 2011-03-25 Kai Tietz <ktietz@redhat.com>
9186 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9187 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9188 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9189 comment and use macro TARGET_64BIT_MS_ABI instead.
9190 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9191 and change default behavior for 32-bit MS_ABI.
9192 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9193 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9195 (ix86_cfun_abi): Likewise.
9196 (ix86_maybe_switch_abi): Adjust comment.
9197 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9198 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9199 instead of checking for SYSV_ABI.
9200 (ix86_nsaved_sseregs): Likewise.
9201 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9203 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9204 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9205 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9206 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9207 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9209 2011-03-25 Richard Guenther <rguenther@suse.de>
9211 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9212 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9213 (verify_gimple): Remove.
9214 * tree-cfg.c (verify_gimple_call): Merge verification
9216 (verify_gimple_phi): Merge verification from verify_stmts.
9217 (verify_gimple_label): New function.
9218 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9219 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9220 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9221 (verify_stmts): Rename to verify_gimple_in_cfg.
9222 (verify_gimple_in_cfg): New function.
9223 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9224 * tree-ssa.c (verify_ssa): Likewise.
9225 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9227 2011-03-25 Richard Guenther <rguenther@suse.de>
9229 * passes.c (init_optimization_passes): Add FRE pass after
9232 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9233 Andrew Stubbs <ams@codesourcery.com>
9235 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9237 (arm_movdi_vfp_cortexa8): New pattern.
9238 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9239 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9240 instructions when tuning for Cortex-A8. Set attribute "arch".
9241 * config/arm/arm.md: Move include arm-tune.md up a bit.
9242 (define_attr "arch"): Add "onlya8" and "nota8" values.
9243 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9245 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9249 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9251 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9252 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9253 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9254 * passes.c (init_optimization_passes): Move
9255 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9257 2011-03-25 Kai Tietz <ktietz@redhat.com>
9259 * c-typeck.c (comptypes_internal): Replace target
9260 hook call of comp_type_attributes by version in tree.c file.
9261 * gimple.c (gimple_types_compatible_p_1): Likewise.
9262 * tree-ssa.c (useless_type_conversion_p): Likewise.
9263 * tree.c (build_type_attribute_qual_variant): Likewise.
9264 (attribute_value_equal): New static helper function.
9265 (comp_type_attributes): New function.
9266 (merge_attributes): Use attribute_value_equal for comparison.
9267 (attribute_list_contained): Likewise.
9268 * tree.h (comp_type_attributes): New prototype.
9270 2011-03-25 Richard Guenther <rguenther@suse.de>
9272 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9273 of complex types at -O0.
9274 (verify_gimple_assign_binary): Likewise.
9275 (verify_gimple_assign_ternary): Likewise.
9277 2011-03-24 Mark Wielaard <mjw@redhat.com>
9279 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9280 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9282 2011-03-24 Mark Wielaard <mjw@redhat.com>
9285 * dwarf2out.c (output_abbrev_section): Only write table when
9286 abbrev_die_table_in_use > 1.
9288 2011-02-24 Richard Henderson <rth@redhat.com>
9290 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9291 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9292 (alpha_expand_unaligned_load_words): Use extql.
9293 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9294 (emit_insxl): Handle all modes for consistency.
9296 2011-02-24 Richard Henderson <rth@redhat.com>
9298 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9299 (alpha_expand_unaligned_load): Likewise.
9300 (alpha_expand_unaligned_store): Likewise.
9301 (alpha_expand_unaligned_load_words): Likewise.
9302 (alpha_expand_unaligned_store_words): Likewise.
9303 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9304 (alpha_split_lock_test_and_set_12): Likewise.
9305 (print_operand, alpha_fold_builtin_extxx): Likewise.
9306 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9307 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9308 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9309 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9310 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9311 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9312 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9313 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9314 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9315 (extwl, extll, extql): Similarly.
9316 (inswh, inslh, insqh): Similarly.
9317 (mskbl, mskwl, mskll, mskql): Similarly.
9318 (mskwh, msklh, mskqh): Similarly.
9320 2011-02-24 Richard Henderson <rth@redhat.com>
9322 * config/alpha/alpha.md (attribute isa): Add er, ner.
9323 (attribute enabled): Handle them.
9324 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9326 2011-02-24 Richard Henderson <rth@redhat.com>
9328 * config/alpha/alpha.md (attribute isa): Add vms.
9329 (attribute enabled): Handle it.
9330 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9331 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9332 (*movtf): Rename from *movtf_internal for consistency.
9333 (*movsi): Merge with *movsi_nt_vms.
9334 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9335 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9336 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9337 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9339 2011-02-24 Richard Henderson <rth@redhat.com>
9341 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9342 (extendqisi2, extendhisi2): Likewise.
9343 (extendqidi2): Simplify BWX/non-BWX expansions.
9344 (extendhidi2): Similarly.
9346 2011-02-24 Richard Henderson <rth@redhat.com>
9348 * config/alpha/alpha.md (attribute isa): New.
9349 (attribute enabled): New.
9350 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9351 (zero_extendqisi2, zero_extendqidi2): Similarly.
9352 (zero_extendhisi2, zero_extendhidi2): Similarly.
9353 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9355 2011-02-24 Richard Henderson <rth@redhat.com>
9357 * config/alpha/predicates.md (input_operand): Revert last change;
9358 update comment to mention 32-bit VMS rather than Windows.
9360 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9362 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9363 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9364 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9365 * passes.c (init_optimization_passes): Move
9366 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9368 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9370 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9372 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9374 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9377 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9380 * simplify-rtx.c (simplify_const_unary_operation): Call
9381 real_convert when changing mode class with FLOAT_EXTEND.
9383 2011-03-24 Nick Clifton <nickc@redhat.com>
9385 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9386 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9387 * config/rx/rx.c (rx_option_override): Set align_jumps,
9388 align_loops and align_labels if not set by the user.
9389 (rx_align_for_label): New function.
9390 (rx_max_skip_for_label): New function.
9391 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9392 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9393 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9394 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9395 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9397 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9399 PR rtl-optimization/48263
9400 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9401 and original commutative_p handling. Use maybe_gen_insn.
9403 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9405 * reload.c (find_reloads_subreg_address): Add address_reloaded
9406 parameter and return true there if the full address has been
9408 (find_reloads_toplev): Pass address_reloaded flag.
9409 (find_reloads_address_1): Don't use address_reloaded parameter.
9411 2011-03-24 Jeff Law <law@redhat.com>
9413 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9414 unused variable "ann".
9415 (remove_unused_locals): Likewise.
9417 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9420 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9423 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9425 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9426 for invalid symbolic addresses.
9427 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9430 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9432 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9433 the argument in calls to fold_truth_not_expr.
9435 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9437 * tree.c (record_node_allocation_statistics): New function.
9438 (make_node_stat, copy_node_stat, build_string): Call it.
9439 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9440 (build1_stat, build_omp_clause): Likewise.
9442 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9444 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9447 2011-03-24 Richard Guenther <rguenther@suse.de>
9449 PR tree-optimization/48271
9450 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9451 blocks that still exist.
9453 2011-03-24 Richard Guenther <rguenther@suse.de>
9455 PR tree-optimization/48270
9456 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9457 not free datarefs before ddrs.
9459 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9461 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9462 from the address built for a reference with variable offset.
9464 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9467 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9468 alternatives that can be handled with movq or movabsq insn.
9469 (*movdf_internal): Disable for !TARGET_64BIT.
9470 (*movdf_internal_nointeger): Ditto.
9471 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9473 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9475 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9476 (FUNCTION_ARG_ADVANCE): Likewise.
9477 * tm.texi.in: Change references to them to hook references.
9478 * tm.texi: Regenerate.
9479 * targhooks.c (default_function_arg): Eliminate check for target macro.
9480 (default_function_incoming_arg): Likewise.
9481 (default_function_arg_advance): Likewise.
9482 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9483 (function_arg_advance): Likewise.
9484 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9486 2011-03-24 Richard Guenther <rguenther@suse.de>
9489 * tree-object-size.c (addr_object_size): Do not double-account
9490 for MEM_REF offsets.
9492 2011-03-24 Diego Novillo <dnovillo@google.com>
9494 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9495 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9496 (lto_input_data_block): Move from lto-opts.c. Make extern.
9498 (lto_input_string): Rename from input_string. Make extern.
9500 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9501 output_string_with_length.
9502 Output 0 to indicate a non-NULL string. Update all callers to
9504 (lto_output_string): Rename from output_string. Make extern.
9506 (lto_output_decl_state_streams): Make extern.
9507 (lto_output_decl_state_refs): Make extern.
9508 * lto-streamer.h (lto_input_string): Declare.
9509 (lto_input_data_block): Declare.
9510 (lto_output_string): Declare.
9511 (lto_output_string_with_length): Declare.
9512 (lto_output_decl_state_streams): Declare.
9513 (lto_output_decl_state_refs): Declare.
9515 2011-03-24 Richard Guenther <rguenther@suse.de>
9517 PR tree-optimization/46562
9518 * tree.c (build_invariant_address): New function.
9519 * tree.h (build_invariant_address): Declare.
9520 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9521 a renamed function moved ...
9522 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9523 Take valueization callback parameter.
9524 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9525 * gimple-fold.h: New file.
9526 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9527 (ccp_fold, fold_const_aggregate_ref,
9528 fold_ctor_reference, fold_nonarray_ctor_reference,
9529 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9530 get_base_constructor): Move ...
9531 * gimple-fold.c: ... here.
9532 (gimple_fold_stmt_to_constant_1): New function
9533 split out from ccp_fold. Take a valueization callback parameter.
9534 Valueize all operands.
9535 (gimple_fold_stmt_to_constant): New wrapper function.
9536 (fold_const_aggregate_ref_1): New function split out from
9537 fold_const_aggregate_ref. Take a valueization callback parameter.
9538 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9539 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9540 invariant POINTER_PLUS_EXPRs to invariant form.
9541 (vn_valueize): New function.
9542 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9543 * tree-vrp.c (vrp_valueize): New function.
9544 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9545 to fold statements to constants.
9546 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9547 function declarations.
9548 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9549 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9551 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9553 * config/h8300/predicates.md (jump_address_operand): Fix register
9556 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9558 * doc/invoke.texi (max-stores-to-sink): Document.
9559 * params.h (MAX_STORES_TO_SINK): Define.
9560 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9561 if either vectorization or if-conversion is disabled.
9562 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9563 tree-vect-data-refs.c vect_equal_offsets.
9564 (dr_equal_offsets_p): New function.
9565 (find_data_references_in_bb): Remove static.
9566 * tree-data-ref.h (find_data_references_in_bb): Declare.
9567 (dr_equal_offsets_p): Likewise.
9568 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9569 (vect_drs_dependent_in_basic_block): Update calls to
9571 (vect_check_interleaving): Likewise.
9572 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9573 (cond_if_else_store_replacement): Rename to...
9574 (cond_if_else_store_replacement_1): ... this. Change arguments and
9576 (cond_if_else_store_replacement): New function.
9577 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9578 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9580 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9583 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9584 to subtract lower bound instead of GEN_INT().
9586 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9591 * doc/extend.texi (Alignment): Move section to match order in TOC.
9592 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9593 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9595 2011-03-23 Jeff Law <law@redhat.com>
9597 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9598 before removing the edge.
9600 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9601 it may have been freed by redirect_branch_edge or
9602 redirect_edge_succ_nodup.
9604 2011-03-23 Richard Guenther <rguenther@suse.de>
9606 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9607 (check_va_list_escapes): Likewise.
9608 (check_all_va_list_escapes): Likewise.
9610 2011-03-23 Richard Guenther <rguenther@suse.de>
9612 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9613 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9614 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9615 (alias.o): Likewise.
9616 (ipa-type-escape.o): Remove.
9617 (ipa-struct-reorg.o): Likewise.
9618 (GTFILES): Remove ipa-struct-reorg.c.
9619 * alias.c: Do not include ipa-type-escape.h.
9620 * tree-ssa-alias.c: Likewise.
9621 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9622 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9623 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9624 and ipa-type-escape passes.
9625 * tree-pass.h (pass_ipa_type_escape): Remove.
9626 (pass_ipa_struct_reorg): Likewise.
9627 * ipa-struct-reorg.h: Remove.
9628 * ipa-struct-reorg.c: Likewise.
9629 * ipa-type-escape.h: Likewise.
9630 * ipa-type-escape.c: Likewise.
9631 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9632 (--param struct-reorg-cold-struct-ratio): Likewise.
9633 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9634 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9635 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9637 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9639 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9640 cpu attribute value.
9641 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9642 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9643 * config/s390/s390.c (processor_flags_table): New constant array.
9644 (s390_handle_arch_option): Remove.
9645 (s390_handle_option): Remove s390_handle_arch_option invocations
9646 and OPT_mwarn_framesize_ handling.
9647 (s390_option_override): Remove s390_handle_arch_option invocation.
9648 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9650 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9651 * config/s390/s390.opt (s390_tune, s390_arch)
9652 (march=): Replace s390_arch_option enum and values with
9653 processor_type. Set variable name to s390_arch. Set
9654 initialization value.
9655 (mtune=): Replace s390_arch_option with processor_type. Set
9656 variable name to s390_tune. Set initialization value.
9658 2011-03-23 Julian Brown <julian@codesourcery.com>
9660 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9661 accesses which are not naturally aligned.
9663 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9666 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9668 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9670 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9671 parameter from "int" to "enum insn_code".
9672 (expand_operand_type): New enum.
9673 (expand_operand): New structure.
9674 (create_expand_operand): New function.
9675 (create_fixed_operand, create_output_operand): Likewise
9676 (create_input_operand, create_convert_operand_to): Likewise.
9677 (create_convert_operand_from, create_address_operand): Likewise.
9678 (create_integer_operand): Likewise.
9679 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9680 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9681 (expand_insn, expand_jump_insn): Likewise.
9682 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9683 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9684 (expand_movstr, expand_builtin___clear_cache): Likewise.
9685 (expand_builtin_lock_release): Likewise.
9686 * explow.c (allocate_dynamic_stack_space): Likewise.
9687 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9688 and use the default handling in that case.
9689 * expmed.c (check_predicate_volatile_ok): Delete.
9690 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9691 (emit_cstore): Likewise.
9692 * expr.c (emit_block_move_via_movmem): Likewise.
9693 (set_storage_via_setmem, expand_assignment): Likewise.
9694 (emit_storent_insn, try_casesi): Likewise.
9695 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9696 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9697 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9698 (expand_twoval_unop, expand_twoval_binop): Likewise.
9699 (expand_unop_direct, emit_indirect_jump): Likewise.
9700 (emit_conditional_move, vector_compare_rtx): Likewise.
9701 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9702 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9703 (expand_sync_lock_test_and_set): Likewise.
9704 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9705 (emit_unop_insn): Likewise.
9706 (expand_copysign_absneg): Change icode to an insn_code.
9707 (create_convert_operand_from_type): New function.
9708 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9709 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9710 (expand_insn, expand_jump_insn): Likewise.
9711 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9712 than const_int_operand for operand 2.
9714 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9716 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9719 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9721 * emit-rtl.c (emit_pattern_before_noloc): New function.
9722 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9723 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9724 (emit_pattern_after_noloc): New function.
9725 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9726 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9728 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9730 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9731 (__ffsDI2): Likewise.
9733 2011-03-22 Richard Henderson <rth@redhat.com>
9735 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9736 of !TARGET_ABI_OPEN_VMS.
9737 (alpha_trampoline_init, alpha_start_function): Likewise.
9738 (alpha_expand_epilogue, alpha_file_start): Likewise.
9739 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9740 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9741 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9742 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9743 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9747 * config/s390/s390-opts.h: New.
9748 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9749 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9750 s390_stack_guard): Remove.
9751 (s390_handle_arch_option): Return void. Take enum
9752 s390_arch_option value instead of string and searching array.
9753 (s390_handle_option): Don't assert that global structures are in
9754 use. Access variables via opts pointer. Use error_at. Don't use
9755 sscanf for -mstack-guard= or -mstack-size=. Update call to
9756 s390_handle_arch_option.
9757 (s390_option_override): Update call to s390_handle_arch_option.
9758 (s390_emit_prologue): Use %d format for s390_stack_size in
9759 diagnostic. Use %wd for HOST_WIDE_INT.
9760 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9761 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9762 * config/s390/s390.opt (config/s390/s390-opts.h): New
9763 HeaderInclude entry.
9764 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9765 s390_arch_flags, s390_warn_framesize): New Variable entries.
9766 (s390_arch_option): New Enum and EnumValue entries.
9767 (march=): Use Enum instead of Var.
9768 (mstack-guard=, mstack-size=): Use UInteger and Var.
9771 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9773 * config/score/score.c (score_handle_option): Don't assert that
9774 global structures are in use. Access target_flags via opts
9775 pointer. Use value of -march= option to determine target_flags
9777 * config/score/score.opt (march=): Use Enum.
9778 (score_arch): New Enum and EnumValue entries.
9780 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9782 * config/mep/mep.c (option_mtiny_specified): Remove.
9783 (mep_option_override): Move register handling for -mivc2 from
9784 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9785 instead of option_mtiny_specified.
9786 (mep_handle_option): Access target_flags via opts pointer. Don't
9787 assert that global structures are in use. Defer part of -mivc2
9788 handling and move it to mep_option_override.
9789 * config/mep/mep.opt (IVC2): New Mask entry.
9790 (mivc2): Use Var and Defer instead of Mask.
9792 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9794 * config/v850/v850-opts.h: New.
9795 * config/v850/v850.c (small_memory): Replace with
9796 small_memory_physical_max array. Make that array static const.
9797 (v850_handle_memory_option): Take integer value of argument. Take
9798 gcc_options pointer, option text and location. Return void.
9799 Update for changes to small memory structures.
9800 (v850_handle_option): Access target_flags via opts pointer. Don't
9801 assert that global structures are in use. Update calls to
9802 v850_handle_memory_option.
9803 (v850_encode_data_area): Update references to small memory settings.
9804 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9805 (enum small_memory_type): Move to v850-opts.h.
9806 * config/v850/v850.opt (config/v850/v850-opts.h): New
9807 HeaderInclude entry.
9808 (small_memory_max): New Variable entry.
9809 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9810 (mtda, mzda): Likewise.
9812 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9814 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9815 pointer. Don't assert that global structures are in use.
9817 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9819 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9820 via opts pointer. Don't assert that global structures are in use.
9822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9824 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9825 (munix=93): Use Var.
9826 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9827 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9828 * config/pa/pa-opts.h: New.
9829 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9830 (pa_handle_option): Don't assert that global structures are in
9831 use. Access target_flags via opts pointer. Don't handle
9832 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9834 (pa_option_override): Handle deferred OPT_mfixed_range_.
9836 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9838 * config/mn10300/mn10300-opts.h: New.
9839 * config/mn10300/mn10300.c (mn10300_processor,
9840 mn10300_tune_string): Remove.
9841 (mn10300_handle_option): Don't assert that global structures are
9842 in use. Access mn10300_processor via opts pointer. Don't handle
9844 * config/mn10300/mn10300.h (enum processor_type): Move to
9846 (mn10300_processor): Remove.
9847 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9848 HeaderInclude entry.
9849 (mn10300_processor): New Variable entry.
9852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9854 * config/microblaze/microblaze.c: Don't include opts.h.
9855 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9856 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9857 (mno-clearbss): Use Var and Warn.
9859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9861 * config/m32r/m32r-opts.h: New.
9862 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9863 (m32r_handle_option): Don't assert that global structures are in
9864 use. Access target_flags and m32r_cache_flush_func via opts
9865 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9866 OPT_mno_flush_trap here.
9867 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9868 include of m32r-opts.h.
9869 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9870 HeaderInclude entry.
9871 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9872 (mmodel=): Use Enum and Var.
9873 (m32r_model): New Enum and EnumValue entries.
9874 (mno-flush-trap): Use Var.
9875 (msdata=): Use Enum and Var.
9876 (m32r_sdata): New Enum and EnumValue entries.
9878 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9880 * config/m32c/m32c.c: Don't include opts.h.
9881 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9882 m32c_handle_option): Remove.
9883 (m32c_option_override): Check global_options_set.x_target_memregs
9884 instead of target_memregs_set.
9885 * config/m32c/m32c.h (target_memregs): Remove.
9886 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9889 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9891 * config/iq2000/iq2000-opts.h: New.
9892 * config/iq2000/iq2000.c: Don't include opts.h.
9893 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9894 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9895 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9896 HeaderInclude entry.
9897 (iq2000_tune): New Variable entry.
9898 (march=): Add comment. Use Enum.
9899 (iq2000_arch): New Enum and EnumValue entries.
9900 (mcpu=): Use Enum and Var.
9901 (iq2000_tune): New Enum and EnumValue entries.
9903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9905 * config/ia64/ia64-opts.h: New.
9906 * config/ia64/ia64.c (ia64_tune): Remove.
9907 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9909 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9910 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9911 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9912 HeaderInclude entry.
9913 (ia64_tune): New Variable entry.
9914 (mfixed-range=): Use Defer and Var.
9915 (mtune=): Use Enum and Var.
9916 (ia64_tune): New Enum and EnumValue entries.
9918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9920 * config/frv/frv-opts.h: New.
9921 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9923 (frv_cpu_type): Remove.
9924 * config/frv/frv.c: Don't include opts.h.
9925 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9926 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9927 (frv_cpu_type): New Variable entry.
9928 (frv_cpu): New Enum and EnumValue entries.
9930 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9932 * config/cris/cris.c (cris_handle_option): Access target_flags via
9933 opts pointer. Don't assert that global structures are in use.
9934 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9935 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9937 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9939 * config/bfin/bfin-opts.h: New.
9940 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9941 bfin_si_revision, bfin_workarounds): Remove.
9942 (bfin_cpus): Make static const.
9943 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9944 not bfin_lib_id_given.
9945 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9946 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9947 pointer. Use error_at. Don't assert that global structures are in use.
9948 * config/bfin/bfin.h: Include bfin-opts.h.
9949 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9950 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9951 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9952 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9955 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9957 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9958 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9959 or -msoft-float here.
9960 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9961 -msoft-float and -mhard-float.
9962 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9963 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9965 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9967 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9968 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9970 (LIBGCC_SPEC): Don't handle -msoft-float.
9971 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9973 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9975 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9976 -mfloat-abi=*, not -msoft-float and -mhard-float.
9977 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9979 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9980 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9981 mhard-float and msoft-float.
9982 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9983 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9984 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9985 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9987 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9988 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9990 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9992 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9995 2011-03-22 Richard Henderson <rth@redhat.com>
9997 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9998 TARGET_ABI_WINDOWS_NT.
9999 (alpha_output_function_end_prologue): Likewise.
10000 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10001 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10002 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10003 (trap, *movsi_nt_vms): Likewise.
10004 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10005 (*tablejump_osf_nt_internal): Remove.
10006 * config/alpha/predicates.md (input_operand): Only test Pmode.
10008 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10010 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10011 via opts pointer. Use error_at. Don't assert that global
10012 structures are in use.
10014 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10016 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10017 (ix86_handle_option): Access ix86_isa_flags and
10018 ix86_isa_flags_explicit via opts pointer. Don't assert that
10019 global structures are in use.
10020 (ix86_function_specific_save, ix86_function_specific_restore):
10021 Update ix86_isa_flags_explicit field name.
10022 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10023 (ix86_isa_flags_explicit): Rename TargetSave entry to
10024 x_ix86_isa_flags_explicit.
10026 2011-03-22 Richard Henderson <rth@redhat.com>
10028 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10029 (alpha_option_override, direct_return): Likewise.
10030 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10031 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10032 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10033 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10034 (alpha_expand_epilogue, alpha_end_function): Likewise.
10035 (alpha_init_libfuncs): Likewise.
10036 (struct machine_function): Remove unicosmk members.
10037 (print_operand) ['t']: Remove.
10038 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10039 unicosmk_output_module_name, unicosmk_output_common,
10040 current_section_align, unicosmk_output_text_section_asm_op,
10041 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10042 unicosmk_section_type_flags, unicosmk_unique_section,
10043 unicosmk_asm_named_section, unicosmk_insert_attributes,
10044 unicosmk_output_align, unicosmk_defer_case_vector,
10045 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10046 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10047 unicosmk_output_ssib, unicosmk_add_call_info_word,
10048 unicosmk_extern_head, unicosmk_output_default_externs,
10049 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10050 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10051 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10052 * config/alpha/alpha-protos.h: Update.
10053 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10054 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10055 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10056 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10057 (*mulsi_se, mulvsi3): Likewise.
10058 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10059 (*divmodsi_internal, call, call_value, realign): Likewise.
10060 (moddi3, umoddi3): Likewise; remove duplicate expander.
10061 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10062 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10063 (*movdi_nofix): Remove r/U alternative.
10064 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10065 * config/alpha/constraints.md ("U"): Remove.
10066 * config/alpha/predicates.md (call_operand"): Don't test
10067 TARGET_ABI_UNICOSMK.
10069 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10071 * target.def (handle_option): Take gcc_options and
10072 cl_decoded_option pointers and location_t.
10073 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10074 * doc/tm.texi: Regenerate.
10075 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10076 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10077 * lto-opts.c (lto_reissue_options): Generate option structure for
10078 targetm.handle_option call.
10079 * opts.c (target_handle_option): Update call to
10080 targetm.handle_option. Remove assertions about values now passed
10082 * targhooks.c (default_target_handle_option): New.
10083 * targhooks.h (default_target_handle_option): Declare.
10084 * config/alpha/alpha.c: Include opts.h.
10085 (alpha_handle_option): Update to new hook interface.
10086 * config/arm/arm.c: Include opts.h.
10087 (arm_handle_option): Update to new hook interface.
10088 * config/arm/t-arm (arm.o): Update dependencies.
10089 * config/bfin/bfin.c: Include opts.h.
10090 (bfin_handle_option): Update to new hook interface.
10091 * config/cris/cris.c: Include opts.h.
10092 (cris_handle_option): Update to new hook interface.
10093 * config/frv/frv.c: Include opts.h.
10094 (frv_handle_option): Update to new hook interface.
10095 * config/i386/i386.c: Include opts.h.
10096 (ix86_handle_option): Update to new hook interface.
10097 (ix86_valid_target_attribute_inner_p): Generate option structure
10098 for call to ix86_handle_option.
10099 * config/i386/t-i386 (i386.o): Update dependencies.
10100 * config/ia64/ia64.c: Include opts.h.
10101 (ia64_handle_option): Update to new hook interface.
10102 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10103 * config/iq2000/iq2000.c: Include opts.h.
10104 (iq2000_handle_option): Update to new hook interface.
10105 * config/m32c/m32c.c: Include opts.h.
10106 (m32c_handle_option): Update to new hook interface.
10107 * config/m32r/m32r.c: Include opts.h.
10108 (m32r_handle_option): Update to new hook interface.
10109 * config/m68k/m68k.c: Include opts.h.
10110 (m68k_handle_option): Update to new hook interface.
10111 * config/mep/mep.c: Include opts.h.
10112 (mep_handle_option): Update to new hook interface.
10113 * config/microblaze/microblaze.c: Include opts.h.
10114 (microblaze_handle_option): Update to new hook interface.
10115 * config/mips/mips.c: Include opts.h.
10116 (mips_handle_option): Update to new hook interface.
10117 * config/mn10300/mn10300.c: Include opts.h.
10118 (mn10300_handle_option): Update to new hook interface.
10119 * config/pa/pa.c: Include opts.h.
10120 (pa_handle_option): Update to new hook interface.
10121 * config/pdp11/pdp11.c: Include opts.h.
10122 (pdp11_handle_option): Update to new hook interface.
10123 * config/rs6000/rs6000.c: Include opts.h.
10124 (rs6000_handle_option): Update to new hook interface.
10125 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10126 * config/rx/rx.c: Include opts.h.
10127 (rx_handle_option): Update to new hook interface.
10128 * config/s390/s390.c: Include opts.h.
10129 (s390_handle_option): Update to new hook interface.
10130 * config/score/score.c: Include opts.h.
10131 (score_handle_option): Update to new hook interface.
10132 * config/sh/sh.c: Include opts.h.
10133 (sh_handle_option): Update to new hook interface.
10134 * config/sparc/sparc.c: Include opts.h.
10135 (sparc_handle_option): Update to new hook interface.
10136 * config/v850/v850.c: Include opts.h.
10137 (v850_handle_option): Update to new hook interface.
10139 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10141 * gcc.c (driver_unknown_option_callback): Only permit and save
10142 unknown -Wno- options.
10143 (driver_wrong_lang_callback): Save options directly instead of via
10144 driver_unknown_option_callback.
10146 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10148 * combine.c (simplify_set): Try harder to find the best CC mode when
10149 simplifying a nested COMPARE on the RHS.
10151 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10153 * config/alpha/gnu.h: Remove.
10154 * config/arc: Remove directory.
10155 * config/arm/netbsd.h: Remove.
10156 * config/arm/t-pe: Remove.
10157 * config/crx: Remove directory.
10158 * config/i386/netbsd.h: Remove.
10159 * config/m68hc11: Remove directory.
10160 * config/m68k/uclinux-oldabi.h: Remove.
10161 * config/mcore/mcore-pe.h: Remove.
10162 * config/mcore/t-mcore-pe: Remove.
10163 * config/netbsd-aout.h: Remove.
10164 * config/rs6000/gnu.h: Remove.
10165 * config/sh/sh-symbian.h: Remove.
10166 * config/sh/symbian-base.c: Remove.
10167 * config/sh/symbian-c.c: Remove.
10168 * config/sh/symbian-cxx.c: Remove.
10169 * config/sh/symbian-post.h: Remove.
10170 * config/sh/symbian-pre.h: Remove.
10171 * config/sh/t-symbian: Remove.
10172 * config/svr3.h: Remove.
10173 * config/vax/netbsd.h: Remove.
10174 * config.build: Don't handle i[34567]86-*-pe.
10175 * config.gcc: Remove handling of deprecations for most deprecated
10177 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10178 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10179 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10180 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10181 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10182 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10184 * config.host: Don't handle i[34567]86-*-pe.
10185 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10186 (ASM_SPEC32): Don't handle -mcall-gnu.
10187 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10189 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10190 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10191 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10192 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10193 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10194 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10195 conditional on SYMBIAN.
10196 * configure.ac: Don't handle powerpc*-*-gnu*.
10197 * configure: Regenerate.
10198 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10199 * doc/install-old.texi (m6811, m6812): Don't mention.
10200 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10201 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10202 (m68k-uclinuxoldabi): Don't mention.
10203 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10205 (-mcall-gnu): Remove.
10206 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10207 families): Remove constraint documentation.
10209 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10211 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10212 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10213 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10215 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10218 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10219 vector when peeking at the next token for vector, don't expand the
10222 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10224 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10225 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10226 * config/avr/avr.c (init_cumulative_args)
10227 (avr_function_arg_advance): Use it.
10228 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10230 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10231 (avr_function_ok_for_sibcall): ...this new function.
10232 (avr_lookup_function_attribute1): New static Function.
10233 (avr_naked_function_p, interrupt_function_p)
10234 (signal_function_p, avr_OS_task_function_p)
10235 (avr_OS_main_function_p): Use it.
10236 * config/avr/avr.md ("sibcall", "sibcall_value")
10237 ("sibcall_epilogue"): New expander.
10238 ("*call_insn", "*call_value_insn"): New insn.
10239 ("call_insn", "call_value_insn"): Remove
10240 ("call", "call_value", "epilogue"): Change expander to handle
10243 2011-03-21 Nick Clifton <nickc@redhat.com>
10245 * doc/invoke.texi (Overall Options): Move closing brace to end of
10247 (Optimization Options): Add missing @gol.
10248 (Directory Options): Likewise.
10249 (i386 and x86-64 Options): Likewise.
10250 (RS6000 and PowerPC Options): Likewise.
10251 (i386 and x86-64 Windows Options): Likewise.
10252 (V850 Options): Add text missing from descriptions.
10254 2011-03-22 Richard Henderson <rth@redhat.com>
10256 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10257 (avr_incoming_return_addr_rtx): New.
10258 (emit_push_byte): New.
10259 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10260 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10261 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10262 (emit_pop_byte): New.
10263 (expand_epilogue): Use it. Pop frame pointer by bytes.
10264 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10265 (INCOMING_RETURN_ADDR_RTX): New.
10266 (INCOMING_FRAME_SP_OFFSET): New.
10267 (ARG_POINTER_CFA_OFFSET): New.
10268 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10269 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10272 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10274 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10276 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10277 (FUNCTION_ARG_ADVANCE): Likewise.
10278 * tm.texi.in: Change references to them to hook references.
10279 * tm.texi: Regenerate.
10280 * targhooks.c (default_function_arg): Eliminate check for target
10282 (default_function_incoming_arg): Likewise.
10283 (default_function_arg_advance): Likewise.
10284 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10285 (function_arg_advance): Likewise.
10286 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10288 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10290 * tree.c (build_call_1): New function.
10291 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10293 2011-03-22 Richard Guenther <rguenther@suse.de>
10295 PR tree-optimization/48228
10296 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10297 for single-arg PHIs.
10299 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10301 PR rtl-optimization/48143
10302 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10303 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10304 sse2_cvtps2pd): Likewise.
10306 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10308 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10310 2011-03-22 Richard Guenther <rguenther@suse.de>
10312 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10313 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10314 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10315 and REALIGN_LOAD_EXPR.
10316 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10317 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10318 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10319 DOT_PROD_EXPR case ...
10320 (expand_expr_real_2): ... here.
10321 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10322 and REALIGN_LOAD_EXPR.
10323 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10324 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10325 (vect_create_epilog_for_reduction): Likewise.
10326 (vectorizable_reduction): Likewise.
10327 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10328 * tree-vect-stmts.c (vectorizable_load): Likewise.
10330 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10332 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10334 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10336 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10337 handling for PLTOFF/GOTOFF.
10339 2011-03-22 Nick Clifton <nickc@redhat.com>
10341 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10342 trailing backslash from the end of the macro definition.
10344 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10346 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10349 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10351 * expr.h (prepare_operand): Move to...
10352 * optabs.h (prepare_operand): ...here and change the insn code
10353 parameter from "int" to "enum insn_code".
10354 (insn_operand_matches): Declare.
10355 * expr.c (init_expr_target): Use insn_operand_matches.
10356 (compress_float_constant): Likewise.
10357 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10358 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10359 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10360 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10362 (gen_cond_trap): Likewise.
10363 (prepare_operand): Likewise. Change icode to an insn_code.
10364 (insn_operand_matches): New function.
10365 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10366 * reload1.c (gen_reload): Likewise.
10367 * targhooks.c (default_secondary_reload): Likewise.
10369 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10371 * config/alpha/alpha.md (unspec): New define_c_enum.
10374 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10377 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10378 between a call and its CALL_ARG_LOCATION note.
10380 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10382 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10384 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10388 * c-common.c (shorten_compare): If primopN is first sign-extended
10389 to opN and then zero-extended to result type, set primopN to opN.
10391 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10393 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10394 for barrier handlers.
10396 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10398 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10399 UNSPEC constants to be in the unspec enumeration, and redefine
10400 all UNSPECV constants to be in the unspecv enumeration, so that
10401 dumps print which unspec/unspec_volatile this is.
10402 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10403 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10404 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10405 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10406 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10408 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10409 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10410 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10411 * config/rs6000/sync.md (isync, lwsync): Ditto.
10413 2011-03-21 Richard Guenther <rguenther@suse.de>
10415 * params.def (lto-min-partition): Fix typo.
10417 2011-03-21 Richard Guenther <rguenther@suse.de>
10420 * c-decl.c (grokdeclarator): Drop to the main variant only
10421 for array types. Drop flag_gen_aux_info check.
10423 2011-03-21 Richard Guenther <rguenther@suse.de>
10425 PR translation/47911
10426 * params.def (lto-partitions): Fix typo.
10427 (lto-min-partition): Fix wording.
10429 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10431 * config/rs6000/t-freebsd: Remove duplication from file.
10433 2011-03-21 Richard Guenther <rguenther@suse.de>
10435 PR middle-end/47661
10436 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10438 2011-03-21 Richard Guenther <rguenther@suse.de>
10441 * params.def (lto-partitions): Require at least 1 partition.
10443 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10445 * gthr-solaris.h: Remove.
10446 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10447 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10448 (LIB_SPEC): Likewise.
10449 * config/sol2.opt (threads): Remove.
10450 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10451 (sparc*-*-solaris2*): Likewise.
10452 * configure.ac (enable_threads): Enable solaris support.
10453 * configure: Regenerate.
10454 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10455 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10458 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10460 * config.gcc: Obsolete *-*-solaris2.8*.
10461 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10463 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10466 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10467 reference. Solaris 8 perl works.
10469 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10472 * doc/install.texi (Prerequisites): Move jar etc. up.
10473 Explain support library version requirements.
10475 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10478 * doc/install.texi (Prerequisites): Move Perl to build
10479 requirements. Always necessary on Solaris 2 with Sun ld.
10481 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10483 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10485 (Specific, i?86-*-solaris2.[89]): Likewise.
10486 (Specific, i?86-*-solaris2.10): Likewise.
10487 (Specific, mips-sgi-irix6): Likewise.
10488 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10489 Update for binutils 2.21.
10491 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10493 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10494 Allow -fuse-linker-plugin for non-default plugin linker.
10495 * configure: Regenerate.
10497 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10500 * gengtype.c (files_rules): Added rule for cp/parser.h.
10502 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10505 * config/s390/s390.c (s390_delegitimize_address): Don't call
10506 lowpart_subreg if orig_x has BLKmode.
10508 2011-03-21 Kai Tietz <ktietz@redhat.com>
10511 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10512 * tree.h (attribute_spec): Add new member affects_type_identity.
10513 * attribs.c (empty_attribute_table): Adjust attribute_spec
10515 * config/alpha/alpha.c: Likewise.
10516 * config/arc/arc.c: Likewise.
10517 * config/arm/arm.c: Likewise.
10518 * config/avr/avr.c: Likewise.
10519 * config/bfin/bfin.c: Likewise.
10520 * config/crx/crx.c: Likewise.
10521 * config/darwin.h: Likewise.
10522 * config/h8300/h8300.c: Likewise.
10523 * config/i386/cygming.h: Likewise.
10524 * config/i386/i386.c: Likewise.
10525 * config/ia64/ia64.c: Likewise.
10526 * config/m32c/m32c.c: Likewise.
10527 * config/m32r/m32r.c: Likewise.
10528 * config/m68hc11/m68hc11.c: Likewise.
10529 * config/m68k/m68k.c: Likewise.
10530 * config/mcore/mcore.c: Likewise.
10531 * config/mep/mep.c: Likewise.
10532 * config/microblaze/microblaze.c: Likewise.
10533 * config/mips/mips.c: Likewise.
10534 * config/rs6000/rs6000.c: Likewise.
10535 * config/rx/rx.c: Likewise.
10536 * config/sh/sh.c: Likewise.
10537 * config/sol2.h: Likewise.
10538 * config/sparc/sparc.c: Likewise.
10539 * config/spu/spu.c: Likewise.
10540 * config/stormy16/stormy16.c: Likewise.
10541 * config/v850/v850.c: Likewise.
10543 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10545 * simplify-rtx.c (simplify_binary_operation_1): Handle
10546 (xor (and A B) C) case when B and C are both constants.
10548 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10550 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10552 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10555 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10557 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10559 PR rtl-optimization/48156
10560 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10561 assume df and df_lr are not NULL.
10563 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10566 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10567 between a call and its CALL_ARG_LOCATION note.
10569 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10572 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10573 between a call and its corresponding CALL_ARG_LOCATION note.
10575 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10577 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10578 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10579 * haifa-sched.c (setup_ref_regs): Ditto.
10580 * caller-save.c (add_used_regs_1): Ditto.
10581 * dse.c (look_for_hardregs): Ditto.
10582 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10583 * sched-rgn.c (check_live_1): Ditto.
10585 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10587 * c-decl.c (diagnose_mismatched_decls): Give an error for
10588 redefining a typedef with variably modified type.
10590 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10592 * c-decl.c (grokfield): Don't allow typedefs for structures or
10593 unions with no tag by default.
10594 * doc/extend.texi (Unnamed Fields): Update.
10596 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10598 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10599 Rewrite using indirect functions.
10600 (lwp_slwpcb): Ditto.
10601 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10602 (avx_vinsertf128<mode>): Ditto.
10604 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10606 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10609 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10611 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10612 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10614 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10616 PR rtl-optimization/48170
10617 * gcse.c (hoist_code): Remove bogus asserts.
10619 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10621 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10622 computation for prologue/epilogue.
10624 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10626 * Makefile.in (check-consistency): Remove.
10628 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10631 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10632 arange_table_in_use is 0, but either text_section_used or
10633 cold_text_section_used is true. Don't call it if
10634 !info_section_emitted.
10636 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10638 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10639 FUNCTION_VALUE_REGNO_P): Remove.
10640 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10642 * config/avr/avr.c (avr_ret_register): Make static inline.
10643 (avr_function_value_regno_p): New function.
10644 (avr_libcall_value): Make static. Add 'func' argument.
10645 (avr_function_value): Make static. Rename 'func' argument to
10646 'fn_decl_or_type', forward it to avr_libcall_value. Call
10647 avr_ret_register function instead of RET_REGISTER macro.
10648 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10650 2011-03-18 Jason Merrill <jason@redhat.com>
10653 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10655 2011-03-18 Richard Guenther <rguenther@suse.de>
10657 * doc/install.texi (--enable-gold): Remove.
10658 (--with-plugin-ld): Document.
10659 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10661 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10663 PR middle-end/47790
10664 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10665 again after expansion changes.
10667 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10669 * combine.c (try_combine): Do simplification only call of
10670 subst() on i2 even when i1 is present. Update comments.
10672 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10674 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10675 and UNSPEC_PCREL_SYMOFF.
10677 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10679 * config/s390/s390.md: Use define_c_enum for the unspec constant
10682 2011-03-18 Richard Henderson <rth@redhat.com>
10683 Jakub Jelinek <jakub@redhat.com>
10686 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10687 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10689 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10691 PR middle-end/47725
10692 * combine.c (cant_combine_insn_p): Don't check zero/sign
10693 extended hard registers.
10695 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10697 PR middle-end/47725
10698 * combine.c (cant_combine_insn_p): Check zero/sign extended
10701 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10703 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10704 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10705 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10706 Change return type to bool.
10707 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10709 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10712 * var-tracking.c (prepare_call_arguments): If CALL target
10713 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10714 pc instead of looking it up using cselib_lookup and use
10715 Pmode for it if x has VOIDmode.
10716 * dwarf2out.c (gen_subprogram_die): If also both first and
10717 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10720 * function.c (assign_parms): For data.passed_pointer parms
10721 use MEM of data.entry_parm instead of data.entry_parm itself
10722 as DECL_INCOMING_RTL.
10723 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10724 also when passed and declared mode is the same, DECL_RTL
10725 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10728 2011-03-16 Jeff Law <law@redhat.com>
10730 PR rtl-optimization/37273
10731 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10732 handle them like argument loads from stack slots. Do not double
10733 count memory for memory constants and argument loads from stack slots.
10735 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10738 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10740 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10743 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10745 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10748 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10750 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10751 Clear call_arg_locations and call_arg_loc_last always.
10753 PR middle-end/48152
10754 * var-tracking.c (prepare_call_arguments): If argument needs to be
10755 passed by reference, adjust argtype and mode.
10757 2011-03-17 Richard Guenther <rguenther@suse.de>
10759 PR middle-end/48134
10760 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10761 a value make sure to fold the statement.
10763 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10766 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10767 return condition with !cfun->calls_alloca.
10769 2011-03-17 Richard Guenther <rguenther@suse.de>
10772 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10773 origin for decls in other ltrans units.
10774 (input_varpool_node): Likewise.
10776 2011-03-17 Richard Guenther <rguenther@suse.de>
10778 PR middle-end/48165
10779 * tree-object-size.c (compute_object_offset): Properly return
10780 the offset operand of MEM_REFs as sizetype.
10782 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10784 PR rtl-optimization/48141
10785 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10786 * dse.c: Include params.h.
10787 (active_local_stores_len): New variable.
10788 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10790 (record_store, check_mem_read_rtx): Decrease it when removing
10792 (scan_insn): Likewise. Increase it when adding to chain, if it
10793 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10794 set active_local_stores to NULL before the addition.
10795 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10797 PR rtl-optimization/48141
10798 * dse.c (record_store): If no positions are needed in an insn
10799 that cannot be deleted, at least unchain it from active_local_stores.
10801 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10804 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10805 (lookup_type_die_strip_naming_typedef): ... here.
10806 (get_context_die): Use it.
10807 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10808 the anonymous struct named by the naming typedef.
10810 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10813 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10814 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10816 2011-03-16 Jeff Law <law@redhat.com>
10818 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10819 check for operands of conditional. Allow type to be a pointer.
10821 2011-03-16 Richard Guenther <rguenther@suse.de>
10823 PR tree-optimization/48149
10824 * fold-const.c (fold_binary_loc): Fold
10825 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10827 2011-03-16 Richard Guenther <rguenther@suse.de>
10829 PR tree-optimization/26134
10830 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10831 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10832 (non_rewritable_mem_ref_base): Handle complex type component
10833 accesses, constrain offsets for vector and complex extracts
10836 2011-03-16 Richard Guenther <rguenther@suse.de>
10838 PR tree-optimization/48146
10839 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10840 operands avoiding the need for renaming.
10842 2011-03-16 Richard Guenther <rguenther@suse.de>
10844 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10845 constant folding. Move MEM_REF canonicalization first.
10846 Rely on fold_const_aggregate_ref for initializer folding.
10847 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10849 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10851 PR middle-end/48136
10852 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10853 arg0/arg1 or their arguments are always fold converted to matching
10856 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10859 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10862 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10863 Handle in-tree gold.
10864 (ld_vers): Extract binutils version for gold.
10865 (gcc_cv_ld_hidden): Handle gold here.
10866 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10867 * configure: Regenerate.
10868 * config.in: Regenerate.
10869 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10870 -fuse-linker-plugin otherwise.
10871 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10872 (LINK_COMMAND_SPEC): Use it.
10873 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10875 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10877 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10878 * calls.c: Remove debug.h include.
10879 (emit_call_1): Don't call virtual_call_token debug hook.
10880 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10881 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10882 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10883 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10884 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10885 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10886 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10887 dwarf2out_virtual_call): Remove.
10888 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10889 copy_call_info and virtual_call hooks.
10890 (dwarf2out_init): Don't initialize vcall_insn_table,
10891 debug_dcall_section and debug_vcall_section.
10892 (prune_unused_types): Don't mark nodes from dcall_table.
10893 (dwarf2out_finish): Don't output dcall or vcall tables.
10894 * final.c (final_scan_insn): Don't call direct_call or
10895 virtual_call debug hooks.
10896 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10897 virtual_call_token, copy_call_info and virtual_call hooks.
10898 (debug_nothing_uid): Remove prototype.
10899 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10900 copy_call_info and virtual_call hooks.
10901 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10902 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10903 * debug.c (do_nothing_debug_hooks): Likewise.
10904 (debug_nothing_uid): Remove.
10905 * doc/invoke.texi (-fenable-icf-debug): Remove.
10906 * common.opt (-fenable-icf-debug): Likewise.
10908 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10909 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10910 call's MEM. Handle functions returning aggregate through a hidden
10911 first pointer. For virtual calls add clobbered pc to call arguments
10913 * dwarf2out.c (gen_subprogram_die): Emit
10914 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10918 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10919 * rtl.h (ENTRY_VALUE_EXP): Define.
10920 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10921 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10922 * print-rtl.c (print_rtx): Likewise.
10923 * gengtype.c (adjust_field_rtx_def): Likewise.
10924 * var-tracking.c (vt_add_function_parameter): Adjust
10925 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10926 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10927 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10928 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10929 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10931 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10932 Call var_location debug hook even on CALL_INSNs.
10933 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10934 * rtl.def (ENTRY_VALUE): New.
10935 * dwarf2out.c: Include cfglayout.h.
10936 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10937 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10938 (struct call_arg_loc_node): New type.
10939 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10940 tail_call_site_count): New variables.
10941 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10942 DW_TAG_GNU_call_site_parameter.
10943 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10944 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10945 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10946 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10947 and DW_AT_GNU_all_source_call_sites.
10948 (mem_loc_descriptor): Handle ENTRY_VALUE.
10949 (add_src_coords_attributes): Don't add enything if
10950 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10951 (dwarf2out_abstract_function): Save and clear call_arg_location,
10952 call_site_count and tail_call_site_count around dwarf2out_decl call.
10953 (gen_call_site_die): New function.
10954 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10955 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10956 (dwarf2out_function_decl): Clear call_arg_locations,
10957 call_arg_loc_last, set call_site_count and tail_call_site_count
10958 to -1 and free block_map.
10959 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10960 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10961 followed by any real instructions.
10962 (dwarf2out_begin_function): Set call_site_count and
10963 tail_call_site_count to 0.
10964 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10965 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10966 attempt to force a DIE for it and worst case remove the attribute.
10967 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10968 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10970 * var-tracking.c: Include tm_p.h.
10971 (vt_stack_adjustments): For calls call note_register_arguments.
10972 (argument_reg_set): New variable.
10973 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10974 ensure the VALUE is resolved.
10975 (call_arguments): New variable.
10976 (prepare_call_arguments): New function.
10977 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10978 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10979 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10980 always use the best expression.
10981 (vt_expand_loc): Add ignore_cur_loc argument.
10982 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10983 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10984 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10985 note for all calls.
10986 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10987 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10988 argument. Don't call cselib_preserve_only_values and
10989 cselib_reset_table.
10990 (note_register_arguments): New function.
10991 (vt_initialize): Compute argument_reg_set. Call
10992 vt_add_function_parameters before processing basic blocks instead of
10993 afterwards. For calls call prepare_call_arguments before calling
10994 cselib_process_insn.
10995 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10996 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10997 (var-tracking.o): Depend on $(TM_P_H).
10998 * cfglayout.h (insn_scope): New prototype.
10999 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11000 * cfglayout.c (insn_scope): No longer static.
11001 * insn-notes.def (CALL_ARG_LOCATION): New.
11002 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11003 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11004 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11005 nothing for DECL_EXTERNAL BLOCK_VARS.
11007 2011-03-16 Alan Modra <amodra@gmail.com>
11010 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11011 create invalid offset address for vsx splat insn.
11012 * config/rs6000/predicates.md (splat_input_operand): New.
11013 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11015 2011-03-15 Xinliang David Li <davidxl@google.com>
11018 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11019 (normalize_preds): New function.
11020 (is_use_properly_guarded): Normalize def predicates.
11022 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11025 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11026 in the output template.
11028 2011-03-15 Richard Guenther <rguenther@suse.de>
11030 PR middle-end/47650
11031 * tree-pretty-print.c (dump_function_declaration): Properly
11032 dump unprototyped and varargs function types.
11034 2011-03-15 Richard Guenther <rguenther@suse.de>
11036 PR tree-optimization/13954
11037 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11040 2011-03-15 Richard Guenther <rguenther@suse.de>
11042 PR tree-optimization/48037
11043 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11044 selects into BIT_FIELD_REFs.
11045 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11048 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11050 PR tree-optimization/48129
11051 * builtins.c (fold_builtin_snprintf): Convert to type of
11052 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11053 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11055 2011-03-15 Richard Guenther <rguenther@suse.de>
11057 PR tree-optimization/41490
11058 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11059 value but with VUSE.
11060 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11062 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11063 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11064 * tree-tailcall.c (find_tail_calls): Ignore returns.
11066 2011-03-15 Richard Guenther <rguenther@suse.de>
11068 PR middle-end/48031
11069 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11070 or variable-indexed array accesses when in gimple form.
11072 2011-03-15 Richard Guenther <rguenther@suse.de>
11074 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11076 2011-03-15 Alan Modra <amodra@gmail.com>
11079 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11080 presume symbol_refs without a symbol_ref_decl are suitably
11081 aligned, nor other trees we may see here. Handle anchor symbols.
11082 (legitimate_constant_pool_address_p): Comment. Add mode param.
11083 Check cmodel=medium addresses. Adjust all calls.
11084 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11085 creating cmodel=medium optimized access to locals.
11086 * config/rs6000/constraints.md (R): Pass QImode to
11087 legitimate_constant_pool_address_p.
11088 * config/rs6000/predicates.md (input_operand): Pass mode to
11089 legitimate_constant_pool_address_p.
11090 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11093 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11096 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11097 64-bit constants being loaded into registers other than GPRs such
11098 as loading 0 into a VSX register.
11100 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11102 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11104 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11106 PR middle-end/47917
11107 * builtins.c (fold_builtin_snprintf): New function.
11108 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11109 (fold_builtin_4): Likewise.
11111 PR middle-end/38878
11112 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11113 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11114 and C - X == X also strip nops from +/-/p+ operand.
11115 When optimizing -X == C, fold C to arg0's type.
11118 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11119 emit it as add_AT_int instead of add_AT_unsigned.
11121 2011-03-14 Tom Tromey <tromey@redhat.com>
11123 * unwind-dw2.c: Include sys/sdt.h if it exists.
11124 (_Unwind_DebugHook): Use STAP_PROBE2.
11125 * config.in, configure: Rebuild.
11126 * configure.ac: Check for sys/sdt.h.
11128 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11130 * config/i386/i386.md (ROUND_FLOOR): New constant.
11131 (ROUND_CEIL): Ditto.
11132 (ROUND_TRUNC): Ditto.
11133 (ROUND_MXCSR): Ditto.
11134 (ROUND_NO_EXC): Ditto.
11135 (rint<mode>2): Use new defines instead of numerical constants.
11136 (floor<mode>2): Ditto.
11137 (ceil<mode>2): Ditto.
11138 (btrunc<mode>2): Ditto.
11139 * config/i386/i386-builtin-types.def: Define ROUND function type
11141 * config/i386/i386.c (enum ix86_builtins): Add
11142 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11143 (struct builtin_description): Add
11144 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11145 (ix86_expand_sse_round): New static function.
11146 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11148 (ix86_builtin_vectorized_function): Handle
11149 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11151 2011-03-14 Tom Tromey <tromey@redhat.com>
11153 * c-parser.c (c_parser_asm_string_literal): Clear
11154 warn_overlength_strings.
11156 2011-03-14 Tom Tromey <tromey@redhat.com>
11158 * c-parser.c (disable_extension_diagnostics): Save
11159 warn_overlength_strings.
11160 (restore_extension_diagnostics): Restore warn_overlength_strings.
11162 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11164 * BASE-VER: Change to 4.7.0.
11166 2011-03-14 Richard Guenther <rguenther@suse.de>
11168 PR middle-end/48098
11169 * tree.c (build_vector_from_val): Adjust assert to requirements
11172 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11175 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11177 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11179 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11180 terms of target_flags_explicit. Adjust copyright year.
11182 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11183 * config/rs6000/t-freebsd: New file. Add override for
11186 2011-03-13 Chris Demetriou <cgd@google.com>
11188 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11189 (-fno-diagnostics-show-option): this, to reflect current default.
11190 (-Werror=): Update text about -fno-diagnostics-show-option.
11192 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11195 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11196 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11197 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11198 mode is not V2DImode or V2DFmode.
11199 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11200 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11201 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11203 (movdi_internal64): Likewise.
11205 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11207 PR tree-optimization/47127
11208 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11210 (set_cloog_options): Same.
11211 (scop_to_clast): Same.
11212 (print_clast_stmt): Do not call cloog_state_malloc and
11214 (print_generated_program): Same.
11216 * graphite-clast-to-gimple.h (cloog_state): Declared.
11217 (scop_to_clast): Adjust declaration.
11218 * graphite.c (cloog_state): Defined here.
11219 (graphite_initialize): Call cloog_state_malloc.
11220 (graphite_finalize): Call cloog_state_free.
11222 2011-03-11 Jason Merrill <jason@redhat.com>
11224 * attribs.c (lookup_attribute_spec): Take const_tree.
11227 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11229 * config/sparc/sparc.c (sparc_option_override): Use
11230 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11232 2011-03-11 Richard Guenther <rguenther@suse.de>
11234 PR tree-optimization/48067
11235 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11236 multiplication result will be only used once on the target
11239 2011-03-11 Richard Guenther <rguenther@suse.de>
11241 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11243 2011-03-11 Richard Guenther <rguenther@suse.de>
11246 * tree.c (find_decls_types_r): Do not walk types only reachable
11247 from IDENTIFIER_NODEs.
11249 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11251 PR middle-end/48044
11252 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11253 all vnode->force_output nodes as needed.
11255 2011-03-11 Jason Merrill <jason@redhat.com>
11258 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11259 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11261 2011-03-11 Martin Jambor <mjambor@suse.cz>
11263 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11266 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11268 PR tree-optimization/48063
11269 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11270 inline functions called once if !tree_can_inline_p (node->callers).
11272 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11274 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11276 * config/score/score3.c: Delete.
11277 * config/score/score3.h: Delete.
11278 * config/score/mul-div.S: Delete.
11279 * config/score/sfp-machine.h: Add new file.
11280 * config/score/constraints.md: Add new file.
11281 * config/score/t-score-softfp: Add new file.
11282 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11283 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11284 (score7_extra_constraint): Delete.
11285 (score7_option_override): Remove unused code.
11286 * config/score/score.c: Remove score3 and score5 define and code.
11287 * config/score/score.h: Remove score3 and score5 define and code.
11288 * config/score/score.md: Remove score3 template and unusual insn.
11289 * config/score/score.opt: Remove score3 and score5 options.
11291 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11293 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11294 when _HPUX_SOURCE is defined.
11295 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11297 2011-03-10 Jason Merrill <jason@redhat.com>
11300 * stor-layout.c (layout_type): Don't set structural equality
11301 on arrays of incomplete type.
11302 * tree.c (type_hash_eq): Handle comparing them properly.
11304 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11307 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11308 result mode matches original rtl mode.
11310 2011-03-10 Nick Clifton <nickc@redhat.com>
11312 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11313 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11315 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11317 PR rtl-optimization/47866
11318 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11319 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11320 if target wasn't scalar.
11321 * function.c (assign_stack_temp_for_type): Assert that neither
11322 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11323 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11325 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11327 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11329 * config/s390/s390-protos.h (s390_label_align): New prototype.
11330 * config/s390/s390.c (s390_label_align): New function.
11331 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11333 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11336 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11337 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11338 (output_vec_const_move): Ditto.
11340 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11342 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11343 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11344 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11345 Change 'rclass' argument and result type to reg_class_t.
11346 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11348 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11350 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11351 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11352 (TARGET_MEMORY_MOVE_COST): Define.
11353 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11355 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11358 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11361 PR tree-optimization/48022
11362 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11365 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11368 * var-tracking.c (find_use_val): Return NULL for
11369 cui->sets && cui->store_p BLKmode MEMs.
11371 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11373 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11375 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11376 xstormy16_print_operand_address): Remove.
11377 * config/stormy16/stormy16.c (xstormy16_print_operand,
11378 xstormy16_print_operand_address): Make static.
11379 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11381 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11384 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11385 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11388 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11391 * cfgloopmanip.c (fix_bb_placements): Return immediately
11392 if FROM is BASE_LOOP's header.
11394 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11396 * gimplify.c (gimplify_function_tree): Fix building calls
11397 to __builtin_return_address.
11399 2011-03-07 Alan Modra <amodra@gmail.com>
11401 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11402 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11403 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11404 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11406 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11407 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11408 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11409 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11410 * config/rs6000/rs6000.c
11411 (rs6000_elf_end_indicate_exec_stack): Rename to..
11412 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11413 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11414 (rs6000_file_start): ..here.
11415 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11416 file scope variables.
11417 (call_ABI_of_interest): New function.
11418 (init_cumulative_args): Set above vars when function return value
11419 is a float, vector, or small struct.
11420 (rs6000_function_arg_advance_1): Likewise for function args.
11421 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11422 references float args.
11424 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11426 * doc/cfg.texi: Remove "See" before @ref.
11427 * doc/invoke.texi: Likewise.
11429 2011-03-05 Jason Merrill <jason@redhat.com>
11431 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11433 2011-03-05 Anthony Green <green@moxielogic.com>
11435 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11437 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11439 PR rtl-optimization/47899
11440 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11441 to flow_loop_nested_p when moving the loop upward.
11443 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11446 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11448 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11450 PR tree-optimization/47967
11451 * ipa-cp.c (build_const_val): Return NULL instead of creating
11452 VIEW_CONVERT_EXPR for mismatching sizes.
11453 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11454 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11455 give up on versioning.
11457 2011-03-05 Alan Modra <amodra@gmail.com>
11460 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11461 full cmodel medium/large lo_sum + high addresses.
11463 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11465 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11466 pool references in UNSPEC_LTREL_OFFSET.
11468 2011-03-04 Jan Hubicka <jh@suse.cz>
11471 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11472 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11473 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11475 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11476 cgraph_add_thunk): Add node pointers.
11477 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11478 associated to right node.
11479 (input_node): Update use of cgraph_same_body_alias
11480 and cgraph_add_thunk.
11482 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11484 * config/i386/i386.opt (mprefer-avx128): New flag.
11485 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11486 modes when the flag -mprefer-avx128 is on.
11488 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11490 * dwarf2out.c (compare_loc_operands): Fix address handling.
11492 2011-03-04 Alan Modra <amodra@gmail.com>
11494 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11496 2011-03-04 Richard Guenther <rguenther@suse.de>
11498 PR middle-end/47968
11499 * expmed.c (extract_bit_field_1): Prefer vector modes that
11500 vec_extract patterns can handle.
11502 2011-03-04 Richard Guenther <rguenther@suse.de>
11504 PR middle-end/47975
11505 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11507 2011-03-04 Richard Henderson <rth@redhat.com>
11509 * explow.c (emit_stack_save): Remove 'after' parameter.
11510 (emit_stack_restore): Likewise.
11511 * expr.h: Update to match.
11512 * builtins.c, calls.c, stmt.c: Likewise.
11513 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11514 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11515 * function.c (expand_function_end): Insert the emit_stack_save
11516 sequence before parm_birth_insn instead of after.
11518 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11520 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11521 (ssse3_pmaddubsw128): Ditto.
11522 (ssse3_pmaddubsw): Ditto.
11524 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11526 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11528 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11531 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11532 on TYPE_SIZE_UNIT if it is a DECL.
11535 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11536 first operand is not is_gimple_mem_ref_addr, try to fold it.
11537 If the operand still isn't is_gimple_mem_ref_addr, clear
11540 2011-03-03 Richard Guenther <rguenther@suse.de>
11542 PR middle-end/47283
11543 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11545 (refs_may_alias_p_1): For release branches return true if
11546 we are confused by our input.
11548 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11550 * config/s390/s390.c (s390_function_value): Rename to ...
11551 (s390_function_and_libcall_value): ... this.
11552 (s390_function_value): New function.
11553 (s390_libcall_value): New function.
11554 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11555 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11556 target macro definitions.
11557 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11559 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11561 * config/i386/freebsd64.h (CC1_SPEC): Define.
11562 * config/i386/linux64.h (CC1_SPEC): Define.
11563 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11565 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11567 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11569 * config/stormy16/stormy16.c: Include reload.h.
11570 (xstormy16_memory_move_cost): New function.
11571 (TARGET_MEMORY_MOVE_COST): Define.
11573 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11575 PR rtl-optimization/47925
11576 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11577 with side effects. Remove the more-specific check for volatile asms.
11579 2011-03-02 Alan Modra <amodra@gmail.com>
11582 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11583 toc relative addresses for valid offsets.
11585 2011-03-01 Richard Guenther <rguenther@suse.de>
11587 PR tree-optimization/47890
11588 * tree-vect-loop.c (get_initial_def_for_induction): Set
11589 related stmt properly.
11591 2011-03-01 Richard Guenther <rguenther@suse.de>
11594 * lto-streamer.c (lto_record_common_node): Also register
11595 the canonical type.
11597 2011-03-01 Richard Guenther <rguenther@suse.de>
11600 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11601 Do not stream DECL_ABSTRACT_ORIGIN.
11602 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11603 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11604 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11605 Do not stream DECL_ABSTRACT_ORIGIN.
11606 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11607 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11609 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11611 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11612 FUNCTION_VALUE_REGNO_P): Remove.
11613 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11614 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11615 Add 'outgoing' argument.
11616 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11618 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11619 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11621 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11624 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11625 (lookup_filename): Likewise.
11626 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11628 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11629 Jakub Jelinek <jakub@redhat.com>
11631 PR middle-end/47893
11632 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11633 (assign_stack_local_1): Change last argument type to int.
11634 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11635 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11636 don't record padding space into frame_space_list nor use those areas.
11637 (assign_stack_local): Adjust caller.
11638 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11639 of assign_stack_local, pass 0 as last argument.
11640 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11643 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11646 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11647 Use target address_mode and pointer_mode hooks instead of hardcoded
11648 Pmode and ptr_mode. Handle some simple cases of extending if
11649 POINTERS_EXTEND_UNSIGNED < 0.
11650 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11651 Call convert_debug_memory_address.
11652 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11653 convert_debug_memory_address.
11655 PR middle-end/46790
11656 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11657 * configure: Regenerated.
11658 * config.in: Regenerated.
11659 * varasm.c (default_function_section): Return NULL
11660 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11662 2011-02-28 Martin Jambor <mjambor@suse.cz>
11664 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11665 the description to match the printed values.
11667 2011-02-28 Richard Guenther <rguenther@suse.de>
11669 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11670 of the copied scope tree.
11672 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11674 * doc/extend.texi (Function Attributes): Avoid deeply (and
11675 wrongly) nested tables.
11677 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11679 PR middle-end/47903
11680 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11681 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11682 r isn't op0 nor op1.
11684 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11686 * config/avr/avr.md: Remove magic comment for emacs.
11688 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11691 * config/avr/avr.c (avr_option_override): Use error on bad options.
11692 (avr_help): New function.
11693 (TARGET_HELP): Define.
11695 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11698 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11699 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11701 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11703 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11704 (ARM Options): Ditto.
11705 (i386 and x86-64 Options): Ditto.
11706 (RX Options): Ditto.
11707 (SPARC Options): Ditto.
11709 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11711 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11712 FreeBSD 6 and later. Generally use cpu generic.
11714 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11716 * doc/cpp.texi: Update copyright years.
11718 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11721 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11723 2011-02-25 Jon Beniston <jon@beniston.com>
11726 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11727 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11728 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11729 (lm32_block_move_inline): Add type cast to remove warning.
11730 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11731 (gen_int_relational): Move declarations to start of function.
11733 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11735 PR tree-optimization/45470
11736 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11737 can throw internally only.
11738 * tree-vect-stmts.c (vectorizable_call): Likewise.
11740 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11742 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11743 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11744 * config/stormy16/stormy16-protos.h
11745 (xstormy16_preferred_reload_class): Remove.
11746 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11747 static. Change 'rclass' argument and return type to reg_class_t.
11748 (TARGET_PREFERRED_RELOAD_CLASS,
11749 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11751 2011-02-24 Richard Guenther <rguenther@suse.de>
11753 * lto-streamer-in.c (input_bb): Do not find referenced vars
11754 in debug statements.
11756 2011-02-23 Jason Merrill <jason@redhat.com>
11758 * common.opt (fabi-version): Document v5 and v6.
11760 2011-02-23 Richard Guenther <rguenther@suse.de>
11762 PR tree-optimization/47849
11763 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11765 2011-02-23 Jie Zhang <jie@codesourcery.com>
11767 * opts-common.c (decode_cmdline_option): Print empty string
11768 argument as "" in decoded->orig_option_with_args_text.
11769 * gcc.c (execute): Print empty string argument as ""
11770 in the verbose output.
11771 (do_spec_1): Keep empty string argument.
11773 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11775 * config.gcc: Declare score-* and crx-* obsolete.
11777 2011-02-23 Jie Zhang <jie@codesourcery.com>
11779 PR rtl-optimization/47763
11780 * web.c (web_main): Ignore naked clobber when replacing register.
11782 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11784 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11787 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11790 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11792 2011-02-22 Mike Stump <mikestump@comcast.net>
11794 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11796 * configure: Regenerate.
11798 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11800 PR rtl-optimization/46002
11801 * ira-color.c (update_copy_costs): Change class intersection
11802 test to reg_class_contents[] test of 'hard_regno'.
11804 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11806 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11807 than Driver option.
11808 * config/hpux11.opt (mt): Likewise.
11809 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11810 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11811 * config/vax/elf.opt (mno-asm-pic): Likewise.
11812 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11814 2011-02-21 Mike Stump <mikestump@comcast.net>
11817 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11818 tree so we can get save the type.
11819 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11820 for CFString instead of trying to use past the end of the builtins.
11821 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11822 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11823 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11824 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11825 Rename to darwin_builtin_cfstring.
11826 (darwin_init_cfstring_builtins): Return the built type.
11828 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11831 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11832 (_mm256_insert_epi64): Use _mm_insert_epi64.
11834 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11836 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11837 * config/stormy16/stormy16-protos.h
11838 (xstormy16_mode_dependent_address_p): Remove.
11839 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11840 Make static. Change return type to bool. Change argument type to
11841 const_rtx. Remove dead code.
11842 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11844 2011-02-21 Richard Guenther <rguenther@suse.de>
11847 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11848 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11849 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11851 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11852 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11854 2011-02-20 Richard Guenther <rguenther@suse.de>
11857 * tree.c (free_lang_data_in_decl): Clean builtins from
11858 the TU decl BLOCK_VARS.
11860 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11864 * haifa-sched.c (fix_tick_ready): Skip tick computation
11867 2011-02-19 Richard Guenther <rguenther@suse.de>
11870 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11871 Remove lazy BLOCK_VARS streaming.
11872 (lto_input_ts_block_tree_pointers): Likewise.
11873 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11875 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11877 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11879 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11881 * config/i386/biarch32.h, config/i386/mach.h,
11882 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11884 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11887 * config/i386/i386.md (peephole2 for shift and plus): Use
11888 operands[1] original mode in the first insn.
11890 2011-02-18 Mike Stump <mikestump@comcast.net>
11892 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11894 2011-02-18 Jan Hubicka <jh@suse.cz>
11896 PR middle-end/47788
11897 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11898 to zero when the function is not inlinable at all.
11900 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11902 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11903 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11904 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11905 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11906 * config/pa/t-pa64: Likewise.
11907 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11909 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11912 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11914 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11917 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11919 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11921 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11922 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11923 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11924 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11925 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11926 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11927 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11928 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11929 m32r_legitimate_address_p): New functions.
11930 * config/m32r/constraints.md (constraint "S"): Don't use
11931 STORE_PREINC_PREDEC_P.
11932 (constraint "U"): Don't use LOAD_POSTINC_P.
11934 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11936 PR rtl-optimization/46178
11937 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11938 compute ira_hard_regno_cover_class[].
11940 2011-02-18 Richard Guenther <rguenther@suse.de>
11943 * lto-streamer.h (lto_global_var_decls): Declare.
11944 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11945 statics for global var processing.
11947 2011-02-18 Richard Guenther <rguenther@suse.de>
11949 PR tree-optimization/47737
11950 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11951 edge dominance check.
11953 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11956 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11957 avoid invalid rtx sharing.
11959 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11961 * doc/cpp.texi (Obsolete Features): Add background on the
11962 origin of assertions.
11964 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11966 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11968 * config/darwin.c (output_objc_section_asm_op): Added support for
11970 (is_objc_metadata): New.
11971 (darwin_objc2_section): New.
11972 (darwin_objc1_section): New.
11973 (machopic_select_section): Added support for ABI v1 and v2.
11974 (darwin_emit_objc_zeroed): New.
11975 (darwin_output_aligned_bss): Detect objc metadata and treat it
11977 (darwin_asm_output_aligned_decl_common): Same.
11978 (darwin_asm_output_aligned_decl_local): Same.
11979 * config/darwin-sections.def: Updated for ABI v1 and v2.
11980 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11981 compiling Objective-C code for the NeXT runtime, default to using
11982 ABI version 0 for 32-bit, and version 2 for 64-bit.
11984 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11986 * common.opt (optimize_fast): New Variable.
11987 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11988 instead of local variable ofast.
11990 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11992 * doc/invoke.texi (fobjc-abi-version): Documented.
11993 (fobjc-nilcheck): Documented.
11994 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11997 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12000 * common.opt (export-dynamic): New Driver option.
12001 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12003 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12005 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12007 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12008 Jan Hubicka <jh@suse.cz>
12012 * cfgexpand.c (account_used_vars_for_block): Remove.
12013 (estimated_stack_frame_size): Use referenced vars.
12014 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12015 that were referenced in the original function. Test src_fn
12016 rather than cfun. Drop redundant get_var_ann.
12017 (setup_one_parameter): Drop redundant get_var_ann.
12018 (declare_return_variable): Likewise.
12019 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12020 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12021 * ipa-inline.c (compute_inline_parameters): Do not compute
12022 disregard_inline_limits here.
12023 (compute_inlinable_for_current, pass_inlinable): New.
12024 (pass_inline_parameters): Require PROP_referenced_vars.
12025 * cgraphunit.c (cgraph_process_new_functions): Don't run
12026 compute_inline_parameters explicitly unless function is in SSA form.
12027 (cgraph_analyze_function): Set .disregard_inline_limits.
12028 * tree-sra.c (convert_callers): Compute inliner parameters
12029 only for functions already in SSA form.
12031 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12033 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12034 -mlittle-endian-data.
12036 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12038 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12039 -mno-fpu, not -fpu and -no-fpu.
12040 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12041 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12043 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12046 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12047 input reload with PLUS RTX.
12049 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12051 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12052 of InverseVar(MDMX).
12054 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12056 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12059 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12061 * config/mn10300/mn10300.opt (mno-crt0): New.
12063 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12065 * config/m68k/uclinux.opt (static-libc): New Driver option.
12067 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12069 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12071 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12073 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12074 %{muser-extend-enabled}.
12076 2011-02-16 Richard Guenther <rguenther@suse.de>
12078 PR tree-optimization/47738
12079 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12080 the TODO from tree_predictive_commoning.
12082 2011-02-15 Jeff Law <law@redhat.com>
12085 2011-01-25 Jeff Law <law@redhat.com>
12087 PR rtl-optimization/37273
12088 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12089 handle them like argument loads from stack slots. Do not double
12090 count memory for memory constants and argument loads from stack slots.
12092 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12094 PR middle-end/47725
12095 * combine.c (cant_combine_insn_p): Revert the last change.
12097 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12100 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12101 mode for vector constants. Remove code that checks for TImode.
12103 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12107 * cgraph.h (compute_inline_parameters): Return void.
12108 * ipa-inline.c (compute_inline_parameters): Adjust.
12110 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12114 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12116 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12117 * ipa-inline.c (compute_inline_parameters): Adjust.
12119 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12123 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12124 Adjust all users. Pass FN to...
12125 * tree-flow-inline.h (first_referenced_var): ... this. Add
12127 * ipa-struct-reorg.c: Adjust.
12128 * tree-dfa.c: Adjust.
12129 * tree-into-ssa.c: Adjust.
12130 * tree-sra.c: Adjust.
12131 * tree-ssa-alias.c: Adjust.
12132 * tree-ssa-live.c: Adjust.
12133 * tree-ssa.c: Adjust.
12134 * tree-ssanames.c: Adjust.
12135 * tree-tailcall.c: Adjust.
12137 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12141 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12142 Adjust all callers.
12143 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12144 * tree-flow-inline.h: Adjust.
12145 * gimple-pretty-print.c: Adjust.
12146 * tree-into-ssa.c: Adjust.
12147 * tree-ssa.c: Adjust.
12148 * cfgexpand.c: Adjust.
12150 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12152 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12153 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12154 (EXTRA_CONSTRAINT): Delete.
12155 * config/iq2000/constraints.md: New file.
12156 * config/iq2000/iq2000.md: Include it.
12157 (define_insn ""): Delete.
12158 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12159 unsupported constraint letters from patterns.
12160 (call_value, call_value_internal1): Likewise.
12161 (call_value_multiple_internal1): Likewise.
12163 2011-02-15 Nick Clifton <nickc@redhat.com>
12165 * config/mn10300/mn10300.c: Include tm-constrs.h.
12166 (struct liw_data): New data structure describing an LIW candidate
12168 (extract_bundle): Use struct liw_data. Allow small integer
12169 operands for some instructions.
12170 (check_liw_constraints): Use struct liw_data. Remove swapped
12171 parameter. Add comments describing the checks. Fix bug when
12172 assigning the source of liw1 to the source of liw2.
12173 (liw_candidate): Delete. Code moved into extract_bundle.
12174 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12176 * config/mn10300/predicates.md (liw_operand): New predicate.
12177 Allows registers and small integer constants.
12178 * config/mn10300/constraints.md (O): New constraint. Accetps
12179 integers in the range -8 to +7 inclusive.
12180 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12181 for moving a small integer into a register. Give this alternative
12183 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12184 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12185 using the J,K,L and M constraints,
12186 (liw): Remove SI mode on second operands to allow for HI and QI
12188 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12191 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12193 PR middle-end/47725
12194 * combine.c (cant_combine_insn_p): Check zero/sign extended
12197 2011-02-15 Richard Guenther <rguenther@suse.de>
12199 PR tree-optimization/47743
12200 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12201 for a non-type-compatible VN lookup bail out.
12203 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12205 * config/fr30/constraints.md: New file.
12206 * config/fr30/fr30.md: Include it.
12207 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12208 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12209 (EXTRA_CONSTRAINT): Delete.
12211 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12213 * config/frv/constraints.md: New file.
12214 * config/frv/predicates.md: Include it.
12215 * config/frv/frv.c (reg_class_from_letter): Delete.
12216 (frv_option_override): Don't initialize it.
12217 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12218 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12219 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12220 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12221 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12222 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12223 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12224 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12225 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12226 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12227 (REG_CLASS_FROM_CONSTRAINT): Delete.
12229 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12231 PR middle-end/47581
12232 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12233 if frame size is 0 in a leaf function.
12235 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12238 * config/alpha/host-osf.c: New file.
12239 * config/alpha/x-osf: New file.
12240 * config.host (alpha*-dec-osf*): Use it.
12242 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12244 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12245 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12246 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12247 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12249 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12251 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12253 * config/stormy16/constraints.md: New file.
12254 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12255 Use satisfies_constraint_Q and satisfies_constraint_R.
12256 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12258 (xstormy16_legitiamte_address_p): Declare.
12259 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12260 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12261 (EXTRA_CONSTRAINT): Delete.
12262 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12264 (xstormy16_extra_constraint_p): Delete.
12266 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12268 PR tree-optimization/46494
12269 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12270 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12271 (pass_rtl_loop_done): Add TODO_verify_flow.
12272 * fwprop.c (pass_rtl_fwprop): Likewise.
12273 * modulo-sched.c (pass_sms): Likewise.
12274 * tree-ssa-dom.c (pass_dominator): Likewise.
12275 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12276 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12277 (pass_tree_loop_done): Likewise.
12278 * tree-ssa-pre.c (execute_pre): Likewise.
12279 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12280 * tree-ssa-sink.c (pass_sink_code): Likewise.
12281 * tree-vrp.c (pass_vrp): Likewise.
12283 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12285 * config/v850/constraints.md: New file.
12286 * config/v850/v850.md: Include it.
12287 * config/v850/predicates.md (reg_or_0_operand): Use
12288 satisfies_constraint_G.
12289 (special_symbolref_operand): Use satisfies_constraint_K.
12290 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12291 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12292 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12293 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12294 (EXTRA_CONSTRAINT): Delete.
12295 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12296 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12297 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12299 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12302 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12305 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12307 * config/mcore/constraints.md: New file.
12308 * config/mcore/mcore.md: Include it.
12309 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12310 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12311 (REG_CLASS_FROM_LETTER): Delete.
12312 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12313 insn_const_int_ok_for_constraint.
12314 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12315 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12316 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12317 (EXTRA_CONSTRAINT): Delete.
12319 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12322 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12323 (IS_SIGHANDLER): Define.
12324 (sparc64_is_sighandler): New function, split off from
12325 sparc64_fallback_frame_state.
12326 (sparc_is_sighandler): New function, split off from
12327 sparc_fallback_frame_state.
12328 (sparc64_fallback_frame_state): Merge with ...
12329 (sparc_fallback_frame_state): ... this into ...
12330 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12331 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12332 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12333 stack instead of hardcoded offsets.
12335 2011-02-14 Andriy Gapon <avg@freebsd.org>
12338 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12340 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12342 * configure: Regenerate.
12344 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12347 * gcc.c (asm_options): Correct spec matching --target-help.
12349 2011-02-12 Martin Jambor <mjambor@suse.cz>
12351 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12352 to gimple call error.
12354 2011-02-12 Mike Stump <mikestump@comcast.net>
12356 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12357 comments in backslash regions.
12359 2011-02-12 Mike Stump <mikestump@comcast.net>
12360 Jakub Jelinek <jakub@redhat.com>
12361 Iain Sandoe <iains@gcc.gnu.org>
12364 * dwarf2out.c (output_cfa_loc): When required, apply the
12365 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12366 (output_loc_sequence): Likewise.
12367 (output_loc_operands_raw): Likewise.
12368 (output_loc_sequence_raw): Likewise.
12369 (output_cfa_loc): Likewise.
12370 (output_loc_list): Suppress register number adjustment when
12371 calling output_loc_sequence()
12372 (output_die): Likewise.
12374 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12376 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12378 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12379 xtensa_memory_move_cost): New functions.
12380 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12382 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12385 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12386 in the current directory.
12387 * configure: Rebuilt.
12389 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12391 * config/darwin.c (darwin_override_options): Add a hunk missed
12392 from the commit of r168571. Trim comment line lengths and
12393 correct indents of the preceding block.
12395 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12397 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12400 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12402 * common.opt (nostartfiles): New Driver option.
12404 2011-02-11 Xinliang David Li <davidxl@google.com>
12406 PR tree-optimization/47707
12407 * tree-chrec.c (convert_affine_scev): Keep type precision.
12409 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12411 PR tree-optimization/47420
12412 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12414 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12416 PR rtl-optimization/47614
12417 * rtl.h (check_for_inc_dec): Declare.
12418 * dse.c (check_for_inc_dec): Externalize...
12419 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12420 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12422 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12425 * gcc.c (main): Do not compile inputs if there were errors in
12427 * opts-common.c (read_cmdline_option): Check for wrong language
12428 after other error checks.
12430 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12432 * cgraph.c: Fix comment typos.
12433 * cgraph.h: Likewise.
12434 * cgraphunit.c: Likewise.
12435 * ipa-cp.c: Likewise.
12436 * ipa-inline.c: Likewise.
12437 * ipa-prop.c: Likewise.
12438 * ipa-pure-const.c: Likewise.
12439 * ipa-ref.c: Likewise.
12440 * ipa-reference.c: Likewise.
12442 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12445 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12447 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12450 * doc/sourcebuild.texi (Require Support): Document
12451 dg-require-ascii-locale.
12453 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12455 * doc/lto.texi (Write summary): Fix missing parentheses.
12457 2011-02-10 DJ Delorie <dj@redhat.com>
12459 * config/m32c/m32c.c (m32c_option_override): Disable
12460 -fcombine-stack-adjustments until flag value tracking and compare
12461 optimization can be rewritten.
12463 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12465 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12467 (PROCESSOR_DEFAULT64): Likewise.
12469 2011-02-10 Richard Henderson <rth@redhat.com>
12471 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12472 change from 2011-02-03.
12473 * config/rx/rx.c (flags_from_code): Likewise.
12474 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12475 is valid, n/pz otherwise.
12476 (rx_select_cc_mode): Return CCmode if Y is not zero.
12478 2011-02-10 Richard Guenther <rguenther@suse.de>
12480 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12482 2011-02-10 Richard Guenther <rguenther@suse.de>
12484 PR tree-optimization/47677
12485 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12487 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12490 * combine.c (make_compound_operation): Only change shifts into
12491 multiplication for SCALAR_INT_MODE_P.
12493 2011-02-10 Jie Zhang <jie@codesourcery.com>
12497 2011-02-05 Jie Zhang <jie@codesourcery.com>
12499 * web.c (entry_register): Don't clobber the number of the
12500 first uninitialized reference in used[].
12502 2011-02-09 Richard Guenther <rguenther@suse.de>
12504 PR tree-optimization/47664
12505 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12508 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12512 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12514 (PROCESSOR_DEFAULT64): Same.
12515 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12517 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12519 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12521 2011-02-09 Martin Jambor <mjambor@suse.cz>
12523 PR middle-end/45505
12524 * tree-sra.c (struct access): New flags grp_scalar_read and
12525 grp_scalar_write. Changed description of assignment read and write
12527 (dump_access): Dump new flags, reorder all of them.
12528 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12529 to detect multiple scalar reads.
12530 (analyze_access_subtree): Use the new scalar read write flags instead
12531 of the old flags. Adjusted comments.
12533 2011-02-08 DJ Delorie <dj@redhat.com>
12536 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12539 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12541 * config/m68k/uclinux.opt: New.
12542 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12544 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12546 * config/cris/elf.opt (sim): New Driver option.
12548 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12550 * config/xtensa/elf.opt: New.
12551 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12553 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12555 * config/vax/elf.opt: New.
12556 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12558 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12560 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12562 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12564 * config/gnu-user.opt: New.
12565 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12566 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12567 *-*-uclinux*): Use gnu-user.opt.
12569 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12571 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12572 * config/i386/gnu.h (CPP_SPEC): Likewise.
12574 2011-02-08 Ian Lance Taylor <iant@google.com>
12576 * common.opt (fcx-limited-range): Add SetByCombined flag.
12577 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12578 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12579 (fassociative-math, freciprocal-math): Likewise.
12580 (funsafe-math-optimizations): Likewise.
12581 * opth-gen.awk: Handle SetByCombined.
12582 * optc-gen.awk: Likewise.
12583 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12584 (set_unsafe_math_optimizations_flags): Likewise.
12585 * doc/options.texi (Option properties): Document SetByCombined.
12587 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12589 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12590 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12591 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12592 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12593 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12595 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12597 PR tree-optimization/46834
12598 PR tree-optimization/46994
12599 PR tree-optimization/46995
12600 * graphite-sese-to-poly.c (used_outside_reduction): New.
12601 (detect_commutative_reduction): Call used_outside_reduction.
12602 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12603 translate_scalar_reduction_to_array only when at least one
12604 loop-phi/close-phi tuple has been detected.
12606 2011-02-08 Richard Guenther <rguenther@suse.de>
12608 PR middle-end/47639
12609 * tree-vect-generic.c (expand_vector_operations_1): Update
12611 (expand_vector_operations): ... not here. Cleanup EH info
12612 and the CFG if required.
12614 2011-02-08 Richard Guenther <rguenther@suse.de>
12616 PR tree-optimization/47641
12617 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12618 require type compatibility.
12620 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12622 * gimple-low.c (lower_function_body): Don't remove the location of
12623 the return statement here.
12624 (lower_gimple_return): Do it here instead but only if the return
12625 statement is actually used twice.
12627 2011-02-08 Richard Guenther <rguenther@suse.de>
12629 PR tree-optimization/47632
12630 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12631 unused up_to_stmt parameter, return whether cfg-cleanup is
12632 necessary, remove EH info properly.
12633 (forward_propagate_into_gimple_cond): Adjust caller.
12634 (forward_propagate_into_cond): Likewise.
12635 (forward_propagate_comparison): Likewise.
12636 (tree_ssa_forward_propagate_single_use_vars): Make
12637 forward_propagate_comparison case similar to the two others.
12639 2011-02-08 Nick Clifton <nickc@redhat.com>
12641 * config/mn10300/mn10300.opt (mliw): New command line option.
12642 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12643 (liw_bundling): New automaton.
12644 (liw): New attribute.
12645 (liw_op): New attribute.
12646 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12647 (movsi_internal): Add LIW attributes.
12648 (andsi3): Likewise.
12649 (iorsi3): Likewise.
12650 (xorsi3): Likewise.
12651 (addsi3): Separate register and immediate alternatives.
12652 Add LIW attributes.
12653 (subsi3): Likewise.
12655 (aslsi3): Likewise.
12656 (lshrsi3): Likewise.
12657 (ashrsi3): Likewise.
12658 (liw): New pattern.
12659 * config/mn10300/mn10300.c (liw_op_names): New
12660 (mn10300_print_operand): Handle 'W' operand descriptor.
12661 (extract_bundle): New function.
12662 (check_liw_constraints): New function.
12663 (liw_candidate): New function.
12664 (mn10300_bundle_liw): New function.
12665 (mn10300_reorg): New function.
12666 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12667 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12668 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12669 __LIW__ or __NO_LIW__.
12670 * doc/invoke.texi: Describe the -mliw command line option.
12672 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12674 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12675 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12676 pthread_mutex_unlock): Remove.
12677 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12678 * config/pa/t-pa64: Likewise.
12679 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12680 shared libc if not linking against libpthread.
12681 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12683 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12686 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12687 on 10.6 and later to ensure that we always use the unwinder from
12688 the system. Only add -no_compact_unwind when tarteting darwin
12691 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12694 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12695 (vec_interleave_lowv2sf): Ditto.
12696 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12697 (vec_extract_oddv2sf): Ditto.
12699 2011-02-07 Mike Stump <mikestump@comcast.net>
12702 Add __ieee_divdc3 entry point.
12703 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12705 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12706 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12707 * config/darwin.c (darwin_rename_builtins): Add.
12708 * config/darwin-protos.h (darwin_rename_builtins): Add.
12710 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12713 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12716 2011-02-07 Mike Stump <mikestump@comcast.net>
12718 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12720 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12723 * config/avr/libgcc.S (exit): Move .endfunc
12725 2011-02-07 Richard Guenther <rguenther@suse.de>
12727 PR tree-optimization/47615
12728 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12729 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12730 (run_scc_vn): Initialize it.
12731 (visit_reference_op_load): Use it.
12732 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12734 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12736 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12737 DImode trapping arithmetic libfuncs.
12739 2011-02-07 Richard Guenther <rguenther@suse.de>
12741 PR tree-optimization/47621
12742 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12744 (execute_update_addresses_taken): ... here. Make it more
12745 conservative in what we accept.
12747 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12749 * config/sparc/freebsd.h (ASM_SPEC): Define.
12750 * config/sparc/vxworks.h (ASM_SPEC): Define.
12752 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12754 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12756 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12758 * doc/invoke.texi: Remove reference to compiler internals from
12759 user documentation.
12761 * reg-notes.def: Remove REG_VALUE_PROFILE.
12762 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12764 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12766 PR middle-end/47610
12767 * varasm.c (default_section_type_flags): If decl is NULL,
12768 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12770 2011-02-05 Jie Zhang <jie@codesourcery.com>
12773 * web.c (entry_register): Don't clobber the number of the
12774 first uninitialized reference in used[].
12776 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12778 PR tree-optimization/46194
12779 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12780 (build_classic_dist_vector_1): Do not represent classic distance
12781 vectors when the access functions are variating in different loops.
12783 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12785 * config/mips/iris6.opt: New.
12786 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12788 2011-02-04 Richard Henderson <rth@redhat.com>
12789 Steve Ellcey <sje@cup.hp.com>
12792 * config/ia64/predicates.md (mux1_brcst_element): New.
12793 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12794 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12795 (ia64_unpack_sign): New.
12796 (ia64_expand_unpack): Rewrite using new routines.
12797 (ia64_expand_widen_sum): Ditto.
12798 (ia64_expand_dot_prod_v8qi): Ditto.
12799 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12800 routines, add endian check.
12801 (pmpy2_even): Rename from pmpy2_r, add endian check.
12802 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12803 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12804 (vec_widen_smult_hi_v4hi): Ditto.
12805 (vec_widen_umult_lo_v4hi): Ditto.
12806 (vec_widen_umult_hi_v4hi): Ditto.
12807 (mulv2si3): Change endian checks.
12808 (sdot_prodv4hi): Rewrite with new calls.
12809 (udot_prodv4hi): New.
12810 (vec_pack_ssat_v4hi): Add endian check.
12811 (vec_pack_usat_v4hi): Ditto.
12812 (vec_pack_ssat_v2si): Ditto.
12813 (max1_even): Rename from max1_r, add endian check.
12814 (max1_odd): Rename from max1_l, add endian check.
12815 (*mux1_rev): Format change.
12816 (*mux1_mix): Ditto.
12817 (*mux1_shuf): Ditto.
12818 (*mux1_alt): Ditto.
12819 (*mux1_brcst_v8qi): Use new predicate.
12820 (vec_extract_evenv8qi): Remove endian check.
12821 (vec_extract_oddv8qi): Ditto.
12822 (vec_interleave_lowv4hi): Format change.
12823 (vec_interleave_highv4hi): Ditto.
12824 (mix2_even): Rename from mix2_r, add endian check.
12825 (mix2_odd): Rename from mux2_l, add endian check.
12826 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12827 (vec_extract_evenodd_helper): Format change.
12828 (vec_extract_evenv4hi): Remove endian check.
12829 (vec_extract_oddv4hi): Remove endian check.
12830 (vec_interleave_lowv2si): Format change.
12831 (vec_interleave_highv2si): Format change.
12832 (vec_initv2si): Remove endian check.
12833 (vecinit_v2si): Add endian check.
12834 (reduc_splus_v2sf): Add endian check.
12835 (reduc_smax_v2sf): Ditto.
12836 (reduc_smin_v2sf): Ditto.
12837 (vec_initv2sf): Remove endian check.
12838 (fpack): Add endian check.
12839 (fswap): Add endian check.
12840 (vec_interleave_highv2sf): Add endian check.
12841 (vec_interleave_lowv2sf): Add endian check.
12842 (fmix_lr): Add endian check.
12843 (vec_setv2sf): Format change.
12844 (*vec_extractv2sf_0_be): Use shift to extract operand.
12845 (*vec_extractv2sf_1_be): New.
12846 (vec_pack_trunc_v4hi): Add endian check.
12847 (vec_pack_trunc_v2si): Format change.
12849 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12851 PR inline-asm/23200
12852 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12853 do bb, locus and block comparison and disallow loads if it is not set.
12854 (stmt_is_replaceable_p): New function.
12855 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12857 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12858 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12860 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12862 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12864 * config/rs6000/xilinx.opt: New.
12865 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12867 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12869 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12871 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12873 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12874 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12875 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12876 secondary_reload_info, xtensa_secondary_reload): Remove.
12877 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12878 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12879 (xtensa_preferred_reload_class): Make static. Change return and
12880 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12881 Use CONST_DOUBLE_P predicate.
12882 (xtensa_preferred_output_reload_class): New function.
12883 (xtensa_secondary_reload): Make static.
12885 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12887 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12888 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12889 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12891 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12893 PR middle-end/31490
12894 * output.h (SECTION_RELRO): Define.
12895 (SECTION_MACH_DEP): Adjust.
12896 (get_variable_section): New prototype.
12897 * varpool.c (varpool_finalize_named_section_flags): New function.
12898 (varpool_assemble_pending_decls): Call it.
12899 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12900 * cgraphunit.c (cgraph_output_in_order): Call
12901 varpool_finalize_named_section_flags.
12902 * varasm.c (get_section): Allow section flags conflicts between
12903 relro and read-only sections if the section hasn't been declared yet.
12904 Set SECTION_OVERRIDE after diagnosing section type conflict.
12905 (get_variable_section): No longer static.
12906 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12907 readonly sections that need relocations.
12908 (decl_readonly_section_1): New function.
12909 (decl_readonly_section): Use it.
12912 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12913 Steve Ellcey <sje@cup.hp.com>
12915 PR middle-end/31490
12916 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12917 if section attribute used.
12919 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12921 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12922 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12923 (darwin_init_sections): Remove assertion.
12925 2011-02-03 Nick Clifton <nickc@redhat.com>
12927 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12929 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12930 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12931 instead of "n" and "pz".
12932 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12935 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12938 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12939 fma, expand FMA_EXPR as fma{,f,l} call.
12942 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12943 copy them into a unsigned char variable and pass address of it to
12944 lto_output_data_stream.
12947 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12948 around backend_init_target and lang_dependent_init_target calls.
12949 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12950 (verify_cgraph_node): Don't call set_cfun here. Use
12951 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12952 Set error_found for incorrectly represented calls to thunks.
12954 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12957 PR rtl-optimization/43494
12958 * rtl.h (for_each_inc_dec_fn): New type.
12959 (for_each_inc_dec): Declare.
12960 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12961 (for_each_inc_dec_find_inc_dec): New fn.
12962 (for_each_inc_dec_find_mem): New fn.
12963 (for_each_inc_dec): New fn.
12964 * dse.c (struct insn_size): Remove.
12965 (replace_inc_dec, replace_inc_dec_mem): Remove.
12966 (emit_inc_dec_insn_before): New fn.
12967 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12968 (canon_address): Pass mem modes to cselib_lookup.
12969 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12970 (cselib_lookup_from_insn): Likewise.
12971 (cselib_subst_to_values): Likewise.
12972 * cselib.c (find_slot_memmode): New var.
12973 (cselib_find_slot): New fn. Use it instead of
12974 htab_find_slot_with_hash everywhere.
12975 (entry_and_rtx_equal_p): Use find_slot_memmode.
12976 (autoinc_split): New fn.
12977 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12978 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12979 Deal with autoinc. Special-case recursion into MEMs.
12980 (cselib_hash_rtx): Likewise.
12981 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12982 address and MEM modes.
12983 (cselib_subst_to_values): Add memmode, pass it on.
12985 (cselib_lookup): Add memmode argument, pass it on.
12986 (cselib_lookup_from_insn): Add memmode.
12987 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12988 (struct cselib_record_autoinc_data): New.
12989 (cselib_record_autoinc_cb): New fn.
12990 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12991 mode to cselib_lookup. Reset autoinced REGs here instead of...
12992 (cselib_process_insn): ... here.
12993 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12995 (add_uses): Likewise, also to cselib_subst_to_values.
12996 (add_stores): Likewise.
12997 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12998 cselib_subst_to_values.
12999 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13000 * gcse.c (do_local_cprop): Adjusted.
13001 * postreload.c (reload_cse_simplify_set): Adjusted.
13002 (reload_cse_simplify_operands): Adjusted.
13003 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13005 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13007 PR tree-optimization/45122
13008 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13009 unsafe assumptions when there's more than one loop exit.
13011 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13014 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13015 Document using vector double with the load/store builtins, and
13016 that the load/store builtins always use Altivec instructions.
13018 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13019 to use altivec memory instructions, even on VSX.
13020 (vector_altivec_store_<mode>): Ditto.
13022 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13025 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13026 V2DF, V2DI support to load/store overloaded builtins.
13028 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13029 altivec load/store builtins for V2DF/V2DI types.
13031 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13032 set avoid indexed addresses on power6 if -maltivec.
13033 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13034 vector_altivec_load/vector_altivec_store builtins.
13035 (altivec_expand_st_builtin): Ditto.
13036 (altivec_expand_builtin): Add VSX memory builtins.
13037 (rs6000_init_builtins): Add V2DI types to internal types.
13038 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13039 load/store builtins.
13040 (rs6000_address_for_altivec): Insure memory address is appropriate
13043 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13044 vec_vsx_ld and vec_vsx_st.
13045 (vsx_store_<mode>): Ditto.
13047 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13048 variables to hold long long types for VSX vector memory builtins.
13049 (RS6000_BTI_unsigned_long_long): Ditto.
13050 (long_long_integer_type_internal_node): Ditti.
13051 (long_long_unsigned_type_internal_node): Ditti.
13053 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13054 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13055 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13057 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13059 (vec_vsx_st): Ditto.
13061 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13063 * config/pa/pa-hpux10.opt: New.
13064 * config/hpux11.opt (pthread): New Driver option.
13065 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13066 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13068 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13070 * config/ia64/vms.opt: New.
13071 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13073 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13076 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13077 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13078 generator functions.
13079 (vsx_floatuns<VSi><mode>2): Ditto.
13080 (vsx_fix_trunc<mode><VSi>2): Ditto.
13081 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13083 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13085 * config/i386/djgpp.opt (posix): New Driver option.
13087 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13089 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13090 Move to the unsupported targets list.
13092 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13094 PR rtl-optimization/47525
13095 * df-scan.c: Update copyright years.
13096 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13097 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13099 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13101 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13102 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13103 (ASM_OUTPUT_ASCII): Remove.
13104 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13106 2011-02-02 Jeff Law <law@redhat.com>
13108 PR middle-end/47543
13109 * reload.c (find_reloads_address): Handle reg+d address where both
13110 components are invalid by reloading the entire address.
13112 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13113 Richard Guenther <rguenther@suse.de>
13115 PR tree-optimization/40979
13117 * passes.c (init_optimization_passes): After LIM call copy_prop
13118 and DCE to clean up.
13119 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13121 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13123 PR tree-optimization/47576
13124 PR tree-optimization/47555
13125 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13126 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13127 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13128 * tree-scalar-evolution.c (follow_ssa_edge): Use
13129 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13131 2011-02-02 Richard Guenther <rguenther@suse.de>
13133 PR tree-optimization/47566
13134 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13136 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13140 * tree-inline.c (declare_return_variable): Remove unused caller
13145 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13146 * cfgexpand.c (account_used_vars_for_block): Use them.
13147 * tree-nrv.c (tree_nrv): Likewise.
13148 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13149 (dump_scope_block): Likewise.
13150 (remove_unused_locals): Likewise.
13154 * tree-inline.c (declare_return_variable): Add result decl to
13155 local decls only once.
13156 * gimple-low.c (record_vars_into): Mark newly-created variables
13159 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13165 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13167 (no_real_insns_p, schedule_block, set_priorities): Drop special
13168 treatment of boundary debug insns.
13169 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13170 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13171 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13172 (BOUNDARY_DEBUG_INSN_P): Likewise.
13173 (SCHEDULE_DEBUG_INSN_P): Likewise.
13174 * sched-rgn.c (init_ready_list): Drop special treatment of
13175 boundary debug insns.
13176 * final.c (rest_of_clean_state): Clear notes' BB.
13178 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13180 * config/openbsd.opt (assert=): New Driver option.
13182 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13184 * config/i386/nto.opt: New.
13185 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13187 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13189 * config/i386/netware.opt: New.
13190 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13192 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13194 * config/interix.opt (posix): New Driver option.
13196 2011-02-01 DJ Delorie <dj@redhat.com>
13198 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13200 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13203 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13205 PR tree-optimization/47561
13206 * toplev.c (process_options): Print the Graphite flags. Add
13207 flag_loop_flatten to the list of options requiring Graphite.
13209 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13211 * config/i386/cygming.opt (posix): New Driver option.
13213 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13215 * config/arm/vxworks.opt: New.
13216 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13218 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13220 * config/alpha/elf.opt: New.
13221 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13222 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13224 2011-02-01 Richard Guenther <rguenther@suse.de>
13226 PR tree-optimization/47559
13227 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13228 store-motion on references that can throw.
13230 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13232 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13233 * tree-pass.h (TDF_CSELIB): New macro.
13234 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13235 cselib_lookup): Check for it rather than for TDF_DETAILS.
13237 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13240 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13241 is HOST_BIT_BUCKET.
13243 * opts.c (finish_options): Don't add x_aux_base_name if it is
13246 2011-02-01 Richard Guenther <rguenther@suse.de>
13248 PR tree-optimization/47555
13250 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13252 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13254 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13257 * config/lm32/t-lm32: Add multilib for all CPU options.
13259 2011-02-01 Richard Guenther <rguenther@suse.de>
13261 PR tree-optimization/47541
13262 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13263 sure to have a field at offset zero.
13265 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13267 * config/arc/arc.opt (EB, EL): New Driver options.
13269 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13271 * config/alpha/osf5.opt: New.
13272 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13274 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13276 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13278 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13280 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13281 -floop-interchange.
13282 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13283 is an alias of -floop-interchange and that it requires the
13284 Graphite infrastructure.
13285 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13286 flag_loop_interchange based on the value of flag_tree_loop_linear.
13288 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13289 Richard Guenther <rguenther@suse.de>
13291 PR tree-optimization/47538
13292 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13293 type instead of r1type, except for comparisons. For right
13294 shifts and comparisons punt if there are mismatches in
13295 sizetype vs. non-sizetype types.
13297 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13299 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13302 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13304 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13306 * configure: Regenerate.
13308 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13310 * configure.ac (gcc_cv_ld_static_option): Define.
13311 (gcc_cv_ld_dynamic_option): Define.
13312 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13314 (HAVE_LD_STATIC_DYNAMIC): Update message.
13315 (LD_STATIC_OPTION): Define.
13316 (LD_DYNAMIC_OPTION): Define.
13317 * configure: Regenerate.
13318 * config.in: Regenerate.
13319 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13320 HAVE_LD_STATIC_DYNAMIC]: Use them.
13322 2011-01-31 Nick Clifton <nickc@redhat.com>
13324 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13325 registers inside interrupt handlers if the handler is not a leaf
13328 2011-01-31 Nick Clifton <nickc@redhat.com>
13330 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13331 reg_renumber returning an INVALID_REGNUM.
13333 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13336 * doc/install.texi: Document host options discarded when cross
13337 configuring target libraries.
13339 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13342 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13345 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13347 (no_real_insns_p, schedule_block, set_priorities): Drop special
13348 treatment of boundary debug insns.
13349 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13350 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13351 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13352 (BOUNDARY_DEBUG_INSN_P): Likewise.
13353 (SCHEDULE_DEBUG_INSN_P): Likewise.
13354 * sched-rgn.c (init_ready_list): Drop special treatment of
13355 boundary debug insns.
13356 * final.c (rest_of_clean-state): Clear notes' BB.
13358 2011-01-31 Alan Modra <amodra@gmail.com>
13360 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13361 toc relative expressions as we do in print_operand_address.
13363 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13365 * doc/extend.texi: Follow spelling conventions.
13366 * doc/invoke.texi: Fix a typo.
13368 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13370 * config/hpux11.opt: New.
13371 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13372 ia64*-*-hpux*): Use hpux11.opt.
13374 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13376 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13379 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13381 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13384 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13386 * doc/install.texi (Binaries): Remove outdated reference for
13387 Motorola 68HC11/68HC12 downloads.
13389 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13391 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13394 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13397 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13400 2011-01-28 Ahmad Sharif <asharif@google.com>
13402 * value-prof.c (check_counter): Corrected error message.
13404 2011-01-29 Jie Zhang <jie@codesourcery.com>
13406 * config/arm/arm.c (arm_legitimize_reload_address): New.
13407 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13408 arm_legitimize_reload_address.
13409 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13411 2011-01-28 Ian Lance Taylor <iant@google.com>
13413 * godump.c (go_define): Ignore macros whose definitions include
13414 two adjacent operands.
13416 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13419 * varasm.c (force_const_mem): Store copy of x in desc->constant
13420 instead of x itself.
13421 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13422 itself into REG_EQUAL note.
13424 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13426 * config/freebsd.opt (posix, rdynamic): New Driver options.
13428 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13430 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13431 -Bstatic/-Bdynamic.
13432 * configure: Regenerate.
13434 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13436 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13437 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13439 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13441 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13442 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13443 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13444 (s390_preferred_reload_class): Make static. Change return and
13445 'rclass' argument type to reg_class_t.
13447 2011-01-27 Jan Hubicka <jh@suse.cz>
13449 PR middle-end/46949
13450 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13451 (process_function_and_variable_attributes): Check defined weakrefs.
13453 2011-01-27 Martin Jambor <mjambor@suse.cz>
13455 PR tree-optimization/47228
13456 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13457 build_ref_for_offset.
13459 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13461 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13463 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13465 PR rtl-optimization/46856
13466 * postreload.c (reload_combine_recognize_const_pattern): Do not
13467 separate cc0 setter and user on cc0 targets.
13469 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13472 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13473 passed a VOID_TYPE expression, immediately emit an error and
13474 return error_mark_node.
13476 2011-01-26 Jeff Law <law@redhat.com>
13478 PR rtl-optimization/47464
13479 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13480 rather than may_trap_p as needed.
13482 2011-01-26 DJ Delorie <dj@redhat.com>
13484 PR rtl-optimization/46878
13485 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13486 setter/user dependency as well.
13488 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13490 PR rtl-optimization/44469
13491 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13492 after removing trivially dead basic blocks.
13494 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13496 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13497 * config/frv/frv.h (LINK_SPEC): Likewise.
13498 * config/i386/netware.h (LINK_SPEC): Likewise.
13499 * config/m68k/linux.h (ASM_SPEC): Likewise.
13500 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13501 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13502 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13503 * config/sparc/linux.h (ASM_SPEC): Likewise.
13504 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13505 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13507 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13509 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13510 * config/frv/frv.h (ASM_SPEC): Likewise.
13511 * config/m68k/linux.h (ASM_SPEC): Likewise.
13512 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13513 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13514 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13515 * config/sparc/linux.h (ASM_SPEC): Likewise.
13516 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13517 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13519 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13521 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13522 * config/frv/frv.h (LINK_SPEC): Likewise.
13523 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13525 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13527 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13528 * config/frv/frv.h (ASM_SPEC): Likewise.
13529 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13530 * config/m68k/linux.h (ASM_SPEC): Likewise.
13531 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13532 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13533 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13534 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13535 * config/sparc/linux.h (ASM_SPEC): Likewise.
13536 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13537 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13538 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13540 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13543 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13545 (vec_extract_evenodd_help): Ditto.
13546 (vec_extract_evenv4hi): Ditto.
13547 (vec_extract_oddv4hi): Ditto.
13548 (vec_interleave_lowv2si): Ditto.
13549 (vec_interleave_highv2si): Ditto.
13550 (vec_extract_evenv2si): Ditto.
13551 (vec_extract_oddv2si: Ditto.
13552 (vec_pack_trunc_v2si): Ditto.
13554 2011-01-22 Jan Hubicka <jh@suse.cz>
13557 * cgraph.h (cgraph_local_info): New field can_change_signature.
13558 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13559 signature can change.
13560 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13562 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13563 (cgraph_function_versioning): We can not change signature of functions
13564 that don't allow that.
13565 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13566 (lto_input_node): Likewise.
13567 * ipa-inline.c (compute_inline_parameters): Compute
13568 local.can_change_signature.
13569 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13570 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13571 functions that can not change signature.
13572 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13573 init_cumulative_args): Do not use local calling conventions
13574 for functions that can not change signature.
13576 2011-01-22 Jan Hubicka <jh@suse.cz>
13578 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13580 2011-01-26 Richard Guenther <rguenther@suse.de>
13582 PR tree-optimization/47190
13583 * cgraphunit.c (process_common_attributes): New function.
13584 (process_function_and_variable_attributes): Use it.
13586 2011-01-26 Richard Guenther <rguenther@suse.de>
13589 * cgraphbuild.c (record_eh_tables): Record reference to personality
13592 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13595 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13596 non-debug insns from moving up.
13598 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13601 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13602 t-dlldir{,-x} fragment for build and add it to tmake_file.
13603 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13604 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13605 * config/i386/t-dlldir: New file.
13606 (SHLIB_DLLDIR): Define.
13607 * config/i386/t-dlldir-x: New file.
13608 (SHLIB_DLLDIR): Define.
13609 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13610 (SHLIB_INSTALL): Use it.
13612 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13615 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13616 lower bound of the allowed Thumb-2 coprocessor load/store
13617 index range to -256. Add explaining comment.
13619 2011-01-25 Ian Lance Taylor <iant@google.com>
13621 * godump.c (go_define): Improve lexing of macro expansion to only
13622 accept expressions which match Go spec.
13624 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13627 * tree.c (handle_dll_attribute): Handle it.
13628 * doc/extend.texi (@item dllexport): Mention it.
13629 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13631 2011-01-25 Ian Lance Taylor <iant@google.com>
13633 PR tree-optimization/26854
13634 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13635 (decl_jump_unsafe): Move higher in file, with no other change.
13636 (bind): Set has_jump_unsafe_decl if appropriate.
13637 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13638 (check_earlier_gotos): Likewise.
13639 (c_check_switch_jump_warnings): Likewise.
13641 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13643 * doc/invoke.texi (Warning Options): Add missing hyphen.
13644 (-fprofile-dir): Minor grammatical fixes.
13645 (-fbranch-probabilities): Likewise.
13647 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13651 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13653 (no_real_insns_p, schedule_block, set_priorities): Drop special
13654 treatment of boundary debug insns.
13655 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13656 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13657 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13658 (BOUNDARY_DEBUG_INSN_P): Likewise.
13659 (SCHEDULE_DEBUG_INSN_P): Likewise.
13660 * sched-rgn.c (init_ready_list): Drop special treatment of
13661 boundary debug insns.
13662 * final.c (rest_of_clean-state): Clear notes' BB.
13664 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13666 * Makefile.in (LAMBDA_H): Removed.
13667 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13668 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13669 lambda-trans.o, and tree-loop-linear.o.
13670 (lto-symtab.o): Remove dependence on LAMBDA_H.
13671 (tree-loop-linear.o): Remove rule.
13672 (lambda-mat.o): Same.
13673 (lambda-trans.o): Same.
13674 (lambda-code.o): Same.
13675 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13676 (tree-vect-slp.o): Same.
13677 * hwint.h (gcd): Moved here.
13678 (least_common_multiple): Same.
13679 * lambda-code.c: Removed.
13680 * lambda-mat.c: Removed.
13681 * lambda-trans.c: Removed.
13682 * lambda.h: Removed.
13683 * tree-loop-linear.c: Removed.
13684 * lto-symtab.c: Do not include lambda.h.
13685 * omega.c (gcd): Removed.
13686 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13687 * tree-data-ref.c (print_lambda_vector): Moved here.
13688 (lambda_vector_copy): Same.
13689 (lambda_matrix_copy): Same.
13690 (lambda_matrix_id): Same.
13691 (lambda_vector_first_nz): Same.
13692 (lambda_matrix_row_add): Same.
13693 (lambda_matrix_row_exchange): Same.
13694 (lambda_vector_mult_const): Same.
13695 (lambda_vector_negate): Same.
13696 (lambda_matrix_row_negate): Same.
13697 (lambda_vector_equal): Same.
13698 (lambda_matrix_right_hermite): Same.
13699 * tree-data-ref.h: Do not include lambda.h.
13700 (lambda_vector): Moved here.
13701 (lambda_matrix): Same.
13702 (dependence_level): Same.
13703 (lambda_transform_legal_p): Removed declaration.
13704 (lambda_collect_parameters): Same.
13705 (lambda_compute_access_matrices): Same.
13706 (lambda_vector_gcd): Same.
13707 (lambda_vector_new): Same.
13708 (lambda_vector_clear): Same.
13709 (lambda_vector_lexico_pos): Same.
13710 (lambda_vector_zerop): Same.
13711 (lambda_matrix_new): Same.
13712 * tree-flow.h (least_common_multiple): Removed declaration.
13713 * tree-parloops.c (lambda_trans_matrix): Moved here.
13714 (LTM_MATRIX): Same.
13715 (LTM_ROWSIZE): Same.
13716 (LTM_COLSIZE): Same.
13717 (LTM_DENOMINATOR): Same.
13718 (lambda_trans_matrix_new): Same.
13719 (lambda_matrix_vector_mult): Same.
13720 (lambda_transform_legal_p): Same.
13721 * tree-pass.h (pass_linear_transform): Removed declaration.
13722 * tree-ssa-loop.c (tree_linear_transform): Removed.
13723 (gate_tree_linear_transform): Removed.
13724 (pass_linear_transform): Removed.
13725 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13726 flag_loop_interchange.
13728 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13730 PR tree-optimization/47265
13731 PR tree-optimization/47443
13732 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13733 if name still has some uses.
13735 2011-01-25 Martin Jambor <mjambor@suse.cz>
13737 PR tree-optimization/47382
13738 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13739 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13741 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13743 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13744 sjlj_except_unwind_info.
13746 2011-01-25 Richard Guenther <rguenther@suse.de>
13748 PR tree-optimization/47426
13749 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13750 visible functions results escape.
13752 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13755 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13756 (arm_get_frame_offsets): Use it.
13758 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13759 Jakub Jelinek <jakub@redhat.com>
13761 PR tree-optimization/47271
13762 * tree-if-conv.c (bb_postdominates_preds): New.
13763 (if_convertible_bb_p): Call bb_postdominates_preds.
13764 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13765 (predicate_scalar_phi): Call bb_postdominates_preds.
13767 2011-01-25 Nick Clifton <nickc@redhat.com>
13769 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13770 * config/rx/rx.c (rx_function_value): Likewise.
13771 (rx_promote_function_mode): Likewise.
13772 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13773 in order to make it legitimate.
13774 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13775 make sure that the first operand is the same as the result register.
13776 (addsi3_unspec): Delete.
13777 (subdi3): Do not accept immediate operands.
13778 (subdi3_internal): Likewise.
13780 2011-01-25 Jeff Law <law@redhat.com>
13782 PR rtl-optimization/37273
13783 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13784 handle them like argument loads from stack slots. Do not double
13785 count memory for memory constants and argument loads from stack slots.
13787 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13789 PR tree-optimization/47427
13790 PR tree-optimization/47428
13791 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13792 coalesce if the new root var would be TREE_READONLY.
13794 2011-01-25 Richard Guenther <rguenther@suse.de>
13796 PR middle-end/47414
13797 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13798 correct type for TBAA.
13800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13802 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13803 (close_phi_written_to_memory): Call for_each_index with
13804 dr_indices_valid_in_loop.
13806 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13808 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13809 when it is initialized.
13811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13813 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13814 call to graphite_find_data_references_in_stmt.
13815 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13816 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13817 call to graphite_find_data_references_in_stmt.
13818 (analyze_drs_in_stmts): Same.
13819 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13820 in which the scalar analysis of indices is performed.
13821 (create_data_ref): Same. Update call to dr_analyze_indices.
13822 (find_data_references_in_stmt): Update call to create_data_ref.
13823 (graphite_find_data_references_in_stmt): Same.
13824 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13826 (create_data_ref): Same.
13827 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13828 call to create_data_ref.
13830 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13832 * graphite-sese-to-poly.c (build_poly_scop): Move
13833 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13835 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13837 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13838 VAR_DECL, PARM_DECL, and RESULT_DECL.
13840 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13842 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13843 in a reduction PBB.
13844 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13845 that have already been marked as PBB_IS_REDUCTION.
13847 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13849 * graphite-scop-detection.c (same_close_phi_node): New.
13850 (remove_duplicate_close_phi): New.
13851 (make_close_phi_nodes_unique): New.
13852 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13856 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13857 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13858 of both data references to be the same.
13860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13862 * graphite-dependences.c (build_lexicographical_constraint): Remove
13863 the gdim parameter.
13864 (build_lexicographical_constraint): Adjust call to
13865 ppl_powerset_is_empty.
13866 (dependence_polyhedron): Same.
13867 (graphite_legal_transform_dr): Same.
13868 (graphite_carried_dependence_level_k): Same.
13869 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13871 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13875 * graphite-sese-to-poly.c
13876 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13877 (close_phi_written_to_memory): New.
13878 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13881 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13883 * doc/install.texi: Update the expected version number of PPL to 0.11.
13884 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13885 #if PPL_VERSION_MINOR < 11.
13887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13889 * graphite-dependences.c: Include graphite-cloog-util.h.
13890 (new_poly_ddr): Inlined into dependence_polyhedron.
13891 (free_poly_ddr): Moved close by new_poly_ddr.
13892 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13893 Early return NULL when ppl_powerset_is_empty returns true.
13894 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13895 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13896 (graphite_legal_transform_dr): Call new_poly_ddr.
13897 (graphite_carried_dependence_level_k): Same.
13898 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13899 (dot_transformed_deps_stmt_1): Removed.
13900 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13901 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13902 (dot_deps_1): Call dot_deps_2.
13903 * Makefile.in (graphite-dependences.o): Add missing dependence on
13904 graphite-cloog-util.h.
13906 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13908 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13909 (build_lexicographical_constraint): Same.
13910 (dependence_polyhedron_1): Same.
13911 (graphite_legal_transform_dr): Same.
13912 (graphite_carried_dependence_level_k): Same.
13913 * graphite-ppl.c (ppl_powerset_is_empty): New.
13914 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13915 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13917 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13919 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13920 the "a followed by b" relation and document it.
13922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13924 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13925 iteration when the bag of constraints is empty.
13927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13929 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13931 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13933 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13934 nest and two loop depths as parameters.
13935 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13936 lst_perfect_nestify.
13938 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13940 * graphite-dependences.c (print_pddr): Call
13941 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13943 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13945 * graphite-ppl.c (debug_gmp_value): New.
13946 * graphite-ppl.h (debug_gmp_value): Declared.
13948 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13950 * doc/install.texi: Document availability of cloog-0.16.
13952 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13954 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13955 invalid postdominance info.
13957 2011-01-24 Jan Hubicka <jh@suse.cz>
13960 * doc/extend.texi (weak pragma): Drop claim that it must
13961 appear before definition.
13962 * varasm.c (merge_weak, declare_weak): Only sanity check
13963 that DECL is not output at a time it is declared weak.
13965 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13967 * machmode.def: Fixed comments.
13969 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13971 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13973 2011-01-24 Paul Koning <ni1d@arrl.net>
13975 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13978 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13981 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13982 (block_info): Add scanned and prev.
13983 (move_or_delete_vzeroupper_2): Return if the basic block
13984 has been scanned and the upper 128bit state is unchanged
13985 from the last scan.
13986 (move_or_delete_vzeroupper_1): Return true if the exit
13988 (move_or_delete_vzeroupper): Visit basic blocks using the
13989 work-list based algorithm based on vt_find_locations in
13992 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13994 2011-01-24 Nick Clifton <nickc@redhat.com>
13996 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13997 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13998 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13999 then define __v850e1__.
14000 * doc/invoke.texi: Document -mv850es.
14002 2011-01-24 Richard Henderson <rth@redhat.com>
14004 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14005 compound unordered comparisons.
14006 * config/rx/rx.c (rx_split_fp_compare): Remove.
14007 * config/rx/rx-protos.h: Update.
14008 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14009 (cbranchsf4): Don't call rx_split_fp_compare.
14010 (*cbranchsf4): Use rx_split_cbranch.
14011 (*cmpsf): Don't accept "i" constraint.
14012 (*conditional_branch): Only valid after reload.
14013 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14015 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14018 * config/rs6000/altivec.md (vector constant splitters): Add
14019 support for creating vector single precision constants if -mvsx is
14020 used and we would create the constant using Altivec primitives.
14022 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14023 Richard Sandiford <rdsandiford@googlemail.com>
14025 PR rtl-optimization/47166
14026 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14027 mechanism for PRE_MODIFY and POST_MODIFY.
14028 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14031 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14033 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14035 2011-01-22 Jan Hubicka <jh@suse.cz>
14038 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14040 2011-01-22 Jan Hubicka <jh@suse.cz>
14042 PR tree-optimization/43884
14044 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14045 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14047 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14049 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14050 * config/s390/s390.c (s390_register_move_cost,
14051 s390_memory_move_cost): New.
14052 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14054 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14056 PR middle-end/47401
14057 * except.c (sjlj_assign_call_site_values): Move setting the
14058 crtl->uses_eh_lsda flag to ...
14059 (sjlj_mark_call_sites): ... here.
14060 (sjlj_emit_function_enter): Support NULL dispatch label.
14061 (sjlj_build_landing_pads): In a function with no landing pads
14062 that still has must-not-throw regions, generate code to register
14063 a personality function with empty LSDA.
14065 2011-01-21 Richard Henderson <rth@redhat.com>
14067 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14069 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14071 * compare-elim.c: New file.
14072 * Makefile.in (OBJS-common): Add it.
14073 (compare-elim.o): New.
14074 * common.opt (fcompare-elim): New.
14075 * opts.c (default_options_table): Add OPT_fcompare_elim.
14076 * tree-pass.h (pass_compare_elim_after_reload): New.
14077 * passes.c (init_optimization_passes): Add it.
14078 * recog.h: Protect against re-inclusion.
14079 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14080 * doc/invoke.texi (-fcompare-elim): Document it.
14081 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14082 * doc/tm.texi: Rebuild.
14084 2011-01-22 Nick Clifton <nickc@redhat.com>
14086 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14087 rx_split_fp_compare.
14089 2011-01-22 Nick Clifton <nickc@redhat.com>
14091 * config/rx/rx.md (UNSPEC_CONST): New.
14092 (deallocate_and_return): Wrap the amount popped off the stack in
14093 an UNSPEC_CONST in order to stop it being rejected by
14094 -mmax-constant-size.
14095 (pop_and_return): Add a "(return)" rtx.
14096 (call): Drop the immediate operand.
14097 (call_internal): Likewise.
14098 (call_value): Likewise.
14099 (call_value_internal): Likewise.
14100 (sibcall_internal): Likewise.
14101 (sibcall_value_internal): Likewise.
14102 (sibcall): Likewise. Generate an explicit call using
14104 (sibcall_value): Likewise.
14105 (mov<>): FAIL if a constant operand is not legitimate.
14106 (addsi3_unpsec): New pattern.
14108 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14109 (ok_for_max_constant): New function.
14110 (gen_safe_add): New function.
14111 (rx_expand_prologue): Use gen_safe_add.
14112 (rx_expand_epilogue): Likewise.
14113 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14116 2011-01-21 Jeff Law <law@redhat.com>
14118 PR tree-optimization/47053
14119 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14120 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14121 statements are deleted.
14122 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14123 is nonempty, then purge dead edges and cleanup the CFG.
14125 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14128 Temporarily revert:
14129 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14131 * tree-dfa.c (create_var_ann): Mark variable as used.
14133 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14135 PR middle-end/45566
14136 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14137 notes from other section in hot/cold partitioning even if
14138 last_action is -3. Increment call_site_base.
14140 PR rtl-optimization/47366
14141 * fwprop.c (forward_propagate_into): Return bool. If
14142 any changes are made, -fnon-call-exceptions is used and
14143 REG_EH_REGION note is present, call purge_dead_edges
14144 and return true if it purged anything.
14145 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14146 any EH edges were purged.
14148 2011-01-21 Jeff Law <law@redhat.com>
14150 PR rtl-optimization/41619
14151 * caller-save.c (setup_save_areas): Break out code to determine
14152 which hard regs are live across calls by examining the reload chains
14153 so that it is always used.
14154 Eliminate code which checked REG_N_CALLS_CROSSED.
14156 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14158 PR tree-optimization/47355
14159 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14160 NOP has non-debug uses beyond PHIs in new_bb.
14162 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14165 * cfgexpand.c (account_used_vars_for_block): Only account vars
14166 that are annotated as used.
14167 (estimated_stack_frame_size): Don't set TREE_USED.
14168 * tree-dfa.c (create_var_ann): Mark variable as used.
14170 2011-01-21 Richard Guenther <rguenther@suse.de>
14172 PR middle-end/47395
14173 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14175 2011-01-21 Richard Guenther <rguenther@suse.de>
14177 PR tree-optimization/47365
14178 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14179 (vn_reference_lookup_pieces): Adjust.
14180 (vn_reference_lookup): Likewise.
14181 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14182 (vn_reference_lookup_3): Only look through kills if in
14183 VN_WALKREWRITE mode.
14184 (vn_reference_lookup_pieces): Adjust.
14185 (vn_reference_lookup): Likewise.
14186 (visit_reference_op_load): Likewise.
14187 (visit_reference_op_store): Likewise.
14188 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14189 (compute_avail): Likewise.
14190 (eliminate): Likewise.
14192 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14194 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14195 DECL_IGNORED_P non-reg vars if they are used.
14197 PR tree-optimization/47391
14198 * varpool.c (const_value_known_p): Return false if
14201 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14204 * config/i386/i386.c (ix86_local_alignment): Handle
14205 case for va_list_type_node is nil.
14206 (ix86_canonical_va_list_type): Likewise.
14208 2011-01-21 Alan Modra <amodra@gmail.com>
14210 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14211 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14213 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14215 * config/arm/arm.md (define_attr type): Rename f_load
14216 and f_store to f_fpa_load and f_fpa_store. Update.
14217 (write_conflict): Deal with rename fallout.
14218 (*push_fp_multi): Likewise.
14219 * config/arm/fpa.md (f_load): Use f_fpa_load.
14220 (f_store): Use f_fpa_store.
14221 (*movsf_fpa): Likewise.
14222 (*movdf_fpa): Likewise.
14223 (*movxf_fpa): Likewise.
14224 (*thumb2_movsf_fpa): Likewise.
14225 (*thumb2_movdf_fpa): Likewise.
14226 (*thumb2_movxf_fpa): Likewise.
14227 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14228 f_loadd and f_stored.
14229 (*thumb2_movdi_vfp): Likewise.
14230 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14231 (*thumb2_movsi_vfp): Likewise.
14232 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14233 Use f_loads instead of f_load.
14234 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14236 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14238 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14239 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14240 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14241 (xtensa_mode_dependent_address_p): New function.
14242 (constantpool_address_p): Make static. Change return type to bool.
14243 Change argument type to const_rtx. Use CONST_INT_P predicate.
14245 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14248 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14250 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14253 * cfgexpand.c (expand_debug_expr): Instead of generating
14254 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14257 2011-01-20 Richard Guenther <rguenther@suse.de>
14259 PR middle-end/47370
14260 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14261 the pointer operand of MEM_REFs.
14263 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14265 PR tree-optimization/46130
14266 * ipa-split.c (consider_split): If return_bb contains non-virtual
14267 PHIs other than for retval or if split_function would not adjust it,
14270 2011-01-20 Richard Guenther <rguenther@suse.de>
14272 PR tree-optimization/47167
14273 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14274 Revert previous change, only avoid enumeral type changes.
14276 2011-01-19 Mike Stump <mikestump@comcast.net>
14278 * doc/tm.texi.in (BRANCH_COST): Englishify.
14279 * doc/tm.texi (BRANCH_COST): Likewise.
14281 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14284 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14285 (gen_scheduled_generic_parms_dies): New functions.
14286 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14287 generation for the end of CU compilation.
14288 (dwarf2out_finish): Generate template parameters DIEs here.
14290 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14293 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14294 debug bind stmt on merge edges.
14296 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14300 * function.c (instantiate_expr): Instantiate incoming rtl of
14301 implicit arguments, and recurse on VALUE_EXPRs.
14302 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14303 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14305 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14307 * c-parser.c (c_parser_for_statement): Initialize
14308 collection_expression.
14310 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14312 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14314 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14316 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14317 (LINK_SHLIB_SPEC): Don't use %(link_path).
14318 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14320 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14322 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14323 (NO_SHARED_LIB_SUPPORT): Remove.
14324 (LINK_SHLIB_SPEC): Remove one conditional definition.
14326 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14328 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14330 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14331 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14332 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14333 %{call_shared} and conditionals on these options not being passed.
14334 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14337 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14339 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14342 * ipa-split.c: Spelling fixes.
14344 2011-01-19 Richard Henderson <rth@redhat.com>
14346 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14347 (*mulsi3): Likewise.
14349 * longlong.h [__mn10300__] (count_leading_zeros): New.
14350 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14351 [__mn10300__] (add_ssaaaa, subddmmss): New.
14352 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14353 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14355 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14357 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14359 2011-01-19 Richard Henderson <rth@redhat.com>
14361 * config/mn10300/mn10300.md (addsi3_flags): New.
14362 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14363 (subsi3_flags, subc_internal, subdi3): New.
14364 (subdi3_internal, *subdi3_degenerate): New.
14365 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14367 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14368 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14369 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14370 * config/mn10300/mn10300-protos.h: Update.
14371 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14372 (return_ret): Likewise. Rename from return_internal_regs.
14373 (return_internal): Remove.
14375 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14376 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14377 (mn10300_legitimate_constant_p): Likewise.
14378 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14379 (mn10300_frame_size): New.
14380 (mn10300_expand_prologue): Use it.
14381 (mn10300_expand_epilogue): Likewise.
14382 (mn10300_initial_offset): Likewise.
14383 * config/mn10300/mn10300-protos.h: Update.
14384 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14385 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14386 (prologue, epilogue, return_internal): Tidy output code.
14387 (mn10300_store_multiple_operation, return): Likewise.
14388 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14389 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14390 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14391 (load_pic, am33_load_pic): New.
14392 (mn10300_load_pic0, mn10300_load_pic1): New.
14394 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14395 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14396 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14397 (cc_flags_for_mode, cc_flags_for_code): New.
14398 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14399 overflow flag is not valid. Validate that the flags we need
14400 for the comparison are valid.
14401 (mn10300_output_cmp): Remove.
14402 (mn10300_output_add): New.
14403 (mn10300_select_cc_mode): Use cc_flags_for_code.
14404 (mn10300_split_cbranch): New.
14405 (mn10300_match_ccmode): New.
14406 (mn10300_split_and_operand_count): New.
14407 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14409 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14410 (addsi3): ... here. Use mn10300_output_add.
14411 (*addsi3_flags): New.
14412 (*am33_subsi3, *mn10300_subsi3): Merge...
14413 (subsi3): ... here. Use attribute isa.
14414 (*subsi3_flags): New.
14415 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14417 (*am33_andsi3, *mn10300_andsi3): Merge...
14418 (andsi3): ... here.
14419 (*andsi3_flags): New.
14420 (andsi3 splitters): New.
14421 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14422 (iorsi3): ... here.
14423 (*iorsi3_flags): New.
14424 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14425 (xorsi3): ... here.
14426 (*xorsi3_flags): New.
14427 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14428 (one_cmplsi2): ... here.
14429 (*one_cmplsi2_flags): New.
14430 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14431 instead of "dax" in constraints. Use mn10300_split_cbranch.
14432 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14433 use matching constraints to eliminate a self-comparison.
14434 (*integer_conditional_branch): Rename from integer_conditional_branch.
14435 Use int_mode_flags to match CC_REG.
14436 (*cbranchsi4_btst, *btstsi): New.
14437 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14438 mn10300_split_cbranch.
14439 (*am33_cmpsf): Rename from am33_cmpsf.
14440 (*float_conditional_branch): Rename from float_conditional_branch.
14441 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14442 (zero_extendqisi2): ... here.
14443 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14444 (zero_extendhisi2): ... here.
14445 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14446 (extendqisi2): ... here.
14447 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14448 (extendhisi2): ... here.
14449 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14450 (ashlsi3): ... here.
14451 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14452 (lshrsi3): ... here.
14453 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14454 (ashrsi3): ... here.
14455 (consecutive add peephole): Remove.
14456 * config/mn10300/predicates.md (label_ref_operand): New.
14457 (int_mode_flags): New.
14458 (CCZN_comparison_operator): New.
14460 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14461 (throughput_42_latency_43): New reservation.
14462 (mulsidi3, umulsidi3): New expanders.
14463 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14464 the MDR register to allocation; separately allocate the low and
14465 high parts of the DImode result.
14466 (umulsidi3_internal): Similarly.
14467 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14468 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14469 (udivsi3, umodsi3): Remove.
14470 (udivmodsi4, divmodsi4): New expanders.
14471 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14472 (*divmodsi4): Simiarly.
14473 (ext_internal): New.
14475 * config/mn10300/constraints.md ("z"): New constraint.
14476 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14477 (FIXED_REGISTERS): Don't fix MDR.
14478 (CALL_USED_REGSITERS): Reformat nicely.
14479 (REG_ALLOC_ORDER): Add MDR.
14480 (enum regclass): Add MDR_REGS.
14481 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14482 (IRA_COVER_CLASSES): Add MDR_REGS.
14483 (REGNO_REG_CLASS): Handle MDR_REG.
14484 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14485 (mn10300_register_move_cost): Likewise.
14486 * config/mn10300/mn10300.md (MDR_REG): New.
14487 (*movsi_internal): Handle moves to/from MDR_REGS.
14489 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14491 (mn10300_secondary_reload): Tidy combination reload classes.
14492 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14493 addresses for AM33. Allow symbolic offsets for reg+imm.
14494 (mn10300_regno_in_class_p): New.
14495 (mn10300_legitimize_reload_address): New.
14496 * config/mn10300/mn10300.h (enum reg_class): Remove
14497 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14498 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14499 SP_OR_GENERAL_REGS.
14500 (REG_CLASS_NAMES): Update to match.
14501 (REG_CLASS_CONTENTS): Likewise.
14502 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14503 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14504 (REGNO_IN_RANGE_P): Remove.
14505 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14506 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14507 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14508 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14509 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14510 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14511 (REGNO_GENERAL_P): New.
14512 (HAVE_POST_MODIFY_DISP): New.
14513 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14514 (LEGITIMIZE_RELOAD_ADDRESS): New.
14515 * config/mn10300/mn10300-protos.h: Update.
14517 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14518 DATA_REGS for AM33 stack-pointer destination.
14519 (mn10300_preferred_output_reload_class): Likewise.
14520 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14521 into a form appropriate for ...
14522 (TARGET_SECONDARY_RELOAD): New.
14523 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14524 * config/mn10300/mn10300-protos.h: Update.
14525 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14526 reload_insi; use the "A" constraint for the scratch; handle AM33
14527 moves of sp to non-address registers.
14529 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14530 (*movqi_internal): ... here.
14531 (*am33_movhi, *mn10300_movhi): Merge into...
14532 (*movhi_internal): ... here.
14533 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14534 as the source/destination of moves from/to SP.
14535 (movsf): Only allow for AM33-2.
14536 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14537 any integer constant constraint. Only allow for AM33-2. Tidy
14538 all of the alternative outputs.
14539 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14540 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14542 (udivsi3, umodsi3): New patterns for MN103 only.
14544 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14546 * doc/tm.texi.in: Spell out that a lack of register class unions
14548 * doc/tm.texi: Regenerate.
14550 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14552 PR rtl-optimization/47337
14553 * dce.c (check_argument_store): New function.
14554 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14556 PR tree-optimization/47290
14557 * tree-eh.c (infinite_empty_loop_p): New function.
14558 (cleanup_empty_eh): Use it.
14560 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14563 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14564 (a64_expand_widen_sum): Ditto.
14565 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14566 (vec_extract_evenodd_help): Ditto.
14567 (vec_extract_evenv4hi): Ditto.
14568 (vec_extract_oddv4hi): Ditto.
14569 (vec_extract_evenv2si): Ditto.
14570 (vec_extract_oddv2si): Ditto.
14571 (vec_extract_evenv2sf): Ditto.
14572 (vec_extract_oddv2sf): Ditto.
14573 (vec_pack_trunc_v4hi: Ditto.
14574 (vec_pack_trunc_v2si): Ditto.
14575 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14576 (vec_interleave_highv8qi): Ditto.
14578 (vec_extract_oddv8qi): Ditto.
14579 (vec_interleave_lowv4hi): Ditto.
14580 (vec_interleave_highv4hi): Ditto.
14581 (vec_interleave_lowv2si): Ditto.
14582 (vec_interleave_highv2si): Ditto.
14584 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14586 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14587 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14588 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14589 (pa_c_mode_for_suffix): New.
14590 (TARGET_EXPAND_BUILTIN): Define.
14591 (TARGET_C_MODE_FOR_SUFFIX): Define.
14592 (pa_builtins): Define.
14593 (pa_init_builtins): Register __float128 type and init new support
14595 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14596 * config/pa/quadlib.c (_U_Qfcopysign): New.
14598 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14600 PR middle-end/46894
14601 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14602 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14605 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14607 PR tree-optimization/47179
14608 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14609 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14611 2011-01-18 Richard Guenther <rguenther@suse.de>
14613 PR rtl-optimization/47216
14614 * emit-rtl.c: Include tree-flow.h.
14615 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14616 of replicating it with different semantics.
14617 * Makefile.in (emit-rtl.o): Adjust.
14619 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14621 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14622 (cortex_a9_dp): Handle neon types correctly.
14624 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14626 PR rtl-optimization/47299
14627 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14628 subtarget. Use normal multiplication if both operands are constants.
14629 * expmed.c (expand_widening_mult): Don't try to optimize constant
14630 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14633 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14635 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14636 spacing after 'e.g.', typos, comma, hyphenation.
14638 2011-01-17 Richard Henderson <rth@redhat.com>
14640 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14641 (rx_restricted_mem_operand): New.
14642 (rx_shift_operand): Use register_operand.
14643 (rx_source_operand, rx_compare_operand): Likewise.
14644 * config/rx/rx.md (addsi3_flags): New expander.
14645 (adddi3): Rewrite as expander.
14646 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14647 (subsi3_flags): New expander.
14648 (subdi3): Rewrite as expander.
14649 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14651 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14652 (rx_init_builtins): Remove sat builtin.
14653 (rx_expand_builtin): Likewise.
14654 * config/rx/rx.md (ssaddsi3): New.
14655 (*sat): Rename from sat. Represent the CC_REG input.
14657 * config/rx/predicates.md (rshift_operator): New.
14658 * config/rx/rx.c (rx_expand_insv): Remove.
14659 * config/rx/rx-protos.h: Update.
14660 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14661 operand to the canonical position.
14662 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14663 (*bitclr, *bitclr_in_memory): Similarly.
14664 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14665 (insv): Retain the zero_extract in the expansion.
14667 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14668 (bswaphi2, bitinvert, revw): Likewise.
14670 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14671 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14672 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14673 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14674 (bitset, bitset_in_memory): Likewise.
14675 (bitinvert, bitinvert_in_memory): Likewise.
14676 (bitclr, bitclr_in_memory): Likewise.
14677 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14678 (rx_strend, rx_cmpstrn): Likewise.
14679 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14680 (bitop peep2 patterns): Remove.
14682 * config/rx/rx.c (rx_match_ccmode): New.
14683 * config/rx/rx-protos.h: Update.
14684 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14685 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14686 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14687 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14688 (fix_truncsfsi2, floatsisf2): Likewise.
14689 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14690 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14691 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14692 (*subsi3_flags, *xorsi3_flags): New.
14694 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14696 * config/rx/rx.c (rx_print_operand): Remove workaround for
14697 unsplit comparison operations.
14699 * config/rx/rx.md (movsicc): Split after reload.
14700 (*movsicc): Merge *movsieq and *movsine via match_operator.
14701 (*stcc): New pattern.
14703 * config/rx/rx.c (rx_float_compare_mode): Remove.
14704 * config/rx/rx.h (rx_float_compare_mode): Remove.
14705 * config/rx/rx.md (cstoresi4): Split after reload.
14706 (*sccc): New pattern.
14708 * config/rx/predicates.md (label_ref_operand): New.
14709 (rx_z_comparison_operator): New.
14710 (rx_zs_comparison_operator): New.
14711 (rx_fp_comparison_operator): New.
14712 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14713 Validate that the flags are set properly for the comparison.
14714 (rx_gen_cond_branch_template): Remove.
14715 (rx_cc_modes_compatible): Remove.
14716 (mode_from_flags): New.
14717 (flags_from_code): Rename from flags_needed_for_conditional.
14718 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14719 (rx_select_cc_mode): Likewise.
14720 (rx_split_fp_compare): New.
14721 (rx_split_cbranch): New.
14722 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14723 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14724 (*cbranchsf4): Similarly.
14725 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14726 match_operator and rx_split_cbranch.
14727 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14728 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14729 (*cmpsi): Rename from cmpsi.
14730 (*tstsi): Rename from tstsi.
14731 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14732 (*conditional_branch): Rename from conditional_branch.
14733 (*reveresed_conditional_branch): Remove.
14734 (b<code>): Remove expander.
14735 * config/rx/rx-protos.h: Update.
14737 * config/rx/rx.c (rx_compare_redundant): Remove.
14738 * config/rx/rx.md (cmpsi): Don't use it.
14739 * config/rx/rx-protos.h: Update.
14741 * config/rx/rx-modes.def (CC_F): New mode.
14742 * config/rx/rx.c (rx_select_cc_mode): New.
14743 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14744 * config/rx/rx-protos.h: Update.
14746 2011-01-17 Richard Henderson <rth@redhat.com>
14748 * except.c (dump_eh_tree): Fix stray ; after for statement.
14750 2011-01-17 Richard Guenther <rguenther@suse.de>
14752 PR tree-optimization/47313
14753 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14754 handling before copying the body. Properly deal with
14755 by-reference result in SSA form.
14757 2011-01-17 Ian Lance Taylor <iant@google.com>
14760 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14761 (struct_value_alias_set): Don't define.
14762 (sparc_option_override): Don't set sparc_sr_alias_set and
14763 struct_value_alias_set.
14764 (save_or_restore_regs): Use gen_frame_mem rather than calling
14766 (sparc_struct_value_rtx): Likewise.
14768 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14771 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14772 (_mm_maskstore_pd): Likewise.
14773 (_mm_maskload_ps): Likewise.
14774 (_mm_maskstore_ps): Likewise.
14775 (_mm256_maskload_pd): Change mask to __m256i.
14776 (_mm256_maskstore_pd): Likewise.
14777 (_mm256_maskload_ps): Likewise.
14778 (_mm256_maskstore_ps): Likewise.
14780 * config/i386/i386-builtin-types.def: Updated.
14781 (ix86_expand_special_args_builtin): Likewise.
14783 * config/i386/i386.c (bdesc_special_args): Update
14784 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14785 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14786 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14787 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14789 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14790 Use <avxpermvecmode> on mask register.
14791 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14793 2011-01-17 Olivier Hainque <hainque@adacore.com>
14794 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14795 Eric Botcazou <ebotcazou@adacore.com>
14798 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14799 if <= USHRT_MAX in 32-bit mode.
14801 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14803 * doc/install.texi (Configuration, Specific): Wrap long
14804 lines in examples. Allow line wrapping in long options
14805 and URLs where beneficial for PDF output.
14807 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14809 * config/mips/mips.c (mips_classify_symbol): Don't return
14810 SYMBOL_PC_RELATIVE for nonlocal labels.
14812 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14814 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14816 2011-01-15 Jan Hubicka <jh@suse.cz>
14818 PR tree-optimization/47276
14819 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14820 declarations as needed.
14822 2011-01-15 Martin Jambor <mjambor@suse.cz>
14824 * common.opt (fdevirtualize): New flag.
14825 * doc/invoke.texi (Option Summary): Document it.
14826 * opts.c (default_options_table): Add devirtualize flag.
14827 * ipa-prop.c (detect_type_change): Return immediately if
14828 devirtualize flag is not set.
14829 (detect_type_change_ssa): Likewise.
14830 (compute_known_type_jump_func): Likewise.
14831 (ipa_analyze_virtual_call_uses): Likewise.
14833 2011-01-14 Martin Jambor <mjambor@suse.cz>
14835 PR tree-optimization/45934
14836 PR tree-optimization/46302
14837 * ipa-prop.c (type_change_info): New type.
14838 (stmt_may_be_vtbl_ptr_store): New function.
14839 (check_stmt_for_type_change): Likewise.
14840 (detect_type_change): Likewise.
14841 (detect_type_change_ssa): Likewise.
14842 (compute_complex_assign_jump_func): Check for dynamic type change.
14843 (compute_complex_ancestor_jump_func): Likewise.
14844 (compute_known_type_jump_func): Likewise.
14845 (compute_scalar_jump_functions): Likewise.
14846 (ipa_analyze_virtual_call_uses): Likewise.
14847 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14849 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14851 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14852 * config/i386/i386.opt (msse5): New Alias.
14854 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14856 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14857 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14858 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14859 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14861 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14863 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14865 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14866 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14867 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14868 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14870 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14872 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14874 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14876 2011-01-14 Mike Stump <mikestump@comcast.net>
14878 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14879 * config/fr30/fr30.md: Likweise
14880 (movsi_push): Likewise.
14881 (movsi_pop): Likewise.
14882 (enter_func): Likewise.
14883 * config/moxie/moxie.md (movsi_push): Likewise.
14884 (movsi_pop): Likewise.
14886 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14888 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14889 %{no_archive} %{exact_version}.
14890 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14891 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14892 %{no_archive} %{exact_version}.
14893 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14894 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14895 * config/mips/vxworks.h: Likewise.
14897 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14899 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14901 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14903 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14904 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14906 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14908 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14911 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14913 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14915 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14916 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14918 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14919 Don't handle -shlib.
14921 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14923 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14924 (CC1_SPEC): Don't handle -profile.
14926 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14928 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14929 * config/mips/mips.h (CC1_SPEC): Likewise.
14931 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14933 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14934 * config/mips/mips.h (CC1_SPEC): Likewise.
14936 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14938 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14939 * config/m32r/linux.h (LINK_SPEC): Likewise.
14940 * config/mips/linux.h (LINK_SPEC): Likewise.
14941 * config/mips/linux64.h (LINK_SPEC): Likewise.
14942 * config/sparc/linux.h (LINK_SPEC): Likewise.
14943 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14944 LINK_SPEC): Likewise.
14945 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14947 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14949 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14951 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14953 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14955 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14956 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14958 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14960 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14962 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14964 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14965 supports -Bstatic/-Bdynamic.
14966 * configure: Regenerate.
14968 2011-01-14 Jan Hubicka <jh@suse.cz>
14969 Jack Howarth <howarth@bromo.med.uc.edu>
14972 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14973 when checking debug_info_level. Test write_symbols instead of
14974 debug_hooks->var_location when setting flag_var_tracking_uninit.
14976 2011-01-14 Richard Guenther <rguenther@suse.de>
14978 PR tree-optimization/47179
14979 * target.def (ref_may_alias_errno): New target hook.
14980 * targhooks.h (default_ref_may_alias_errno): Declare.
14981 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14982 (default_ref_may_alias_errno): New function.
14983 * target.h (struct ao_ref_s): Declare.
14984 * tree-ssa-alias.c: Include target.h.
14985 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14986 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14987 (targhooks.o): Likewise.
14988 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14989 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14991 2011-01-14 Richard Guenther <rguenther@suse.de>
14993 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14995 2011-01-14 Richard Guenther <rguenther@suse.de>
14997 PR tree-optimization/47280
14998 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14999 return CFG changes.
15000 (tree_ssa_forward_propagate_single_use_vars): Deal with
15001 CFG changes from associate_plusminus.
15003 2011-01-14 Richard Guenther <rguenther@suse.de>
15005 PR middle-end/47281
15007 2011-01-11 Richard Guenther <rguenther@suse.de>
15009 PR tree-optimization/46076
15010 * tree-ssa.c (useless_type_conversion_p): Conversions from
15011 unprototyped to empty argument list function types are useless.
15013 2011-01-14 Richard Guenther <rguenther@suse.de>
15015 PR tree-optimization/47286
15016 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15018 2011-01-14 Martin Jambor <mjambor@suse.cz>
15020 PR middle-end/46823
15021 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15023 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15025 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15026 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15027 * config/xtensa/xtensa.c (xtensa_libcall_value,
15028 xtensa_function_value_regno_p): New functions.
15029 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15031 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15034 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15036 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15037 New function prototype.
15038 * config/i386/winnt.c (i386_pe_assemble_visibility):
15039 Warn only if attribute was specified by user.
15041 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15044 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15046 (floatunsdidf2_fcfidu): Ditto.
15048 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15050 * config/s390/s390.c (print_operand_address): Replace 'error' with
15051 'output_operand_lossage'.
15052 (print_operand): Likewise.
15054 2011-01-13 Jeff Law <law@redhat.com>
15056 PR rtl-optimization/39077
15057 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15058 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15059 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15060 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15061 * gcse.c (prune_insertions_deletions): New function.
15062 (compute_pre_data): Use it.
15064 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15067 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15069 (prune_unused_types_mark): Use it.
15071 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15073 PR rtl-optimization/45352
15074 * sel-sched.c: Update copyright years.
15075 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15076 in the advancing loop when we have issued issue_rate insns.
15078 2011-01-12 Richard Henderson <rth@redhat.com>
15080 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15081 (TARGET_MD_ASM_CLOBBERS): New.
15083 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15084 (TARGET_DELEGITIMIZE_ADDRESS): New.
15086 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15087 (clzsi2, *bsch): New patterns.
15089 * config/mn10300/mn10300.md (INT): New mode iterator.
15090 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15092 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15093 flag_split_wide_types.
15095 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15096 (mn10300_trampoline_init): Rewrite without a template, an immediate
15097 load and a direct branch.
15098 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15100 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15102 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15103 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15104 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15105 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15107 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15110 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15113 2011-01-12 Jan Hubicka <jh@suse.cz>
15116 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15117 (PLUGIN_COND_CLOSE): New macro.
15118 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15120 2011-01-12 Richard Guenther <rguenther@suse.de>
15123 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15124 register variables in a MEM_REF.
15126 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15128 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15129 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15130 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15131 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15132 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15133 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15134 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15135 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15136 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15137 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15138 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15139 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15140 * config/gnu-user.h: New. Copied from linux.h.
15141 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15142 GNU_USER_TARGET_STARTFILE_SPEC.
15143 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15144 GNU_USER_TARGET_ENDFILE_SPEC.
15145 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15146 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15147 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15148 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15149 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15150 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15151 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15152 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15153 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15154 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15155 * config/arm/linux-eabi.h (CC1_SPEC): Use
15156 GNU_USER_TARGET_CC1_SPEC.
15157 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15158 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15159 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15160 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15161 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15162 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15163 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15164 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15166 2011-01-12 Richard Guenther <rguenther@suse.de>
15169 * doc/invoke.texi (ffast-math): Document it is turned on
15172 2011-01-12 Jan Hubicka <jh@suse.cz>
15174 PR tree-optimization/47233
15175 * opts.c (common_handle_option): Disable ipa-reference with profile
15178 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15180 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15183 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15185 * c-parser.c (c_lex_one_token): Updated and reindented some
15186 comments. No changes in code.
15188 2011-01-11 Ian Lance Taylor <iant@google.com>
15190 * godump.c (go_output_var): Don't output the variable if there is
15191 already a type with the same name.
15193 2011-01-11 Ian Lance Taylor <iant@google.com>
15195 * godump.c (go_format_type): Don't generate float80.
15197 2011-01-11 Richard Henderson <rth@redhat.com>
15199 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15200 declaration. Rewrite for both speed and size.
15201 (mn10300_address_cost_1): Remove.
15202 (mn10300_register_move_cost): New.
15203 (mn10300_memory_move_cost): New.
15204 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15205 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15206 extensions, shifts, BSWAP, CLZ.
15207 (mn10300_wide_const_load_uses_clr): Remove.
15208 (TARGET_REGISTER_MOVE_COST): New.
15209 (TARGET_MEMORY_MOVE_COST): New.
15210 * config/mn10300/mn10300-protos.h: Update.
15211 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15213 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15214 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15215 * config/mn10300/mn10300-protos.h: Update.
15216 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15217 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15218 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15219 (*test_int_bitfield, *test_byte_bitfield): Remove.
15220 (*bit_test, *subreg_bit_test): Remove.
15221 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15223 * config/mn10300/constraints.md ("c"): Rename from "A".
15224 ("A", "D"): New constraint letters.
15225 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15226 (fmssf4, fnmasf4, fnmssf4): Likewise.
15228 * config/mn10300/mn10300.md (isa): New attribute.
15229 (enabled): New attribute.
15231 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15232 (abssf2, negsf2): Define only for hardware fp.
15233 (sqrtsf2): Reformat.
15234 (addsf3, subsf3, mulsf3): Merge expander and insn.
15236 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15237 (DEBUGGER_AUTO_OFFSET): Remove.
15238 (DEBUGGER_ARG_OFFSET): Remove.
15240 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15241 Emit register stores with the same offsets as the hardware.
15242 (mn10300_store_multiple_operation): Don't check that the register
15243 save offsets are monotonic.
15244 * config/mn10300/mn10300-protos.h: Update.
15246 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15248 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15249 in terms of the value on the stack, not the MDR register.
15251 2011-01-11 Jan Hubicka <jh@suse.cz>
15255 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15256 (symbol_alias_set_destroy, symbol_alias_set_contains,
15257 propagate_aliases_backward): Declare.
15258 * lto-streamer-out.c (struct sets): New sturcture.
15259 (trivally_defined_alias): New function.
15260 (output_alias_pair_p): Rewrite.
15261 (output_unreferenced_globals): Fix output of alias pairs.
15262 (produce_symtab): Likewise.
15263 * ipa.c (function_and_variable_visibility): Set weak alias destination
15265 * varasm.c (symbol_alias_set_t): Remove.
15266 (symbol_alias_set_destroy): Export.
15267 (propagate_aliases_forward, propagate_aliases_backward): New functions
15269 (compute_visible_aliases): ... this one; remove.
15270 (trivially_visible_alias): New
15271 (trivially_defined_alias): New.
15272 (remove_unreachable_alias_pairs): Rewrite.
15273 (finish_aliases_1): Reorganize code checking if alias is defined.
15274 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15277 2011-01-11 Richard Guenther <rguenther@suse.de>
15279 PR tree-optimization/46076
15280 * tree-ssa.c (useless_type_conversion_p): Conversions from
15281 unprototyped to empty argument list function types are useless.
15283 2011-01-11 Richard Guenther <rguenther@suse.de>
15285 PR middle-end/45235
15286 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15287 volatile MEMs as MEM_READONLY_P.
15289 2011-01-11 Richard Guenther <rguenther@suse.de>
15291 PR tree-optimization/47239
15292 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15294 2011-01-11 Jeff Law <law@redhat.com>
15296 PR tree-optimization/47086
15297 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15298 IVs from statements that might throw.
15300 2011-01-10 Jan Hubicka <jh@suse.cz>
15303 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15305 2011-01-10 Jan Hubicka <jh@suse.cz>
15308 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15309 when correcting profile.
15311 2011-01-10 Jan Hubicka <jh@suse.cz>
15314 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15315 DECL_FINI_PRIORITY.
15316 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15317 Restore DECL_FINI_PRIORITY.
15319 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15321 * doc/gimple.texi: Fix quoting of multi-word return values in
15322 @deftypefn statements. Ensure presence of return value. Wrap
15323 overlong @deftypefn lines.
15324 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15325 descriptions of removed functions.
15326 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15327 of multi-word return value in @deftypefn statement.
15329 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15331 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15332 (Conditional Expressions, Logical Operators)
15333 (Statement and operand traversals): Do not indent smallexample
15334 code. Fix duplicate function argument in example.
15336 2011-01-10 Jeff Law <law@redhat.com>
15338 PR tree-optimization/47141
15339 * ipa-split.c (split_function): Handle case where we are
15340 returning a value and the return block has a virtual operand phi.
15342 2011-01-10 Jan Hubicka <jh@suse.cz>
15344 PR tree-optimization/47234
15345 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15346 (pass_feedback_split_functions): Declare.
15347 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15349 * ipa-split.c (gate_split_functions): Update comments; disable
15350 split-functions for profile_arc_flag and branch_probabilities.
15351 (gate_feedback_split_functions): New function.
15352 (execute_feedback_split_functions): New function.
15353 (pass_feedback_split_functions): New global var.
15355 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15358 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15359 calling gimple_call_set_cannot_inline.
15361 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15363 * config/darwin-sections.def: Remove unused section.
15365 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15368 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15370 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15373 * c-parser.c (c_parser_declaration_or_fndef): Improved
15376 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15378 * config/i386/winnt.c (i386_pe_start_function): Make sure
15379 to switch back to function's section.
15381 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15385 * plugin.c: Move include of dlfcn.h from here...
15386 * system.h: ... to here.
15388 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15390 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15392 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15393 two extra empty pages in PDF output.
15395 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15398 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15399 for error recovery purposes behave as if it was not specified so
15400 that the default type is usd.
15402 2011-01-07 Jan Hubicka <jh@suse.cz>
15404 PR tree-optmization/46469
15405 * ipa.c (function_and_variable_visibility): Clear needed flags on
15406 nodes with external decls; handle weakrefs merging correctly.
15408 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15410 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15413 2011-01-07 Jan Hubicka <jh@suse.cz>
15415 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15416 and no longer claim that gold is required for linker plugin.
15417 * configure: Regenerate.
15418 * gcc.c (PLUGIN_COND): New macro.
15419 (LINK_COMMAND_SPEC): Use it.
15420 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15421 * config.in (HAVE_LTO_PLUGIN): New.
15422 * configure.ac (--with-lto-plugin): New parameter; autodetect
15425 2011-01-07 Jan Hubicka <jh@suse.cz>
15427 PR tree-optimization/46367
15428 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15429 when we can update original.
15430 (cgraph_mark_inline_edge): Sanity check.
15431 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15433 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15435 * config/spu/spu.h (ASM_COMMENT_START): Define.
15437 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15440 * gcc.c (%>S): New.
15441 (SWITCH_KEEP_FOR_GCC): Likewise.
15442 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15443 (do_spec_1): Handle "%>".
15445 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15447 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15450 * config/i386/i386.c (ix86_delegitimize_address): If
15451 simplify_gen_subreg fails, return orig_x.
15454 * value-prof.c (gimple_stringop_fixed_value): Handle
15455 lhs of the call properly.
15457 2011-01-07 Jan Hubicka <jh@suse.cz>
15460 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15462 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15464 * target.def (function_switched_text_sections): New hook.
15465 * doc/tm.texi: Regenerated.
15466 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15467 * final.c (default_function_switched_text_sections): New.
15468 (final_scan_insn): Call function_switched_text_sections when a
15469 mid-function section change occurs.
15470 * output.h (default_function_switched_text_sections): Declare.
15471 * config/darwin-protos.h (darwin_function_switched_text_sections):
15473 * config/darwin.c (darwin_function_switched_text_sections): New.
15474 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15476 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15478 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15479 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15480 the secondary code fragment when outputting for DWARF == 2.
15482 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15484 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15485 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15487 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15488 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15490 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15493 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15494 when it is not empty.
15496 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15499 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15500 (case ${target}): Add btver1.
15501 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15502 -march=native recognize btver1 processors.
15503 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15504 btver1 def_and_undef
15505 * config/i386/i386.c (struct processor_costs btver1_cost): New
15507 (m_BTVER1): New definition.
15508 (m_AMD_MULTIPLE): Includes m_BTVER1.
15509 (initial_ix86_tune_features): Add btver1 tune.
15510 (processor_target_table): Add btver1 entry.
15511 (static const char *const cpu_names): Add btver1 entry.
15512 (software_prefetching_beneficial_p): Add btver1.
15513 (ix86_option_override_internal): Add btver1 instruction sets.
15514 (ix86_issue_rate): Add btver1.
15515 (ix86_adjust_cost): Add btver1.
15516 * config/i386/i386.h (TARGET_BTVER1): New definition.
15517 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15518 (enum processor_type): Add PROCESSOR_BTVER1.
15519 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15521 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15524 * config/i386/i386.c (legitimize_tls_address)
15525 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15526 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15527 (tls_initial_exec_64_sun): New pattern.
15529 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15531 * doc/invoke.texi (Overall Options): Improve wording and markup
15532 of the description of -wrapper.
15534 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15536 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15537 rdynamic, threads): New Driver options.
15539 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15542 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15543 if coming from .tdata.
15544 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15546 2011-01-06 Jan Hubicka <jh@suse.cz>
15549 * collect2.c (main): Do not enable LTOmode when plugin is active.
15551 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15554 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15555 --version output if supported.
15556 * configure: Regenerate.
15558 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15560 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15563 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15566 * c-convert.c (convert): When converting a complex expression
15567 other than COMPLEX_EXPR to a different complex type, ensure
15568 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15569 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15570 when converting COMPLEX_TYPE.
15572 2011-01-06 Ira Rosen <irar@il.ibm.com>
15574 PR tree-optimization/47139
15575 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15576 only the last reduction value is used outside the loop. Update
15579 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15581 * config/rtems.opt: New.
15582 * config.gcc (*-*-rtems*): Use rtems.opt.
15584 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15586 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15587 processors do not support 3DNow instructions.
15589 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15591 * config/spu/spu.c (spu_option_override): Set parameter
15592 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15594 2011-01-05 Jan Hubicka <jh@suse.cz>
15596 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15597 at the command line.
15599 2011-01-05 Martin Jambor <mjambor@suse.cz>
15602 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15603 deltas on streamed outgoing edges.
15604 (output_node_opt_summary): Output info for outgoing edges only when
15605 the node is in new parameter set.
15606 (output_cgraph_opt_summary): New parameter set, passed to the two
15607 aforementioned functions. Update its forward declaration and its
15610 2011-01-05 Tom Tromey <tromey@redhat.com>
15612 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15613 operator to c_finish_omp_atomic.
15614 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15615 (build_unary_op): Update.
15616 (build_modify_expr): Update.
15617 (build_asm_expr): Update.
15619 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15621 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15622 newly inserted insns.
15623 (pad_bb): Likewise.
15624 (spu_emit_branch_hint): Likewise.
15625 (insert_hbrp_for_ilb_runout): Likewise.
15626 (spu_machine_dependent_reorg): Call df_finish_pass after
15627 schedule_insns returns.
15629 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15631 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15633 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15635 PR tree-optimization/47005
15636 * tree-sra.c (struct access): Add 'non_addressable' bit.
15637 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15638 (decide_one_param_reduction): Return 0 if the parameter is passed by
15639 reference and one of the accesses in the group is non_addressable.
15641 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15643 PR tree-optimization/47056
15644 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15645 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15646 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15648 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15650 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15651 initializer. Skip view conversions from aggregate types.
15653 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15656 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15658 2011-01-04 Philipp Thomas <pth@suse.de>
15660 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15663 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15665 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15666 on empty epilogue sequences.
15668 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15670 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15671 non-static): New Driver options.
15673 2011-01-04 Jie Zhang <jie@codesourcery.com>
15676 * gcc.c (default_compilers[]): Set combinable field to 0
15677 for all assembly languages.
15679 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15681 * config/mips/loongson3a.md: New file.
15682 * config/mips/mips.md: Include loongson3a.md.
15683 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15686 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15688 PR middle-end/47017
15689 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15690 instead of convert_memory_address_addr_space on the base expression.
15692 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15694 * config/spu/spu.c (spu_option_override): Update error text
15695 for bad -march= / -mtune= values.
15697 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15699 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15700 if branch-hint optimization will be performed.
15702 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15704 PR tree-optimization/47148
15705 * ipa-split.c (split_function): Convert arguments to
15706 DECL_ARG_TYPE if possible.
15708 PR tree-optimization/47155
15709 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15710 when computing uns.
15712 PR rtl-optimization/47157
15713 * combine.c (try_combine): If undobuf.other_insn becomes
15714 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15715 and set *new_direct_jump_p too.
15717 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15719 PR tree-optimization/47021
15720 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15722 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15724 * gcc.c (process_command): Update copyright notice dates.
15725 * gcov.c (print_version): Likewise.
15726 * gcov-dump.c (print_version): Likewise.
15727 * mips-tfile.c (main): Likewise.
15728 * mips-tdump.c (main): Likewise.
15730 2011-01-03 Martin Jambor <mjambor@suse.cz>
15732 PR tree-optimization/46801
15733 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15734 aggregate fields start at byte boundary instead of the bit-field flag.
15736 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15739 * gcc.c (main): Revert revision 168407.
15741 2011-01-03 Martin Jambor <mjambor@suse.cz>
15743 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15745 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15747 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15748 vector optab to expand vector/scalar shift, update gimple to vector.
15750 2011-01-03 Martin Jambor <mjambor@suse.cz>
15752 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15755 2011-01-03 Martin Jambor <mjambor@suse.cz>
15757 PR tree-optimization/46984
15758 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15760 (cgraph_create_indirect_edge): Fixed line length.
15761 (cgraph_indirect_call_info): Declare.
15762 (cgraph_make_edge_direct) Update declaration.
15763 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15764 (cgraph_create_indirect_edge): Use it.
15765 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15767 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15768 the new thunk_delta representation.
15769 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15771 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15772 (ipa_read_indirect_edge_info): Likewise.
15773 * lto-cgraph.c (output_edge_opt_summary): New function.
15774 (output_node_opt_summary): Call it on all outgoing edges.
15775 (input_edge_opt_summary): New function.
15776 (input_node_opt_summary): Call it on all outgoing edges.
15778 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15781 * gcc.c (main): Don't check have_o when settting combine_inputs.
15783 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15785 * regrename.c: Add general comment describing the pass.
15786 (struct du_head): Remove 'length' field.
15787 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15788 (regrename_optimize): Do not sort chains. Rework comments, add others.
15789 Force renaming to the preferred class (if any) in the first pass and do
15790 not consider registers that belong to it in the second pass.
15791 (create_new_chain): Do not set 'length' field.
15792 (scan_rtx_reg): Likewise.
15794 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15796 PR tree-optimization/47140
15797 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15798 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15799 to bit_value_binop.
15801 PR rtl-optimization/47028
15802 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15803 parm_birth_insn instead of at the beginning of first bb.
15805 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15807 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15808 Remove the word "see" before "@pxref".
15809 * doc/rtl.texi: Remove the word "see" before "@pxref".
15811 2011-01-01 Jan Hubicka <jh@suse.cz>
15813 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15816 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15819 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15822 Copyright (C) 2011 Free Software Foundation, Inc.
15824 Copying and distribution of this file, with or without modification,
15825 are permitted in any medium without royalty provided the copyright
15826 notice and this notice are preserved.