1 2011-07-08 Richard Guenther <rguenther@suse.de>
3 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6 2011-07-08 Kai Tietz <ktietz@redhat.com>
8 * fold-const.c (fold_truth_andor): Factored out truth_andor
9 label from fold_binary as function.
10 (fold_binary_loc): Replace truth_andor lable
11 by function fold_truth_andor.
13 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
16 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
17 check if address is stored in register. If so - give up.
18 (check_sibcall_argument_overlap_1): Do not perform check of
19 overlapping when it is call to address.
21 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
23 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
26 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
28 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
29 GET_MODE_BITSIZE where appropriate.
30 (widen_leading, expand_parity, expand_ctz, expand_ffs,
31 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
32 expand_float, expand_fix): Likewise.
33 * expr.c (convert_move, convert_modes, expand_expr_real_2,
34 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
35 * stor-layout.c (get_mode_bounds): Likewise.
36 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
38 * convert.c (convert_to_integer): Likewise.
39 * expmed.c (expand_shift_1): Likewise.
41 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
44 * optabs.c (expand_binop): Tighten conditions for doubleword
46 (widen_bswap): Assert that mode bitsize and precision are the
48 * stor-layout.c (get_best_mode): Skip modes that have lower
49 precision than bitsize.
50 * recog.c (simplify_while_replacing): Assert that bitsize and
51 precision are the same.
53 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
55 * Makefile.in (LIBGCOV): Remove.
56 (libgcc.mvars): Remove LIBGCOV.
57 * libgov.c: Move to ../libgcc.
59 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
63 2011-07-08 Martin Jambor <mjambor@suse.cz>
65 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
66 is too big for total scalarization.
68 2011-07-07 Richard Henderson <rth@redhat.com>
70 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
71 (DBX_DEBUGGING_INFO): Undef.
73 2011-07-07 Richard Henderson <rth@redhat.com>
75 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
76 Handle some opcodes specially for debugging.
77 * print-rtl.c: Include dwarf2out.h
78 (print_rtx): Handle NOTE_INSN_CFI.
79 * Makefile.in (print-rtl.o): Update.
81 2011-07-07 Richard Henderson <rth@redhat.com>
83 * tree-pass.h (pass_dwarf2_frame): Declare.
84 * passes.c (init_optimization_passes): Add it.
85 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
86 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
87 make static, do not call add_cfis_to_fde.
88 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
89 dwarf2out_frame_init): Merge into...
90 (execute_dwarf2_frame): ... here. New function.
91 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
92 saved_do_cfi_asm to a tri-state variable.
93 (gate_dwarf2_frame, pass_dwarf2_frame): New.
94 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
95 if it has yet to be done. Don't call dwarf2cfi_function_init.
96 * dwarf2out.h, debug.h: Update decls.
97 * final.c (final_start_function): Don't call
98 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
99 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
100 * toplev.c (lang_dependent_init): Likewise.
102 2011-07-07 Richard Henderson <rth@redhat.com>
104 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
105 FDE_TABLE_INCREMENT): Replace with...
106 (fde_vec): ... this, a new vector.
107 (current_fde): Remove. Replace all users with cfun->fde.
108 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
109 (size_of_aranges, dwarf2out_finish): Likewise.
110 (dwarf2out_alloc_current_fde): Break out from ...
111 (dwarf2out_begin_prologue): ... here.
112 (dwarf2out_frame_init): Remove.
113 * dwarf2cfi.c: Update all users of current_fde.
114 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
115 * dwarf2out.h: Update decls.
116 (dw_fde_node): Add fde_index member.
117 * function.h (struct function): Add fde member.
119 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
120 Richard Henderson <rth@redhat.com>
122 * dwarf2cfi.c (add_cfi): Remove.
123 (dwarf2out_cfi_label): Remove force argument. Only generate the
125 (add_fde_cfi): Simplify the different code paths.
127 (old_cfa, old_cfa_remember): New.
128 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
129 (last_reg_save_label): Remove.
130 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
131 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
132 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
133 dwarf2out_frame_debug_cfa_expression,
134 dwarf2out_frame_debug_cfa_restore,
135 dwarf2out_frame_debug_cfa_window_save,
136 dwarf2out_frame_debug_expr): Remove label parameter.
137 (cfi_label_required_p, add_cfis_to_fde): New.
138 (dwarf2out_frame_debug_after_prologue): New.
139 (dwarf2cfi_frame_init): Initialize old_cfa.
140 (dwarf2out_frame_debug_restore_state): Likewise.
141 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
142 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
143 * final.c (final_start_function): Call
144 dwarf2out_frame_debug_after_prologue.
146 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
147 Richard Henderson <rth@redhat.com>
149 * dwarf2cfi.c (cfi_insn): New.
150 (dwarf2out_cfi_label): Don't emit cfi label here.
151 (add_fde_cfi): Create a NOTE_INSN_CFI.
152 (dwarf2out_frame_debug): Setup cfi_insn.
153 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
154 (dwarf2out_cfi_begin_epilogue): Make static.
155 (dwarf2out_frame_debug_restore_state): Make static.
156 * dwarf2out.c (output_cfi_directive): Make static.
157 (dwarf2out_emit_cfi): New.
158 * dwarf2out.h: Update.
159 * final.c (final): Remove CFI notes.
160 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
161 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
162 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
163 * insn-notes.def (NOTE_INSN_CFI): New.
164 (NOTE_INSN_CFI_LABEL): New.
165 * rtl.h (union rtunion_def): Add rt_cfi member.
166 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
168 2011-07-07 Richard Henderson <rth@redhat.com>
170 * dwarf2cfi.c: New file.
171 * Makefile.in (OBJS): Add it.
172 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
173 * gengtype.c (open_base_files): Include dwarf2out.h.
174 * coretypes.h (enum var_init_status): Move from ...
176 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
177 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
178 expand_builtin_dwarf_sp_column, init_return_column_size,
179 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
180 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
181 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
182 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
183 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
184 compute_barrier_args_size, dwarf2out_args_size,
185 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
186 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
187 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
188 queue_reg_save, dwarf2out_flush_queued_reg_saves,
189 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
190 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
191 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
192 dwarf2out_frame_debug_cfa_expression,
193 dwarf2out_frame_debug_cfa_restore,
194 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
195 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
196 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
197 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
198 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
199 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
200 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
201 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
202 dw_loc_descr_node): Move to dwarf2out.h.
203 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
204 mem_loc_descriptor): Export.
205 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
206 (dwarf2out_frame_init): Extract CIE generation code to
207 dwarf2cfi_frame_init.
209 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
212 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
213 MASK_V8PLUS, remove commented out flag and reorder.
215 2011-07-07 Jakub Jelinek <jakub@redhat.com>
218 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
219 one non-complex and one complex argument, call c_save_expr on both
222 2011-07-07 Martin Jambor <mjambor@suse.cz>
225 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
226 (verify_cgraph_node): Some functinality moved to
227 verify_edge_corresponds_to_fndecl, call it.
229 2011-07-07 Joseph Myers <joseph@codesourcery.com>
231 * config.gcc (*local*): Remove.
232 * doc/install-old.texi: Don't mention local configurations.
234 2011-07-07 Jakub Jelinek <jakub@redhat.com>
237 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
238 referencing debug insns that have been reset.
239 (dead_debug_insert_before): Don't assert reg is non-NULL,
240 instead return immediately if it is NULL.
242 2011-07-07 Joseph Myers <joseph@codesourcery.com>
244 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
247 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
249 * hw-doloop.c: New file.
250 * hw-doloop.h: New file.
251 * Makefile.in (OBJS): Add hw-doloop.o.
252 (hw-doloop.o): New rule.
253 ($(obj_out_file)): Add hw-doloop.h dependency.
254 * config/bfin/bfin.c: Include "hw-doloop.h".
255 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
256 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
257 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
258 type changed to hwloop_info. Return bool, true if the loop was
259 successfully optimized. Remove code that was moved to
260 hw-doloop.c, and adjust other parts.
261 (hwloop_fail): New static function, containing parts that used
262 to be in bfin_optimize_loop.
263 (bfin_discover_loop, bfin_discover_loops, free_loops,
264 bfin_reorder_loops): Remove.
265 (hwloop_pattern_reg): New static function.
266 (bfin_doloop_hooks): New variable.
267 (bfin_reorg_loops): Remove most code, call reorg_loops.
268 * config/bfin/bfin.md (doloop_end splitter): Also enable if
269 loop counter is a memory_operand.
271 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
273 * config.gcc: Support --with-multilib-list for x86 Linux
276 * configure.ac: Mention x86-64 for --with-multilib-list.
277 * configure: Regenerated.
279 * config/i386/gnu-user64.h (SPEC_64): Support x32.
281 (ASM_SPEC): Likewise.
282 (LINK_SPEC): Likewise.
283 (TARGET_THREAD_SSP_OFFSET): Likewise.
284 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
287 * config/i386/i386.h (TARGET_X32): New.
289 (LONG_TYPE_SIZE): Likewise.
290 (POINTER_SIZE): Likewise.
291 (POINTERS_EXTEND_UNSIGNED): Likewise.
292 (OPT_ARCH64): Support x32.
293 (OPT_ARCH32): Likewise.
295 * config/i386/i386.opt (mx32): New.
297 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
298 (GLIBC_DYNAMIC_LINKERX32): Likewise.
299 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
300 (GLIBC_DYNAMIC_LINKERX32): Likewise.
302 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
303 (BIONIC_DYNAMIC_LINKERX32): Likewise.
304 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
306 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
308 * doc/install.texi: Document --with-multilib-list for
311 * doc/invoke.texi: Document -mx32.
313 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
315 * doc/invoke.texi (mwords-little-endian): Deprecate.
316 * config/arm/arm.opt (mwords-little-endian): Likewise.
317 * config/arm/arm.c (arm_option_override): Warn about the deprecation
318 of -mwords-little-endian.
320 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
322 * reload1.c (choose_reload_regs): Use mode sizes to check whether
323 an old reload register completely defines the required value.
325 2011-07-07 Richard Guenther <rguenther@suse.de>
327 * fold-const.c (fold_unary_loc): Do not strip sign-changes
330 2011-07-07 Richard Guenther <rguenther@suse.de>
332 * tree-vrp.c (simplify_conversion_using_ranges): New function.
333 (simplify_stmt_using_ranges): Call it.
335 2011-07-07 Kai Tietz <ktietz@redhat.com>
337 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
338 (lookup_logical_inverted_value): Likewise.
339 (simplify_bitwise_binary_1): Likewise.
340 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
342 2011-07-07 Joseph Myers <joseph@codesourcery.com>
344 * gcc.c (%[Spec]): Don't document.
345 (struct spec_list): Update comment.
346 (do_spec_1): Don't handle %[Spec].
347 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
349 2011-07-07 Joseph Myers <joseph@codesourcery.com>
351 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
352 default based on TARGET_ASM_NAMED_SECTION.
353 * common/common-target.def (have_named_sections): Default to true.
354 * common/config/default-common.c: Don't include tm.h.
355 * common/config/picochip/picochip-common.c
356 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
357 * common/config/m32c/m32c-common.c: Remove.
358 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
359 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
361 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
363 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
365 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
366 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
368 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
371 2011-07-07 Jakub Jelinek <jakub@redhat.com>
374 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
375 operands and last COMPONENT_REF operand call gimplify_expr on it
378 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
383 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
386 * configure.ac (gcc_cv_as_hidden): Also accept
387 x86_64-*-solaris2.1[0-9]*.
388 (gcc_cv_as_cfi_directive): Likewise.
389 (gcc_cv_as_comdat_group_group): Likewise.
390 (set_have_as_tls): Likewise.
391 * configure: Regenerate.
392 * config.gcc (i[34567]86-*-solaris2*): Also handle
393 x86_64-*-solaris2.1[0-9]*.
394 * config.host (i[34567]86-*-solaris2*): Likewise.
395 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
396 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
397 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
398 (TARGET_LD_EMULATION): Use it.
399 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
400 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
401 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
402 (ASM_CPU64_DEFAULT_SPEC): Define.
403 (ASM_CPU_SPEC): Use %(asm_cpu_default).
404 (ASM_SPEC): Redefine.
405 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
406 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
407 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
409 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
411 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
413 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
415 * config/sol2.h (ASM_SPEC): Split into ...
416 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
417 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
418 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
419 (ASM_SPEC): Use ASM_SPEC_BASE.
420 * config/sparc/sol2.h (ASM_SPEC): Redefine.
422 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
424 * config/avr/avr.md (*reload_insi): Change predicate #1 to
425 const_int_operand. Ditto for peep2 producing this insn.
426 Add argument to output_reload_insisf call.
427 (*movsi,*movsf): Add argument to output_movsisf call.
428 (*reload_insf): New insn and new peep2 to produce it.
429 * config/avr/avr-protos.h (output_movsisf): Change prototype.
430 (output_reload_insisf): Change prototype.
431 * config/avr/avr.c (avr_asm_len): New function.
432 (output_reload_insisf): Rewrite.
433 (output_movsisf): Change prototype. output_reload_insisf for
434 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
435 (adjust_insn_length): Add argument to output_movsisf and
436 output_reload_insisf call.
438 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
440 * emit-rtl.c (paradoxical_subreg_p): New function.
441 * rtl.h (paradoxical_subreg_p): Declare.
442 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
443 apply_distributive_law, simplify_comparison, simplify_set): Use it.
444 * cse.c (record_jump_cond, cse_insn): Likewise.
445 * expr.c (force_operand): Likewise.
446 * rtlanal.c (num_sign_bit_copies1): Likewise.
447 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
448 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
449 (push_reload): Use precision to check for paradoxical subregs.
450 * expmed.c (extract_bit_field_1): Likewise.
452 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
453 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
454 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
455 simplify_set, simplify_logical, expand_compound_operation,
456 make_extraction, force_to_mode, if_then_else_cond, extended_count,
457 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
458 record_value_for_reg): Likewise.
459 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
460 * simplify-rtx. c (simplify_unary_operation_1,
461 simplify_binary_operation_1, simplify_const_relational_operation):
464 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
465 instead of GET_MODE_BITSIZE where appropriate.
466 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
467 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
468 init_num_sign_bit_copies_in_rep): Likewise.
469 * cse.c (fold_rtx, cse_insn): Likewise.
470 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
471 * simplify-rtx.c (simplify_unary_operation_1,
472 simplify_const_unary_operation, simplify_binary_operation_1,
473 simplify_const_binary_operation, simplify_ternary_operation,
474 simplify_const_relational_operation, simplify_subreg): Likewise.
475 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
476 simplify_if_then_else, simplify_set, expand_compound_operation,
477 expand_field_assignment, make_extraction, if_then_else_cond,
478 make_compound_operation, force_to_mode, make_field_assignment,
479 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
480 extended_count, try_widen_shift_mode, simplify_shift_const_1,
481 simplify_comparison, record_promoted_value, simplify_compare_const,
482 record_dead_and_set_regs_1): Likewise.
485 * simplify-rtx.c (simplify_const_binary_operation): Use the
486 shift_truncation_mask hook instead of performing modulo by
487 width. Compare against mode precision, not bitsize.
488 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
489 Use shift_truncation_mask instead of constructing the value
492 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
494 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
496 (rs6000_save_toc_in_prologue_p): Ditto.
498 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
499 up the static chain (r11) during indirect function calls.
500 (-msave-toc-indirect): New undocumented debug switch.
502 * config/rs6000/rs6000.c (struct machine_function): Add
503 save_toc_in_prologue field to note whether the prologue needs to
504 save the TOC value in the reserved stack location.
505 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
506 to save the TOC in the prologue, do so.
507 (rs6000_trampoline_init): Don't allow creating AIX style
508 trampolines if -mno-r11 is in effect.
509 (rs6000_call_indirect_aix): New function to create AIX style
510 indirect calls, adding support for -mno-r11 to suppress loading
511 the static chain, and saving the TOC in the prologue instead of
513 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
516 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
519 (STATIC_CHAIN_REGNUM): Ditto.
520 (ARG_POINTER_REGNUM): Ditto.
521 (SFP_REGNO): Delete, unused.
522 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
523 function descriptor offsets.
524 (TOC_SAVE_OFFSET_64BIT): Ditto.
525 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
526 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
527 (AIX_FUNC_DESC_SC_32BIT): Ditto.
528 (AIX_FUNC_DESC_SC_64BIT): Ditto.
529 (ptrload): New mode attribute for the appropriate load of a
531 (call_indirect_aix32): Delete, rewrite AIX indirect function
533 (call_indirect_aix64): Ditto.
534 (call_value_indirect_aix32): Ditto.
535 (call_value_indirect_aix64): Ditto.
536 (call_indirect_nonlocal_aix32_internal): Ditto.
537 (call_indirect_nonlocal_aix32): Ditto.
538 (call_indirect_nonlocal_aix64_internal): Ditto.
539 (call_indirect_nonlocal_aix64): Ditto.
540 (call): Rewrite AIX indirect function calls. Add support for
541 eliminating the static chain, and for moving the save of the TOC
542 to the function prologue.
544 (call_indirect_aix<ptrsize>): Ditto.
545 (call_indirect_aix<ptrsize>_internal): Ditto.
546 (call_indirect_aix<ptrsize>_internal2): Ditto.
547 (call_indirect_aix<ptrsize>_nor11): Ditto.
548 (call_value_indirect_aix<ptrsize>): Ditto.
549 (call_value_indirect_aix<ptrsize>_internal): Ditto.
550 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
551 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
552 (call_nonlocal_aix32): Relocate in the rs6000.md file.
553 (call_nonlocal_aix64): Ditto.
555 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
556 -mno-r11 documentation.
558 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
561 * doc/extend.texi (Compound Literals): Fix typo.
563 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
565 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
568 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
570 * configure.ac (plugin-version.h): Generate
571 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
572 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
575 * configure: Regenerate.
577 * doc/plugins.texi (Building GCC plugins): Mention
578 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
580 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
582 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
583 * combine.c (make_extraction, gen_lowpart_or_truncate,
584 apply_distributive_law, simplify_comparison,
585 reg_truncated_to_mode, record_truncated_value): Use it.
586 * cse.c (notreg_cost): Likewise.
587 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
588 * expr.c (convert_move, convert_modes): Likewise.
589 * optabs.c (expand_binop, expand_unop): Likewise.
590 * postreload.c (move2add_last_label): Likewise.
591 * regmove.c (optimize_reg_copy_3): Likewise.
592 * rtlhooks.c (gen_lowpart_general): Likewise.
593 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
595 2011-07-06 Joseph Myers <joseph@codesourcery.com>
597 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
599 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
601 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
602 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
603 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
604 (simplify_const_unary_operation, simplify_binary_operation_1,
605 simplify_const_binary_operation,
606 simplify_const_relational_operation): Use them. Use
607 GET_MODE_MASK for masking and sign-extensions.
608 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
609 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
610 simplify_shift_const_1, simplify_comparison): Likewise.
611 * expr.c (convert_modes): Likewise.
612 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
613 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
615 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
617 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
619 2011-07-06 Richard Guenther <rguenther@suse.de>
621 PR tree-optimization/49645
622 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
624 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
625 in type qualification here ...
626 (copy_reference_ops_from_ref): ... not here.
627 (vn_reference_lookup_3): ... or here.
628 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
629 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
631 2011-07-06 Ian Lance Taylor <iant@google.com>
633 * doc/install.texi (Configuration): It's
634 --enable-gnu-indirect-function, not --enable-indirect-function.
636 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
638 * simplify-rtx.c (simplify_const_binary_operation): Use the
639 shift_truncation_mask hook instead of performing modulo by
640 width. Compare against mode precision, not bitsize.
641 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
642 Use shift_truncation_mask instead of constructing the value
645 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
648 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
649 address computation and convert to address_mode if needed.
651 2011-07-06 Richard Guenther <rguenther@suse.de>
653 * tree.c (build_common_tree_nodes_2): Merge with
654 build_common_tree_nodes.
655 * tree.h (build_common_tree_nodes): Adjust prototype.
656 (build_common_tree_nodes_2): Remove.
657 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
658 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
660 2011-07-05 Jakub Jelinek <jakub@redhat.com>
662 PR tree-optimization/49618
663 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
664 t recurse on the decl.
665 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
666 return true if expr isn't known to be defined in current
667 TU or some other LTO partition.
669 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
671 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
672 override CASE_VALUES_THRESHOLD.
674 * stmt.c (toplevel): Include params.h.
675 (case_values_threshold): Use the --param case-values-threshold
676 value if non-zero, otherwise use machine dependent value.
677 (expand_case): Use case_values_threshold.
679 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
681 * doc/invoke.texi (--param case-values-threshold): Document.
683 2011-07-05 Richard Henderson <rth@redhat.com>
685 * dwarf2out.c (dwarf2out_cfi_label): Make static.
686 (dwarf2out_flush_queued_reg_saves): Make static.
687 (dwarf2out_reg_save): Remove.
688 (dwarf2out_return_save): Remove.
689 (dwarf2out_return_reg): Remove.
690 (dwarf2out_reg_save_reg): Remove.
691 (dwarf2out_def_cfa): Merge into ...
692 (dwarf2out_frame_init): ... here.
693 * dwarf2out.h, tree.h: Remove declarations as necessary.
695 2011-07-05 Richard Henderson <rth@redhat.com>
697 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
698 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
699 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
702 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
703 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
704 (process_epilogue): Don't call dwarf2out_def_cfa.
706 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
707 indicate the return address save.
708 (process_cfa_register): Likewise.
710 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
711 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
713 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
714 for ar.pfs save at alloc insn.
716 2011-07-05 Richard Henderson <rth@redhat.com>
718 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
719 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
720 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
722 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
723 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
724 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
725 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
727 2011-07-05 Richard Henderson <rth@redhat.com>
729 * config/vax/vax.md (define_c_enum unspecv): New. Define the
730 VUNSPEC_* constants here instead of via define_constants.
731 (VUNSPEC_PEM): New constant.
732 (procedure_entry_mask): New insn.
733 (prologue): New expander.
734 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
735 (vax_expand_prologue): Rename from vax_output_function_prologue;
736 emit rtl instead of text.
737 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
738 (print_operand): Add 'x' prefix.
740 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
743 * calls.c (precompute_register_parameters): Promote the function
744 argument before checking non-legitimate constant.
746 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
748 PR tree-optimization/47654
749 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
750 (lst_do_strip_mine_loop): Return an int.
751 (lst_do_strip_mine): Same.
752 (scop_do_strip_mine): Same.
753 (scop_do_block): Loop blocking should strip-mine at least two loops.
754 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
755 (scop_do_interchange): Same.
756 * graphite-poly.h (scop_do_interchange): Update declaration.
757 (scop_do_strip_mine): Same.
759 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
761 * graphite-clast-to-gimple.c (precision_for_value): Removed.
762 (precision_for_interval): Removed.
763 (gcc_type_for_interval): Use mpz_sizeinbase.
765 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
767 * graphite-ppl.h (value_max): Correct computation of max.
769 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
771 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
773 2011-07-05 Richard Guenther <rguenther@suse.de>
775 * c-decl.c (c_init_decl_processing): Defer building common
776 tree nodes to c_common_nodes_and_builtins.
778 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
780 PR tree-optimization/49580
781 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
782 the loop's number of iterations.
783 * tree-parloops.c (transform_to_exit_first_loop): Add the
784 handling of the loop's number of iterations before the call
785 to gimple_duplicate_sese_tail.
786 Insert the stmt caclculating the new rhs of the loop's
787 condition stmt to the preheader instead of iters_bb.
789 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
791 PR rtl-optimization/47449
792 * fwprop.c (forward_propagate_subreg): Don't propagate hard
793 register nor zero/sign extended hard register.
795 2011-07-05 Richard Guenther <rguenther@suse.de>
797 PR tree-optimization/49518
798 PR tree-optimization/49628
799 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
800 irrelevant and invariant data-references.
801 (vect_analyze_data_ref_access): For invariant loads clear the
804 2011-07-04 Jakub Jelinek <jakub@redhat.com>
806 PR rtl-optimization/49619
807 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
808 pass VOIDmode as op0_mode to recursive call, and return temp even
809 when different from tor, just if it is not IOR of the original
812 PR rtl-optimization/49472
813 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
814 negating MULT, negate the second operand instead of first.
815 (simplify_binary_operation_1) <case MULT>: If one operand is
816 a NEG and the other is MULT, don't attempt to optimize by
817 negation of the MULT operand if it only moves the NEG operation
821 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
822 get_current_def return value if it can't be trusted to be
823 the current value of the variable in the current bb.
825 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
828 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
829 general register to memory for !TARGET_INTER_UNIT_MOVES.
831 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
834 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
835 instead of TREE_READONLY.
837 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
839 * doc/extend.texi (AVR Built-in Functions): Update documentation
840 of __builtin_avr_fmul*.
841 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
842 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
843 * config/avr/avr.md (fmul): Rename to fmul_insn.
844 (fmuls): Rename to fmuls_insn.
845 (fmulsu): Rename to fmulsu_insn.
846 (fmul,fmuls,fmulsu): New expander.
847 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
848 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
849 * config/avr/libgcc.S (__fmul): New function.
850 (__fmuls): New function.
851 (__fmulsu,__fmulsu_exit): New function.
853 2011-07-04 Richard Guenther <rguenther@suse.de>
855 PR tree-optimization/49615
856 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
857 basic-block index check.
859 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
861 * longlong.h (count_leading_zeros, count_trailing_zeros,
862 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
865 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
867 PR tree-optimization/49610
868 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
871 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
872 Olivier Hainque <hainque@adacore.com>
873 Nicolas Setton <setton@adacore.com>
875 * tree.h (TYPE_ARTIFICIAL): New flag.
876 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
877 the DIE of the type if it is artificial.
878 (gen_array_type_die): Likewise.
879 (gen_enumeration_type_die): Likewise.
880 (gen_struct_or_union_type_die): Likewise.
881 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
882 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
884 2011-07-01 Jakub Jelinek <jakub@redhat.com>
886 * tree-object-size.c (pass_through_call): Handle
887 BUILT_IN_ASSUME_ALIGNED.
889 2011-07-01 Martin Jambor <mjambor@suse.cz>
891 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
893 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
896 * explow.c (update_nonlocal_goto_save_area): Use proper mode
898 * function.c (expand_function_start): Likewise.
900 2011-07-01 Richard Guenther <rguenther@suse.de>
903 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
904 may have unknown refs.
906 2011-07-01 Kai Tietz <ktietz@redhat.com>
908 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
910 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
912 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
913 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
914 (Specific, mips-sgi-irix6): Likewise.
916 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
919 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
921 2011-07-01 Jakub Jelinek <jakub@redhat.com>
923 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
924 [idx]= and [idx1 ... idx2]= before initializers if needed for
927 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
929 * config.gcc (score-*-elf): Remove score7.o.
930 * config/score/t-score-elf: Likewise.
931 * config/score/score.c: Merge score7 to score.c and
932 remove forwarding functions.
933 * config/score/score7.c: Deleted.
934 * config/score/score7.h: Deleted.
936 2011-07-01 Richard Guenther <rguenther@suse.de>
938 PR tree-optimization/49603
939 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
941 2011-06-30 Martin Jambor <mjambor@suse.cz>
943 * tree-sra.c (struct access): Rename total_scalarization to
944 grp_total_scalarization
945 (completely_scalarize_var): New function.
946 (sort_and_splice_var_accesses): Set total_scalarization in the
947 representative access.
948 (analyze_access_subtree): Propagate total scalarization accross the
949 tree, no holes in totally scalarized trees, simplify coverage
951 (analyze_all_variable_accesses): Call completely_scalarize_var instead
952 of completely_scalarize_record.
954 2011-06-30 Richard Henderson <rth@redhat.com>
956 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
957 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
958 * config/i386/i386.c: Don't include dwarf2out.h.
959 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
960 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
961 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
962 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
963 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
965 2011-06-30 Richard Henderson <rth@redhat.com>
967 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
968 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
969 * final.c (final_scan_insn): Look for it, and invoke
970 dwarf2out_frame_debug before the insn if found.
972 2011-06-30 Richard Henderson <rth@redhat.com>
974 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
975 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
977 2011-06-30 Richard Henderson <rth@redhat.com>
979 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
980 Define a vector of this type.
981 (regs_saved_in_regs): Use a VEC.
982 (num_regs_saved_in_regs): Remove.
983 (compare_reg_or_pc): New.
984 (record_reg_saved_in_reg): Split out from...
985 (dwarf2out_flush_queued_reg_saves): ... here.
986 (clobbers_queued_reg_save): Update for VEC.
987 (reg_saved_in): Likewise.
988 (dwarf2out_frame_debug_init): Likewise.
989 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
990 (dwarf2out_frame_debug_cfa_register): Likewise.
992 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
994 PR tree-optimization/49572
995 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
996 type of the RHS instead of that of the LHS for the expression type.
998 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1000 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
1003 2011-06-30 Richard Guenther <rguenther@suse.de>
1005 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
1006 * tree-ssa-structalias.c (create_variable_info_for): Do not
1007 add initial constraints for non-var-decls. Properly handle
1008 globals in other ltrans partitions.
1009 (intra_create_variable_infos): Manually create constraints for
1010 the fake no-alias parameter.
1011 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
1012 and assert there are no clones.
1014 2011-06-30 Richard Guenther <rguenther@suse.de>
1016 PR tree-optimization/46787
1017 * tree-data-ref.c (dr_address_invariant_p): Remove.
1018 (find_data_references_in_stmt): Invariant accesses are ok now.
1019 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
1020 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1023 2011-06-30 Martin Jambor <mjambor@suse.cz>
1025 PR tree-optimization/49094
1026 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1027 (build_accesses_from_assign): Use it.
1029 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1031 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1032 handling of BUILT_IN_ASSUME_ALIGNED.
1035 * dwarf2out.c (output_abbrev_section): Don't return early
1036 if abbrev_die_table_in_use is 1.
1037 (dwarf2out_finish): Instead don't call output_abbrev_section
1038 nor emit abbrev_section_label in that case.
1040 2011-06-30 Nick Clifton <nickc@redhat.com>
1042 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
1045 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1047 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1048 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
1050 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
1052 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1053 both pattern and original statements if necessary.
1054 (vect_transform_loop): Likewise.
1055 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
1056 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
1057 Mark the pattern statement only if the original statement doesn't
1059 (process_use): Call vect_mark_relevant with additional parameter.
1060 (vect_mark_stmts_to_be_vectorized): Likewise.
1061 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
1062 (vect_analyze_stmt): Handle both pattern and original statements
1064 (vect_transform_stmt): Don't store vectorized pattern statement
1065 in the original statement.
1066 (vect_is_simple_use_1): Use related pattern statement only if the
1067 original statement is irrelevant.
1068 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1070 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1072 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1074 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1076 (TARGET_AVX128_OPTIMAL): New definition.
1077 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1078 X86_TUNE_AVX128_OPTIMAL entry.
1079 (ix86_option_override_internal): Enable the generation
1080 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1081 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1082 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1084 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1086 PR tree-optimization/49539
1087 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1088 names by means of stmt_references_abnormal_ssa_name.
1089 (associate_plusminus): Call can_propagate_from before propagating
1090 from definition statements.
1091 (ssa_forward_propagate_and_combine): Remove superfluous newline.
1093 2011-06-29 Richard Guenther <rguenther@suse.de>
1095 * doc/invoke.texi: Document -scev dump modifier.
1096 * tree-pass.h (TDF_SCEV): New dump flag.
1097 * tree-dump.c (dump_option_value_in): Add scev.
1098 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
1099 * tree-scalar-evolution.c: Likewise.
1101 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
1103 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
1104 (cxa_type_match): Correct declaration.
1105 (__gnu_unwind_pr_common): Reconstruct additional indirection
1106 when __cxa_type_match returns succeeded_with_ptr_to_base.
1108 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1110 PR rtl-optimization/49114
1111 * reload.c (struct replacement): Remove SUBREG_LOC member.
1112 (push_reload): Do not set it.
1113 (push_replacement): Likewise.
1114 (subst_reload): Remove dead code.
1115 (copy_replacements): Remove assertion.
1116 (copy_replacements_1): Do not handle SUBREG_LOC.
1117 (move_replacements): Likewise.
1118 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
1119 Detect subregs via recursive descent instead of via SUBREG_LOC.
1121 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1123 * config/avr/avr.c (avr_encode_section_info): Dispatch to
1124 default_encode_section_info.
1126 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
1128 PR tree-optimization/49545
1129 * builtins.c (get_object_alignment_1): Update function comment.
1130 Do not use DECL_ALIGN for functions, but test
1131 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
1132 * fold-const.c (get_pointer_modulus_and_residue): Don't check
1134 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1136 2011-06-29 Jakub Jelinek <jakub@redhat.com>
1139 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
1140 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
1142 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1145 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1146 about uninitialized data attributed 'progmem' from here...
1147 (avr_encode_section_info): ...to this new function.
1148 (TARGET_ENCODE_SECTION_INFO): New define.
1149 (avr_section_type_flags): For data in ".progmem.data", remove
1150 section flag SECTION_WRITE.
1152 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1154 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
1156 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
1157 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
1158 (__umulhisi3): Ditto.
1159 * config/avr/avr.md (mulhisi3): New insn expender.
1160 (umulhisi3): New insn expender.
1161 (*mulhisi3_call): New insn.
1162 (*umulhisi3_call): New insn.
1164 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1166 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1168 2011-06-28 Richard Henderson <rth@redhat.com>
1170 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
1171 all code and arguments that handled pushes. Update all callers.
1173 2011-06-28 Richard Henderson <rth@redhat.com>
1175 * config/arm/arm.c (arm_output_function_prologue): Don't call
1176 thumb1_output_function_prologue.
1177 (arm_expand_prologue): Avoid dead store.
1178 (number_of_first_bit_set): Use ctz_hwi.
1179 (thumb1_emit_multi_reg_push): New.
1180 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1181 to emit the entire prologue as rtl.
1182 (thumb1_output_interwork): Split out from
1183 thumb1_output_function_prologue.
1184 (thumb1_output_function_prologue): Remove.
1185 (arm_attr_length_push_multi): Handle thumb1.
1186 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1187 (prologue_thumb1_interwork): New.
1188 (*push_multi): Allow thumb1; use push_mult_memory_operand.
1189 * config/arm/predicates.md (push_mult_memory_operand): New.
1191 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1193 * config/sparc/sync.md (*stbar): Delete.
1194 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1196 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1198 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1200 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1202 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1203 (TARGET_64BIT_DEFAULT): Define.
1204 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1206 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1208 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1210 * common.opt (in_lto_p): New Variable entry.
1211 * flags.h (in_lto_p): Move to common.opt.
1212 * gcc.c: Include params.h.
1213 (set_option_handlers): Also use common_handle_option and
1214 target_handle_option.
1215 (main): Call global_init_params, finish_params and init_options_struct.
1216 * opts.c (debug_type_names): Move from toplev.c.
1217 (print_filtered_help): Access quiet_flag through opts pointer.
1218 (common_handle_option): Return early in the driver for some options.
1219 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1221 * toplev.c (in_lto_p): Move to common.opt.
1222 (debug_type_names): Move to opts.c.
1223 * Makefile.in (OBJS): Remove opts.o.
1224 (OBJS-libcommon-target): Add opts.o.
1225 (gcc.o): Update dependencies.
1227 2011-06-28 Kai Tietz <ktietz@redhat.com>
1229 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
1231 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1233 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1234 with '=' constraint modifier.
1235 (*divdf3_vfp): Likewise.
1236 ("*mulsf3_vfp"): Likewise.
1237 ("*muldf3_vfp"): Likewise.
1238 ("*mulsf3negsf_vfp"): Likewise.
1239 ("*muldf3negdf_vfp"): Likewise.
1241 2011-06-28 Nick Clifton <nickc@redhat.com>
1243 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1244 relaxation when performing an incremental link.
1246 2011-06-28 Kai Tietz <ktietz@redhat.com>
1248 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1249 within BB from last to first.
1251 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1253 * genattr-common.c: New. Based on genattr.c.
1254 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1255 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1256 (opts.o): Update dependencies.
1257 (.PRECIOUS): Add insn-attr-common.h.
1258 (simple_rtl_generated_h): Add insn-attr-common.h.
1259 (build/genattr-common.o): New.
1260 (genprogrtl): Add attr-common.
1261 * genattr.c (main): Include insn-attr-common.h. Don't generate
1262 definitions of DELAY_SLOTS or INSN_SCHEDULING.
1263 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1265 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
1267 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1268 avr-*-* and avr-*-rtems* targets.
1270 * config/avr/elf.h: New file.
1271 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1272 (TARGET_ASM_SELECT_SECTION): Define.
1273 (INIT_SECTION_ASM_OP): Undefine.
1274 (FINI_SECTION_ASM_OP): Undefine.
1275 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1276 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1277 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1279 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1280 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1281 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1282 (STRING_LIMIT): Move to elf.h.
1283 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1284 (ASM_DECLARE_OBJECT_NAME): Remove.
1286 (ASM_OUTPUT_SKIP): Remove.
1287 (DWARF2_DEBUGGING_INFO): Remove.
1288 (OBJECT_FORMAT_ELF): Remove.
1289 (USER_LABEL_PREFIX): Remove.
1290 (ASM_OUTPUT_EXTERNAL): Remove.
1291 (ASM_OUTPUT_ASCII): Remove.
1292 (TYPE_ASM_OP): Remove.
1293 (SIZE_ASM_OP): Remove.
1294 (WEAK_ASM_OP): Remove.
1295 (STRING_ASM_OP): Remove.
1296 (SET_ASM_OP): Remove.
1297 (ASM_WEAKEN_LABEL): Remove.
1298 (TYPE_OPERAND_FMT): Remove.
1299 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1300 (ASM_FINISH_DECLARE_OBJECT): Remove.
1301 (NO_DOLLAR_IN_LABEL): Remove.
1302 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1303 (ASM_OUTPUT_CASE_LABEL): Remove.
1304 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1305 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1306 (gas_output_ascii): Remove.
1307 (gas_output_limited_string): Remove.
1308 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1309 * config/avr/avr-protos.h
1310 (gas_output_ascii): Remove prototye.
1311 (gas_output_limited_string): Remove prototype.
1313 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
1316 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1319 2011-06-27 Jan Hubicka <jh@suse.cz>
1321 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1322 node instead of references in node.
1324 2011-06-27 Richard Henderson <rth@redhat.com>
1326 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1327 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1330 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1332 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1334 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1335 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1336 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1337 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1338 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1339 (evaluate_stmt, execute_fold_all_builtins): Handle
1340 BUILT_IN_ASSUME_ALIGNED.
1341 * tree-ssa-dce.c (propagate_necessity): Likewise.
1342 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1343 call_may_clobber_ref_p_1): Likewise.
1344 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1345 (expand_builtin_assume_aligned): New function.
1346 * doc/extend.texi (__builtin_assume_aligned): Document.
1349 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1350 and l has two DEBUG_INSN owned locs instead of just one, adjust
1351 the second location's setting_insn too.
1353 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1356 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1358 2011-06-27 Nick Clifton <nickc@redhat.com>
1360 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1361 bit position of highest bit set into a count of the high zero bits.
1363 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1365 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1367 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1370 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1373 2011-06-27 Richard Guenther <rguenther@suse.de>
1375 PR tree-optimization/49394
1376 * passes.c (execute_one_pass): Restore current_pass after
1377 applying IPA transforms.
1379 2011-06-27 Kai Tietz <ktietz@redhat.com>
1381 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1382 out of type precision after operation.
1383 (find_bswap): Take for limit value the integer auto-promotion
1386 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1388 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1389 forward scan as well.
1391 2011-06-27 Tristan Gingold <gingold@adacore.com>
1394 * config/vms/vms-protos.h: New file.
1395 * config/vms/vms-crtlmap.map: New file.
1396 * config/vms/vms.c: New file.
1397 * config/vms/make-crtlmap.awk: New file.
1398 * config/vms/vms-crtl.h: File removed.
1399 * config/vms/vms-crtl-64.h: File removed.
1400 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1401 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1402 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1403 clear some builtins on VMS. Calls vms_patch_builtins.
1404 (avms_asm_output_external): Remove.
1405 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1406 (struct crtl_name_spec): Remove
1407 (DO_CTRL_NAMES): Remove.
1408 * config/ia64/vms.h (struct crtl_name_spec): Remove
1409 (DO_CTRL_NAMES): Remove.
1410 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1411 clear some builtins on VMS. Calls vms_patch_builtins.
1412 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1413 * config/ia64/vms64.h: Do not include vms-crtl-64.h
1414 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1416 2011-06-27 Tristan Gingold <gingold@adacore.com>
1418 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1421 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1423 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1424 the function receives nonlocal gotos.
1426 2011-06-27 Richard Guenther <rguenther@suse.de>
1428 PR tree-optimization/49536
1429 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1430 For non-scalar inner types use a scalar type according to
1431 the scalar inner mode.
1433 2011-06-27 Richard Guenther <rguenther@suse.de>
1435 PR tree-optimization/49365
1436 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1438 2011-06-27 Richard Guenther <rguenther@suse.de>
1440 PR tree-optimization/49169
1441 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1442 the alignment of function decls.
1444 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
1447 * config/darwin.c (darwin_mergeable_string_section): Place string
1448 constants in '.cstring' rather than '.const' when CF/NSStrings are
1451 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1453 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1454 (emit_save_register_window): Likewise.
1455 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1456 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1457 Swap back %o7/%i7 in register naming.
1459 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1462 * config/darwin.c (darwin_override_options): Improve warning when
1463 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1464 is given with fpie/fPIE.
1465 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1466 * config/darwin9.h (PIE_SPEC): New.
1468 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1470 * timevar.c (timevar_print): Increase width for display of timevar
1473 2011-06-24 Jakub Jelinek <jakub@redhat.com>
1476 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1477 instead of TYPE_CHAIN for chain_next for types.
1479 2011-06-24 Richard Henderson <rth@redhat.com>
1481 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1482 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1483 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1484 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1485 (sparc_flat_expand_prologue): Emit individual instructions
1486 instead of one of the above.
1488 2011-06-24 Easwaran Raman <eraman@google.com>
1490 PR rtl-optimization/49429
1492 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1493 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1494 used to copy y into x.
1495 * calls.c (initialize_argument_information): Mark
1496 an argument addressable if it is passed by invisible reference.
1497 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1498 if it is passed by reference.
1500 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1502 PR rtl-optimization/49504
1503 * rtlanal.c (nonzero_bits1): Properly handle addition or
1504 subtraction of a pointer in Pmode if pointers extend unsigned.
1505 (num_sign_bit_copies1): Likewise.
1507 2011-06-24 Martin Jambor <mjambor@suse.cz>
1509 PR tree-optimizations/49516
1510 * tree-sra.c (sra_modify_assign): Choose the safe path for
1511 aggregate copies if we also did scalar replacements.
1513 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1516 * config/arm/predicates.md (add_operator): New.
1517 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
1519 2011-06-24 Andi Kleen <ak@linux.intel.com>
1521 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1522 parameter. Split up ifs and report reason in *msg.
1524 (find_var_candiate): Add msg variable.
1525 Split up ifs and report reason to reject.
1526 (find_param_candidates): Add msg variable.
1527 Pass msg to type_internals_preclude_sra_p.
1529 2011-06-23 Jeff Law <law@redhat.com>
1532 * reload.h (reload): Change to return a bool.
1533 * ira.c (ira): If requested by reload, run a fast DCE pass after
1534 reload has completed. Fix comment typo.
1535 * reload1.c (need_dce): New file scoped static.
1536 (reload): Set reload_completed here. Return whether or not a DCE
1537 pass after reload is needed.
1538 (delete_dead_insn): Set need_dce as needed.
1541 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1542 to detect threading through joiner block. If there was already
1543 an edge to the new target, then do not change the PHI nodes.
1545 2011-06-23 Jakub Jelinek <jakub@redhat.com>
1547 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1548 get_pointer_alignment to see if base isn't sufficiently aligned.
1550 2011-06-23 Jan Hubicka <jh@suse.cz>
1552 PR tree-optimize/49373
1553 * tree-pass.h (all_late_ipa_passes): Declare.
1554 * cgraphunit.c (init_lowered_empty_function): Fix properties.
1555 (cgraph_optimize): Execute late passes; remove unreachable funcions
1556 after materialization.
1557 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1559 * passes.c (all_late_ipa_passes): Declare.
1560 (dump_passes, register_pass): Handle late ipa passes.
1561 (init_optimization_passes): Move ipa_pta to late passes; schedule
1562 fixup_cfg at beggining of all_passes.
1563 (apply_ipa_transforms): New function.
1564 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1566 2011-06-23 Joseph Myers <joseph@codesourcery.com>
1568 * params.c: Include common/common-target.h. Don't include tm.h.
1569 (lang_independent_params): Move from toplev.c.
1570 (global_init_params): New.
1571 * params.h (global_init_params): Declare.
1572 * target.def (default_params): Move to common-target.def.
1573 * toplev.c (lang_independent_options): Remove.
1574 (lang_independent_params): Move to params.c.
1575 (general_init): Use global_init_params.
1576 * common/common-target.def (option_default_params): Move from
1578 * common/config/ia64/ia64-common.c: Include params.h.
1579 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1581 * common/config/rs6000/rs6000-common.c: Include params.h.
1582 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1584 * common/config/sh/sh-common.c: Include params.h.
1585 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1587 * common/config/spu/spu-common.c: Include params.h.
1588 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1590 * config/ia64/ia64.c (ia64_option_default_params,
1591 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1592 * config/rs6000/rs6000.c (rs6000_option_default_params,
1593 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1594 * config/sh/sh.c (sh_option_default_params,
1595 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1596 * config/spu/spu.c (spu_option_default_params,
1597 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1598 * Makefile.in (OBJS): Remove params.o.
1599 (OBJS-libcommon-target): Add params.o.
1600 (params.o, $(common_out_object_file)): Update dependencies.
1601 * doc/tm.texi: Regenerate.
1603 2011-06-23 Alan Modra <amodra@gmail.com>
1606 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1607 invocation for 2011-06-09 changes.
1609 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1612 * omp-low.c (expand_omp_for_static_nochunk): Only
1613 use n ceil/ nthreads size for the first n % nthreads threads in the
1614 team instead of all threads except for the last few ones which
1615 get less work or none at all.
1618 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1621 2011-06-22 Richard Guenther <rguenther@suse.de>
1623 PR tree-optimization/49493
1624 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1625 Refer to the alias target of variables.
1626 (associate_varinfo_to_alias_1): Remove.
1627 (ipa_pta_execute): Do not associate aliases with anything.
1628 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1629 (cgraph_function_node): Likewise.
1630 (cgraph_function_or_thunk_node): Likewise.
1631 (varpool_variable_node): Likewise.
1633 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1635 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
1636 * config.gcc (arm*-*-linux*): Default to gnu tls.
1637 (arm*-*-*): Add --with-tls option.
1638 (all_defaults): Add 'tls'.
1640 2011-06-22 Richard Henderson <rth@redhat.com>
1642 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1643 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1644 (dwarf2out_frame_debug_cfa_window_save): Rename from
1645 dwarf2out_window_save; make static.
1646 * tree.h (dwarf2out_window_save): Don't declare.
1648 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1649 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1650 (emit_save_register_window): Rename from gen_save_register_window;
1651 emit the insn and add REG_CFA_* notes.
1652 (sparc_expand_prologue): Update to match.
1653 * config/sparc/sparc.md (save_register_window_1): Simplify from
1654 save_register_window<P:mode>.
1656 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1659 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1660 (*lea_general_2_zext): Likewise.
1661 (imul to lea peepholes): Use const359_operand and check
1662 TARGET_PARTIAL_REG_STALL.
1664 * config/i386/predicates.md (const359_operand): New.
1666 2011-06-22 Michael Matz <matz@suse.de>
1668 * cgraphunit.c (assemble_thunk): Use correct return type.
1670 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
1671 Dmitry Melnik <dm@ispras.ru>
1673 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1674 (neon_output_shift_immediate): Ditto.
1675 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1677 (neon_output_shift_immediate): Ditto.
1678 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1679 (vashr<mode>3_imm): New insn pattern.
1680 (vlshr<mode>3_imm): Ditto.
1681 (vashr<mode>3): Modified constraint.
1682 (vlshr<mode>3): Ditto.
1683 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1685 (imm_for_neon_rshift_operand): Ditto.
1686 (imm_lshift_or_reg_neon): Ditto.
1687 (imm_rshift_or_reg_neon): Ditto.
1689 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1691 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1693 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1694 builtin calls even if likelyvalue is not CONSTANT.
1695 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1696 Return get_value_for_expr of first operand
1697 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1698 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1699 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1700 their non-checking counterparts.
1701 (call_may_clobber_ref_p_1): Likewise.
1702 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1703 like their non-checking counterparts.
1704 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1705 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1706 like their non-checking counterparts.
1707 (find_func_clobbers): Likewise.
1708 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1709 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1711 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1712 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1713 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1714 of base type reference as argument.
1715 (resolve_addr_in_expr): Likewise. Fix keep computation.
1716 (convert_descriptor_to_signed): Renamed to...
1717 (convert_descriptor_to_mode): ... this. For wider types convert to
1718 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1719 (typed_binop): New function.
1720 (scompare_loc_descriptor, ucompare_loc_descriptor,
1721 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1722 default to unsigned type instead of signed.
1725 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1726 (gimple_build_debug_source_bind_stat): New prototype.
1727 (gimple_build_debug_source_bind): Define.
1728 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1729 gimple_debug_source_bind_get_value,
1730 gimple_debug_source_bind_get_value_ptr,
1731 gimple_debug_source_bind_set_var,
1732 gimple_debug_source_bind_set_value): New inlines.
1733 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1734 * gimple-pretty-print.c (dump_gimple_debug): Handle
1735 GIMPLE_DEBUG_SOURCE_BIND.
1736 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1737 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1738 * tree-parloops.c (eliminate_local_variables,
1739 separate_decls_in_region): Likewise.
1740 (separate_decls_in_region_debug): Renamed from
1741 separate_decls_in_region_debug_bind. Handle
1742 gimple_debug_source_bind_p.
1743 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1745 (DECL_HAS_DEBUG_ARGS_P): Define.
1746 (struct tree_function_decl): Add has_debug_args_flag field.
1747 * tree.c (debug_args_for_decl): New variable.
1748 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1749 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1750 (rewrite_debug_stmt_uses): New function.
1751 (rewrite_stmt): Use it to rewrite debug stmt uses.
1752 * rtl.def (DEBUG_PARAMETER_REF): New.
1753 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1754 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1755 DEBUG_PARAMETER_REF.
1756 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1757 * print-rtl.c (print_rtx): Likewise.
1758 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1759 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1760 debug stmts in the first bb.
1761 * tree-inline.c (remap_ssa_name): If remapping default def
1762 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1763 a source bind debug stmt.
1764 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1765 (maybe_move_debug_stmts_to_successors): Likewise.
1766 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1767 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1768 debug args vector from old_decl to new_decl.
1769 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1770 or modified parameters, add debug bind stmts before call
1771 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1772 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1773 on DECL_DEBUG_EXPRs from debug args vector.
1774 (expand_debug_source_expr): New function.
1775 (expand_debug_locations): Use it for source bind insns.
1776 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1777 * var-tracking.c (prepare_call_arguments): Add debug args
1778 to call_arguments if any.
1779 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1780 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1781 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1782 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1783 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1784 (gen_subprogram_die): Handle parameters identified by
1785 DEBUG_PARAMETER_REF.
1787 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1789 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1790 * doc/install.texi (Configuration): Document --with-tls.
1791 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1792 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1793 (arm_tls_descseq_addr): New.
1794 (legitimize_tls_address): Add tlsdesc support.
1795 (arm_cannot_copy_insn_p): Check for tlscall.
1796 (arm_emit_tls_decoration): Likewise.
1797 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1798 (OPTION_DEFAULT_SPECS): Add with-tls support.
1799 * config/arm/arm.md (R1_REGNUM): Define.
1801 * config/arm/arm.opt (tls_type): New enumeration type and values.
1802 (mtls-dialect): New switch.
1803 * config/arm/arm-opts.h (enum tls_type): New.
1805 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1807 * attribs.c (register_attribute): Added assert to check that all
1808 attribute specs are registered with a name that is not empty and
1809 does not start with '_'.
1810 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1811 if the function has no attributes.
1812 * tree.c (is_attribute_with_length_p): Removed.
1813 (is_attribute_p): Removed.
1814 (private_is_attribute_p): New.
1815 (private_lookup_attribute): New.
1816 (lookup_attribute): Removed.
1817 (lookup_ident_attribute): New.
1818 (remove_attribute): Require the first argument to be in the form
1819 'text', not '__text__'. Updated asserts.
1820 (merge_attributes): Use lookup_ident_attributes instead of
1822 (merge_dllimport_decl_attributes): Use remove_attribute.
1823 (attribute_list_contained): Likewise.
1824 (attribute_list_equal): Immediately return 1 if the arguments are
1826 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1827 'int'. Require the first argument to be in the form 'text', not
1828 '__text__'. Require the second argument to be an identifier.
1829 (lookup_attribute): Made inline. Require the first argument to be
1830 in the form 'text', not '__text__'.
1831 (private_is_attribute_p, private_lookup_attribute): New.
1834 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1836 * builtins.c: Add sync_ or SYNC__ to builtin names.
1837 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1838 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1840 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1843 * config/avr/avr.md (extzv): New expander.
1845 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1846 * config/avr/constraints.md (C04): New constraint.
1847 * doc/md.texi (Machine Constraints): Document it.
1849 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1852 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1853 unsignedp argument instead of 1 for clrsb_optab.
1854 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1855 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1856 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1857 * optabs.c (widen_leading): Call widen_operand and expand_unop
1858 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1859 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1861 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1863 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1865 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1867 * gensupport.c (add_define_attr): New static function.
1868 (is_predicable): Allow multi-alternative lists for the "predicable"
1870 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1871 (process_one_cond_exec): Call alter_attrs_for_insn.
1872 * doc/md.texi (Defining Attributes): Mention some standard names.
1873 (Conditional Execution): Update documentation for "predicable".
1875 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1876 __builtin_clrsbll): Document.
1877 * doc/rtl.texi (clrsb): New entry.
1878 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1879 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1880 (expand_unop): Handle clrsb_optab.
1881 (init_optabs): Initialize it.
1882 * optabs.h (enum optab_index): New entry OTI_clrsb.
1883 (clrsb_optab): Define.
1884 * genopinit.c (optabs): Add an entry for it.
1885 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1886 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1887 BUILT_IN_CLRSBLL): New.
1888 * rtl.def (CLRSB): New code.
1889 * dwarf2out.c (mem_loc_descriptor): Handle it.
1890 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1891 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1893 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1894 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1895 (__ctzDI2): Move declaration.
1896 * config/bfin/bfin.md (clrsbsi2): New expander.
1897 (signbitssi2): Use the CLRSB rtx.
1898 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1899 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1901 2011-06-21 Richard Guenther <rguenther@suse.de>
1903 * ipa-inline-transform.c (inline_transform): Fix previous change.
1905 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1907 PR tree-optimization/49478
1908 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1909 with constant operand.
1911 2011-06-21 Richard Guenther <rguenther@suse.de>
1913 * ipa-inline-transform.c (inline_transform): Fix typo.
1915 2011-06-21 Richard Guenther <rguenther@suse.de>
1917 PR tree-optimization/49483
1918 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1919 VIEW_CONVERT_EXPR conversions.
1921 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1923 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1924 * config/avr/avr-tables.opt: New file (generated).
1925 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1926 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1928 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1929 (avr_option_override): Don't process -mmcu= argument here. Set
1930 avr_current_device using avr_mcu_index.
1931 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1932 * config/avr/avr.opt (mmcu=): Use Enum.
1933 * config/avr/t-avr (avr-devices.o): Update dependencies.
1934 ($(srcdir)/config/avr/avr-tables.opt): New.
1935 * target.def (help): Remove.
1936 * doc/tm.texi.in (TARGET_HELP): Remove.
1937 * doc/tm.texi: Regenerate.
1938 * opts.c: Don't include target.h.
1939 (common_handle_option): Don't call targetm.help.
1940 * system.h (TARGET_HELP): Poison.
1941 * Makefile.in (opts.o): Update dependencies.
1943 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1945 * config/usegld.h: New file.
1946 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1947 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1948 (LIB_SPEC): Likewise. Search /lib.
1949 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1950 (RDYNAMIC_SPEC): Handle GNU ld.
1951 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1953 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1954 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1955 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1956 (STACK_CHECK_STATIC_BUILTIN): Define.
1957 * config/sol2.opt (compat-bsd): Remove.
1958 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1959 * config/sol2-bi.h: New file.
1960 * config/sol2-gld.h: Remove.
1961 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1962 (NO_DBX_BNSYM_ENSYM): Remove.
1963 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1964 (STACK_CHECK_STATIC_BUILTIN): Remove.
1965 Test USE_GLD instead of TARGET_GNU_LD.
1966 * config/i386/sol2-10.h: Rename to ...
1967 * config/i386/sol2-bi.h .. this.
1968 (SUBTARGET_EXTRA_SPECS): Redefine.
1969 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1970 (MULTILIB_DEFAULTS): Remove.
1971 (DEFAULT_ARCH32_P): Define.
1972 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1973 (ARCH64_SUBDIR): Define.
1974 Test USE_GLD instead of TARGET_GNU_LD.
1975 (I386_EMULATION): Rename to ...
1976 (ARCH32_EMULATION): ... this.
1977 (X86_64_EMULATION): Rename to ...
1978 (ARCH64_EMULATION): ... this.
1979 (TARGET_LD_EMULATION): Remove.
1980 (LINK_ARCH_SPEC): Remove.
1981 * config/i386/sol2-gas.h: Remove.
1982 * config/i386/t-sol2-10: Rename to ...
1983 * config/i386/t-sol2-64: ... this.
1984 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1985 (AS_SPARC64_FLAG): Define.
1986 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1987 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1988 depending on TARGET_CPU_DEFAULT.
1989 (CPP_CPU_SPEC): Redefine.
1990 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1991 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1992 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1993 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1994 ASM_ARCH_DEFAULT_SPEC): Redefine.
1995 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1996 LINK_ARCH_DEFAULT_SPEC.
1997 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1998 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1999 (ARCH64_SUBDIR): Define.
2000 (LINK_ARCH64_SPEC): Redefine.
2001 (CC1_SPEC): Redefine.
2002 (OPTION_DEFAULT_SPECS): Redefine.
2003 (MULTILIB_DEFAULTS): Define.
2004 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
2005 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
2006 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
2007 (NO_DBX_BNSYM_ENSYM): Remove.
2008 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2009 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
2010 (TARGET_ASM_NAMED_SECTION): Likewise.
2011 (STACK_CHECK_STATIC_BUILTIN): Remove.
2012 * config/sparc/sol2-bi.h: Remove.
2013 * config/sparc/sol2-gas-bi.h: Remove.
2014 * config/sparc/sol2-gas.h: Remove.
2015 * config/sparc/sol2-gld-bi.h: Remove.
2016 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
2018 (*-*-solaris2*): ... here.
2020 2011-06-21 Christian Bruel <christian.bruel@st.com>
2023 * ipa-inline.c (can_inline_edge_p): Check
2024 !DECL_DISREGARD_INLINE_LIMITS.
2026 2011-06-21 Christian Bruel <christian.bruel@st.com>
2029 * cgraphunit.c (process_function_and_variable_attributes): warn when
2030 always_inline functions that are not inline.
2031 * ipa-inline-transform.c (inline_transform): Always call
2033 * tree-inline.c (tree_inlinable_function_p): Use error instead
2035 (expand_call_inline): Likewise.
2037 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2039 * Makefile.in (dg_target_exps): Set.
2040 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
2041 instead of 7, try to divide it more evenly.
2043 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
2046 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
2047 (avx256_split_unaligned_store): New definition.
2048 (ix86_option_override_internal): Enable avx256 unaligned load/store
2049 splitting only when avx256_split_unaligned_load/store is set.
2051 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2053 * regrename.c (scan_rtx_reg): Handle the case where we write to an
2054 open chain in a smaller mode without failing the entire block.
2056 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2059 * combine.c (cant_combine_insn_p): Don't check zero/sign
2060 extended hard registers.
2062 2011-06-21 Alan Modra <amodra@gmail.com>
2064 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
2065 CONST high part large-toc address.
2066 (rs6000_tls_referenced_p): Make static.
2067 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
2069 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2072 * combine.c (cant_combine_insn_p): Check zero/sign extended
2075 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2078 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
2079 one of the operands is a register.
2081 2011-06-20 Kai Tietz <ktietz@redhat.com>
2083 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
2084 operations in combination with binary and.
2086 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2088 * regrename.c (do_replace): Don't update notes.
2090 2011-06-20 Alan Modra <amodra@gmail.com>
2092 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
2093 of toc-relative address in CONST.
2094 (rs6000_delegitimize_address): Recognize changed address.
2095 (rs6000_legitimize_reload_address): Likewise.
2096 (rs6000_emit_move): Don't force these constants to memory.
2097 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
2098 toc-relative address in CONST.
2099 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2100 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2102 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2104 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
2105 (count_trailing_zeros): Likewise.
2107 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2110 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
2111 .init_array can be used with .ctors on targets.
2112 * configure: Regenerated.
2114 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2116 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
2117 if the element type is volatile.
2119 2011-06-18 Jan Hubicka <jh@suse.cz>
2121 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
2123 (lto_symtab_resolve_can_prevail_p): Likewise.
2124 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
2125 * cgraphbuild.c (record_reference): Remove extra body alias code.
2126 (mark_load): Likewise.
2127 (mark_store): Likewise.
2128 * cgraph.h (varpool_node): Remove extra_name filed;
2129 add alias_of and extraname_alias.
2130 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
2131 (varpool_alias_aliased_node): New inline function.
2132 (varpool_variable_node): New function.
2133 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
2134 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
2135 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
2136 (input_varpool_node): Likewise.
2137 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
2138 (varpool_externally_visible_p): Remove extra body alias code.
2139 (function_and_variable_visibility): Likewise.
2140 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
2141 (ipa_pta_execute): Use it.
2142 * varpool.c (varpool_remove_node): Remove extra name alias code.
2143 (varpool_mark_needed_node): Likewise.
2144 (varpool_analyze_pending_decls): Analyze aliases.
2145 (assemble_aliases): New functoin.
2146 (varpool_assemble_decl): Use it.
2147 (varpool_create_variable_alias): New function.
2148 (varpool_extra_name_alias): Rewrite.
2149 (varpool_for_node_and_aliases): New function.
2151 2011-06-18 Jakub Jelinek <jakub@redhat.com>
2154 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
2155 last_arg_constant and last argument doesn't match its predicate,
2156 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
2157 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
2158 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
2159 spelling of error message.
2160 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
2161 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
2162 const_0_to_255_operand instead of const_int_operand.
2165 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2167 * config/i386/sse.md (blendbits): Remove mode attribute.
2168 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2169 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2170 Check integer value of operand 3 in insn constraint.
2172 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
2174 PR rtl-optimization/48542
2175 * reload.c (find_equiv_reg): Stop looking when finding a
2177 * reload1.c (reload_as_needed): Invalidate all reload
2178 registers when crossing a setjmp-type call.
2180 2011-06-16 Jeff Law <law@redhat.com>
2182 * tree-ssa-threadupdate.c (struct redirection_data): New field
2184 (THREAD_TARGET2): Define.
2185 (redirection_data_eq): Also check that the intermediate edge is equal.
2186 (lookup_redirection_data): Drop useless argument. Extract the
2187 outgoing_edge and intermediate edge from E. Callers updated.
2188 (copy_phi_args, update_destination_phis): New functions.
2189 (fix_duplicate_block_edges): Likewise.
2190 (create_edge_and_update_destination_phis): Duplicate all the edges
2191 hung off e->aux. Use copy_phi_args.
2192 (create_duplicates): Use fix_duplicate_block_edges.
2193 (fixup_template_block): Likewise.
2194 (redirect_edges): If necessary, redirect the joiner block's incoming
2195 edge to the duplicate of the joiner block.
2196 (thread_block): Don't muck up loops when threading through a joiner
2198 (thread_through_loop_header): Handle threading through a joiner block.
2199 (mark_threaded_blocks, register_jump_thread): Likewise.
2200 * tree-flow.h (register_jump_thread): Add new argument. Callers
2202 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2203 (thread_across_edge): Handle threading through a joiner block.
2205 2011-06-16 Martin Jambor <mjambor@suse.cz>
2207 PR tree-optimization/49343
2208 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2209 calculate offset, provide 2nd operand for the new COMPONENT_REF.
2211 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2213 * config/darwin-protos.h (machopic_select_rtx_section): Move to
2214 inside RTX_CODE ifdef.
2216 2011-06-16 Tom de Vries <tom@codesourcery.com>
2219 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2220 Disallow NULL pointer for pointer arithmetic.
2222 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2226 2011-06-10 Wei Guozhi <carrot@google.com>
2229 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2230 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2231 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2233 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2235 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2236 (arm_legitimate_ldrd_p): New prototype.
2237 (arm_output_ldrd): New prototype.
2238 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2239 (arm_legitimate_ldrd_p): New function.
2240 (arm_output_ldrd): New function.
2242 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2245 * doc/tm.texi.in: Update Copyright date.
2246 * doc/tm.texi: Regenerate.
2247 * targhooks.c (default_setup_incoming_varargs): Replace
2248 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2249 (default_pretend_outgoing_varargs_named): Likewise.
2250 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2251 (hook_callee_copies_named): Likewise.
2252 (default_function_arg_advance): Likewise.
2253 (default_function_arg): Likewise.
2254 (default_function_incoming_arg): Likewise.
2255 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2256 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2257 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2258 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2259 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2260 * targhooks.h (default_setup_incoming_varargs): Likewise.
2261 (default_pretend_outgoing_varargs_named): Likewise.
2262 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2263 (hook_callee_copies_named): Likewise.
2264 (default_function_arg_advance): Likewise.
2265 (default_function_arg): Likewise.
2266 (default_function_incoming_arg): Likewise.
2267 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2268 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2269 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2270 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2271 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2272 * target.def (pass_by_reference): Likewise.
2273 (setup_incoming_varargs, strict_argument_naming): Likewise.
2274 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2275 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2276 (function_incoming_arg): Likewise.
2277 * target.h: Don't include "tm.h" .
2278 (cumulative_args_t): New typedef.
2279 [GCC_TM_H] (get_cumulative_args): New static inline function.
2280 [GCC_TM_H] (pack_cumulative_args): Likewise.
2281 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2282 argument type with cumulative_args_t.
2283 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2284 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2285 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2286 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2287 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2288 (frv_function_arg_1): Likewise.
2289 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2290 (s390_function_arg_advance, s390_function_arg): Likewise.
2291 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2292 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2293 (m32c_strict_argument_naming): Likewise.
2294 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2295 (spu_function_arg_advance): Likewise.
2296 (spu_setup_incoming_varargs): Likewise. Make static.
2297 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2299 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2300 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2301 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2302 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2303 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2304 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2305 (mep_pass_by_reference, mep_function_arg): Likewise.
2306 (mep_function_arg_advance): Likewise.
2307 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2308 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2309 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2310 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2311 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2312 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2313 (ix86_setup_incoming_varargs): Likewise.
2314 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2315 (sh_strict_argument_naming): Likewise.
2316 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2317 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2318 (sh_function_arg_advance, sh_function_arg): Likewise.
2319 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2320 (pdp11_function_arg_advance): Likewise.
2321 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2323 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2324 * config/avr/avr.c (avr_function_arg): Likewise.
2325 (avr_function_arg_advance): Likewise.
2326 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2327 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2328 (xtensa_function_arg_1): Likewise.
2329 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2331 (xstormy16_function_arg): Likewise.
2332 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2333 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2334 (fr30_function_arg_advance): Likewise.
2335 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2336 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2337 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2338 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2339 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2340 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2341 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2342 (cris_function_arg, cris_function_incoming_arg): Likewise.
2343 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2344 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2345 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2346 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2347 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2348 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2349 (mn10300_arg_partial_bytes): Likewise.
2350 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2351 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2352 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2353 (ia64_function_arg_1): Likewise.
2354 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2355 (m68k_function_arg): Likewise.
2356 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2357 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2358 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2359 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2360 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2361 (picochip_arg_advance): Likewise.
2362 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2363 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2364 (mcore_function_arg_advance): Likewise.
2365 * config/score/score.c (score_pass_by_reference): Likewise.
2366 (score_function_arg_advance): Likewise.
2367 (score_arg_partial_bytes): Likewise. Make static.
2368 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2369 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2370 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2371 (arm_function_arg, arm_function_arg_advance): Likewise.
2372 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2373 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2374 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2375 (pa_function_arg): Likewise.
2376 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2377 (mips_function_arg, mips_function_arg_advance): Likewise.
2378 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2379 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2380 * config/vax/vax.c (vax_function_arg): Likewise.
2381 (vax_function_arg_advance): Likewise.
2382 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2383 (h8300_function_arg_advance): Likewise.
2384 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2385 (v850_strict_argument_naming, v850_function_arg): Likewise.
2386 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2387 (v850_setup_incoming_varargs): Likewise.
2388 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2389 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2390 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2391 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2393 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2394 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2395 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2396 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2397 * calls.c (emit_call_1): Change type of args_so_far to
2398 cumulative_args_t. Changed all callers.
2399 (initialize_argument_information): Likewise.
2400 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2401 * dse.c (get_call_args): Likewise.
2402 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2403 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2404 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2405 New member args_so_far_v. Changed all users.
2406 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2407 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2408 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2409 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2410 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2411 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2413 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2414 m32r_pass_by_reference.
2416 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
2418 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2419 argument to be a VEC of statements.
2420 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2421 assert that pattern statements have to have their vector type set.
2422 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2423 Change the first argument to be a VEC of statements. Update
2425 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2426 (vect_handle_widen_mult_by_const): New function.
2427 (vect_recog_widen_mult_pattern): Change the first argument to be a
2428 VEC of statements. Update documentation. Check that the constant is
2429 INTEGER_CST. Support multiplication by a constant that fits an
2430 intermediate type - call vect_handle_widen_mult_by_const.
2431 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2432 call. Handle additional pattern statements if necessary.
2434 2011-06-16 Nick Clifton <nickc@redhat.com>
2437 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2438 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2439 md_file, extra_modes, out_file and extra_options are these are all
2440 deduced from cpu_type.
2442 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2444 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2445 truncation mask to 63.
2447 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2451 * longlong.h: Add AVR support:
2452 (count_leading_zeros): New macro.
2453 (count_trailing_zeros): New macro.
2454 (COUNT_LEADING_ZEROS_0): New macro.
2455 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2456 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2457 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2458 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2459 (LIB2FUNCS_EXCLUDE): Add _clz.
2460 * config/avr/libgcc.S (XCALL): Move up in file.
2461 (XJMP): New C Macro.
2462 (DEFUN): New asm macro.
2463 (ENDF): New asm macro.
2464 (__ffssi2): New function.
2465 (__ffshi2): New function.
2466 (__loop_ffsqi2): New function.
2467 (__ctzsi2): New function.
2468 (__ctzhi2): New function.
2469 (__clzdi2): New function.
2470 (__clzsi2): New function.
2471 (__clzhi2): New function.
2472 (__paritydi2): New function.
2473 (__paritysi2): New function.
2474 (__parityhi2): New function.
2475 (__parityqi2): New function.
2476 (__popcounthi2): New function.
2477 (__popcountsi2): New function.
2478 (__popcountdi2): New function.
2479 (__popcountqi2): New function.
2480 (__bswapsi2): New function.
2481 (__bswapdi2): New function.
2482 (__ashldi3): New function.
2483 (__ashrdi3): New function.
2484 (__lshrdi3): New function.
2485 Fix suspicous lines.
2487 2011-06-16 Richard Guenther <rguenther@suse.de>
2489 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2491 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2493 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2494 equality compares against zero for the lower bit.
2496 2011-06-16 Jakub Jelinek <jakub@redhat.com>
2498 PR tree-optimization/49419
2499 * tree-vrp.c (execute_vrp): Call init_range_assertions
2500 before estimate_numbers_of_iterations, call
2501 free_number_of_iterations_estimates before calling
2502 remove_range_assertions.
2504 2011-06-16 Revital Eres <revital.eres@linaro.org>
2506 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2507 (struct partial_schedule): Add rows_length field.
2508 (verify_partial_schedule): Check rows_length.
2509 (ps_insert_empty_row): Handle rows_length.
2510 (create_partial_schedule): Likewise.
2511 (free_partial_schedule): Likewise.
2512 (reset_partial_schedule): Likewise.
2513 (create_ps_insn): Remove rest_count argument.
2514 (remove_node_from_ps): Update rows_length.
2515 (add_node_to_ps): Update rows_length and call create_ps_insn
2516 without passing row_rest_count.
2517 (rotate_partial_schedule): Update rows_length.
2519 2011-06-16 Revital Eres <revital.eres@linaro.org>
2521 * ddg.c (add_intra_loop_mem_dep): New function.
2522 (build_intra_loop_deps): Call it.
2524 2011-06-13 Jeff Law <law@redhat.com>
2526 * df-problems.c (df_lr_local_compute): Manually CSE
2527 PIC_OFFSET_TABLE_REGNUM.
2528 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2529 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2531 2011-06-13 Jan Hubicka <jh@suse.cz>
2533 * cgraphunit.c (handle_alias_pairs): New function.
2534 (cgraph_finalize_compilation_unit): Use it.
2535 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2536 as externally visible.
2538 2011-06-15 Richard Guenther <rguenther@suse.de>
2540 * expr.c (expand_expr_real_2): Reduce all integral types to
2542 (expand_expr_real_1): Likewise.
2544 2011-06-15 Martin Jambor <mjambor@suse.cz>
2546 PR tree-optimization/48613
2547 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2548 ipa_node_params_vector is NULL.
2550 2011-06-15 Jakub Jelinek <jakub@redhat.com>
2553 * dwarf2out.c (dw_loc_list_node): Add force field.
2554 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2555 location in the list, even if it is modified before first real insn.
2556 (output_loc_list): Emit empty ranges with force flag set.
2557 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
2559 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
2562 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2563 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2564 above a fence. Update comments.
2565 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2566 placed just above it. Do not allow NULL place_to_insert.
2568 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
2570 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2571 (slpeel_tree_peel_loop_to_edge): Don't call
2572 remove_dead_stmts_from_loop.
2573 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2574 remove irrelevant pattern statements. For irrelevant statements
2575 check if it is the last statement of a detected pattern, use
2576 corresponding pattern statement instead.
2577 (destroy_loop_vec_info): No need to remove pattern statements,
2578 only free stmt_vec_info.
2579 (vect_transform_loop): For irrelevant statements check if it is
2580 the last statement of a detected pattern, use corresponding
2581 pattern statement instead.
2582 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2583 pattern statements. Set basic block for the new statement.
2584 (vect_pattern_recog): Update documentation.
2585 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2586 operands of pattern statements.
2587 (vectorizable_call): Fix printing. In case of a pattern statement
2588 use the lhs of the original statement when creating a dummy
2589 statement to replace the original call.
2590 (vect_analyze_stmt): For irrelevant statements check if it is
2591 the last statement of a detected pattern, use corresponding
2592 pattern statement instead.
2593 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2594 statements use gsi of the original statement.
2596 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2598 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2599 common/common-target-def.h.
2600 * target.def (default_target_flags, handle_option,
2601 supports_split_stack, optimization_table, init_struct,
2602 except_unwind_info, unwind_tables_default, have_named_sections):
2603 Move to common/common-target.def.
2604 * target.h (enum opt_levels, struct default_options): Move to
2605 common/common-target.h.
2606 * targhooks.c (default_except_unwind_info,
2607 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2608 default_target_handle_option, empty_optimization_table): Move to
2609 common/common-targhooks.c.
2610 * targhooks.h (default_except_unwind_info,
2611 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2612 default_target_handle_option, empty_optimization_table): Move to
2613 common/common-targhooks.h.
2614 * common/common-target-def.h: Include common/common-targhooks.h.
2615 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2617 * common/common-target.def (handle_option, option_init_struct,
2618 option_optimization_table, default_target_flags,
2619 except_unwind_info, supports_split_stack, unwind_tables_default,
2620 have_named_sections): Move from target.def.
2621 (HOOK_PREFIX): Undefine at end of file.
2622 * common/common-target.h: Include input.h.
2623 (enum opt_levels, struct default_options): Move from target.h.
2624 * common/common-targhooks.c, common/common-targhooks.h: New.
2625 * config.gcc (target_has_targetm_common): Default to yes.
2626 (moxie*): Set target_has_targetm_common=no.
2627 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2628 * doc/tm.texi: Regenerate.
2629 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2630 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2631 (GCC_OBJS): Remove vec.o.
2632 (OBJS): Remove hooks.o and vec.o.
2633 (OBJS-libcommon-target): Add vec.o, hooks.o and
2634 common/common-targhooks.o.
2635 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2636 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2637 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2638 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2639 Update dependencies.
2640 (common/common-targhooks.o): New.
2641 * common/config/default-common.c: Include tm.h. Add FIXME comment.
2642 * common/config/pa/pa-common.c: Include more headers. Take
2643 copyright dates from pa.c.
2644 (pa_option_optimization_table, pa_handle_option,
2645 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2646 TARGET_HANDLE_OPTION): Move from pa.c.
2647 * common/config/alpha/alpha-common.c,
2648 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2649 common/config/bfin/bfin-common.c,
2650 common/config/cris/cris-common.c,
2651 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2652 common/config/h8300/h8300-common.c,
2653 common/config/i386/i386-common.c,
2654 common/config/ia64/ia64-common.c,
2655 common/config/iq2000/iq2000-common.c,
2656 common/config/lm32/lm32-common.c,
2657 common/config/m32c/m32c-common.c,
2658 common/config/m32r/m32r-common.c,
2659 common/config/m68k/m68k-common.c,
2660 common/config/mcore/mcore-common.c,
2661 common/config/mep/mep-common.c,
2662 common/config/microblaze/microblaze-common.c,
2663 common/config/mips/mips-common.c,
2664 common/config/mmix/mmix-common.c,
2665 common/config/mn10300/mn10300-common.c,
2666 common/config/pdp11/pdp11-common.c,
2667 common/config/picochip/picochip-common.c,
2668 common/config/rs6000/rs6000-common.c,
2669 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2670 common/config/score/score-common.c, common/config/sh/sh-common.c,
2671 common/config/sparc/sparc-common.c,
2672 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2673 common/config/vax/vax-common.c,
2674 common/config/xstormy16/xstormy16-common.c,
2675 common/config/xtensa/xtensa-common.c: New.
2676 * config/alpha/alpha.c: Include common/common-target.h.
2677 (alpha_option_optimization_table, alpha_handle_option,
2678 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2679 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2680 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2681 * config/arm/arm.c (arm_option_optimization_table,
2682 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2683 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2685 * config/avr/avr.c (avr_option_optimization_table,
2686 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2688 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2689 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2690 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2691 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2692 * config/cris/cris.c (cris_option_optimization_table,
2693 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2694 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2696 * config/fr30/fr30.c (fr30_option_optimization_table,
2697 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2699 * config/frv/frv.c (frv_option_optimization_table,
2700 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2701 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2702 * config/h8300/h8300.c (h8300_option_optimization_table,
2703 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2704 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2705 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2706 * config/i386/i386.c: Include common/common-target.h.
2707 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2708 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2709 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2710 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2711 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2712 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2713 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2714 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2715 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2716 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2717 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2718 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2719 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2720 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2721 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2722 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2723 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2724 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2725 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2726 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2727 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2728 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2729 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2730 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2731 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2732 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2733 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2734 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2735 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2736 ix86_option_optimization_table, ix86_option_init_struct,
2737 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2738 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2739 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2741 * config/i386/t-i386 (i386.o): Update dependencies.
2742 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2743 * config/ia64/ia64.c (ia64_option_optimization_table,
2744 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2745 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2746 ia64_handle_option): Move to ia64-common.c.
2747 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2748 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2749 * config/lm32/lm32.c (lm32_option_optimization_table,
2750 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2752 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2754 * config/m32r/m32r.c (m32r_option_optimization_table,
2755 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2756 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2757 m32r_handle_option): Move to m32r-common.c.
2758 (m32r_memory_move_cost): Remove comment referring to
2759 TARGET_HANDLE_OPTION.
2760 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2761 Move to m68k-common.c.
2762 * config/mcore/mcore.c (mcore_option_optimization_table,
2763 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2764 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2765 * config/mep/mep.c (mep_option_optimization_table,
2766 mep_handle_option, TARGET_HANDLE_OPTION,
2767 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2768 Move to mep-common.c.
2769 * config/microblaze/microblaze.c
2770 (microblaze_option_optimization_table,
2771 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2772 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2773 * config/mips/mips.c (mips_handle_option,
2774 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2775 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2777 * config/mmix/mmix.c (mmix_option_optimization_table,
2778 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2779 Move to mmix-common.c.
2780 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2781 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2782 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2783 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2784 * config/pa/pa.c: Include common/common-target.h.
2785 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2786 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2787 pa_handle_option): Move to pa-common.c.
2788 (pa_option_override): Use targetm_common.except_unwind_info.
2789 (pa_asm_output_mi_thunk, pa_function_section): Use
2790 targetm_common.have_named_sections.
2791 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2792 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2793 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2794 pdp11_handle_option, pdp11_option_init_struct): Move to
2796 * config/picochip/picochip.c (picochip_option_optimization_table,
2797 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2798 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2799 * config/rs6000/rs6000.c: Include common/common-target.h.
2800 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2801 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2802 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2803 rs6000_handle_option): Move to rs6000-common.c.
2804 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2805 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2806 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2807 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2808 * config/s390/s390.c (processor_flags_table,
2809 s390_option_optimization_table, s390_option_init_struct,
2810 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2811 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2812 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2813 * config/s390/s390.h (processor_flags_table): Declare.
2814 * config/score/score.c (score_option_optimization_table,
2815 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2816 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2817 score_handle_option): Move to score-common.c.
2818 * config/sh/sh.c (sh_option_optimization_table,
2819 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2820 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2821 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2822 * config/sparc/sparc.c: Include common/common-target.h.
2823 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2824 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2825 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2826 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2827 spu_option_init_struct): Move to spu-common.c.
2828 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2829 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2830 * config/v850/v850.c (small_memory_physical_max,
2831 v850_handle_memory_optionn v850_handle_option,
2832 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2833 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2835 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2836 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2837 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2838 Move to xtensa-common.c.
2839 * cfglayout.c: Include common/common-target.h.
2840 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2841 * cfgrtl.c: Include common/common-target.h.
2842 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2843 targetm_common.have_named_sections.
2844 * dbxout.c: Include common/common-target.h.
2845 (dbxout_function_end): Use targetm_common.have_named_sections.
2846 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2847 targetm_common.except_unwind_info.
2848 * dwarf2out.c: Include common/common-target.h.
2849 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2850 dwarf2out_begin_prologue, dwarf2out_frame_init,
2851 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2852 targetm_common.except_unwind_info.
2853 * except.c: Include common/common-target.h.
2854 (init_eh, finish_eh_generation,
2855 output_one_function_exception_table): Use
2856 targetm_common.except_unwind_info.
2857 (switch_to_exception_section): Use targetm_common.have_named_sections.
2858 * explow.c: Include common/common-target.h.
2859 * expr.c: Include common/common-target.h.
2860 (build_personality_function): Use targetm_common.except_unwind_info.
2861 * function.c: Include common/common-target.h.
2862 (expand_function_end): Use targetm_common.except_unwind_info.
2863 * haifa-sched.c: Include common/common-target.h.
2864 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2865 * lto-opts.c: Include common/common-target.h instead of target.h.
2866 (lto_reissue_options): Use targetm_common.handle_option.
2867 * opts.c: Include common/common-target.h.
2868 (target_handle_option): Use targetm_common.handle_option.
2869 (init_options_struct): Update comment referring to
2870 targetm.target_option.optimization. Use
2871 targetm_common.default_target_flags,
2872 targetm_common.unwind_tables_default and
2873 targetm_common.option_init_struct.
2874 (default_options_optimization): Use
2875 targetm_common.option_optimization_table.
2876 (finish_options): Use targetm_common.except_unwind_info,
2877 targetm_common.unwind_tables_default,
2878 targetm_common.have_named_sections and
2879 targetm_common.supports_split_stack.
2880 * toplev.c: Include common/common-target.h.
2881 (process_options): Use targetm_common.have_named_sections.
2882 * tree-tailcall.c: Include common/common-target.h.
2883 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2884 * tree.c: Include common/common-target.h.
2885 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2886 * varasm.c: Include common/common-target.h.
2887 (resolve_unique_section, hot_function_section,
2888 default_function_section): Use targetm_common.have_named_sections.
2890 2011-06-14 Easwaran Raman <eraman@google.com>
2892 PR rtl-optimization/44194
2893 * dse.c: Include tree-flow.h
2894 (insn_info): Add new field non_frame_wild_read.
2895 (group_info): Add new fields escaped_n and escaped_p.
2896 (kill_on_calls): New variable.
2897 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2898 (dse_step0): Initialize kill_on_calls.
2899 (can_escape): New function.
2900 (set_usage_bits): Add additional parameter; record information
2901 about escaped locations.
2902 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2903 (dse_step2_nospill): Set kill_on_calls based on
2904 group->escaped_n and group->escaped_n.
2905 (add_wild_read): Refactor into...
2906 (reset_active_stores): ... New function, and
2907 (free_read_records): ... New function.
2908 (add_non_frame_wild_read): New function.
2909 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2910 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2911 (dse_step5_nospill): Call scan_reads_nospill for instructions
2912 marked as non_frame_wild_read.
2913 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2915 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2917 * common/common-target-def.h, common/common-target.def,
2918 common/common-target.h, common/config/default-common.c,
2919 common/config/pa/pa-common.c: New files.
2920 * Makefile.in (common_out_file, common_out_object_file,
2921 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2922 (OBJS-libcommon-target): Include $(common_out_object_file).
2923 (prefix.o): Update dependencies.
2924 ($(common_out_object_file), common/common-target-hooks-def.h,
2925 s-common-target-hooks-def-h): New.
2926 (s-tm-texi): Also check timestamp on common-target.def.
2927 (build/genhooks.o): Update dependencies.
2928 * config.gcc (common_out_file, target_has_targetm_common): Define.
2929 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2930 TARGET_ALWAYS_STRIP_DOTDOT.
2931 * configure.ac (common_out_object_file): Define.
2932 (common_out_file, common_out_object_file): Substitute.
2933 (common): Create directory.
2934 * configure: Regenerate.
2935 * doc/tm.texi.in (targetm_common): Document.
2936 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2937 * doc/tm.texi: Regenerate.
2938 * genhooks.c (hook_array): Also include common/common-target.def.
2939 * prefix.c (tm.h): Don't include.
2940 (common/common-target.h): Include.
2941 (ALWAYS_STRIP_DOTDOT): Don't define.
2942 (update_path): Use targetm_common.always_strip_dotdot instead of
2943 ALWAYS_STRIP_DOTDOT.
2944 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2946 2011-06-14 David Li <davidxl@google.com>
2948 * passes.c (execute_function_todo): Remove TODO_dump_func.
2949 (execute_one_pass): Remove TODO_dump_func.
2950 (execute_function_dump): New function.
2951 * tree-vrp.c: Remove TODO_dump_func.
2952 * regrename.c: Remove TODO_dump_func.
2953 * fwprop.c: Remove TODO_dump_func.
2954 * tree-into-ssa.c: Remove TODO_dump_func.
2955 * tree-complex.c: Remove TODO_dump_func.
2956 * tracer.c: Remove TODO_dump_func.
2957 * tree-loop-distribution.c: Remove TODO_dump_func.
2958 * postreload-gcse.c: Remove TODO_dump_func.
2959 * postreload.c: Remove TODO_dump_func.
2960 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2961 * tree-tailcall.c: Remove TODO_dump_func.
2962 * ipa-cp.c: Remove TODO_dump_func.
2963 * final.c: Remove TODO_dump_func.
2964 * tree-emutls.c: Remove TODO_dump_func.
2965 * omp-low.c: Remove TODO_dump_func.
2966 * tree-ssa-dse.c: Remove TODO_dump_func.
2967 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2968 * auto-inc-dec.c: Remove TODO_dump_func.
2969 * reorg.c: Remove TODO_dump_func.
2970 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2971 * tree-ssa-ccp.c: Remove TODO_dump_func.
2972 * compare-elim.c: Remove TODO_dump_func.
2973 * mode-switching.c: Remove TODO_dump_func.
2974 * modulo-sched.c: Remove TODO_dump_func.
2975 * tree-call-cdce.c: Remove TODO_dump_func.
2976 * cse.c: Remove TODO_dump_func.
2977 * web.c: Remove TODO_dump_func.
2978 * tree-stdarg.c: Remove TODO_dump_func.
2979 * lto-streamer-out.c: Remove TODO_dump_func.
2980 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2981 * tree-ssa-dom.c: Remove TODO_dump_func.
2982 * tree-nrv.c: Remove TODO_dump_func.
2983 * loop-init.c: Remove TODO_dump_func.
2984 * gimple-low.c: Remove TODO_dump_func.
2985 * ipa-inline.c: Remove TODO_dump_func.
2986 * tree-ssa-sink.c: Remove TODO_dump_func.
2987 * jump.c: Remove TODO_dump_func.
2988 * ifcvt.c: Remove TODO_dump_func.
2989 * tree-ssa-loop.c: Remove TODO_dump_func.
2990 * recog.c: Remove TODO_dump_func.
2991 * dse.c: Remove TODO_dump_func.
2992 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2993 * matrix-reorg.c: Remove TODO_dump_func.
2994 * tree-eh.c: Remove TODO_dump_func.
2995 * regmove.c: Remove TODO_dump_func.
2996 * function.c: Remove TODO_dump_func.
2997 * tree-vectorizer.c: Remove TODO_dump_func.
2998 * ipa-split.c: Remove TODO_dump_func.
2999 * gcse.c: Remove TODO_dump_func.
3000 * tree-if-conv.c: Remove TODO_dump_func.
3001 * init-regs.c: Remove TODO_dump_func.
3002 * tree-ssa-phiopt.c: Remove TODO_dump_func.
3003 * implicit-zee.c: Remove TODO_dump_func.
3004 * lower-subreg.c: Remove TODO_dump_func.
3005 * bt-load.c: Remove TODO_dump_func.
3006 * tree-dfa.c: Remove TODO_dump_func.
3007 * except.c: Remove TODO_dump_func.
3008 * emit-rtl.c: Remove TODO_dump_func.
3009 * store-motion.c: Remove TODO_dump_func.
3010 * cfgexpand.c: Remove TODO_dump_func.
3011 * tree-cfgcleanup.c: Remove TODO_dump_func.
3012 * cfgcleanup.c: Remove TODO_dump_func.
3013 * tree-ssa-pre.c: Remove TODO_dump_func.
3014 * tree-sra.c: Remove TODO_dump_func.
3015 * tree-mudflap.c: Remove TODO_dump_func.
3016 * tree-ssa-copy.c: Remove TODO_dump_func.
3017 * cfglayout.c: Remove TODO_dump_func.
3018 * tree-ssa-forwprop.c: Remove TODO_dump_func.
3019 * tree-ssa-dce.c: Remove TODO_dump_func.
3020 * ira.c: Remove TODO_dump_func.
3021 * tree-ssa.c: Remove TODO_dump_func.
3022 * integrate.c: Remove TODO_dump_func.
3023 * tree-optimize.c: Remove TODO_dump_func.
3024 * tree-ssa-phiprop.c: Remove TODO_dump_func.
3025 * tree-object-size.c: Remove TODO_dump_func.
3026 * combine.c: Remove TODO_dump_func.
3027 * bb-reorder.c: Remove TODO_dump_func.
3028 * cprop.c: Remove TODO_dump_func.
3029 * var-tracking.c: Remove TODO_dump_func.
3030 * tree-profile.c: Remove TODO_dump_func.
3031 * tree-vect-generic.c: Remove TODO_dump_func.
3032 * reg-stack.c: Remove TODO_dump_func.
3033 * sched-rgn.c: Remove TODO_dump_func.
3034 * tree-ssa-structalias.c: Remove TODO_dump_func.
3035 * tree-switch-conversion.c: Remove TODO_dump_func.
3036 * tree-cfg.c: Remove TODO_dump_func.
3037 * tree-ssa-reassoc.c: Remove TODO_dump_func.
3038 * combine-stack-adj.c: Remove TODO_dump_func.
3039 * dce.c: Remove TODO_dump_func.
3040 * tree-ssanames.c: Remove TODO_dump_func.
3041 * regcprop.c: Remove TODO_dump_func.
3043 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
3046 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
3047 and properly handle result not in Pmode.
3049 2011-06-14 Robert Millan <rmh@gnu.org>
3051 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
3052 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
3055 * config/i386/kfreebsd-gnu64.h: New file.
3056 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
3057 with `i386/kfreebsd-gnu64.h'.
3059 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
3060 (GNU_USER_LINK_EMULATION64): New macros.
3061 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
3062 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
3063 of hardcoding `elf_i386' and `elf_x86_64'.
3065 2011-06-14 Nick Clifton <nickc@redhat.com>
3068 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
3071 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
3073 2011-06-14 Jakub Jelinek <jakub@redhat.com>
3076 * tree.h (DECL_NONSHAREABLE): Define.
3077 (struct tree_decl_common): Change decl_common_unused to
3078 decl_nonshareable_flag.
3079 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
3080 Ignore vars with DECL_NONSHAREABLE bit set.
3081 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
3082 on stores to automatic aggregate vars.
3084 PR rtl-optimization/49390
3086 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3088 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3091 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
3092 Tom de Vries <tom@codesourcery.com>
3095 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
3096 Document changed semantics.
3097 (max_stmt_executions, max_stmt_executions_int): Declare.
3098 * tree-data-ref.c (estimated_loop_iterations)
3099 (estimated_loop_iterations_int): Move functions...
3100 * tree-ssa-loop-niter.c (estimated_loop_iterations)
3101 (estimated_loop_iterations_int): here.
3102 (record_estimate): Change nb_iterations_upper_bound and
3103 nb_iterations_estimate semantics.
3104 (max_stmt_executions, max_stmt_executions_int): New function.
3105 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
3106 (max_stmt_executions_tree): this.
3107 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
3108 estimated_loop_iterations_tree.
3109 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
3110 max_stmt_executions_int instead of estimated_loop_iterations_int.
3111 * predict.c (predict_loops): Idem.
3112 * tree-parloops.c (parallelize_loops): Idem.
3113 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
3114 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
3115 (init_omega_for_ddr_1): Idem.
3116 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
3117 (loop_prefetch_arrays): Idem
3118 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
3119 max_stmt_executions instead of estimated_loop_iterations.
3120 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
3121 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
3122 instead of nb_iterations_upper_bound.
3124 2011-06-13 Jan Hubicka <jh@suse.cz>
3126 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
3128 2011-06-14 Richard Henderson <rth@redhat.com>
3131 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
3132 (based_loc_descr): Assert it's true.
3133 (compute_frame_pointer_to_fb_displacement): Set it, rather than
3134 aborting immediately.
3136 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
3137 Mingfeng Wu <mingfeng@faraday-tech.com>
3139 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
3141 2011-06-13 Jan Hubicka <jh@suse.cz>
3143 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
3145 2011-06-13 Jan Hubicka <jh@suse.cz>
3147 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
3148 similarly to DECL_COMDAT.
3149 * cgraphunit.c (cgraph_analyze_function): Likewise.
3150 * ipa.c (function_and_variable_visibility): Likewise.
3152 2011-06-13 Jan Hubicka <jh@suse.cz>
3154 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
3155 BINFO_VIRTUALS when streaming for ltrans unit.
3157 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
3159 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
3160 (movdi_internal64): Same.
3162 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
3165 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
3166 a set of similar patterns, where the MATCH_OPERAND for the function
3167 argument is replaced with individual references to hardware registers.
3168 (save_fpregs_<mode>): Ditto
3169 (restore_gpregs_<mode>): Ditto
3170 (return_and_restore_gpregs_<mode>): Ditto
3171 (return_and_restore_fpregs_<mode>): Ditto
3172 (return_and_restore_fpregs_aix_<mode>): Ditto
3174 2011-06-13 Jan Hubicka <jh@suse.cz>
3176 * ipa-utils.c (postorder_stack): New structure.
3177 (ipa_reverse_postorder): Handle aliases.
3179 2011-06-13 Jan Hubicka <jh@suse.cz>
3181 * ipa-inline.c (reset_edge_caches): Walk aliases.
3182 (update_caller_keys): Do not test inlinability of aliases.
3183 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3184 (do_estimate_growth): Fix typo.
3186 2011-06-13 Jan Hubicka <jh@suse.cz>
3188 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3189 (can_remove_node_now_p): ... here; handle same comdat groups.
3190 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3191 (inline_call): Update use of can_remove_node_now_p.
3193 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3195 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
3196 condition to disallow non-identical memory locations.
3197 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3198 preference to bit manipulation instructions.
3200 2011-06-13 Jan Hubicka <jh@suse.cz>
3202 * cgraph.c (cgraph_for_node_thunks_and_aliases,
3203 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3204 (nonremovable_p): New function.
3205 (cgraph_can_remove_if_no_direct_calls_p): New function.
3206 (used_from_object_file_p): New functoin.
3207 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3208 references from aliases.
3209 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3210 * ipa-inline.c (check_caller_edge): New function.
3211 (want_inline_function_called_once_p): Use it; accept aliases called
3213 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3215 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3218 * config/arm/neon.md (vec_pack_trunc): Set the lengths
3219 correctly for the case with Quad vectors.
3221 2011-06-13 Jakub Jelinek <jakub@redhat.com>
3222 Ira Rosen <ira.rosen@linaro.org>
3224 PR tree-optimization/49352
3225 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3226 all, make sure loop_use_stmt after the loop is a def stmt of a used
3227 SSA_NAME that is the only one defined inside of the loop. Don't
3228 check for COND_EXPR and GIMPLE_BINARY_RHS.
3229 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3230 check_reduction is true.
3232 2011-06-11 Jan Hubicka <jh@suse.cz>
3235 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3237 2011-06-11 Jan Hubicka <jh@suse.cz>
3240 * ipa-inline-transform.c: Include tree-pass.h
3241 (inline_transform): Set TODO_update_ssa_only_virtuals.
3242 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3244 2011-06-11 Jan Hubicka <jh@suse.cz>
3247 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3250 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
3252 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3253 Take number of iterations to peel into account for equally frequent
3254 misalignment values.
3256 2011-06-11 Jan Hubicka <jh@suse.cz>
3258 * lto-streamer-out.c (produce_symtab): Stream out the newly
3259 represented aliases.
3261 2011-06-11 Jan Hubicka <jh@suse.cz>
3263 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3265 (ipa_update_after_lto_read): Likewise.
3266 (ipa_write_node_info): Do not sream call_with_var_arguments.
3267 (ipa_read_node_info): Likewise.
3269 2011-06-11 Jan Hubicka <jh@suse.cz>
3271 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3273 2011-06-11 Jan Hubicka <jh@suse.cz>
3275 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3276 (lto_symtab_resolve_can_prevail_p): Likewise.
3277 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3278 * cgraph.c (same_body_aliases_done): New global var.
3279 (cgraph_same_body_alias_1): Rename to ...
3280 (cgraph_create_function_alias): ... this one; reorg to new
3282 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3283 record references when asked to.
3284 (cgraph_add_thunk): Fix formating.
3285 (cgraph_get_node): Kill same body alias code.
3286 (cgraph_node_for_asm): Likewise.
3287 (cgraph_remove_same_body_alias): Remove.
3288 (cgraph_remove_node): Kill same body alias code.
3289 (cgraph_mark_address_taken_node): Mark also the aliased function
3290 as having address taken.
3291 (dump_cgraph_node): Dump same body aliases.
3292 (cgraph_for_node_thunks_and_aliases): Update for new alias
3294 (cgraph_for_node_and_aliases): Likewise.
3295 * cgraph.h (same_body): Kll pointer.
3296 (same_body_alias): Update comment.
3297 (same_body_aliases_done): Declare.
3298 (cgraph_remove_same_body_alias): Remove declaration.
3299 (cgraph_create_function_alias): Declare.
3300 (cgraph_process_same_body_aliases): Declare.
3301 (cgraph_function_with_gimple_body_p): Check for alias.
3302 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3303 (cgraph_alias_aliased_node): New function.
3304 (cgraph_function_node): Update for new aliases.
3305 (cgraph_function_or_thunk_node): Likewise.
3306 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3307 (inline_call): Remove dead aliases.
3308 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3309 name hack for same body aliases.
3310 (clone_of_p): Look through aliases.
3311 (verify_cgraph_node): Verify aliases.
3312 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3313 (cgraph_process_same_body_aliases): New function.
3314 (process_function_and_variable_attributes): Disable weakref warning on
3316 (cgraph_analyze_functions): Handle aliases.
3317 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3318 (assemble_thunks): Rename to ...
3319 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3320 (cgraph_expand_function): Remove alias output code.
3321 (cgraph_output_in_order): Skip aliases.
3322 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3323 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3324 (ipa_record_reference): Do not assert on alias references.
3325 (ipa_ref_has_aliases_p): New function.
3326 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3327 (ipa_ref_has_aliases_p): Declare.
3328 * lto-cgraph.c (lto_output_node): Handle aliases.
3329 (input_node): Likewise.
3330 * lto-streamer-out.c (lto_output): Skip aliases.
3331 (produce_symtab): Kill same_body_alias code.
3332 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3333 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3334 * ipa-inline.c (update_caller_keys): Walk aliases.
3335 (inline_small_functions): Fix thinko in previous patch.
3336 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3337 (function_and_variable_visibility): Do not walk same body aliases.
3338 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3339 (ipa_pta_execute): Use it.
3341 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3343 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3344 (*vec_dupv2df): Rename from vec_dupv2df.
3345 (vec_dupv2df): New expander.
3347 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3349 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3351 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3353 * config/i386/i386.md: Use default value in "isa" attribute.
3354 * config/i386/sse.md: Ditto.
3355 * config/i386/mmx.md: Ditto.
3357 2011-06-10 Wei Guozhi <carrot@google.com>
3360 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3361 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3362 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3364 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3366 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3367 (arm_legitimate_ldrd_p): New prototype.
3368 (arm_output_ldrd): New prototype.
3369 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3370 (arm_legitimate_ldrd_p): New function.
3371 (arm_output_ldrd): New function.
3373 2011-06-10 David Li <davidxl@google.com>
3375 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3376 * passes.c (passr_eq): New function.
3377 (create_pass_tab): New function.
3378 (pass_traverse): New function.
3379 (dump_one_pass): New function.
3380 (dump_pass_list): New function.
3381 (dump_passes): New function.
3383 2011-06-10 Jan Hubicka <jh@suse.cz>
3385 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3386 setting the nothrow flag.
3387 * ipa-reference.c (propagate): Skip aliases.
3388 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3389 (propagate_nothrow): Skip aliases; do not update cgraph.
3390 (local_pure_const): Do not update cgraph.
3391 * tree-profile.c (tree_profiling): Do fixup_cfg.
3393 2011-06-10 Jan Hubicka <jh@suse.cz>
3395 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3396 (cgraph_local_node_p): ... here; handle aliases.
3397 (has_addr_references_p): Break out from ...;
3398 (cgraph_remove_unreachable_nodes) ... here.
3400 2011-06-10 Jan Hubicka <jh@suse.cz>
3402 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3403 * common.opt (flag_inline_functions_called_once): Do not
3406 2011-06-10 Jan Hubicka <jh@suse.cz>
3408 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3409 (ipcp_initialize_node_lattices): Do not deal with aliases;
3410 Do not try to propagate through thunks.
3411 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3413 2011-06-10 Jan Hubicka <jh@suse.cz>
3415 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3417 (ipa_read_node_info): Likewise.
3419 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3422 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3423 (build_and_insert_call): Likewise.
3424 (build_and_insert_ref): New.
3425 (gimple_expand_builtin_pow): Minor cleanup.
3426 (gimple_expand_builtin_cabs): New.
3427 (execute_cse_sincos): Add case for BUILT_IN_CABS.
3429 2011-06-10 Jan Hubicka <jh@suse.cz>
3431 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3432 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3433 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3434 (ipcp_propagate_stage): Skip aliases when propagating.
3435 (ipcp_need_redirect_p): Skip aliases.
3436 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3437 collect_callers_of_node.
3438 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3440 (ipa_compute_jump_functions): Look through aliases.
3442 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3444 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3446 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3448 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3450 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3452 2011-06-10 Jan Hubicka <jh@suse.cz>
3454 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3455 Update call of gimple_get_virt_method_for_binfo.
3456 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3457 refuse_thunks parameter.
3458 (gimple_fold_call): Update.
3459 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3461 2011-06-10 Jan Hubicka <jh@suse.cz>
3463 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3464 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3465 worker for cgraph_for_node_and_aliases.
3466 (convert_callers_for_node): Break out from ...
3467 (convert_callers): ... here.
3468 (modify_function): Use collect_callers_of_node.
3469 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3471 2011-06-10 Richard Guenther <rguenther@suse.de>
3473 PR tree-optimization/49361
3474 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3475 when not already in gimple form.
3477 2011-06-10 Richard Guenther <rguenther@suse.de>
3480 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3481 FOR_EACH_PHI_OR_STMT_USE.
3483 2011-06-10 Jan Hubicka <jh@suse.cz>
3485 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3486 (clone_inlined_nodes): ... here.
3487 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3488 to real destination prior inlining.
3489 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3490 can_early_inline_edge_p, want_early_inline_function_p,
3491 want_early_inline_function_p, want_inline_small_function_p,
3492 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3493 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3494 add_new_edges_to_heap, inline_small_functions, flatten_function,
3495 inline_always_inline_functions, early_inline_small_functions): Use
3496 cgraph_function_or_thunk_node.
3497 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3498 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3499 (do_estimate_edge_growth_1): Break out from ...
3500 (do_estimate_growth) ... here; walk aliases.
3501 (inline_generate_summary): Skip aliases.
3503 2011-06-10 Richard Guenther <rguenther@suse.de>
3505 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3506 forward when combining, visit inserted stmts when a stmt was changed.
3508 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3510 * tree.h (error_operand_p): Add.
3511 * dbxout.c (dbxout_type_fields): Use the latter.
3512 * c-decl.c (add_stmt): Likewise.
3513 * gimplify.c (omp_add_variable, omp_notice_variable,
3514 gimplify_scan_omp_clauses): Likewise.
3516 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
3518 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3519 when a value is actually passed in regs.
3521 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
3522 Laurent Rougé <laurent.rouge@menta.fr>
3524 * doc/invoke.texi (SPARC options): Add -mflat.
3525 * config/sparc/sparc.opt: Likewise.
3526 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3527 (sparc_flat_expand_prologue): Declare.
3528 (sparc_flat_expand_epilogue): Likewise.
3529 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3530 (CPP_ENDIAN_SPEC): Replace with...
3531 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3532 (CPP_SPEC): Adjust to above change.
3533 (EXTRA_SPECS): Likewise.
3534 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3535 (INCOMING_REGNO): Likewise.
3536 (OUTGOING_REGNO): Likewise.
3537 (LOCAL_REGNO): Likewise.
3538 (SETUP_FRAME_ADDRESSES): Likewise.
3539 (FIXED_REGISTERS): Set 0 for %fp.
3540 (CALL_USED_REGISTERS): Likewise.
3541 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3542 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3543 (RETURN_ADDR_REGNUM): Define.
3544 (RETURN_ADDR_RTX): Use it.
3545 (INCOMING_RETURN_ADDR_REGNUM): Define.
3546 (INCOMING_RETURN_ADDR_RTX): Use it.
3547 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3548 (EH_RETURN_REGNUM): Define.
3549 (EH_RETURN_STACKADJ_RTX): Use it.
3550 (EH_RETURN_HANDLER_RTX): Delete.
3551 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3552 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3554 (struct machine_function): Add frame_size, apparent_frame_size,
3555 frame_base_reg, frame_base_offset, n_global_fp_regs and
3556 save_local_in_regs_p fields.
3557 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3558 sparc_frame_base_offset, sparc_n_global_fp_regs,
3559 sparc_save_local_in_regs_p): New macros.
3560 (sparc_option_override): Error out if -fcall-saved-REG is specified
3562 (eligible_for_restore_insn): Fix formatting.
3563 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3564 (eligible_for_sibcall_delay): Likewise.
3565 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3566 (sparc_legitimate_address_p): Adjust to above change.
3567 (save_global_or_fp_reg_p): New predicate.
3568 (return_addr_reg_needed_p): Likewise.
3569 (save_local_or_in_reg_p): Likewise.
3570 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3571 (SORR_SAVE, SORR_RESTORE): Delete.
3572 (sorr_pred_t): New typedef.
3573 (sorr_act_t): New enum.
3574 (save_or_restore_regs): Rename to...
3575 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3576 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3577 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3578 mechanism. Add CFI information for double-word saves in 32-bit mode.
3579 (emit_adjust_base_to_offset): New function extracted from...
3580 (emit_save_or_restore_regs): ...this. Rename the rest to...
3581 (emit_save_or_restore_regs_global_fp_regs): ...this.
3582 (emit_save_or_restore_regs_local_in_regs): New function.
3583 (gen_create_flat_frame_[123]): New functions.
3584 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3585 (sparc_flat_expand_prologue): New function.
3586 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3587 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3588 (sparc_flat_expand_epilogue): New function.
3589 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3590 (output_return): Likewise.
3591 (output_sibcall): Likewise.
3592 (sparc_output_mi_thunk): Likewise.
3593 (sparc_frame_pointer_required): Likewise.
3594 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3595 function optimization.
3596 * config/sparc/sparc.md (flat): New attribute.
3597 (prologue): Add TARGET_FLAT handling.
3598 (save_register_window): Disable if TARGET_FLAT.
3599 (create_flat_frame_[123]): New patterns.
3600 (epilogue): Add TARGET_FLAT handling.
3601 (sibcall_epilogue): Likewise.
3602 (eh_return): New expander.
3603 (eh_return_internal): New insn and splitter.
3604 (return_internal): Add TARGET_FLAT handling.
3605 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3606 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3607 (nonlocal_goto): Add TARGET_FLAT handling.
3608 * config/sparc/t-elf: Add -mflat multilib.
3609 * config/sparc/t-leon: Likewise.
3611 2011-06-10 Jan Hubicka <jh@suse.cz>
3613 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3614 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3615 (self_recursive_p): Use cgraph_function_node.
3616 (propagate_pure_const): Likewise.
3617 (propagate_nothrow): Likewise.
3618 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3619 cgraph_function_node.
3620 (propagate_bits): Likewise.
3621 (propagate): Likewise.
3623 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3624 Richard Earnshaw <rearnsha@arm.com>
3626 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
3627 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3628 (*thumb2_movdi_vfp): Delete.
3629 (*arm_movdi_vfp_cortexa8): Delete.
3630 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3631 (*movdi_vfp_cortexa8): Likewise.
3633 2011-06-10 Richard Guenther <rguenther@suse.de>
3635 * stor-layout.c (initialize_sizetypes): Give names to all
3638 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
3640 PR tree-optimization/49318
3641 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3642 irrelevant pattern statements.
3644 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3646 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3649 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3652 2011-06-09 Jan Hubicka <jh@suse.cz>
3654 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3655 do not recompute reachable flag.
3656 (cgraph_finalize_function, cgraph_analyze_functions): Set
3657 redefined_extern_inline here.
3659 2011-06-09 Jan Hubicka <jh@suse.cz>
3661 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3662 (cgraph_only_called_directly_p): ... this one; bring offline.
3663 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3664 varpool_used_from_object_file_p): Drop names from the declaratoin.
3665 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3666 collect_callers_of_node): New.
3667 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3668 (cgraph_edge_recursive_p): Use cgraph_function_node.
3669 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3670 (cgraph_node_cannot_be_local_p_1): Break out from ...
3671 (cgraph_node_can_be_local_p): ... here; walk aliases.
3672 (cgraph_for_node_thunks_and_aliases): New function.
3673 (cgraph_for_node_and_aliases): New function.
3674 (cgraph_make_node_local_1): Break out from ...
3675 (cgraph_make_node_local) ... here; use
3676 cgraph_for_node_thunks_and_aliases.
3677 (cgraph_set_nothrow_flag_1): Break out from ...
3678 (cgraph_set_nothrow_flag) ... here;
3679 use cgraph_for_node_thunks_and_aliases.
3680 (cgraph_set_const_flag_1): Break out from ...
3681 (cgraph_set_const_flag) ... here;
3682 use cgraph_for_node_thunks_and_aliases.
3683 (cgraph_set_pure_flag_1): Break out from ...
3684 (cgraph_set_pure_flag) ... here;
3685 use cgraph_for_node_thunks_and_aliases.
3686 (cgraph_propagate_frequency_1): Break out from ...
3687 (cgraph_propagate_frequency) ... here; use
3688 cgraph_for_node_thunks_and_aliases.
3689 (cgraph_used_from_object_file_p): Do not care about aliases.
3690 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3692 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3694 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3696 PR rtl-optimization/49154
3697 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3698 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3699 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3700 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3701 * config/cris/cris.h (cris_register_move_cost): Remove
3702 !TARGET_V32 code. Tweak comments.
3704 2011-06-09 Jan Hubicka <jh@suse.cz>
3706 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3709 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3711 PR rtl-optimization/49154
3712 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3713 is a matching slot in the hashtable, assign it to classes_ptr.
3715 PR rtl-optimization/49154
3716 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3718 * doc/tm.texi: Regenerate.
3720 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3723 * config/sh/sh.md (UNSPEC_CHKADD): New.
3724 (chk_guard_add): New define_insn_and_split.
3725 (symGOT_load): Use chk_guard_add instead of blockage.
3727 2011-06-09 Kai Tietz <ktietz@redhat.com>
3729 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3731 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3733 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3735 2011-06-09 Wei Guozhi <carrot@google.com>
3738 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3739 (peephole2 for conditional move): Generate 16 bit instructions.
3741 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
3743 * config/i386/i386.md (*movdi_internal_rex64): Merge
3744 alternatives 6 and 8.
3746 2011-06-09 David Li <davidxl@google.com>
3748 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3749 * passes.c (passr_eq): New function.
3750 (create_pass_tab): New function.
3751 (pass_traverse): New function.
3752 (dump_one_pass): New function.
3753 (dump_pass_list): New function.
3754 (dump_passes): New function.
3756 2011-06-09 David Li <davidxl@google.com>
3758 * tree-complex.c (tree_lower_complex): Gate cleanup.
3759 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3760 (execute_optimize_stdarg): Ditto.
3761 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3762 (execute_cleanup_eh_1): Ditto.
3763 (execute_cleanup_eh): Ditto.
3764 * gcse.c (gate_rtl_pre): Ditto.
3765 (execute_rtl_pre): Ditto.
3766 * except.c (finish_eh_generation): Ditto.
3767 (convert_to_eh_region_ranges): Ditto.
3768 * cprop.c (one_cprop_pass): Ditto.
3770 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3773 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3774 in all basic blocks.
3776 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3778 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3779 (HAVE_ENABLE_EXECUTE_STACK): Define.
3780 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3781 (HAVE_ENABLE_EXECUTE_STACK): Define.
3782 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3783 (HAVE_ENABLE_EXECUTE_STACK): Define.
3784 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3785 (ENABLE_EXECUTE_STACK): Remove.
3786 (HAVE_ENABLE_EXECUTE_STACK): Define.
3787 [IN_LIBGCC2]: Don't include <windows.h>.
3788 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3789 (HAVE_ENABLE_EXECUTE_STACK): Define.
3790 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3791 (HAVE_ENABLE_EXECUTE_STACK): Define.
3792 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3793 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3794 (HAVE_ENABLE_EXECUTE_STACK): Define.
3795 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3796 (HAVE_ENABLE_EXECUTE_STACK): Define.
3797 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3798 (HAVE_ENABLE_EXECUTE_STACK): Define.
3799 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3800 (HAVE_ENABLE_EXECUTE_STACK): Define.
3801 * config/alpha/alpha.c (alpha_trampoline_init): Test
3802 HAVE_ENABLE_EXECUTE_STACK.
3803 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3804 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3805 (sparc64_initialize_trampoline): Likewise.
3806 * libgcc2.c [L_enable_execute_stack]: Remove.
3807 * system.h (ENABLE_EXECUTE_STACK): Poison.
3808 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3809 * doc/tm.texi: Regenerate.
3810 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3812 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3815 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3816 variable. After resetting and rescanning insn continue with previous
3819 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3821 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3822 (gcc_cv_ld_hidden): Likewise.
3823 * configure: Regenerate.
3824 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3825 (ix86_stack_protect_fail): Mark unused.
3826 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3827 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3828 [TARGET_MACHO]: Don't define.
3829 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3830 (TARGET_STACK_PROTECT_FAIL): Likewise.
3831 (rs6000_stack_protect_fail): Mark unused.
3832 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3833 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3835 2011-06-08 Andi Kleen <ak@linux.intel.com>
3837 * varasm.c (get_section): Print location of other conflict
3838 for section conflicts.
3840 2011-06-08 Andi Kleen <ak@linux.intel.com>
3842 * config/i386/driver-i386.c (host_detect_local_cpu):
3843 Add model 0x2d Intel CPU.
3845 2011-06-08 Andi Kleen <ak@linux.intel.com>
3847 * reginfo.c (global_regs_decl): Add.
3848 (globalize_reg): Add decl parameter. Compute location. Pass location
3849 to warnings and add inform. Store decl in global_regs_decl.
3850 * rtl.h (globalize_reg): Update prototype.
3851 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3853 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3855 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3857 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3860 * config/sh/predicates.md (general_movsrc_operand): Check
3861 mode for memory with indexed address for QI and HImode.
3862 (general_movdst_operand): Likewise.
3864 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3866 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3868 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3870 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3871 (num_ssa_operands): Likewise.
3872 (op_iter_init_phiuse): Forward-declare.
3873 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3875 2011-06-08 Nick Clifton <nickc@redhat.com>
3877 * doc/invoke.texi (ARM Options): Update description of
3880 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3882 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3883 unknown Intel family 0x6 CPUs.
3885 2011-06-08 Martin Jambor <mjambor@suse.cz>
3887 * tree-sra.c (mark_rw_status): Removed.
3888 (analyze_access_subtree): New parameter parent instead of
3889 mark_read and mark_write, propagate from that.
3891 2011-06-08 Julian Brown <julian@codesourcery.com>
3893 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3894 for double-precision helper functions in hard-float mode if only
3895 single-precision arithmetic is supported in hardware.
3897 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3899 PR rtl-optimization/49303
3900 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3901 code_motion_path_driver returned 0 or 1.
3902 (sel_region_finish): Clear h_d_i_d.
3904 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3906 * config/sh/sh.c (prepare_move_operands): Set pic register
3907 appropriately for global and local dynamic tls models even
3908 if flag_pic is unset.
3910 2011-06-07 Jason Merrill <jason@redhat.com>
3912 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3914 2011-06-07 Xinliang David Li <davidxl@google.com>
3915 * passes.c (enable_disable_pass): Handle assembler name.
3916 (is_pass_explicitly_enabled_or_disabled): Ditto.
3918 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3920 PR tree-optimization/48497
3921 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3923 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3925 PR tree-optimization/46728
3926 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3927 to use gimple_val_nonnegative_real_p.
3928 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3929 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3931 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3933 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3935 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3937 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3940 2011-06-07 Richard Guenther <rguenther@suse.de>
3942 * stor-layout.c (initialize_sizetypes): Initialize all
3943 sizetypes based on target definitions.
3944 (set_sizetype): Remove.
3945 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3946 * tree.h (set_sizetype): Remove.
3948 2011-06-07 Nick Clifton <nickc@redhat.com>
3950 * config.gcc: Unify V850 architecture options and add support for
3951 newer V850 architectures.
3952 * config/v850/t-v850e: Delete.
3954 2011-06-07 Richard Guenther <rguenther@suse.de>
3956 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3957 Call set_sizetype from here.
3959 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3961 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3962 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3964 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3965 Andrew Stubbs <ams@codesourcery.com>
3967 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3969 * doc/md.texi (Canonicalization of Instructions): Document widening
3970 multiply canonicalization.
3972 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3974 PR gcov-profile/49299
3975 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3977 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3979 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3981 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3982 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3983 vect_recog_pow_pattern): Likewise.
3984 (vect_pattern_recog_1): Remove declaration.
3985 (widened_name_p): Remove declaration. Add new argument to specify
3986 whether to check that both types are either signed or unsigned.
3987 (vect_recog_widen_mult_pattern): Update documentation. Handle
3988 unsigned patterns and multiplication by constants.
3989 (vect_pattern_recog_1): Update vect_recog_func references. Use
3990 statement information from the statement returned from pattern
3991 detection functions.
3992 (vect_pattern_recog): Update vect_recog_func reference.
3993 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3994 multiplication by a constant use the type of the other operand.
3996 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3998 PR rtl-optimization/49145
3999 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
4001 2011-06-06 Jakub Jelinek <jakub@redhat.com>
4004 * dwarf2out.c (native_encode_initializer): Decrement count in each
4008 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
4012 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
4013 if stmt folded into nothing.
4014 * tree-inline.c (fold_marked_statements): If a builtin at the end of
4015 a bb folded into nothing, just update cgraph edges and move to next bb.
4016 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
4017 to be NULL. Don't compute count and frequency if new_call is NULL.
4019 2011-06-04 Diego Novillo <dnovillo@google.com>
4021 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4022 (cgraph.o): Likewise.
4023 (cgraphunit.o): Likewise.
4024 * cgraphunit.c: Include lto-streamer.h
4025 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
4027 * lto-streamer-in.c (unpack_value_fields): Call
4028 streamer_hooks.unpack_value_fields if set.
4029 (lto_materialize_tree): For unhandled nodes, first try to
4030 call lto_streamer_hooks.alloc_tree, if it exists.
4031 (lto_input_ts_decl_common_tree_pointers): Move reading of
4032 DECL_INITIAL to lto_streamer_read_tree.
4033 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
4034 (lto_streamer_read_tree): New.
4035 (lto_reader_init): Rename from lto_init_reader.
4036 Move initialization code to lto/lto.c.
4037 * lto-streamer-out.c (pack_value_fields): Call
4038 streamer_hooks.pack_value_fields if set.
4039 (lto_output_tree_ref): For tree nodes that are not normally indexable,
4040 call streamer_hooks.indexable_with_decls_p before giving up.
4041 (lto_output_ts_decl_common_tree_pointers): Move handling
4042 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
4043 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
4044 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
4045 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
4046 (lto_streamer_write_tree): New.
4047 (lto_output): Call lto_streamer_init directly.
4048 (lto_writer_init): Remove.
4049 * lto-streamer.c (streamer_hooks): New.
4050 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
4051 instead of lto_preload_common_nodes.
4052 (lto_is_streamable): Move from lto-streamer.h
4053 (lto_streamer_hooks_init): New.
4054 (streamer_hooks): New.
4055 (streamer_hooks_init): New.
4056 * lto-streamer.h (struct output_block): Forward declare.
4057 (struct lto_input_block): Likewise.
4058 (struct data_in): Likewise.
4059 (struct bitpack_d): Likewise.
4060 (struct streamer_hooks): Declare.
4061 (streamer_hooks): Declare.
4062 (lto_streamer_hooks_init): Declare.
4063 (lto_streamer_write_tree): Declare.
4064 (lto_streamer_read_tree): Declare.
4065 (streamer_hooks_init): Declare.
4066 (lto_is_streamable): Move to lto-streamer.c
4068 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4070 * longlong.h (smul_ppmm): The resulting register pair contains the
4071 higher order word first.
4073 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4075 PR tree-optimization/46728
4076 * builtins.c (powi_table): Remove.
4077 (powi_lookup_cost): Remove.
4078 (powi_cost): Remove.
4079 (expand_powi_1): Remove.
4080 (expand_powi): Remove.
4081 (expand_builtin_pow_root): Remove.
4082 (expand_builtin_pow): Remove.
4083 (expand_builtin_powi): Eliminate handling of constant exponent.
4084 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
4086 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4088 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
4090 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4092 * dce.c (reset_unmarked_insns_debug_uses): New.
4093 (delete_unmarked_insns): Skip debug insns.
4094 (prescan_insns_for_dce): Likewise.
4095 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
4096 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
4097 active reg can be found.
4098 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
4099 (convert_regs_1): Use it.
4101 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4103 * tree-pretty-print.c (dump_function_header): Add flags.
4104 Don't dump decl_uid with nouid.
4105 * tree-pretty-print.h (dump_function_header): Adjust.
4106 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
4107 * passes.c (pass_init_dump_file): Pass dump_flags on.
4108 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
4110 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4113 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
4115 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
4117 PR tree-optimization/49243
4118 * calls.c (setjmp_call_p): Also check if fndecl has the
4119 returns_twice attribute.
4121 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4123 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
4126 2011-06-06 Richard Henderson <rth@redhat.com>
4127 Georg-Johann Lay <avr@gjlay.de>
4130 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
4132 * config/avr/avr.md ("insv"): New insn expander.
4133 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
4134 "*insv.not.io", "*insv.reg"): New insns.
4136 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
4139 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
4140 to nonimmediate_operand from memory_operand for the operand that is to
4141 be forced to memory by the expander. Lose the constraints.
4143 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
4145 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
4146 EH return when delayed branches are disabled.
4148 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
4150 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
4151 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
4153 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
4154 Simplify MODE_V1DF and MODE_V2SF handling.
4155 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
4156 Simplify MODE_SF handling.
4158 2011-06-04 Jan Hubicka <jh@suse.cz>
4160 PR tree-optimization/48893
4161 PR tree-optimization/49091
4162 PR tree-optimization/49179
4163 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
4166 2011-06-04 Jan Hubicka <jh@suse.cz>
4169 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4172 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4174 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4176 2011-06-04 Jakub Jelinek <jakub@redhat.com>
4179 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4180 to be strictly smaller than 1 << shiftcount.
4182 2011-06-04 Jan Hubicka <jh@suse.cz>
4184 PR tree-optimize/48929
4185 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4188 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
4191 * calls.c (emit_call_1): Prefer the __builtin declaration of
4194 2011-06-03 Diego Novillo <dnovillo@google.com>
4196 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4197 (lto_input_tree_pointers): Likewise.
4198 * lto-streamer-out.c (pack_value_fields): Likewise.
4199 (lto_output_tree_pointers): Likewise.
4200 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4201 and OPTIMIZATION_NODE.
4203 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4205 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4206 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4207 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4208 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4209 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4210 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4211 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4212 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4213 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4214 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4215 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4216 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4217 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4218 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4219 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4220 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4221 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4222 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4223 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4224 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4225 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4226 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4227 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4228 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4229 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4230 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4231 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4232 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4233 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4234 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4235 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4236 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4237 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4238 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4239 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4240 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4241 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4242 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4243 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4244 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4245 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4246 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4247 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4248 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4249 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4250 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4251 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4252 * system.h (MD_UNWIND_SUPPORT): Poison.
4253 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4254 * doc/tm.texi: Regenerate.
4255 * unwind-dw2.c: Include md-unwind-support.h instead of
4257 * config/ia64/unwind-ia64.c: Likewise.
4258 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4260 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
4262 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4264 2011-06-03 Richard Henderson <rth@redhat.com>
4265 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4267 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4268 (sigill_hdlr): Correct insn, insn size.
4269 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4271 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4273 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4275 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4276 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4277 * config/mips/t-iris: Remove.
4278 * config/mips/t-irix6: New file.
4279 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4281 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4283 * Makefile.in (LIB2ADDEHDEP): Remove.
4284 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4285 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4286 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4287 * config/t-darwin (LIB2ADDEHDEP): Remove.
4288 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4289 * config/t-linux (LIB2ADDEHDEP): Remove.
4291 2011-06-03 Diego Novillo <dnovillo@google.com>
4293 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4294 (lto_register_var_decl_in_symtab): Likewise.
4295 (lto_register_function_decl_in_symtab): Likewise.
4296 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4297 logic to uniquify_nodes.
4299 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4301 * config/alpha/t-osf5: Remove.
4302 * config/alpha/t-osf-pthread: Remove.
4303 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4304 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4306 2011-06-03 Julian Brown <julian@codesourcery.com>
4308 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4309 (strongarm1110): Use strongarm tuning.
4310 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4311 * config/arm/arm.c (arm_strongarm_tune): New.
4312 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4313 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4314 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4315 setting, using previous defaults or 1 for Cortex-A5.
4316 (arm_option_override): Set max_insns_skipped from current tuning.
4318 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4320 * doc/install.texi (Options specification): Document --with-specs.
4322 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4324 * config/arm/neon.md (orndi3_neon): Actually split it.
4326 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4328 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4329 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4331 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4334 * target.def (delay_sched2, delay_vartrack): New.
4335 * doc/tm.texi.in: Update.
4336 * doc/tm.texi: Rebuild.
4337 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4338 * var-tracking.c (gate_handle_var_tracking): Likewise.
4339 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4340 (bfin_flag_var_tracking): Drop.
4341 (output_file_start): Don't save and override flag_var_tracking.
4342 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4343 (bfin_reorg): Test original variables.
4344 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4345 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4346 (ia64_flag_var_tracking): Drop.
4347 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4348 (ia64_file_start): Don't save and override flag_var_tracking.
4349 (ia64_override_options_after_change): Ditto
4350 flag_schedule_insns_after_reload.
4351 (ia64_reorg): Test original variables.
4352 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4353 (picochip_flag_var_tracking): Drop.
4354 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4355 (picochip_option_override): Don't save and override
4356 flag_schedule_insns_after_reload.
4357 (picochip_asm_file_start): Ditto flag_var_tracking.
4358 (picochip_reorg): Test original variables.
4359 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4360 (TARGET_DELAY_VARTRACK): Define.
4361 (spu_var_tracking): New.
4362 (spu_machine_dependent_reorg): Call it.
4363 (asm_file_start): Don't save and override flag_var_tracking.
4365 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4368 * config/sh/predicates.md (general_movsrc_operand): Return 0
4369 for memory and memory subreg of which address is an invalid
4370 indexed address for QI and HImode.
4371 (general_movdst_operand): Likewise.
4373 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4375 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4376 edges only, when there is a non-local label in the function.
4377 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4379 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4381 * config/i386/constraints.md (Y3): New register constraint.
4382 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4383 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4384 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4385 *sse2_interleave_lowv2df.
4387 2011-06-02 Julian Brown <julian@codesourcery.com>
4389 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4390 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4391 (arm_cortex_a5_tune): New.
4393 2011-06-02 Julian Brown <julian@codesourcery.com>
4395 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4396 * config/arm/arm.c (arm_default_branch_cost): New.
4397 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4398 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4399 (arm_fa726_tune): Set branch_cost field using
4400 arm_default_branch_cost.
4401 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4402 current_tune structure.
4403 * dojump.c (tm_p.h): Include file.
4405 2011-06-02 Julian Brown <julian@codesourcery.com>
4407 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4409 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4410 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4411 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4413 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4414 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4415 (arm_fa726te_tune): Add prefer_constant_pool setting.
4416 (arm_v6t2_tune, arm_cortex_tune): New.
4417 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4418 prefer_constant_pool setting.
4420 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4422 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4424 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4425 (*movdf_internal) <case 6,7,8>: Ditto.
4427 * config/i386/constraints.md (Y4): New register constraint.
4428 * config/i386/sse.md (vec_set<mode>_0): Merge with
4429 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4430 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4431 *vec_extractv2di_1_sse.
4432 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4433 and *vec_concatv2di_rex64_sse.
4435 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4438 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4439 of cgraph_local_info for null before attempting to use it.
4441 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4443 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4444 (current_function_dynamic_alloc_count): Delete.
4445 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4446 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4447 (expand_builtin_update_setjmp_buf): Remove dead code.
4448 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4449 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4451 * function.c (instantiate_virtual_regs): Likewise.
4452 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4453 for a block with a single abnormal incoming edge.
4454 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4455 (SETJMP_VIA_SAVE_AREA): Delete.
4456 * config/sparc/sparc-protos.h (load_got_register): Declare.
4457 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4458 (load_got_register): Make global.
4459 (sparc_frame_pointer_required): Add 'static'.
4460 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4461 (sparc_builtin_setjmp_frame_value): New function.
4462 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4463 (save_stack_nonlocal): New expander.
4464 (restore_stack_nonlocal): Likewise.
4465 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4466 (nonlocal_goto_internal): New insn.
4467 (goto_handler_and_restore): Delete.
4468 (builtin_setjmp_setup): Likewise.
4469 (do_builtin_setjmp_setup): Likewise.
4471 (builtin_setjmp_receiver): New expander.
4473 2011-06-01 David Li <davidxl@google.com>
4476 * tree-pretty-print.c (dump_function_header): Format cleanup.
4478 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4481 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4482 needed when original operands are used for msw_skip comparison.
4484 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4487 * var-tracking.c (add_uses, add_stores): Don't call
4488 cselib_subst_to_values on ENTRY_VALUE.
4490 2011-06-01 Diego Novillo <dnovillo@google.com>
4492 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4493 output_record_start with LTO_null instead of output_zero.
4494 (lto_output_ts_binfo_tree_pointers): Likewise.
4495 (lto_output_tree): Likewise.
4496 (output_eh_try_list): Likewise.
4497 (output_eh_region): Likewise.
4498 (output_eh_lp): Likewise.
4499 (output_eh_regions): Likewise.
4500 (output_bb): Likewise.
4501 (output_function): Likewise.
4502 (output_unreferenced_globals): Likewise.
4503 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4504 instead of NUM_TREE_CODES.
4505 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4506 (lto_output_int_in_range): Change << to >> when shifting VAL.
4508 2011-06-01 Diego Novillo <dnovillo@google.com>
4510 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4511 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4513 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4516 * optabs.h (valid_multiword_target_p): Declare.
4517 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4518 doing multi-word operations.
4519 * optabs.c (expand_binop): Likewise.
4520 (expand_doubleword_bswap): Likewise.
4521 (expand_absneg_bit): Likewise.
4522 (expand_unop): Likewise.
4523 (expand_copysign_bit): Likewise.
4524 (multiword_target_p): New function.
4526 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4528 PR rtl-optimization/48830
4529 PR rtl-optimization/48808
4530 PR rtl-optimization/48792
4531 * reload.c (push_reload): Check contains_reg_of_mode.
4532 * reload1.c (strip_paradoxical_subreg): New function.
4533 (gen_reload_chain_without_interm_reg_p): Use it to handle
4534 paradoxical subregs.
4535 (emit_output_reload_insns, gen_reload): Likewise.
4537 2011-06-01 David Li <davidxl@google.com>
4539 * predict.c : Change pass name
4542 * tree-profile.c: Ditto.
4545 2011-06-01 David Li <davidxl@google.com>
4547 * tree-pretty-print.c (dump_function_header): New function.
4548 * final.c (rest_of_clean_state): Use header dumper.
4549 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4550 * passes.c (pass_init_dump_file): Use header dumper.
4552 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4554 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4555 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4556 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4558 (mem_loc_descriptor): Use them.
4560 * var-tracking.c (create_entry_value): New function.
4561 (vt_add_function_parameter): Use it.
4563 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4565 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4566 Include <signal.h>, <ucontext.h>.
4567 (sigill_caught): Define.
4568 (sigill_hdlr): New function.
4569 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4570 insns can be executed.
4571 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
4572 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4574 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4576 * config/t-slibgcc-darwin: Move to ...
4577 * config/t-slibgcc-dummy: ... this. Clarify comments.
4578 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4579 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4580 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
4581 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
4582 Remove i386/t-crtstuff from tmake_file.
4583 (i[34567]86-*-solaris2*): Remove t-svr4,
4584 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4586 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4587 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4588 sparc/t-crtfm from tmake_file.
4589 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4590 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4592 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4593 * config/i386/t-nwld (SHLIB_LINK): Remove.
4594 * config/i386/t-rtems-i386: Rename to ...
4595 * config/i386/t-rtems: ... this.
4596 ($(T)crti.o, $(T)crtn.o): Remove.
4597 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4598 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4599 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4600 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4601 EXTRA_MULTILIB_PARTS): Remove.
4602 * config/sparc/t-sol2-64: Likewise.
4603 * config/sparc/t-sol2: Remove.
4604 * config/sparc/t-crtin: Remove.
4605 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4606 * config/i386/gmon-sol2.c: Remove.
4607 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4608 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4609 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4610 * config/i386/sol2-gc1.asm: Remove.
4611 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4612 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4613 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4614 * config/t-slibgcc-sld: Remove.
4616 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4618 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4619 base_type_for_mode with op_mode instead of mode.
4621 2011-06-01 Paul Brook <paul@cpodesourcery.com>
4623 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4625 * config/arm/arm-tune.md: Regenerate.
4626 * config/arm/arm-tables.opt: Regenerate.
4627 * config/arm/arm.c (FL_DIV): Rename...
4628 (FL_THUMB_DIV): ... to this.
4629 (FL_ARM_DIV): Define.
4630 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4631 (arm_arch_hwdiv): Remove.
4632 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4633 (arm_issue_rate): Add cortexr5.
4634 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4635 __ARM_ARCH_EXT_IDIV__.
4636 (TARGET_IDIV): Define.
4637 (arm_arch_hwdiv): Remove.
4638 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4639 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4640 (divsi3, udivsi3): New patterns.
4641 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4642 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4644 2011-06-01 Martin Jambor <mjambor@suse.cz>
4646 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4647 * ipa-utils.c (searchc): Set scc_no.
4649 2011-06-01 Martin Jambor <mjambor@suse.cz>
4651 * ipa-utils.c (searchc_env): New field allow_overwritable.
4652 (searchc): do not ignore edges to overwritable nodes if indicated
4653 by env->allow_overwritable.
4654 (ipa_reduced_postorder): Set env.allow_overwritable.
4656 2011-06-01 Richard Guenther <rguenther@suse.de>
4658 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4660 * lto-streamer.c (lto_record_common_node): Take node pointer,
4661 do not register types.
4662 (lto_preload_common_nodes): Explicitly skip preloading nodes
4663 that differ between frontends.
4665 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4667 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4670 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4672 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4673 parameter value for dump. Dump cost on outermost call only.
4674 (rs6000_memory_move_cost): Dump cost on outermost call only.
4676 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4678 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4679 DW_OP_GNU_convert ops.
4681 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4682 cselib_preserve_constants.
4683 (cselib_lookup_1): If cselib_preserve_constants,
4684 a new VALUE is being created for REG and there is a VALUE for the
4685 same register in wider mode, add another loc with lowpart SUBREG of
4687 (cselib_subst_to_values): Handle ENTRY_VALUE.
4688 * var-tracking.c (replace_expr_with_values): Return NULL for
4690 * dwarf2out.c (convert_descriptor_to_signed): New function.
4691 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4692 instead of two shifts.
4693 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4694 the right mode if needed.
4695 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4696 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4697 convert_descriptor_to_signed.
4698 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4699 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4702 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4704 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4706 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4707 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4708 (SWI248x): New mode iterator, rename from X87MODEI.
4709 (X87MODEI): Remove mode iterator.
4710 (X87MODEI12): Ditto.
4711 (SSEMODEI24): Ditto.
4713 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4715 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4716 * doc/invoke.texi: Document max-vartrack-expr-depth.
4717 * var-tracking.c (EXPR_DEPTH): New.
4718 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4720 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4722 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4723 * config/i386/sse.md: Add n to negated FMA pattern names.
4725 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4727 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4729 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4731 * gengtype-state.c (read_state_params_structs): Initialize previous.
4733 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4735 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4736 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4738 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4740 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4741 registers. Penalize F*r->o alternative to prevent partial memory
4742 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4743 CONST_DOUBLE immediates when optimizing function for size. Do not move
4744 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4745 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4746 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4747 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4749 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4751 (fp_register_operand splitters): Use fp_register_operand
4752 constraint. Do not use FP_REG_P in insn condition.
4753 (any_fp_register_operand splitters): Use any_fp_register_operand
4754 constraint. Do not use ANY_FP_REG_P in insn condition.
4756 2011-05-31 Jan Hubicka <jh@suse.cz>
4758 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4759 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4760 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4761 (lto_output_edge): Use output_enum and var_len_unsigned.
4762 (lto_output_varpool_node): Likewise.
4763 (input_overwrite_node): Do not take resolution parameter;
4764 extract it from a bitpack.
4765 (input_node): Do not read resolution; use input_enum and
4767 (input_varpool_node): Likewise.
4768 (input_edge): Likewise.
4769 (input_cgraph_1): Likewise.
4771 2011-05-31 Richard Guenther <rguenther@suse.de>
4773 * gimple.c (gimple_register_canonical_type): Do not register
4774 any types via gimple_register_type.
4776 2011-05-31 Jan Hubicka <jh@suse.cz>
4778 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4781 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4783 PR rtl-optimization/49235
4784 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4785 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4787 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
4789 PR tree-optimization/49093
4790 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4793 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4796 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4797 for concrete functions containing the code of cloned functions.
4799 2011-05-31 Richard Guenther <rguenther@suse.de>
4801 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4803 (forward_propagate_into_comparison_1): ... this.
4804 (forward_propagate_comparison): Rename to ...
4805 (forward_propagate_into_comparison): ... this. Split out
4806 real forward propagation code to ...
4807 (forward_propagate_comparison): ... this.
4808 (forward_propagate_into_gimple_cond): Remove looping.
4809 (forward_propagate_into_cond): Likewise.
4810 (simplify_not_neg_expr): Return whether we have done something.
4811 (simplify_gimple_switch): Likewise.
4812 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4813 (ssa_forward_propagate_and_combine): ... this. Re-structure
4814 to do a forward forward-propagation walk on BBs and a backward
4815 stmt combining walk on BBs. Consistently re-scan changed statements.
4816 (pass_forwprop): Adjust.
4818 2011-05-30 Ian Lance Taylor <iant@google.com>
4820 * godump.c (go_format_type): Correct length of name added to
4821 obstack for anonymous field.
4823 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4826 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4827 part of the second operand is 0.
4829 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4831 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4832 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4833 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4834 (*movdf_internal_rex64): Do not penalize F->r alternative.
4835 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4836 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4837 when optimizing function for size. Do not move CONST_DOUBLEs
4838 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4839 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4840 SUBREGs. Do not check for MEM_P operands in the insn condition,
4841 check for ANY_FP_REGNO_P instead.
4842 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4843 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4845 * config/i386/i386.c (ix86_option_override_internal): Do not
4846 set TARGET_INTEGER_DFMODE_MOVES here.
4848 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4851 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4853 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4855 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4856 DW_TAG_rvalue_reference_type even for
4857 -gdwarf-4 -fno-debug-types-section.
4859 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4861 PR tree-optimization/46728
4862 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4863 (build_and_insert_binop): New.
4864 (gimple_expand_builtin_pow): Reorder args for
4865 build_and_insert_call; use build_and_insert_binop; add more
4866 optimizations for fractional exponents.
4868 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4873 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4875 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4877 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4878 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4879 TS_BASE instead of TS_COMMON.
4880 * varasm.c (assemble_name): Remove assert.
4882 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4884 * config.gcc: Keep obselete list sorted.
4886 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4887 Eric Botcazou <ebotcazou@adacore.com>
4889 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4890 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4891 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4892 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4893 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4895 2011-05-30 Richard Guenther <rguenther@suse.de>
4897 * gimple.c (gimple_types_compatible_p_1): Compare record
4898 and union type members properly.
4900 2011-05-30 Richard Guenther <rguenther@suse.de>
4902 PR tree-optimization/49210
4903 * ipa-split.c (split_function): Care for the case where the call
4904 result is not trivially convertible to the result holding variable.
4906 2011-05-30 Richard Guenther <rguenther@suse.de>
4908 PR tree-optimization/49218
4909 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4912 2011-05-30 Richard Guenther <rguenther@suse.de>
4914 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4915 New function split out from ...
4916 (forward_propagate_into_gimple_cond): ... here. Adjust.
4917 (forward_propagate_into_cond): Likewise.
4918 (forward_propagate_comparison): Also propagate into
4919 comparisons on assignment RHS. Change return value to
4920 behave similar to forward_propagate_into_cond.
4921 (tree_ssa_forward_propagate_single_use_vars): Handle
4922 strict-overflow warnings properly for forward_propagate_comparison.
4924 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4926 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4928 * configure: Regenerate.
4930 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4932 PR tree-optimization/49199
4933 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4934 non-reduction operands are either defined in the loop or by induction.
4936 2011-05-29 Xinliang David Li <davidxl@google.com>
4938 * opts-global.c (handle_common_deferred_options): Handle new options.
4939 * passes.c (register_one_dump_file): Call register_pass_name.
4940 (execute_one_pass): Check explicit enable/disable flag.
4941 (passr_hash): New function.
4943 (register_pass_name): Ditto.
4944 (get_pass_by_name): Ditto.
4947 (enable_pass): Ditto.
4948 (disable_pass): Ditto.
4949 (is_pass_explicitly_enabled_or_disabled): Ditto.
4951 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4953 * config/i386/i386.md (*movoi_internal_avx): Use
4954 standard_sse_constant_opcode for alternative 0.
4955 (*movti_internal_sse): Ditto.
4956 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4958 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4960 (*movsi_internal): Ditto.
4961 (*movdi_internal): Ditto. Add ssecvt type moves.
4963 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4966 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4968 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4970 PR rtl-optimization/49095
4971 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4972 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4974 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4977 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4978 recurse_p argument. Only follow register copies if it is set,
4979 and prevent mips_find_pic_call_symbol from recursing.
4980 (mips_find_pic_call_symbol): Add a recurse_p argument.
4981 Pass it to mips_pic_call_symbol_from_set.
4982 (mips_annotate_pic_calls): Update accordingly.
4984 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4986 * emit-rtl.c (try_split): Use a loop to search for
4987 NOTE_INSN_CALL_ARG_LOCATIONs.
4989 2011-05-29 Richard Guenther <rguenther@suse.de>
4991 PR tree-optimization/49217
4992 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4994 2011-05-28 Jan Hubicka <jh@suse.cz>
4996 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4998 (string_slot_free): Remove
4999 (create_output_block): Initialize obstack.
5000 (destroy_output_block): Free obstack.
5001 (lto_string_index): Add PERSISTENT parameter; do not duplicate
5002 the string unless it needs to be added into the hash.
5003 (lto_output_string_with_length): Add persistent attribute;
5004 handle NULL strings.
5005 (lto_output_string): Add PERSISTENT parameter.
5006 (output_string_cst, output_identifier): Simplify.
5007 (lto_output_location_bitpack): Update.
5008 (lto_output_builtin_tree): Update.
5009 * lto-streamer.h (struct output_block): Add obstack.
5010 (lto_output_string, lto_output_string_with_length): Remove
5011 declarations; functions are static now.
5013 2011-05-28 Jan Hubicka <jh@suse.cz>
5015 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
5016 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
5017 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
5018 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
5019 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
5020 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
5021 unpack_ts_decl_with_vis_value_fields,
5022 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
5023 lto_get_builtin_tree): Use enum and variable length i/o.
5024 * basic-block.h (profile_status_d): Add PROFILE_LAST.
5025 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
5027 (bp_pack_enum, bp_unpack_enum): New macros.
5029 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5031 * genrecog.c: Remove redundant forward declarations.
5033 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5035 * config.gcc: Deprecate mips*-*-openbsd*.
5037 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5040 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
5043 2011-05-27 Andrew Pinski <pinskia@gmail.com>
5046 * gengtype.c (vec_prefix_type): New function.
5047 (note_def_vec): Use vec_prefix_type and change the length
5048 attribute to be based on the prefix.
5049 * vec.c: Include coretypes.h before vec.h.
5050 (struct vec_prefix): Remove.
5051 (vec_gc_p_reserve): Change the offsetof to sizeof.
5052 (vec_gc_p_reserve_exact): Likewise.
5053 (vec_heap_p_reserve): Likewise.
5054 (vec_heap_p_reserve_exact): Likewise.
5055 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
5056 (vec_stack_p_reserve): Change the offsetof to sizeof.
5057 (vec_stack_p_reserve_exact): Likewise.
5058 * vec.h (struct vec_prefix): New struct definition.
5059 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
5060 (VEC_T_GTY(T,B)): Likewise.
5061 (DEF_VEC_FUNC_P(T)): Use prefix field.
5062 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
5063 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
5065 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5067 PR tree-optimization/46728
5068 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5069 (powi_as_mults): Add gimple_set_location.
5070 (build_and_insert_call): New.
5071 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
5072 0.5, 0.25, 0.75, 1./3., or 1./6.
5074 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
5076 * doc/contrib.texi: Update copyright years.
5077 (Contributors): Add Zdenek Sojka.
5079 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5081 * c-decl.c (c_push_function_context): Copy the current statement
5083 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
5084 (finish_struct): Call building_stmt_list_p instead of checking
5086 * c-parser.c (c_parser_postfix_expression): Likewise.
5087 * c-typeck.c (c_end_compound_stmt): Likewise.
5088 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
5089 * tree-iterator.c (stmt_list_cache): Change to a VEC.
5090 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
5091 (free_stmt_list): Likewise.
5092 * tree.h (struct tree_statement_list): Include typed_tree instead
5094 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
5095 as TS_TYPED instead of TS_COMMON.
5097 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5098 Uros Bizjak <ubizjak@gmail.com>
5100 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5101 (HAVE_AS_IX86_TLSGDPTL): Define.
5102 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
5103 (HAVE_AS_IX86_TLSLDMPLT): Define.
5104 * configure: Regenerate.
5105 * config.in: Regenerate.
5106 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
5107 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
5108 TARGET_SUN_TLS, use @tlsgdplt or @plt.
5109 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
5110 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
5112 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
5114 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5116 * sched-int.h (struct _haifa_deps_insn_data): New members cond
5118 (INSN_COND, INSN_REVERSE_COND): New macros.
5119 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
5121 (sched_get_condition_with_rev): Cache the results, and look them up
5123 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
5124 are clobbered by the current insn.
5125 * target.def (exposed_pipline): New sched data hook.
5126 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
5127 * doc/tm.texi: Regenerate.
5129 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5131 PR tree-optimization/49170
5132 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
5135 2011-05-27 Richard Guenther <rguenther@suse.de>
5138 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
5141 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5143 * haifa-sched.c (sched_scan_info): Remove.
5144 (schedule_block): Call sched_extend_luids rather than sched_init_luids
5146 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
5148 (sched_scan): Remove.
5149 (sched_extend_luids): Renamed from luids_extend_insn and no longer
5150 static. All callers changed.
5151 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
5152 static. All callers changed.
5153 (sched_init_luids): Remove all arguments except the first. All
5154 callers changed. Don't use sched_scan.
5155 (haifa_init_h_i_d): Likewise.
5156 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
5157 manually rather than using sched_init_luids. Likewise with
5158 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
5159 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
5160 rather than sched_init_luids with NULL args.
5161 * sel-sched-ir.c (new_insns): Remove variable.
5162 (sched_scan): New static function, previously in haifa-sched.c. Remove
5163 all arguments but the first two; all callers changed.
5164 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
5165 rather than sched_init_luids.
5166 (sel_init_bbs): Remove second argument. All callers changed.
5167 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5168 with NULL arguments.
5169 (create_insn_rtx_from_pattern): Likewise.
5170 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5171 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5172 (sched_init_insn_luid, sched_extend_luids): Declare.
5173 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5176 2011-05-27 Richard Guenther <rguenther@suse.de>
5179 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5180 A CMP B ? (T) true : (T) false for non-integral types T again.
5182 2011-05-27 Jan Hubicka <jh@suse.cz>
5184 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5185 so 0 means NULL string.
5186 (lto_output_string_with_length): ... here.
5187 (lto_output_string, output_string_cst, output_identifier): Update
5188 handling of NULL strings.
5189 (lto_output_location_bitpack): New function.
5190 (lto_output_location): Use it.
5191 (lto_output_tree_ref): Use output_record_start.
5192 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5194 * lto-streamer-in.c (string_for_index): Break out from ...; offset
5196 (input_string_internal): ... here;
5197 (input_string_cst, input_identifier, lto_input_string): Update handling
5199 (lto_input_location_bitpack): New function
5200 (lto_input_location): Use it.
5201 (unpack_ts_type_common_value_fields): Pack align & alias in var len
5203 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5204 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5205 (bp_pack_value): Sanity check the value range.
5206 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5208 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5211 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
5213 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5214 call_arg_location instructions down the floor.
5216 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
5218 PR rtl-optimization/49154
5219 * ira.c (setup_pressure_classes): Process class without sublcasses
5220 as a candidate for pressure classes.
5222 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
5224 PR rtl-optimization/48575
5225 * genrecog.c (position_type): New enum.
5226 (position): New structure.
5227 (decision): Use position structure instead of a string.
5228 (root_pos, peep2_insn_pos_list): New variables.
5229 (next_position, compare_positions): New functions.
5230 (new_decision): Use position structures instead of strings.
5231 (maybe_both_true): Likewise.
5232 (change_state): Likewise.
5233 (write_tree): Likewise.
5234 (make_insn_sequence): Likewise.
5236 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5238 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5239 TS_BASE instead of TS_COMMON.
5240 (find_decls_types_r): Check for TS_TYPED structure before looking at
5242 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5244 (BLOCK_CHAIN): Use new chain field.
5246 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
5248 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5249 moves expensive on Power7 also.
5251 2011-05-26 Richard Guenther <rguenther@suse.de>
5253 * fold-const.c (fold_unary_loc): Remove bogus code.
5255 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5257 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5259 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5260 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5261 TS_BASE instead of TS_COMMON.
5262 * varasm.c (assemble_name): Remove assert.
5264 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5266 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5268 * libgcc-std.ver: Delete file.
5270 2011-05-26 Richard Guenther <rguenther@suse.de>
5272 PR tree-optimization/48702
5273 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5274 only when we know the base address is within bounds.
5275 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5276 assume the base address of TARGET_MEM_REFs is in bounds.
5278 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5281 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5282 declaration in TARGET_SOLARIS.
5284 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
5286 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5287 The instruction is then expanded explicitly.
5288 (supported_compare): Callable instruction.
5289 (compare): Likewise.
5291 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5294 * gimplify.c (shortcut_cond_r): Don't special case
5295 COND_EXPRs if they have void type on one of their arms.
5297 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5299 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5300 to reduce duplication, and to achieve a slightly more logical order
5303 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5305 PR tree-optimization/49161
5306 * tree-vrp.c (struct case_info): New type.
5307 (compare_case_labels): Sort case_info structs instead of
5308 trees, and not primarily by CASE_LABEL uids but by
5309 label_for_block indexes.
5310 (find_switch_asserts): Put case labels into struct case_info
5311 array instead of TREE_VEC, adjust sorting, compare label_for_block
5312 values instead of CASE_LABELs.
5314 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5316 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5317 ("orndi3_neon"): Likewise.
5318 ("bic<mode>3_neon"): Likewise.
5320 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
5322 PR tree-optimization/49038
5323 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5324 Ensure at least one epilogue iteration if required by data
5326 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5327 to mark loops that require peeling for gaps.
5328 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5329 (vect_get_known_peeling_cost): Take peeling for gaps into
5331 (vect_transform_loop): Generate epilogue if required by data
5333 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5334 loop as requiring an epilogue if there are gaps in the end of
5337 2011-05-25 Ian Lance Taylor <iant@google.com>
5339 * godump.c (go_format_type): Output the first field with a usable
5342 2011-05-25 Ian Lance Taylor <iant@google.com>
5344 * godump.c (go_format_type): Check for invalid type names, pointer
5345 target types, and struct field types.
5347 2011-05-25 Jason Merrill <jason@redhat.com>
5349 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5351 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
5353 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5355 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5357 * config/i386/i386.md (*movqi_extv_1)): Put back
5358 "register_operand" check in "type" calculation.
5359 (*movqi_extzv_2): Likewise.
5361 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5363 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5365 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5368 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5369 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5370 __divxc3, __divtc3): Wrap definitions in #ifndef.
5372 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5375 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5376 "register_operand" check and replace q_regs_operand with
5377 QIreg_operand in "type" calculation.
5378 (*movqi_extv_1): Likewise.
5379 (*movqi_extzv_2_rex64): Likewise.
5380 (*movqi_extzv_2): Likewise.
5382 * config/i386/predicates.md (QIreg_operand): New.
5384 2011-05-25 Richard Guenther <rguenther@suse.de>
5386 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5387 type-based offset disambiguation, streamline MEM_REF and
5388 TARGET_MEM_REF handling.
5390 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5392 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5393 (bdesc_special_args): Add pause intrinsic.
5395 * config/i386/i386.md (UNSPEC_PAUSE): New.
5398 * config/i386/ia32intrin.h (__pause): Likewise.
5400 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5403 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5405 PR tree-optimization/46728
5406 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5407 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5409 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5411 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5412 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5413 instead of TS_COMMON.
5415 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5417 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5418 LIBGCC2_GNU_PREFIX is defined.
5420 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5421 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5422 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5423 __clz_tab): Define using __N.
5424 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5425 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5426 * target.def (libfunc_gnu_prefix): New hook.
5427 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5428 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5429 * doc/tm.texi: Regenerate.
5430 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5431 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5433 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5434 (init_optabs): Likewise for the bswap libfuncs.
5435 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5437 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5438 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5439 * libgcc-std.ver: Remove.
5440 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5441 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5443 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5444 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5445 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5446 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5447 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5448 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5449 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5450 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5451 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5452 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5454 2011-05-25 Jan Hubicka <jh@suse.cz>
5456 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5457 (lto_output_tree): Use output_record_start.
5458 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5459 (lto_get_pickled_tree): Use input_record_start.
5460 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5461 (lto_value_range_error): New function.
5462 * lto-streamer.h (lto_value_range_error): Declare.
5463 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5464 (lto_output_enum, lto_input_enum): New macros.
5466 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5468 * common.opt (flag_stack_usage_info): New variable.
5469 (-Wstack-usage): New option.
5470 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5471 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5472 <OPT_fstack_usage>: Likewise.
5473 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5474 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5475 of flag_stack_usage.
5476 (emit_library_call_value_1): Likewise.
5477 * explow.c (allocate_dynamic_stack_space): Likewise.
5478 * function.c (instantiate_virtual_regs ): Likewise.
5479 (prepare_function_start): Likewise.
5480 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5481 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5482 * config/arm/arm.c (arm_expand_prologue): Likewise.
5483 (thumb1_expand_prologue): Likewise.
5484 * config/avr/avr.c (expand_prologue): Likewise.
5485 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5486 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5487 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5488 * config/mips/mips.c (mips_expand_prologue): Likewise.
5489 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5490 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5491 * config/s390/s390.c (s390_emit_prologue): Likewise.
5492 * config/sh/sh.c (sh_expand_prologue): Likewise.
5493 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5494 * config/spu/spu.c (spu_expand_prologue): Likewise.
5496 2011-05-25 Richard Guenther <rguenther@suse.de>
5498 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5499 (gimple_canonical_types_compatible_p): Likewise.
5501 2011-05-25 Jan Hubicka <jh@suse.cz>
5504 * ipa.c (function_and_variable_visibility): Only add to same
5505 comdat group list if DECL_ONE_ONLY.
5507 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
5509 PR rtl-optimization/49014
5510 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5512 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5515 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5517 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5519 PR rtl-optimization/48757
5520 * ira-build.c (loop_with_eh_edge_p): Rename to
5521 loop_with_complex_edge_p, check edges on complexity, make function
5523 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5526 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5528 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5529 force flag_ira_share_save_slots to 0.
5531 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5533 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5534 (vt_initialize): Set PROLOGUE_BB unconditionally.
5535 Add block comment about CFA_BASE_RTX machinery.
5536 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5537 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5539 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5542 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5543 parsing of syntax error in ObjC instance variable lists. In
5544 particular, avoid an infinite loop if there is a stray ']'.
5545 Updated error message.
5547 2011-05-24 Ian Lance Taylor <iant@google.com>
5549 * godump.c (go_define): Don't accept a string immediately after
5552 2011-05-24 Ian Lance Taylor <iant@google.com>
5554 * godump.c (struct godump_container): Add invalid_hash field.
5555 (go_format_type): Return false if type is found in invalid_hash.
5556 (go_output_typedef): Add invalid type to invalid_hash.
5557 (go_finish): Create and delete invalid_hash.
5559 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5561 PR tree-optimization/46728
5562 * tree-ssa-math-opts.c (powi_table): New.
5563 (powi_lookup_cost): New.
5565 (powi_as_mults_1): New.
5566 (powi_as_mults): New.
5567 (gimple_expand_builtin_powi): New.
5568 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5569 (gate_cse_sincos): Remove sincos/cexp restriction.
5571 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5574 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5576 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5577 * mips-tdump.c: Likewise.
5579 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5582 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5583 add -mno-XXX. Handle FMA.
5585 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5587 PR rtl-optimization/48633
5588 * ira-build.c (loop_with_eh_edge_p): New function.
5589 (mark_loops_for_removal): Use it.
5591 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5593 PR rtl-optimization/48971
5594 * ira.c (setup_pressure_classes): Don't check register move cost
5595 for classes with one registers. Don't add pressure class if there
5596 is a pressure class with the same available hard registers.
5597 Check contains_reg_of_mode. Fix a typo in collecting
5598 temp_hard_regset. Ignore hard registers not belonging to a class.
5600 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
5603 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5605 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5606 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5608 PR gcov-profile/48845
5609 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5611 2011-05-24 Richard Guenther <rguenther@suse.de>
5613 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5614 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5615 (gimple_types_compatible_p_1): Adjust.
5616 (iterative_hash_canonical_type): Do not bother about complete vs.
5618 (gimple_canonical_types_compatible_p): Likewise.
5620 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5622 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5624 2011-05-24 Richard Guenther <rguenther@suse.de>
5627 * gimple.c (gimple_register_canonical_type): Revert
5629 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5630 does not for a tree for the case where it matters. Cache
5631 pointer-type alias-sets.
5633 2011-05-24 Joseph Myers <joseph@codesourcery.com>
5635 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5636 (OBJS): Remove options.o, opts-common.o and prefix.o.
5637 (OBJS-libcommon-target): New.
5638 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5639 (BACKEND): Include libcommon-target.a.
5640 (MOSTLYCLEANFILES): Include libcommon-target.a.
5641 (libcommon-target.a): New.
5642 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5645 2011-05-23 Joseph Myers <joseph@codesourcery.com>
5647 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5648 parts of output shared with the driver.
5649 * optc-gen.awk: Don't generate parts of output not shared with the
5651 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5652 * doc/options.texi (SourcerInclude): Mention options-save.c.
5653 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5654 (OBJS): Add options-save.o.
5655 (options-save.c, options-save.o): New.
5656 (options.o): Update dependencies.
5657 (gcc-options.o): Remove.
5658 (mostlyclean): Remove options-save.c.
5660 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5663 * dbxout.c: Include cgraph.h.
5664 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5665 and without value expr, return NULL if no varpool node exists for
5666 it or if it is not needed.
5667 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5670 * c-decl.c (start_decl): Convert expr to void_type_node.
5672 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5674 PR rtl-optimization/48826
5675 * emit-rtl.c (try_split): When splitting a call that is followed
5676 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5678 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5680 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5681 parameters passed in memory prefer using DECL_INCOMING_RTL over
5682 the pseudos it will be copied into.
5684 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5687 * config/i386/i386.c (ix86_option_override_internal): Save the
5688 initial options after checking vzeroupper.
5690 2011-05-23 David Li <davidxl@google.com>
5692 PR tree-optimization/48988
5693 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5694 Initialize has_valid_pred for each pred chain.
5696 2011-05-23 Richard Guenther <rguenther@suse.de>
5698 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5699 (iterative_hash_gimple_type): Always hash type names.
5701 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5703 * c-typeck.c (build_function_call_vec): Tweak call to
5704 check_function_arguments.
5706 2011-05-23 Richard Guenther <rguenther@suse.de>
5708 PR tree-optimization/49115
5709 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5710 is not necessarily carried out, do not claim it kills the ref.
5711 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5713 2011-05-23 Richard Guenther <rguenther@suse.de>
5716 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5717 what pointer types we accept for folding.
5719 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5721 * gthr-gnat.c: Remove.
5722 * gthr-gnat.h: Remove.
5723 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5724 * config/t-freebsd (LIB2ADDEH): Likewise.
5725 * config/t-linux (LIB2ADDEH): Likewise.
5726 * config/t-sol2 (LIB2ADDEH): Likewise.
5727 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5728 * configure.ac (target_thread_file): Remove gnat handling.
5729 * configure: Regenerate.
5730 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5732 2011-05-23 Tristan Gingold <gingold@adacore.com>
5733 Eric Botcazou <ebotcazou@adacore.com>
5735 * gcov.c (create_file_names): If no object directory is specified,
5736 keep the directory of the file.
5738 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5740 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5741 * configure: Regenerate.
5743 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5746 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5747 failed and the comparison has a single bit signed type, use
5748 constm1_rtx instead of const1_rtx for true value.
5749 (do_store_flag): If ops->type is single bit signed type, disable
5750 signel bit test optimization and pass -1 instead of 1 as last
5751 parameter to emit_store_flag_force.
5753 2011-05-23 Tom de Vries <tom@codesourcery.com>
5756 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5758 (infer_loop_bounds_from_undefined): Use new function.
5760 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5762 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5763 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5764 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5766 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5768 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5770 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5771 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5774 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5776 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5778 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5780 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5781 UNSPEC_MOVE_PIC pattern.
5783 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5785 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5786 (sparc-*-rtems*): Likewise.
5787 (sparc64-*-elf*): Likewise.
5788 (sparc64-*-rtems*): Likewise.
5789 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5790 * config/sparc/t-crtin: New file.
5791 * config/sparc/t-sol2 (crti.o): Delete rule.
5793 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5794 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5795 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5796 (ENDFILE_SPEC): Add crtn.o.
5798 2011-05-22 Tom de Vries <tom@codesourcery.com>
5801 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5802 CODE_CONTAINS_STRUCT (TS_COMMON).
5804 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5807 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5808 only after deciding which mode to use.
5810 2011-05-22 Tom de Vries <tom@codesourcery.com>
5813 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5814 for call to get_shiftadd_cost.
5816 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5819 * config/i386/cpuid.h (bit_MMXEXT): New define.
5821 2011-05-22 Nick Clifton <nickc@redhat.com>
5823 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5824 initialisation of non-existant args[2] element. Use args[] array
5825 not arg[] array to pass arguments to build_function_type_list.
5827 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5829 PR tree-optimization/49087
5830 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5832 2011-05-21 Jason Merrill <jason@redhat.com>
5835 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5836 static storage duration.
5838 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5840 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5843 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5845 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5846 false if there are call-saved registers here...
5847 (sparc_can_use_return_insn_p): ...but here instead.
5848 (save_or_restore_regs): Fix thinko.
5849 (sparc_expand_prologue): Use current_function_is_leaf.
5850 (sparc_frame_pointer_required): Likewise.
5852 2011-05-21 Nick Clifton <nickc@redhat.com>
5855 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5857 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5859 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5860 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5862 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5864 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5865 * optc-gen.awk: Move common code to opt-read.awk.
5866 * opth-gen.awk: Likewise.
5867 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5869 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5871 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5873 2011-05-20 Tom de Vries <tom@codesourcery.com>
5876 * tree-ssa-loop-ivopts.c: Include expmed.h.
5877 (get_shiftadd_cost): New function.
5878 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5880 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5883 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5884 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5886 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5888 * Makefile.in: Update comment referring to $(OBJS-common).
5890 2011-05-20 Ian Lance Taylor <iant@google.com>
5892 * godump.c (go_output_typedef): Put enum constants in the macro
5893 hash table to avoid duplicate Go const definitions.
5895 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5897 * Makefile.in (LIBDEPS): Add libcommon.a.
5899 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5900 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5901 pretty-print.o and version.o.
5902 (OBJS-libcommon): New.
5903 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5904 (BACKEND): Add libcommon.a.
5905 (MOSTLYCLEANFILES): Likewise.
5907 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5908 (cpp$(exeext)): Likewise.
5909 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5910 pretty-print.o and input.o.
5911 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5912 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5914 (mips-tfile): Don't explicitly use version.o.
5915 (mips-tdump): Likewise.
5916 (gcov.o): Depend on $(DIAGNOSTIC_H).
5917 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5918 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5919 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5920 * gcov-dump.c: Include intl.h and diagnostic.h.
5921 (main): Initialize diagnostics.
5922 * gcov.c: Include diagnostic.h.
5924 (main): Initialize diagnostics.
5925 * lto-wrapper.c: Include diagnostic.h.
5926 (main): Initialize diagnostics.
5928 2011-05-20 Michael Matz <matz@suse.de>
5930 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5932 2011-05-20 Michael Matz <matz@suse.de>
5933 Richard Guenther <rguenther@suse.de>
5935 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5936 use lto_streamer_cache_append directly instead of returning a VEC.
5937 (preload_common_node): Remove.
5938 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5940 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5942 2011-05-20 Richard Guenther <rguenther@suse.de>
5944 PR tree-optimization/49079
5945 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5946 MEM_REFs correctly for the trailing array access detection.
5947 Special case constants the same way as decls for overall size
5950 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5952 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5955 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5957 PR tree-optimization/49073
5958 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5959 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5960 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5962 2011-05-20 Richard Guenther <rguenther@suse.de>
5965 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5966 of pointer types the same way the middle-end does.
5968 2011-05-20 Richard Guenther <rguenther@suse.de>
5970 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5971 or pointer-to chains. Delay all fixup to uniquify_nodes.
5973 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5975 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5976 (fma4_fmaddsub): Likewise
5978 2011-05-19 Jan Hubicka <jh@suse.cz>
5980 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5981 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5982 (type_pair_cache): New static var.
5983 (lookup_type_pair): Use fixed sized custom hash; make inline.
5984 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5985 calls of lookup_type_pair.
5986 (print_gimple_types_stats): Remove cache stats.
5987 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5990 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5992 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5993 when TARGET_RDRND is active.
5994 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5995 Generate dummy SImode target register when target is NULL.
5997 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5999 * config/arm/arm-fpus.def: New.
6000 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
6002 * config/arm/arm-tables.opt: Regenerate.
6003 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
6004 (arm_option_override): Don't decode FPU name to string here.
6005 * config/arm/arm.opt (mfpu=): Use Enum.
6006 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
6007 Update dependencies.
6009 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6011 * collect2.c: Include diagnostic.h.
6012 (fatal_perror, fatal, error, fancy_abort): Remove.
6013 (main): Set progname. Call xmalloc_set_program_name and
6014 diagnostic_initialize.
6015 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
6016 scan_libraries, resolve_lib_name): Call fatal_error instead of
6017 fatal and fatal_perror.
6018 * collect2.h (error, fatal, fatal_perror): Don't declare.
6019 * tlink.c: Include diagnostic-core.h.
6020 (recompile_files): Call fatal_error instead of fatal_perror.
6021 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
6022 pretty-print.o and input.o.
6023 (collect2.o, tlink.o): Update dependencies.
6025 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6027 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
6029 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6032 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
6033 COMDAT group syntax, both SPARC and x86 variants.
6034 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
6035 * configure: Regenerate.
6036 * config/sol2.h (TARGET_SOLARIS): Define.
6037 (PUSHSECTION_FORMAT): Remove.
6038 (SECTION_NAME_FORMAT): Define.
6039 * config/sol2.c: Include hashtab.h.
6040 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
6041 expansion, using SECTION_NAME_FORMAT.
6042 (solaris_comdat_htab): New variable.
6043 (struct comdat_entry): Define.
6044 (comdat_hash): New function.
6045 (comdat_eq): New function.
6046 (solaris_elf_asm_comdat_section): New function.
6047 (solaris_define_comdat_signature): New function.
6048 (solaris_code_end): New function.
6049 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
6050 (solaris_code_end): Declare.
6051 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
6052 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
6054 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
6055 Remove ATTRIBUTE_UNUSED.
6056 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
6057 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
6058 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
6059 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
6060 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
6061 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
6062 (PUSHSECTION_FORMAT): Remove.
6063 (SECTION_NAME_FORMAT): Redefine.
6065 2011-05-19 Kai Tietz <ktietz@redhat.com>
6067 * tree-cfg.c (verify_gimple_assign_binary): Barf on
6068 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
6069 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
6071 2011-05-19 Anatoly Sokolov <aesok@post.ru>
6072 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6074 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
6076 2011-05-19 Richard Guenther <rguenther@suse.de>
6079 * tree-object-size.c (addr_object_size): If the pointed-to
6080 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
6082 2011-05-19 Richard Guenther <rguenther@suse.de>
6084 * gimple.c (gimple_types_compatible_p_1): Compare names of
6085 the types themselves.
6086 (iterative_hash_gimple_type): And hash them that way.
6087 (gimple_register_type_1): If we register a main variant properly
6088 initialize the leader to ourselves.
6090 2011-05-19 Tom de Vries <tom@codesourcery.com>
6093 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
6094 get_loop_invariant_expr_id.
6095 (get_loop_invariant_expr_id): Use get_expr_id.
6096 (parm_decl_cost): New function.
6097 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
6098 Improve bound cost estimation. Use different inv_expr_id for elim and
6101 2011-05-19 Tom de Vries <tom@codesourcery.com>
6104 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
6105 cost_base.cost == 0.
6107 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
6110 * config/i386/sse.md
6111 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
6114 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6116 PR tree-optimization/49039
6117 * tree-vrp.c (extract_range_from_binary_expr): For
6118 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
6119 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
6121 2011-05-18 Tom de Vries <tom@codesourcery.com>
6124 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
6126 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
6128 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
6129 (*tls_global_dynamic_64): Ditto.
6130 (*tls_local_dynamic_base_32_gnu): Ditto.
6131 (*tls_local_dynamic_base_64): Ditto.
6132 (tls_initial_exec_64_sun): Ditto.
6134 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
6136 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
6137 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6139 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6140 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6141 * config/bfin/bfin.c (bfin_cpus): Add bf592.
6142 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6143 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
6144 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
6145 * config/bfin/elf.h (LIB_SPEC): Add bf592.
6147 2011-05-18 Joseph Myers <joseph@codesourcery.com>
6149 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
6150 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
6151 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
6152 target_thread_pointer, arm_structure_size_boundary, struct
6153 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
6154 struct abi_name, arm_all_abis): Remove.
6155 (arm_option_override) Don't process most enumerated option values here.
6156 Don't process target_fpe_name here. Work with integer not string for
6157 structure size boundary; use separate diagnostics for each case.
6158 * config/arm/arm.h (enum float_abi_type, enum
6159 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
6161 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
6162 arm_structure_size_boundary): Remove.
6163 * config/arm/arm.opt (mabi=): Use Enum and Init.
6164 (arm_abi_type): New Enum and EnumValue entries.
6165 (mfloat-abi=): Use Enum and Init.
6166 (float_abi_type): New Enum and EnumValue entries.
6167 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
6168 (mfp16-format=): Use Enum and Init.
6169 (arm_fp16_format_type): New Enum and EnumValue entries.
6170 (mstructure-size-boundary=): Use UInteger and Init.
6171 (mtp=): Use Enum and Init.
6172 (arm_tp_type): New Enum and EnumValue entries.
6174 2011-05-18 Richard Guenther <rguenther@suse.de>
6176 PR tree-optimization/49018
6177 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6178 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6179 gimple_has_side_effects.
6181 2011-05-18 Richard Guenther <rguenther@suse.de>
6183 * gimple.c (gimple_register_type_1): New function, split out from ...
6184 (gimple_register_type): ... here. Avoid infinite recursion.
6186 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6188 PR tree-optimization/41881
6189 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6190 reduction_chains along with a macro for its access.
6191 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6192 (destroy_loop_vec_info): Free reduction chains.
6193 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6194 (vect_is_slp_reduction): New function.
6195 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6196 (vect_create_epilog_for_reduction): Support SLP reduction chains.
6197 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6198 definition types for reduction chains.
6199 (vect_supported_load_permutation_p): Don't allow permutations for
6201 (vect_analyze_slp_instance): Support reduction chains.
6202 (vect_analyze_slp): Try to build SLP instance from reduction chains.
6203 (vect_get_constant_vectors): Handle reduction chains.
6204 (vect_schedule_slp_instance): Mark the first statement of the
6205 reduction chain as reduction.
6207 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6209 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6210 names for group elements access.
6211 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6212 reduction chains as well. Remove data reference and interleaving
6213 related words from the fields names.
6214 * tree-vect-loop.c (vect_transform_loop): Use new names for group
6216 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6217 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6218 vect_update_interleaving_chain, vect_same_range_drs,
6219 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6220 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6221 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6222 vect_analyze_group_access, vect_analyze_data_ref_access,
6223 vect_create_data_ref_ptr, vect_transform_strided_load,
6224 vect_record_strided_load_vectors): Likewise.
6225 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6226 vect_model_load_cost, vectorizable_store, vectorizable_load,
6227 vect_remove_stores, new_stmt_vec_info): Likewise.
6228 * tree-vect-slp.c (vect_build_slp_tree,
6229 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6231 2011-05-18 Richard Guenther <rguenther@suse.de>
6234 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6235 operand verification.
6236 (verify_gimple_assign_binary): Likewise.
6237 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6238 to non-1-precision BOOLEAN_TYPEs.
6240 2011-05-18 Tom de Vries <tom@codesourcery.com>
6243 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6245 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6247 PR tree-optimization/49000
6248 * tree-ssa.c (execute_update_addresses_taken): Call
6249 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6250 be rewritten and decl has been marked for renaming, reset
6253 2011-05-17 Joseph Myers <joseph@codesourcery.com>
6255 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6256 enum_opts_set when testing if attributes have set -mfpmath=.
6258 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6260 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6262 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6264 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6266 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6267 id.transform_lang_insert_block with NULL.
6269 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6271 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6272 (output_fp_compare): Change args 3 and 4 to bool.
6273 (ix86_expand_call): Change arg 6 to bool.
6274 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6275 (ix86_attr_length_vex_default): Change arg 3 to bool.
6276 * config/i386/i386.md: Update all uses.
6277 * config/i386/i386.c: Ditto.
6278 (ix86_flags_dependent): Change return type to bool.
6280 2011-05-17 Richard Guenther <rguenther@suse.de>
6282 * gimple.c (type_hash_pair_compare): Fix comparison.
6284 2011-05-17 Richard Guenther <rguenther@suse.de>
6286 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6287 case some more, fix final hash value of the non-singleton case.
6289 2011-05-17 Richard Guenther <rguenther@suse.de>
6293 2011-05-16 Richard Guenther <rguenther@suse.de>
6295 * gimple.c (gimple_types_compatible_p_1): Use names of the
6296 type itself, not its main variant.
6297 (iterative_hash_gimple_type): Likewise.
6299 2011-05-17 Richard Guenther <rguenther@suse.de>
6301 * gimple.c (gimple_register_canonical_type): Use the main-variant
6302 leader for computing the canonical type.
6304 2011-05-17 Nick Clifton <nickc@redhat.com>
6306 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6309 * config/rx/rx.md: Add peephole to remove redundant extensions
6311 (bitset_in_memory): Use rx_restricted_mem_operand.
6312 (bitinvert_in_memory): Likewise.
6313 (bitclr_in_memory): Likewise.
6315 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6316 Nick Clifton <nickc@redhat.com>
6318 * config/rx/rx.md: Add peepholes to match a register move followed
6319 by a comparison of the moved register. Replace these with an
6320 addition of zero that does both actions in one instruction.
6322 2011-05-17 Jakub Jelinek <jakub@redhat.com>
6325 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6326 predicate to allow CONST_INT.
6327 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6329 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6331 * opts-common.c (opt_enum_arg_to_value): New.
6332 * opts.h (opt_enum_arg_to_value): Declare.
6333 * config/i386/i386.opt (fpmath): Remove.
6334 (mfpmath=): Use Enum, Init and Save.
6335 (fpmath_unit): New Enum and EnumValue entries.
6336 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6337 name for function fpmath state.
6338 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6339 * config/i386/i386.c: Include diagnostic.h.
6340 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6341 (ix86_target_string): Take enum fpmath_unit value instead of string.
6342 (ix86_debug_options): Update call to ix86_target_string.
6343 (ix86_option_override_internal): Don't process fpmath strings here.
6344 (x86_function_specific_save, ix86_function_specific_restore):
6345 Don't handle fpmath state specially.
6346 (ix86_function_specific_print): Pass fpmath state to
6347 ix86_target_string instead of printing in this function.
6348 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6349 Handle enum attributes.
6350 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6351 (ix86_valid_target_attribute_tree): Update option_strings
6352 handling. Handle fpmath as enum option.
6353 (ix86_can_inline_p): Update field names for function fpmath state.
6354 (ix86_expand_builtin): Update call to ix86_target_string.
6355 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6356 (ix86_fpmath): Remove.
6357 * config/i386/t-i386 (i386.o): Update dependencies.
6359 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6361 PR preprocessor/48677
6362 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6363 from decoded_options[0], not from itself.
6365 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
6367 * config/i386/constraints.md (z): New constraint.
6368 * config/i386/i386.c (c): New mode attribute.
6369 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6370 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6371 constraint for operand 0.
6372 (*call_vzeroupper): Ditto.
6373 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6374 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6375 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6376 Use "lzm" constraint for operand 0.
6377 (*call_pop_vzeroupper): Ditto.
6378 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6379 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6380 constraint for operand 0.
6381 (*sibcall_vzeroupper): Ditto.
6382 (*sibcall_rex64_ms_sysv): Ditto.
6383 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6384 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6385 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6386 (*sibcall_pop_vzeroupper): Ditto.
6387 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6388 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6389 mode iterator. Use "<c>zm" constraint for operand 1.
6390 (*call_value_vzeroupper): Ditto.
6391 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
6393 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6394 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6395 *call_value_pop_1. Use "lzm" constraint for operand 1.
6396 (*call_value_pop_vzeroupper): Ditto.
6397 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6398 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6399 mode iterator. Use "Uz" constraint for operand 1.
6400 (*sibcall_value_vzeroupper): Ditto.
6401 (*sibcall_value_rex64_ms_sysv): Ditto.
6402 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6403 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6404 constraint for operand 1.
6405 (*sibcall_value_pop_vzeroupper): Ditto.
6406 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6407 and "z" constraint for operand 2.
6408 (*tls_global_dynamic_32_gnu): Ditto.
6409 (*tls_local_dynamic_base_32_gnu): Ditto.
6410 (*tls_local_dynamic_base_64): Ditto.
6411 (*tls_local_dynamic_32_once): Ditto.
6412 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6414 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6416 2011-05-16 Richard Guenther <rguenther@suse.de>
6418 * gimple.c (gimple_types_compatible_p_1): Use names of the
6419 type itself, not its main variant.
6420 (iterative_hash_gimple_type): Likewise.
6422 2011-05-16 Richard Guenther <rguenther@suse.de>
6424 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6425 always visit pointer target and function result and argument types.
6427 2011-05-16 Jason Merrill <jason@redhat.com>
6430 * tree-inline.c (copy_statement_list): Put back recursion.
6432 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6436 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6437 * config/avr/avr.md ("*ior<mode>qi.byte0",
6438 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6440 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6443 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6444 register is needed for a function argument.
6446 2011-05-16 Richard Guenther <rguenther@suse.de>
6448 * gimple.c (struct type_hash_pair): New type.
6449 (type_hash_pair_compare): New function.
6450 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6452 2011-05-16 Revital Eres <revital.eres@linaro.org>
6454 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6456 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6458 * config/i386/i386.md (floating point move splitters): Fix
6459 usage of standard_80387_constant_p.
6460 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6462 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6464 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6466 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6468 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6469 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6470 (tree_ssa_lim_finalize): Likewise.
6472 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
6474 * config/i386/constraint.md (Yd, Yx): New register constraints.
6475 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6476 Yd conditional register constraint.
6477 (*movtf_internal): Use standard_sse_constant_opcode.
6478 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6479 Yx conditional register constraint.
6480 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6481 Yd conditional register constraint. Use standard_sse_constant_p to
6482 check for valid SSE constants and call standard_sse_constant_opcode to
6484 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6485 constants and call standard_sse_constant_opcode to output SSE insn.
6486 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6487 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6488 optimize_size is set.
6489 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6491 2011-05-14 Tobias Burnus <burnus@net-b.de>
6493 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6495 2011-05-13 Martin Jambor <mjambor@suse.cz>
6497 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6498 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6499 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6500 (evaluate_conditions_for_ipcp_clone): Removed.
6501 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6502 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6503 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6505 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6507 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6508 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6509 lieu of MAY_HAVE_DEBUG_STMTS.
6510 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6511 debug statements if !MAY_HAVE_DEBUG_STMTS.
6513 2011-05-13 Martin Thuresson <martint@google.com>
6515 PR gcov-profile/47793
6516 * libgcov.c (gcov_exit): Support relative profile paths.
6517 * doc/invoke.texi (-fprofile-dir): Update for above change.
6519 2011-05-13 Richard Guenther <rguenther@suse.de>
6521 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6522 type-pair caching, do not compare hashes.
6524 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6527 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6528 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6530 2011-05-13 Kai Tietz <ktietz@redhat.com>
6532 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6533 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6534 compatible type for TRUTH_NOT_EXPR.
6536 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6538 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
6539 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6540 can_create_pseudo_p ().
6542 2011-05-13 Richard Guenther <rguenther@suse.de>
6545 * gimple.c (iterative_hash_gimple_type): Revert change in
6546 pointer target and function result and argument hashing.
6548 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
6550 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6551 (*movxf_internal_nointeger): Ditto.
6552 (*movdf_internal_rex64): Ditto.
6553 (*movdf_internal): Ditto.
6554 (*movdf_internal_nointeger): Ditto.
6555 (*movsf_internal): Ditto.
6556 (sincos splitters): Use can_create_pseudo ().
6558 2011-05-13 Joseph Myers <joseph@codesourcery.com>
6560 * config/i386/i386-opts.h: New.
6561 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6562 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6563 ix86_section_threshold): Remove.
6564 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6565 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6567 (ix86_option_override_internal): Don't decode strings for options
6568 other than -march=, -mtune= and -mfpmath=. Don't allow for
6569 __attribute__ uses in remaining diagnostics for options with
6570 string arguments. Don't check for integer arguments being negative.
6571 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6572 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
6573 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6574 ix86_branch_cost, ix86_section_threshold): Remove.
6575 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6577 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6579 (masm=): Use Enum and Init.
6580 (asm_dialect): New Enum and EnumValue entries.
6581 (mbranch-cost=): Use UInteger.
6582 (mlarge-data-threshold=): Use UInteger and Init.
6583 (mcmodel=): Use Enum and Init.
6584 (cmodel): New Enum and EnumValue entries.
6585 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6586 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6587 mregparm=): Use UInteger.
6588 (mstringop-strategy=): Use Enum and Init.
6589 (stringop_alg): New Enum and EnumValue entries.
6590 (mtls-dialect=): Use Enum and Init.
6591 (tls_dialect): New Enum and EnumValue entries.
6592 (mabi=): Use Enum and Init.
6593 (calling_abi): New Enum and EnumValue entries.
6594 (mveclibabi=): Use Enum and Init.
6595 (ix86_veclibabi): New Enum and EnumValue entries.
6597 2011-05-13 Nick Clifton <nickc@redhat.com>
6599 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6600 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
6602 2011-05-13 Kai Tietz <ktietz@redhat.com>
6605 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6606 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6607 (gimple_boolify): Check for cast for boolean_type_node instead for
6610 2011-05-13 Richard Guenther <rguenther@suse.de>
6612 PR tree-optimization/48172
6613 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6614 multiplying by number of iterations for equal step.
6615 (vect_create_cond_for_alias_checks): Likewise.
6617 2011-05-13 Andreas Schwab <schwab@redhat.com>
6619 * configure.ac: Use AS_HELP_STRING throughout.
6620 * configure: Regenerate.
6622 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6624 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
6625 (ix86_emit_restore_regs_using_mov): Likewise.
6626 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6628 2011-05-12 Anatoly Sokolov <aesok@post.ru>
6630 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6631 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6632 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6633 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6634 RTX_OK_FOR_OLO10_P): ...here.
6635 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6638 2011-05-12 Kai Tietz <ktietz@redhat.com>
6640 * gimplify.c (gimple_boolify): Re-boolify expression
6641 arguments even if expression type is of kind BOOLEAN_TYPE.
6642 (gimplify_boolean_expr): Removed.
6643 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6644 and XOR. Additional take care that we keep expression's type.
6645 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6646 of TRUTH_AND|OR|XOR_EXPR.
6648 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6650 PR tree-optimization/48975
6651 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6652 on all bbs here and free and clear ifc_bbs at the end.
6654 2011-05-12 Richard Guenther <rguenther@suse.de>
6656 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6657 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6658 until after simple checks.
6659 (gimple_types_compatible_p): Likewise.
6660 (iterative_hash_gimple_type): Always hash pointer targets
6661 and function return and argument types.
6662 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6663 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6664 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6665 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6666 completely in the simple compare section.
6667 (gimple_register_canonical_type): Query the cache again after
6670 2011-05-12 Richard Guenther <rguenther@suse.de>
6672 PR tree-optimization/48172
6673 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6674 the number of iterations from the segment size calculation.
6675 (vect_create_cond_for_alias_checks): Adjust.
6677 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6680 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6681 if validate_subreg fails.
6683 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
6685 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6686 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6689 2011-05-12 DJ Delorie <dj@redhat.com>
6691 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6692 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6693 created builtin into rx_builtins array.
6694 (rx_builtin_decl): New function.
6695 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
6697 2011-05-12 DJ Delorie <dj@redhat.com>
6698 Nick Clifton <nickc@redhat.com>
6700 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6701 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6702 (rx_is_legitimate_address): Add pre-decrement and post-increment
6703 addressing in HImode and QImode. Fix test for out of range
6705 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6706 (rx_align_for_label): Test label before extracting its usage count.
6707 (rx_adjust_insn_lengths): Fix selection of insn codes.
6708 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6710 2011-05-11 Jason Merrill <jason@redhat.com>
6712 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6714 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6716 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6717 reindent the subsequent block.
6719 2011-05-11 Satoru Takabayashi <satorux@google.com>
6720 Paul Pluzhnikov <ppluzhnikov@google.com>
6722 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6723 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6724 * config.in: Add LINKER_HASH_STYLE.
6725 * configure.ac: Add --with-linker-hash-style.
6726 * configure: Regenerate.
6728 2011-05-11 Richard Guenther <rguenther@suse.de>
6731 * gimple.c (iterative_hash_canonical_type): Fix typo.
6733 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6735 * config/i386/i386.c (legitimize_tls_address)
6736 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6737 expanders directly for TARGET_GNU2_TLS. Determine pic and
6738 __tls_get_addr symbol reference here. Update call to
6739 gen_tls_global_dynamic_{32,64} for added arguments.
6740 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6741 expanders directly for TARGET_GNU2_TLS. Determine
6742 __tls_get_addr symbol reference here. Update call to
6743 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6744 unique UNSPEC REG_EQUIV to libcall block.
6745 (ix86_tls_get_addr): Declare static.
6746 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6747 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6748 Do not determine pic and __tls_get_addr symbol reference here. Do not
6749 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6750 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6751 (tls_global_dynamic_64): Add operand 2. Do not determine
6752 __tls_get_addr symbol reference here. Do not call
6753 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6754 (tls_local_dynamic_base64): Ditto for operand 1.
6756 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6758 * function.c (expand_function_start): Initialize stack_check_probe_note
6759 only if the generic stack checking mechanism is used.
6761 2011-05-11 Richard Guenther <rguenther@suse.de>
6763 PR tree-optimization/15256
6764 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6765 (A & B) | C, combine (A op CST1) op CST2.
6766 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6767 visit assigns that have uses.
6769 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6771 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6772 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6773 (unpack_ts_type_common_value_fields): ...this. Update comment.
6774 (unpack_value_fields): Adjust for renaming.
6775 (lto_input_ts_type_tree_pointers): Split into...
6776 (lto_input_ts_type_common_tree_pointer): ...this and...
6777 (lto_input_ts_type_non_common_tree_pointers): ...this.
6778 (lto_input_tree_pointers): Adjust for above split.
6779 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6780 (pack_ts_type_common_value_fields): ...this. Update comment.
6781 (lto_output_ts_type_tree_pointers): Split into...
6782 (lto_output_ts_type_common_tree_pointers): ...this and...
6783 (lto_output_ts_type_non_common_tree_pointers): ...this.
6784 (lto_output_tree_pointers): Adjust for above split.
6785 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6786 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6787 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6788 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6790 (struct tree_type): Split into...
6791 (struct tree_type_common: ...this and...
6792 (struct tree_type_with_lang_specific): ...this and...
6793 (struct tree_type_non_common): ...this. Adjust accessor macros
6795 (TYPE_VALUES_RAW): Define.
6796 (union tree_node): Update for above changes.
6797 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6799 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6800 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6801 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6802 * treestructu.def (TS_TYPE): Remove.
6803 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6806 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6809 * tree-ssa.c (reset_debug_uses): New function.
6810 * tree-flow.h (reset_debug_uses): New prototype.
6811 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6812 * tree-loop-distribution.c (generate_loops_for_partition): Call
6813 reset_debug_uses on the stmts that will be removed. Keep around
6814 all debug stmts, don't count them as bits in partition bitmap.
6815 (generate_builtin): Don't count debug stmts or labels as bits in
6818 2011-05-11 Richard Guenther <rguenther@suse.de>
6820 * gimple.c (gimple_type_hash_1): Merge with ...
6821 (gimple_type_hash): ... this.
6822 (gtc_visit): Remove mode parameter and simplify accordingly.
6823 (gimple_types_compatible_p_1): Likewise.
6824 (gimple_types_compatible_p): Likewise.
6825 (iterative_hash_gimple_type): Likewise.
6827 (gimple_type_eq): Adjust.
6829 2011-05-11 Revital Eres <revital.eres@linaro.org>
6831 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6832 enters the branch create an anti edge in the opposite direction
6833 to prevent the creation of reg-moves.
6834 * modulo-sched.c: Adjust comment to reflect the fact we are
6835 scheduling closing branch.
6836 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6837 (stage_count): New field in struct partial_schedule.
6838 (calculate_stage_count): New function.
6839 (normalize_sched_times): Rename to reset_sched_times and handle
6840 incrementing the sched time of the nodes by a constant value
6841 passed as parameter.
6842 (duplicate_insns_of_cycles): Skip closing branch.
6843 (sms_schedule_by_order): Schedule closing branch.
6844 (ps_insn_find_column): Handle closing branch.
6845 (sms_schedule): Call reset_sched_times and adjust the code to
6846 support scheduling of the closing branch.
6847 (ps_insert_empty_row): Update calls to normalize_sched_times
6848 and rotate_partial_schedule functions.
6850 2011-05-11 Richard Guenther <rguenther@suse.de>
6853 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6855 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6857 * opts.c (finish_options): Move warning settings from process_options.
6858 * toplev.c (process_options): Move warning settings to finish_options.
6860 2011-05-11 Richard Guenther <rguenther@suse.de>
6862 PR tree-optimization/18041
6863 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6864 (simplify_bitwise_binary): ... this. Handle operand conversions
6865 by applying them to the result instead.
6866 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6868 2011-05-11 Richard Guenther <rguenther@suse.de>
6870 * gimple.c (gimple_canonical_types_compatible_p): Split out
6871 from gimple_types_compatible_p and friends. Do not recurse
6872 to pointed-to types.
6873 (gimple_canonical_type_eq): Use it.
6874 (iterative_hash_canonical_type): Split out from
6875 iterative_hash_gimple_type and friends. Do not recurse
6876 to pointed-to types.
6877 (gimple_canonical_type_hash): Use it, allocate the hash here.
6879 2011-05-11 Revital Eres <revital.eres@linaro.org>
6881 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6884 2011-05-11 Revital Eres <revital.eres@linaro.org>
6886 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6887 instead of PREV_INSN.
6889 2011-05-11 Revital Eres <revital.eres@linaro.org>
6891 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6892 * loop-doloop.c (doloop_condition_get): Likewise.
6893 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6895 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6897 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6899 * tree.def (CASE_LABEL_EXPR): Add an operand.
6900 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6902 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6904 * c-decl.c (c_override_global_bindings_to_false): Remove.
6905 (global_bindings_p): Don't check
6906 c_override_global_bindings_to_false.
6907 * c-tree.h (c_override_global_bindings_to_false): Remove.
6908 * c-typeck.c (composite_type): Don't set
6909 c_override_global_bindings_to_false.
6911 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6913 PR target/48857, 48495
6914 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6916 (VSX_MOVE_MODE): Ditto.
6917 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6918 VSX vector types. Add V2DImode.
6919 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6920 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6921 (MODES_TIEABLE_P): Ditto.
6923 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6924 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6926 (init_cumulative_args): Ditto.
6927 (rs6000_function_arg_boundary): Ditto.
6928 (rs6000_function_arg_advance_1): Ditto.
6929 (rs6000_function_arg): Ditto.
6930 (rs6000_function_ok_for_sibcall): Ditto.
6931 (emit_frame_save): Ditto.
6932 (rs6000_function_value): Ditto.
6933 (rs6000_libcall_value): Ditto.
6935 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6937 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6938 i386/darwin-lib.h to $libgcc_tm_file.
6939 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6941 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6943 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6945 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6947 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6948 * config/rs6000/rs6000-tables.opt: New file (generated).
6949 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6950 rs6000/rs6000-tables.opt to extra_options.
6951 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6952 * config/rs6000/rs6000.c (rs6000_select): Remove.
6953 (processor_target_table): Move contents to rs6000-cpus.def.
6954 (darwin_rs6000_override_options): Check
6955 global_options_set.x_rs6000_cpu_index instead of
6956 rs6000_select[1].string.
6957 (rs6000_option_override_internal): Likewise.
6958 (rs6000_handle_option): Don't assert that global structures are in
6959 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6960 (rs6000_default_cpu): New variable.
6961 (rs6000_file_start): Set it instead of local default_cpu. Check
6962 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6963 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6964 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6965 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6966 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6967 rs6000_select): Remove.
6968 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6970 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6971 * config/rs6000/t-rs6000
6972 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6973 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6974 global_options_set.x_rs6000_cpu_index instead of
6975 rs6000_select[1].string.
6976 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6977 global_options_set.x_rs6000_cpu_index instead of
6978 rs6000_select[1].string.
6980 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6982 * config.gcc (libgcc_tm_file): Define instead of including files
6983 from ../../libgcc/config/ in tm_file.
6984 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6985 * configure: Regenerate.
6986 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6987 libgcc_tm.h, cs-libgcc_tm.h): New.
6988 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6989 (clean): Remove libgcc_tm.h.
6990 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6991 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6992 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6994 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6997 * config/avr/avr.c (avr_ret_register): Return unsigned int
6999 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
7000 it to avr_libcall_value.
7001 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
7003 (avr_expand_binop_builtin): Ditto.
7004 (avr_expand_unop_builtin): Ditto.
7006 2011-05-10 DJ Delorie <dj@redhat.com>
7008 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
7009 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
7010 * config/rx/rx.c (rx_align_for_label): Add label and
7011 uses_threshold parameters. Do not align when the label is not
7013 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
7015 2011-05-10 Richard Guenther <rguenther@suse.de>
7017 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
7018 a series of conversions and apply foldings similar to what
7020 (tree_ssa_forward_propagate_single_use_vars): Call it.
7022 2011-05-10 Jakub Jelinek <jakub@redhat.com>
7024 PR tree-optimization/48611
7025 PR tree-optimization/48794
7026 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
7027 referenced from RESX or EH_DISPATCH arguments.
7030 * dfp.c (decimal_to_decnumber): Handle conversion from
7031 dconst{1,2,m1,half}.
7033 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7035 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
7036 for !flag_prefer_avx128.
7037 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7039 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7041 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
7042 (fold_ternary_loc): Use expr_location_or.
7044 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
7047 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
7048 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
7049 Pmode and mem_mode is not VOIDmode.
7051 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
7053 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
7054 TYPE_QUAL_RESTRICT): Convert to enum.
7056 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7058 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
7059 (const_pow2_1_to_8_operand): Ditto.
7060 (const_pow2_1_to_128_operand): Ditto.
7061 (const_pow2_1_to_32768_operand): Ditto.
7062 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
7063 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
7064 in insn constraint to check integer value of operand 3.
7065 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
7067 (PINSR_MODE): New mode iterator.
7068 (sse2p4_1): New mode attribute.
7069 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
7070 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
7071 iterator. Use const_int_operand instead of
7072 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
7073 exact_log2 in insn constraint to check integer value of operand 3.
7075 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7077 * config/i386/sse.md (blendbits): Remove mode attribute.
7078 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7079 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7080 Check integer value of operand 3 in insn constraint.
7082 2011-05-09 Richard Guenther <rguenther@suse.de>
7084 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
7086 (lto_symtab_merge): Likewise. Do not register types here.
7087 (lto_symtab_merge_decls_2): Likewise.
7088 (lto_symtab_merge_decls_1): Likewise.
7089 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
7090 * gimple.c (enum gtc_mode): Declare.
7091 (gimple_types_compatible_p): Make static.
7093 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7095 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
7096 temporary register to match Pmode.
7098 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7100 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
7101 and *vec_concatv4si_1_avx.
7103 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7105 PR rtl-optimization/48927
7106 * ira-conflicts.c (commutative_constraint_p): Use
7107 recog_data.alternative_enabled_p to disable alternatives where
7108 "enabled" attribute is false.
7109 (get_dup_num): Ditto.
7110 * ira-lives.c (single_reg_class): Ditto.
7111 (ira_implicitly_set_insn_hard_regs): Ditto.
7113 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7115 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
7116 (dataflow_set_preserve_mem_locs): Likewise.
7118 2011-05-09 Philipp Thomas <pth@suse.de>
7120 * config/mep/mep.c (mep_validate_vliw): Syntax description
7121 should not be translated.
7123 2011-05-09 Joseph Myers <joseph@codesourcery.com>
7125 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
7126 * config/mips/mips-tables.opt: New file (generated).
7127 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
7128 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
7129 MIPS_ARCH_OPTION_NATIVE): Define.
7130 * config/mips/mips.c (mips_cpu_info_table): Move contents to
7132 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
7133 mips_parse_cpu): Remove.
7134 (mips_cpu_info_from_opt, mips_default_arch): New.
7135 (mips_handle_option): Don't assert that global structures are in
7136 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
7137 (mips_option_override): Use new variables and functions to set
7138 state of these options. Use strcmp to check for individual CPU names.
7139 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
7141 * config/mips/mips.opt (march=): Use ToLower and Enum.
7142 (mips): Use ToLower, Enum and Var.
7143 (mtune=): Use ToLower and Enum.
7144 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
7146 2011-05-08 Jan Hubicka <jh@suse.cz>
7148 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
7149 Arrange type pairs to be UID ordered.
7150 (gimple_lookup_type_leader): Make inline.
7152 2011-05-09 Nick Clifton <nickc@redhat.com>
7155 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
7159 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
7162 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
7164 * combine.c (simplify_comparison): Abstract out parts into...
7165 (simplify_compare_const): ... new function.
7166 (try_combine): Generalize parallel arithmetic/compare combining
7167 to call simplify_compare_const() and CANONICALIZE_COMPARE().
7169 2011-05-08 Jan Hubicka <jh@suse.cz>
7171 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
7172 (cgraph_create_virtual_clone): Call hooks once virtual clone
7174 * cgraph.h (cgraph_clone_node): Update prototype.
7175 * ipa-cp.c (ipcp_estimate_growth): Use
7176 estimate_ipcp_clone_size_and_time.
7177 * ipa-inline-transform.c (clone_inlined_nodes): Update.
7178 * lto-cgraph.c (input_node): Update.
7179 * ipa-inline.c (recursive_inlining): Update.
7180 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7181 (evaluate_conditions_for_known_args): Break out from ...
7182 (evaluate_conditions_for_edge): ... here.
7183 (evaluate_conditions_for_ipcp_clone): New function.
7184 (inline_node_duplication_hook): Update clone summary based
7186 (estimate_callee_size_and_time): Rename to ...
7187 (estimate_node_size_and_time): take NODE instead of EDGE;
7188 take POSSIBLE_TRUTHS as argument.
7189 (estimate_callee_size_and_time): Update.
7190 (estimate_ipcp_clone_size_and_time): New function.
7191 (do_estimate_edge_time): Update.
7193 2011-05-08 Richard Guenther <rguenther@suse.de>
7197 * expmed.c (expand_shift_1): Compute adjusted constant shift
7200 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7202 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7204 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7206 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7208 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7210 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7212 2011-05-07 Jan Hubicka <jh@suse.cz>
7214 * ipa-inline-transform.c (inline_call): Account when program size
7216 * ipa-inline.c (relative_time_benefit): New function.
7217 (edge_badness): Reorganize to be power 2 based; fix thinko when
7218 computing badness for negative growth; update comments to match
7219 reality; better dumps.
7221 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7223 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7224 type to bool and adjust comment.
7225 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7226 (fold_mathfn_compare): Remove calls to global_bindings_p.
7227 (fold_inf_compare): Likewise.
7228 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7229 * c-tree.h (global_bindings_p): Adjust prototype.
7230 * c-decl.c (global_bindings_p): Return bool and simplify.
7232 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
7234 PR tree-optimization/48837
7235 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7236 when accumulator transformation is performed.
7238 2011-05-06 Jan Hubicka <jh@suse.cz>
7240 * i386.h (ix86_tune_indices): Add
7241 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7242 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7243 * i386.c (initial_ix86_tune_features): Add
7244 X86_SOFTARE_PREFETCHING_BENEFICIAL.
7245 (software_prefetching_beneficial_p): Remove predicate.
7246 (ix86_option_override_internal): Use new macro.
7248 2011-05-06 Jan Hubicka <jh@suse.cz>
7250 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7252 2011-05-06 Jan Hubicka <jh@suse.cz>
7254 * cgraph.c (cgraph_add_thunk): Create real function node instead
7255 of alias node; finalize it and mark needed/reachale; arrange visibility
7256 to be right and add it into the corresponding same comdat group list.
7257 (dump_cgraph_node): Dump thunks.
7258 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7259 cgraph_function_with_gimple_body_p,
7260 cgraph_first_function_with_gimple_body,
7261 cgraph_next_function_with_gimple_body): New functions.
7262 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7264 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7265 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7266 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7267 devirtualization when optimizing.
7268 (verify_cgraph_node): Verify thunks.
7269 (cgraph_analyze_function): Analyze thunks.
7270 (cgraph_mark_functions_to_output): Output thunks only in combination
7271 with function they are assigned to.
7272 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7273 alias into normal node.
7274 (assemble_thunks): New functoin.
7275 (cgraph_expand_function): Use it.
7276 * lto-cgraph.c (lto_output_node): Stream thunks.
7277 (input_overwrite_node): Stream in thunks.
7278 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7279 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7280 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7281 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7282 (inline_analyze_function): Do not care about thunk jump functions.
7283 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7284 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7285 cgraph_function_with_gimple_body_p.
7286 * passes.c (do_per_function_toporder): Use
7287 cgraph_function_with_gimple_body_p.
7288 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7289 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7290 (function_called_by_processed_nodes_p): Likewise.
7292 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7294 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7295 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7297 (mabi=): Replace with separate entries for mabi=altivec,
7298 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7299 mabi=ieeelongdouble and mabi=ibmlongdouble.
7300 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7301 check for -mabi=spe without SPE ABI support here.
7302 (rs6000_handle_option): Replace OPT_mabi_ handling with
7303 OPT_mabi_altivec and OPT_mabi_spe handling.
7305 2011-05-06 Cary Coutant <ccoutant@google.com>
7307 * dwarf2out.c (contains_subprogram_definition): New function.
7308 (should_move_die_to_comdat): Call it.
7310 2011-05-06 Jeff Law <law@redhat.com>
7312 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7313 remove_ctrl_stmt_and_useless_edges.
7314 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7315 (fixup_template_block, thread_single_edge): Likewise.
7316 (mark_threaded_blocks): Use THREAD_TARGET.
7318 2011-05-06 Alan Modra <amodra@gmail.com>
7321 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7322 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7324 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7326 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7327 constraint modifier to "r".
7329 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7331 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7332 fall through for OPT_mcmodel_.
7334 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7336 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7338 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7340 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7343 * config/arm/arm.opt (marm): Document it.
7344 (mthumb): Reject negative variant.
7346 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7349 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7350 Fix typo in "ccvt" variable name.
7352 2011-05-06 Tristan Gingold <gingold@adacore.com>
7355 * config/vms/vms-ar.c (main): Remove cwd variable.
7357 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7360 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7362 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7364 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7365 * gimplify.c (gimplify_switch_expr): Likewise.
7366 * omp-low.c (expand_omp_sections): Likewise.
7367 * tree-eh.c (lower_try_finally_switch): Likewise.
7368 (lower_eh_dispatch): Likewise.
7369 * tree.h (build_case_label): Declare.
7370 * tree.c (build_case_label): Define.
7372 2011-05-05 Jason Merrill <jason@redhat.com>
7375 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7376 (copy_statement_list): Don't recurse.
7377 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7380 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7382 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7383 through from -mfpu= handling.
7384 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7386 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7388 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7391 2011-05-05 Steve Ellcey <sje@cup.hp.com>
7393 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7395 (hppa[12]*-*-hpux11*): Ditto.
7396 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7397 * config/ia64/hpux-unix2003.h: New.
7398 * config/pa/pa-hpux1131.opt: New.
7399 * config/pa/pa-hpux1131.h: New.
7400 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7401 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7402 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7404 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7407 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7408 instead of mode as 3rd argument to recursive call.
7409 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7410 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7412 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7413 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7414 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7415 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7417 2011-05-05 Julian Brown <julian@codesourcery.com>
7419 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7420 parenthesis in D-register case.
7422 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7424 * opt-functions.awk (var_type_struct): Handle Enum options.
7425 * optc-gen.awk: Don't check range of variables of character type.
7426 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7427 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7428 rs6000_sdata_name, rs6000_explicit_options): Remove.
7429 (rs6000_option_override_internal): Check for -malign-power here.
7430 Use global_options_set instead of rs6000_explicit_options.
7431 (rs6000_parse_fpu_option): Remove.
7432 (rs6000_handle_option): Access variables via opts and opts_set
7433 pointers. Use error_at and warning_at. Add fall-through
7434 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7435 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7436 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7437 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7438 here. Don't use rs6000_parse_fpu_option.
7439 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7440 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7441 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7443 (mspe): Use Var and Save.
7444 (mtraceback=): Use Enum and Var.
7445 (rs6000_traceback_type): New Enum and EnumValue entries.
7446 (mfloat-gprs=): Use Enum, Var and Save.
7447 (rs6000_float_gprs): New Enum and EnumValue entries.
7448 (mlong-double-): use Var and Save.
7449 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7450 (malign-): Use Enum and Var.
7451 (rs6000_alignment_flags): New Enum and EnumValue entries.
7453 (fpu_type_t): New Enum and EnumValue entries.
7454 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7455 global_options_set instead of rs6000_explicit_options.
7456 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7457 global_options_set instead of rs6000_explicit_options.
7458 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7459 global_options_set instead of rs6000_explicit_options.
7460 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7461 global_options_set instead of rs6000_explicit_options.
7462 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7463 global_options_set instead of rs6000_explicit_options.
7464 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7465 global_options_set instead of rs6000_explicit_options.
7466 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7468 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7469 global_options_set instead of rs6000_explicit_options.
7470 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7471 (rs6000_cmodel): New Enum and EnumValue entries.
7472 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7473 global_options_set instead of rs6000_explicit_options.
7474 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7475 (mtls-size=): Use Enum and Var.
7476 (rs6000_tls_size): New Enum and EnumValue entries.
7478 2011-05-05 Michael Matz <matz@suse.de>
7480 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7481 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7482 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7483 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7484 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7485 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7486 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7487 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7488 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7489 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7490 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7491 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7492 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7493 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7494 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7495 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7497 2011-05-05 Richard Guenther <rguenther@suse.de>
7499 * expmed.c (expand_variable_shift): Rename to ...
7500 (expand_shift_1): ... this. Take an expanded shift amount.
7501 For rotates recurse directly not building trees for the shift amount.
7502 (expand_variable_shift): Wrap around expand_shift_1.
7503 (expand_shift): Adjust.
7505 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7507 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7509 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7511 * tree.h (get_pending_sizes): Remove prototype.
7512 (put_pending_size): Likewise.
7513 (put_pending_sizes): Likewise.
7514 * stor-layout.c (pending_sizes): Delete.
7515 (get_pending_sizes): Likewise.
7516 (put_pending_size): Likewise.
7517 (put_pending_sizes): Likewise.
7518 (variable_size): Do not call put_pending_size and tidy up.
7519 * function.h (struct function): Remove dont_save_pending_sizes_p.
7520 * lto-streamer-in.c (input_function): Do not stream it.
7521 * lto-streamer-out.c (output_function): Likewise.
7522 * tree-inline.c (initialize_cfun): Do not copy it.
7523 * c-decl.c (store_parm_decls): Do not set it.
7524 * omp-low.c (create_task_copyfn): Likewise.
7525 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7527 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
7529 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7531 (*movdf_internal): Ditto.
7532 (*movdf_internal_nointeger): Ditto.
7533 (*movsf_internal): Ditto.
7535 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7537 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7538 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7539 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7540 (c_variable_size): Remove.
7541 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7542 call put_pending_sizes.
7543 (get_parm_info): Add parameter expr. Use it to set
7544 arg_info->pending_sizes.
7545 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7547 * c-parser.c (c_parser_parms_declarator): Update call to
7548 c_parser_parms_list_declarator.
7549 (c_parser_parms_list_declarator): Take parameter expr. Update
7550 call to push_parm_decl. Update recursive call. Don't call
7551 get_pending_sizes. Update calls to get_parm_info.
7552 (c_parser_objc_method_definition): Update calls to
7553 c_parser_objc_method_decl and objc_start_method_definition.
7554 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
7555 (c_parser_objc_method_decl): Add parameter expr. Update call to
7557 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
7558 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7559 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7561 2011-05-05 Michael Hope <michael.hope@linaro.org>
7564 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7567 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7569 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7570 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7571 (spu_output_mi_thunk): New function.
7573 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7576 targetm.asm_out.print_operand.
7577 * config/sol2.c: Include target.h.
7579 2011-05-04 Jan Hubicka <jh@suse.cz>
7581 * ipa-inline.c (reset_edge_caches): New function.
7582 (update_caller_keys): Add check_inlinablity_for; do not
7583 reset edge caches; remove now unnecesary loop.
7584 (update_callee_keys): Add comments; reset node_growth_cache of callee.
7585 (update_all_callee_keys): Likewise.
7586 (inline_small_functions): Sanity check cache; update code
7589 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7591 PR rtl-optimization/47612
7592 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7593 as the last insn of the sequence to be moved.
7595 2011-05-04 Tobias Burnus <burnus@net-b.de>
7598 * doc/invoke.texi (Ofast): Document that it
7599 enables Fortran's -fno-protect-parens.
7601 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7603 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7605 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7607 * stor-layout.c (variable_size): Do not issue errors.
7609 2011-05-04 Richard Guenther <rguenther@suse.de>
7611 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7612 for array-ref indices.
7613 (tree_coverage_counter_addr): Likewise.
7614 (build_fn_info_type): Use size_int for index types.
7615 (build_gcov_info): Likewise.
7617 2011-05-04 Richard Guenther <rguenther@suse.de>
7619 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7621 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7622 for constructor indices.
7623 (push_init_level): Likewise.
7625 2011-05-04 Richard Guenther <rguenther@suse.de>
7627 * explow.c (promote_mode): Move variable declarations before code.
7629 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7631 * tree.h (build_function_type_array): Declare.
7632 (build_varargs_function_type_array): Declare.
7633 (build_function_type_vec, build_varargs_function_type_vec): Define.
7634 * tree.c (build_function_type_array_1): New function.
7635 (build_function_type_array): New function.
7636 (build_varargs_function_type_array): New function.
7638 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7640 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7641 before setting STMT_VINFO_TYPE.
7643 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7645 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7646 instead of spu_pass_by_reference.
7648 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7650 * calls.c (emit_library_call_value_1): Invoke
7651 promote_function_mode hook on libcall arguments.
7652 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7653 argument being NULL.
7654 * targhooks.c (default_promote_function_mode): Lisewise.
7655 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7656 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7658 * doc/tm.texi: Document that TYPE argument might be NULL.
7660 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7662 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7664 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7667 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7669 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7671 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7672 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7674 * mips-tfile.c: ... here.
7675 Don't include coretypes.h, tm.h, filenames.h.
7676 (saber_stop): Remove definition and all calls.
7677 [__SABER__]: Remove.
7678 (__LINE__): Remove default.
7679 (Size_t, Ptrdiff_t): Remove definitions.
7680 Replace by size_t, ptrdiff_t.
7681 [!MIPS_DEBUGGING_INFO]: Remove.
7682 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7683 (progname): Add const.
7685 Replace all uses by static.
7686 (ALIGN_SYMTABLE_OFFSET): Remove default.
7687 * mips-tdump.c: Don't include coretypes.h, tm.h.
7688 Remove !MIPS_IS_STAB guard.
7689 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7690 $(TM_H), filenames.h dependencies.
7691 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7693 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7696 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7697 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7699 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7702 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7703 account and save/restore RETS.
7704 (PROFILE_BEFORE_PROLOGUE): Define.
7705 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7706 the push insn to use predecrement.
7708 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7711 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7713 2011-05-04 Nick Clifton <nickc@redhat.com>
7715 * config/mn10300/mn10300.c: Include cfgloop.h.
7717 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7718 Lcc or a FLcc insn into the instruction stream.
7719 (mn10300_block_contains_call): New function. Returns true if the
7720 given basic block contains a CALL insn.
7721 (mn10300_loop_contains_call_insn): New function. Returns true if
7722 the given loop contains a CALL insn.
7723 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7724 to use the SETLB and Lcc or FLcc insns.
7725 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7726 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7727 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7728 disable the SETLB optimization.
7729 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7730 __SETLB__ or __NO_SETLB__.
7731 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7732 (movsf_internal): Handle MDR register.
7733 (cmpsi): Make visible.
7734 (setlb): New pattern.
7736 (FLcc): New pattern.
7738 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7741 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7742 for reg<->xmm moves.
7743 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7744 (vec_concatv2di_rex64_sse): Ditto.
7745 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7746 (*vec_extractv2di_1_rex64): Ditto.
7749 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7751 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7753 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7755 2011-05-04 Richard Guenther <rguenther@suse.de>
7757 * tree.h (int_const_binop): Remove notrunc argument.
7758 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7759 create integer constants that are properly truncated.
7760 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7761 (const_binop): Remove zero notrunc argument to int_const_binop.
7762 (size_binop_loc): Likewise.
7763 (fold_div_compare): Likewise.
7764 (maybe_canonicalize_comparison_1): Likewise.
7765 (fold_comparison): Likewise.
7766 (fold_binary_loc): Likewise.
7767 (multiple_of_p): Likewise.
7768 * expr.c (store_constructor): Likewise.
7769 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7770 (maybe_fold_stmt_addition): Likewise.
7771 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7772 * stor-layout.c (layout_type): Likewise.
7773 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7774 * tree-sra.c (build_ref_for_offset): Likewise.
7775 (build_user_friendly_ref_for_offset): Likewise.
7776 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7777 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7778 * tree-ssa-loop-niter.c (inverse): Likewise.
7779 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7780 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7781 * tree-switch-conversion.c (check_range): Likewise.
7782 (build_constructors): Likewise.
7783 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7784 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7785 (extract_range_from_assert): Likewise.
7786 (vrp_int_const_binop): Likewise.
7787 (extract_range_from_binary_expr): Likewise.
7788 (extract_range_from_unary_expr): Likewise.
7789 (check_array_ref): Likewise.
7790 (find_case_label_range): Likewise.
7791 (simplify_div_or_mod_using_ranges): Likewise.
7792 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7793 comparing case labels for merging.
7795 2011-05-03 Mark Wielaard <mjw@redhat.com>
7797 * dwarf2out.c (debug_str_hash_forced): Removed.
7798 (gen_label_for_indirect_string): Removed.
7799 (get_debug_string_label): Removed.
7800 (AT_string_form): Generate label directly.
7801 (output_indirect_string): Test indirect_string_node for
7802 DW_FORM_strp instead of checking label and refcount.
7803 (prune_indirect_string): Removed.
7804 (prune_unused_types): Don't check debug_str_hash_forced or
7805 call prune_indirect_string.
7807 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7810 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7812 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7816 * combine.c (try_combine): Skip debug insns at m_split tests.
7818 2011-04-26 Mark Wielaard <mjw@redhat.com>
7821 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7822 when info_section_emitted.
7824 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7826 * config/mips/mips-opts.h: New.
7827 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7829 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7830 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7831 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7833 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7835 (mips_abi, mips_code_readable): Don't declare.
7836 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7837 (mabi=): Use Enum and Var.
7838 (mips_abi): New Enum and EnumValue entries.
7839 (mcode-readable=): Use Enum and Var.
7840 (mips_code_readable_setting): New Enum and EnumValue entries.
7841 (mr10k-cache-barrier=): Use Enum and Var.
7842 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7844 2011-05-03 Jan Hubicka <jh@suse.cz>
7846 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7847 replace hash by pointer map.
7848 (cgraph_node_set_element_def, cgraph_node_set_element,
7849 const_cgraph_node_set_element, varpool_node_set_element_def,
7850 varpool_node_set_element, const_varpool_node_set_element): Remove.
7851 (free_cgraph_node_set, free_varpool_node_set): New function.
7852 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7853 * tree-emutls.c: Free varpool node set.
7854 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7855 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7856 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7857 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7858 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7859 Move here from ipa.c; implement using pointer_map
7860 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7861 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7862 debug_cgraph_node_set, varpool_node_set_new,
7863 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7864 dump_varpool_node_set, debug_varpool_node_set):
7865 Move to ipa-uitls.c.
7866 * passes.c (ipa_write_summaries): Update.
7868 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7870 From Mike Frysinger:
7871 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7872 bf542/bf544/bf547/bf548/bf549.
7874 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7876 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7878 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7881 * config/bfin/bfin.md (MOVCC): New mode_macro.
7882 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7883 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7884 comments from generated assembly.
7886 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7889 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7890 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7891 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7892 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7893 * config/bfin/lib1funcs.asm (___muldi3): New function.
7895 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7897 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7898 build_function_type_list instead of build_function_type.
7899 Rearrange initialization of `args' to do so.
7901 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7903 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7904 instead of build_function_type.
7906 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7908 * config/rs6000/rs6000.c (spe_init_builtins): Call
7909 build_function_type_list instead of build_function_type.
7910 (paired_init_builtins, altivec_init_builtins): Likewise.
7911 (builtin_function_type): Likewise.
7913 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7915 * config/sh/sh.c (sh_media_init_builtins): Call
7916 build_function_type_list instead of build_function_type.
7918 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7920 * config/sparc/sparc.c (sparc_file_end): Call
7921 build_function_type_list instead of build_function_type.
7923 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7925 * config/alpha/alpha.c (alpha_init_builtins): Call
7926 build_function_type_list instead of build_function_type.
7928 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7930 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7931 build_function_type_list instead of build_function_type.
7933 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7935 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7936 build_function_type_list instead of build_function_type.
7937 Delete `endlink' variable.
7939 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7941 * config/avr/avr.c (avr_init_builtins): Call
7942 build_function_type_list instead of build_function_type.
7944 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7946 * config/picochip/picochip.c (picochip_init_builtins): Call
7947 build_function_type_list instead of build_function_type.
7948 Delete `endlink' variable.
7950 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7952 * config/bfin/bfin.c (bfin_init_builtins): Call
7953 build_function_type_list instead of build_function_type.
7955 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7958 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7959 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7961 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7964 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7965 libbffastfp overrides libgcc when -mfast-fp.
7967 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7969 Originally from Bernd Schmidt
7970 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7971 * config/bfin/bfin.c (override_options): Test it and error if
7974 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7976 Originally From Bernd Schmidt
7977 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7980 2011-05-03 Jeff Law <law@redhat.com>
7982 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7983 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7984 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7985 than accessing AUX field directly. Free the AUX field before
7987 (thread_block, thread_through_loop_header): Likewise.
7988 (thread_single_edge, mark_threaded_blocks): Likewise.
7989 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7990 (register_jump_thread): Do not attempt to thread to a NULL edge.
7992 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7994 * function.c (init_function_start): Call decide_function_section.
7995 * varasm.c (decide_function_section): New function.
7996 (assemble_start_function): When not using
7997 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7998 or first_function_block_is_cold.
7999 * rtl.h (decide_function_section): Declare.
8001 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
8002 Jakub Jelinek <jakub@redhat.com>
8005 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
8006 only succeed if req_mode is the same as set_mode.
8008 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8010 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
8011 * genemit.c (gen_exp): Handle RETURN.
8012 * emit-rtl.c (verify_rtx_sharing): Likewise.
8013 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
8014 * rtl.c (copy_rtx): RETURN is shared.
8015 * rtl.h (enum global_rtl_index): Add GR_RETURN.
8017 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
8018 * config/s390/s390.c (s390_emit_epilogue): Likewise.
8019 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
8020 * config/cris/cris.c (cris_expand_return): Likewise.
8021 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
8022 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
8023 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
8024 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
8025 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
8027 * config/v850/v850.c (expand_epilogue): Likewise.
8028 * config/bfin/bfin.c (bfin_expand_call): Likewise.
8029 * config/arm/arm.md (epilogue): Likewise.
8030 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
8031 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
8032 variable to ret_reg.
8034 2011-05-03 Richard Guenther <rguenther@suse.de>
8037 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
8038 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
8039 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8041 2011-05-03 Richard Guenther <rguenther@suse.de>
8043 * c-decl.c (grokdeclarator): Instead of looking at
8044 TREE_OVERFLOW check if the constant fits in the index type.
8046 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8048 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
8049 (vec_store_lanes<mode><mode>): Likewise.
8051 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8053 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
8054 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
8055 convert_optab_index values.
8056 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
8057 * genopinit.c (optabs): Initialize the new optabs.
8058 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
8059 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
8060 (expand_STORE_LANES): New functions.
8061 * tree.h (build_array_type_nelts): Declare.
8062 * tree.c (build_array_type_nelts): New function.
8063 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
8064 (vect_model_load_cost): Likewise.
8065 (vect_store_lanes_supported, vect_load_lanes_supported)
8066 (vect_record_strided_load_vectors): Declare.
8067 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
8068 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
8069 (vect_transform_strided_load): Split out statement recording into...
8070 (vect_record_strided_load_vectors): ...this new function.
8071 * tree-vect-stmts.c (create_vector_array, read_vector_array)
8072 (write_vector_array, create_array_ref): New functions.
8073 (vect_model_store_cost): Add store_lanes_p argument.
8074 (vect_model_load_cost): Add load_lanes_p argument.
8075 (vectorizable_store): Try to use store-lanes functions for
8077 (vectorizable_load): Likewise load-lanes and loads.
8078 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
8079 to vect_model_store_cost.
8080 (vect_build_slp_tree): Likewise vect_model_load_cost.
8082 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8084 * hooks.h (hook_bool_mode_uhwi_false): Declare.
8085 * hooks.c (hook_bool_mode_uhwi_false): New function.
8086 * target.def (array_mode_supported_p): New hook.
8087 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
8088 * doc/tm.texi: Regenerate.
8089 * stor-layout.c (mode_for_array): New function.
8090 (layout_type): Use it.
8091 * config/arm/arm.c (arm_array_mode_supported_p): New function.
8092 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
8094 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
8097 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
8098 for -fstack-check if the size to allocate is negative.
8100 2011-05-02 Lawrence Crowl <crowl@google.com>
8102 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
8103 (timevar_cond_start): New for starting a timer only when it is not
8105 (timevar_cond_stop): New for stopping a timer when it was not already
8108 * timevar.c (timevar_stop): Enable start/stop timers to start again.
8109 (timevar_cond_start): New as above.
8110 (timevar_cond_stop): New as above.
8112 * timevar.def: Add start/stop timers for compiler phases,
8113 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
8114 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
8115 and TV_PHASE_FINALIZE.
8116 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
8117 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
8118 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
8119 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
8120 Make unused TV_OVERLOAD into a start/stop timer.
8122 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
8123 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
8124 to indicate that they are start/stop timers.
8126 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
8127 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
8128 Move initialization to do_compile.
8129 (do_compile): Add initialization from above.
8130 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
8132 * c-decl.c (c_write_global_declarations): Add start/stop of
8133 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
8135 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
8136 or TV_PARSE_INLINE, as appropriate.
8137 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
8138 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
8140 2011-05-02 Jason Merrill <jason@redhat.com>
8143 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
8145 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
8148 * c-decl.c (finish_decl): Only create a composite if the types are
8151 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8153 * config/fr30/fr30-protos.h (Mmode): Don't define.
8154 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
8155 definition where used.
8156 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
8157 define. Expand definitions where used.
8158 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
8159 Expand definitions where used.
8160 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
8161 rx_function_arg, rx_function_arg_advance,
8162 rx_function_arg_boundary): Expand definitions of those macros.
8163 * config/v850/v850-protos.h (Mmode): Don't define. Expand
8164 definition where used.
8166 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8168 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8170 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8171 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
8172 with *movv2sf_internal_rex64_avx.
8173 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8174 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8175 Use %v prefix in insn mnemonic to handle TARGET_AVX.
8176 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
8177 "vex" in "prefix" attribute calculation.
8178 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
8180 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
8183 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8184 inputs match the output.
8186 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
8189 * config/m68k/m68k.c (m68k_expand_prologue): Set
8190 current_function_static_stack_size.
8192 2011-05-02 Jan Hubicka <jh@suse.cz>
8194 * lto-streamer.c (lto_streamer_cache_insert_1,
8195 lto_streamer_cache_lookup, lto_streamer_cache_create,
8196 lto_streamer_cache_delete): Use pointer map instead of hashtable.
8197 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8199 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8201 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8202 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8203 config/m68k/t-opts: New files.
8204 * config/m68k/m68k-tables.opt: New file (generated).
8205 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8206 extra_options and m68k/t-opts to tmake_file.
8207 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8208 (all_isas): Initialize using m68k-isas.def.
8209 (all_microarchs): Initialize using m68k-microarchs.def.
8210 (m68k_find_selection): Remove.
8211 (m68k_handle_option): Don't assert that global structures are in
8212 use. Use error_at. Access variables via opts pointer. Don't
8213 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
8214 directly for -m68020-40 and -m68020-60.
8215 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8216 m68k_tune_entry here.
8217 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8219 (m68k_library_id_string): Remove declaration.
8220 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
8221 (m68k_library_id_string): New Variable.
8222 (march=, mcpu=, mtune=): Use Enum and Var.
8224 2011-05-02 Richard Guenther <rguenther@suse.de>
8226 * varasm.c (output_constructor_regular_field): Compute zero-based
8227 index with double-ints. Make sure to ICE instead of producing
8229 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8230 in asserts. Properly use a signed type.
8232 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8234 * config/i386/sse.md (V): New mode iterator.
8235 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8237 (V_256): Rename from AVX256MODE.
8238 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8239 condition to all users.
8241 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8242 condition to all users.
8243 (VF_128): Make V4SF mode unconditional.
8244 (VF_256): Rename from AVX256MODEF2P.
8245 (VI4F_128): Rename from SSEMODE4S.
8246 (VI8F_128): Rename from SSEMODE2D.
8247 (VI4F_256): Rename from AVX256MODE8P.
8248 (VI8F_256): Rename from AVX256MODE4P.
8249 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8250 (ssescalarmodesuffix): Remove SF and DF modes.
8251 (SSEMODE124): Remove.
8252 (SSEMODE1248): Ditto.
8253 (SSEMODEF2P): Ditto.
8254 (AVXMODEF2P): Ditto.
8255 (AVXMODEFDP): Ditto.
8256 (AVXMODEFSP): Ditto.
8257 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8259 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8261 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8262 xop_pcmov_<mode>256. Use V mode iterator.
8264 Adjust RTX patterns globally for renamed mode attributes.
8266 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8268 * haifa-sched.c (sched_emit_insn): Emit insn before first
8269 non-scheduled insn. Inform back-end about new insn. Add
8270 new insn to scheduled_insns list.
8272 2011-05-02 Richard Guenther <rguenther@suse.de>
8274 PR tree-optimization/48822
8275 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8276 (process_scc): Indicate which iteration we start.
8278 2011-05-02 Jan Hubicka <jh@suse.cz>
8280 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8281 (lto_section_overrun): New.
8282 * lto-section-out.c (append_block): Rename to ...
8283 (lto_append_block): ... this one; export.
8284 (lto_output_1_stream): Move lto lto-streamer.h
8285 (lto_output_data_stream): Update.
8286 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8287 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8290 2011-05-02 Richard Guenther <rguenther@suse.de>
8292 * tree.c (tree_code_counts): New global array.
8293 (record_node_allocation_statistics): Count individual tree codes.
8294 (dump_tree_statistics): Dump individual code stats.
8296 2011-05-01 Jan Hubicka <jh@suse.cz>
8298 * ipa-inline.c (caller_growth_limits): Fix thinko when
8299 looking for largest stack frame.
8300 * ipa-inline.h (dump_inline_summary): Declare.
8301 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8303 (dump_inline_summary): Export.
8304 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8306 2011-05-01 Anatoly Sokolov <aesok@post.ru>
8308 * reginfo.c (memory_move_cost): Change rclass argument type form
8309 'enum reg_class' to reg_class_t.
8310 * reload.h (memory_move_cost): Update prototype.
8311 * postreload.c reload_cse_simplify_set): Change type dclass var to
8313 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8315 (ira_allocate_and_set_costs): Change aclass argument type form
8316 'enum reg_class' to reg_class_t.
8317 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8318 Change aclass argument type to reg_class_t.
8319 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8321 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8322 memory_move_cost call.
8324 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8325 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8326 Change type tmp var to reg_class_t.
8328 2011-04-30 Jan Hubicka <jh@suse.cz>
8330 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8331 inlining into function with flatten attribute.
8332 (want_inline_small_function_p): Be more realistic about inlining
8333 cold calls where callee size grows.
8335 2011-04-30 Jan Hubicka <jh@suse.cz>
8337 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8340 2011-04-30 Anatoly Sokolov <aesok@post.ru>
8342 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8343 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8344 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8345 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8346 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8347 (print_operand): Rename to...
8348 (sparc_print_operand): ...this. Make static. Adjust
8349 sparc_print_operand function call.
8350 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8353 2011-04-30 Jan Hubicka <jh@suse.cz>
8356 * ipa-inline.c (early_inliner): Disable when doing late
8357 addition of function.
8359 2011-04-30 Jakub Jelinek <jakub@redhat.com>
8361 * dwarf2out.c (get_address_mode): New inline.
8362 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8363 if not dwarf_strict emit
8364 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8365 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8366 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8367 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8368 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8369 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8370 mem_loc_descriptor callers.
8371 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8372 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8373 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8374 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8375 (base_types): New variable.
8376 (get_base_type_offset, calc_base_type_die_sizes,
8377 base_type_for_mode, mark_base_types, base_type_cmp,
8378 move_marked_base_types): New functions.
8379 (calc_die_sizes): Assert that die_offset is 0 or equal to
8381 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8382 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8383 callers. If not dwarf_strict, call mem_loc_descriptor even for
8384 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8385 (gen_subprogram_die): Don't give up on call site parameters
8386 with non-integral or large integral modes. Adjust
8387 mem_loc_descriptor callers.
8388 (prune_unused_types): Call prune_unused_types_mark on base_types
8390 (resolve_addr): Call mark_base_types.
8391 (dwarf2out_finish): Call move_marked_base_types.
8393 PR tree-optimization/48809
8394 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8396 (gen_inbound_check): Don't compute index_expr - range_min in utype
8397 again, instead reuse SSA_NAME initialized in build_arrays.
8398 Remove two useless gsi_for_stmt calls.
8400 2011-04-29 Jeff Law <law@redhat.com>
8402 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8404 2011-04-29 Martin Jambor <mjambor@suse.cz>
8406 * cgraph.h (cgraph_postorder): Remove declaration.
8407 * ipa-utils.h (ipa_free_postorder_info): Declare.
8408 (ipa_reverse_postorder): Likewise.
8409 * cgraphunit.c: Include ipa-utils.h.
8410 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8411 * ipa-inline.c: Include ipa-utils.h.
8412 (ipa_inline): Update call to ipa_reverse_postorder.
8413 * ipa-pure-const.c (propagate_pure_const): Update call to
8414 ipa_reduced_postorder and ipa_print_order. Call
8415 ipa_free_postorder_info to clean up.
8416 (propagate_nothrow): Likewise.
8417 * ipa-reference.c (propagate): Removed a useless call to
8418 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8419 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8420 * ipa.c: Include ipa-utils.h.
8421 (ipa_profile): Update call to ipa_reverse_postorder.
8422 (cgraph_postorder): Moved to...
8423 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8424 (ipa_utils_print_order): Renamed to ipa_print_order.
8425 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8427 (ipa_free_postorder_info): New function.
8428 * passes.c: Include ipa-utils.h.
8429 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8430 (ipa_write_summaries): Likewise.
8431 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8432 (cgraphunit.o): Likewise.
8434 (ipa-inline.o): Likewise.
8436 2011-04-29 Jan Hubicka <jh@suse.cz>
8438 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8439 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8440 * ipa-inline.h (clause_t): Turn into unsigned int.
8441 * ipa-inline-analysis.c (add_clause): Do more simplification.
8442 (and_predicates): Shortcut more cases.
8443 (predicates_equal_p): Move forward; check that clauses are properly
8445 (or_predicates): Shortcut more cases.
8446 (edge_execution_predicate): Rewrite as...
8447 (set_cond_stmt_execution_predicate): ... this function; handle
8448 __builtin_constant_p.
8449 (set_switch_stmt_execution_predicate): New .
8450 (compute_bb_predicates): New.
8451 (will_be_nonconstant_predicate): Update TODO.
8452 (estimate_function_body_sizes): Use compute_bb_predicates
8453 and free them later, always try to estimate if stmt is constant.
8454 (estimate_time_after_inlining, estimate_size_after_inlining):
8455 Gracefully handle optimized out edges.
8456 (read_predicate): Fix off by one error.
8458 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8460 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8462 2011-04-27 Xinliang David Li <davidxl@google.com>
8464 * tree-profile.c (init_ic_make_global_vars): Set
8465 tls attribute on ic vars.
8466 * coverage.c (coverage_end_function): Initialize
8467 function_list with zero.
8469 2011-04-29 Richard Guenther <rguenther@suse.de>
8471 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8472 for the type of the result.
8473 (fold_builtin_isascii): Likewise.
8474 (fold_builtin_toascii): Use integer_type_node where appropriate.
8475 (fold_builtin_logb): Likewise.
8476 (fold_builtin_frexp): Likewise.
8477 (fold_builtin_strstr): Likewise.
8478 (fold_builtin_strpbrk): Likewise.
8479 (fold_builtin_fputs): Likewise.
8480 (fold_builtin_sprintf): Likewise.
8481 (fold_builtin_snprintf): Likewise.
8482 (fold_builtin_printf): Likewise.
8483 (do_mpfr_remquo): Use a proper type for the assigned constant.
8484 (do_mpfr_lgamma_r): Likewise.
8485 * dwarf2out.c (resolve_one_addr): Use size_int.
8486 * except.c (init_eh): Likewise.
8487 (assign_filter_values): Use integer_type_node for filter values.
8488 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8490 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8491 for EH region numbers.
8492 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8493 for the shift amount.
8495 2011-04-29 Richard Guenther <rguenther@suse.de>
8497 * expr.h (expand_shift): Rename to ...
8498 (expand_variable_shift): ... this.
8499 (expand_shift): Take a constant shift amount.
8500 * expmed.c (expand_shift): Rename to ...
8501 (expand_variable_shift): ... this.
8502 (expand_shift): New wrapper around expand_variable_shift.
8503 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8504 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8505 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8506 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8507 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8508 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8509 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8510 emit_store_flag_1, emit_store_flag): Likewise.
8511 * builtins.c (expand_builtin_signbit): Likewise.
8512 * calls.c (load_register_parameters): Likewise.
8513 * function.c (assign_parm_setup_block): Likewise.
8514 * lower-subreg.c (resolve_shift_zext): Likewise.
8515 * optabs.c (widen_bswap, expand_abs_nojump,
8516 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8517 * spu/spu.c (spu_expand_extv): Likewise.
8518 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8520 2011-04-29 Richard Guenther <rguenther@suse.de>
8522 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8523 for the remapped region number.
8524 * predict.c (build_predict_expr): Use integer_type_node for the
8526 * fold-const.c (fold_binary_loc): Use integer_type_node for
8527 the shift amount. Use a proper type for the PLUS_EXPR operand.
8529 2011-04-29 Michael Matz <matz@suse.de>
8531 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8532 other trees that just builtins.
8533 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8535 2011-04-29 Richard Guenther <rguenther@suse.de>
8537 * tree-nested.c (get_trampoline_type): Use size_int.
8538 (get_nl_goto_field): Likewise.
8539 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8541 (lower_eh_constructs_2): Likewise.
8542 (lower_resx): Likewise.
8543 (lower_eh_dispatch): Likewise.
8544 * tree-mudflap.c (mf_build_string): Use size_int.
8545 (mudflap_register_call): Use integer_type_node for the flag.
8546 (mudflap_enqueue_constant): Use size_int.
8547 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8548 instead of rebuilding it.
8550 2011-04-29 Richard Guenther <rguenther@suse.de>
8552 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8553 Handle OBJ_TYPE_REF.
8554 (find_func_aliases_for_call): Use it more consistently.
8556 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
8558 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8559 (rank_for_schedule): Use it.
8560 (schedule_block): Set it.
8562 2011-04-28 David Li <davidxl@google.com>
8564 * tree.c (crc32_string): Use crc32_byte.
8565 (crc32_byte): New function.
8566 * tree.h (crc32_byte): New function.
8567 * gcov.c (read_graph_file): Handle new cfg_cksum.
8568 (read_count_file): Ditto.
8569 * profile.c (instrument_values): Ditto.
8570 (get_exec_counts): Ditto.
8571 (read_profile_edge_counts): Ditto.
8572 (compute_branch_probabilities): Ditto.
8573 (compute_value_histograms): Ditto.
8574 (branch_prob): Ditto.
8575 (end_branch_prob): Ditto.
8576 * coverage.c (read_counts_file): Ditto.
8577 (get_coverage_counts): Ditto.
8578 (tree_coverage_counter_addr): Ditto.
8579 (coverage_checksum_string): Ditto.
8580 (coverage_begin_output): Ditto.
8581 (coverage_end_function): Ditto.
8582 (build_fn_info_type): Ditto.
8583 (build_fn_info_value): Ditto.
8584 * libgcov.c (gcov_exit): Ditto.
8585 * gcov-dump.c (tag_function): Ditto.
8586 (compute_checksum): Remove.
8588 2011-04-29 Alan Modra <amodra@gmail.com>
8590 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8591 unspec plus offset. Tidy macho code.
8593 2011-04-29 Martin Jambor <mjambor@suse.cz>
8595 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8596 node instead of a decl. Update all callers.
8597 * cgraph.h: Update declaration.
8599 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
8601 PR tree-optimization/48765
8602 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8603 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8604 to indicate if loop aware SLP is being used. Scan the statements
8605 and update the vectorization factor according to the type of
8606 vectorization before statement analysis.
8607 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8608 pass it to vect_analyze_loop_operations.
8609 (vectorizable_reduction): Set number of copies to 1 in case of pure
8611 * tree-vect-stmts.c (vectorizable_conversion,
8612 vectorizable_assignment, vectorizable_shift,
8613 vectorizable_operation, vectorizable_type_demotion,
8614 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8616 (vectorizable_condition): Move the check that it is not SLP
8617 vectorization before the number of copies check.
8618 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8619 to vectorize the loop using SLP.
8621 2011-04-28 Jakub Jelinek <jakub@redhat.com>
8624 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8627 2011-04-28 Joseph Myers <joseph@codesourcery.com>
8629 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8630 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8631 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8632 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8633 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8635 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
8636 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8637 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8638 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8639 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8640 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8642 * config/i386/linux.h (REG_NAME): Don't define.
8643 * config/i386/linux64.h (REG_NAME): Don't define.
8644 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8645 Undefine before defining.
8647 2011-04-28 Jan Hubicka <jh@suse.cz>
8649 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8650 nonconstant_names array.
8651 (estimate_function_body_sizes): Build nonconstant_names array; handle
8652 BUILT_IN_CONSTANT_P.
8654 2011-04-28 Richard Guenther <rguenther@suse.de>
8658 2011-04-28 Richard Guenther <rguenther@suse.de>
8660 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8661 as late as possible.
8663 2011-04-28 Richard Guenther <rguenther@suse.de>
8665 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8666 (debug_constraint): Do it here.
8667 (dump_constraints): And here.
8668 (rewrite_constraints): And here.
8669 (dump_constraint_edge): Remove.
8670 (dump_constraint_graph): Rewrite to produce DOT output.
8671 (solve_constraints): Build succ graph as late as possible.
8672 Dump constraint graphs before and after solving.
8674 2011-04-28 Richard Guenther <rguenther@suse.de>
8676 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8677 New function split out from ...
8678 (find_func_aliases): ... here. Call it.
8679 (find_func_aliases_for_call): Likewise.
8681 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8683 * internal-fn.h (internal_fn_name_array): Declare.
8684 (internal_fn_flags_array): Likewise.
8686 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8688 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8689 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8691 (ssemodefsuffix): Remove.
8692 (ssevecmodesuffix): New mode attribute.
8693 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8694 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8695 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8696 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8697 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8698 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8699 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8700 ssemodesuffix mode attribute.
8701 (float splitters): Use ssevecmodesuffix mode attribute.
8702 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8703 (sseinsmode): Rename from avxvecmode.
8704 (avxsizesuffix): Rename from avxmodesuffix.
8705 (sseintvecmode): Rename from avxpermvecmode.
8706 (ssedoublevecmode): Rename from ssedoublesizemode.
8707 (ssehalfvecmode): Rename from avxhalfvecmode.
8708 (ssescalarmode): Rename from avxscalarmode.
8709 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8710 templates for ssemodesuffix mode attribute.
8711 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8714 Adjust RTX patterns globally for renamed mode attributes.
8716 2011-04-27 Jan Hubcika <jh@suse.cz>
8718 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8719 * ipa-inline-analysis.c: Include alloc-pool.h.
8720 (edge_predicate_pool): New.
8721 (trye_predicate_p): New function
8722 (false_predicate_p): New function.
8723 (add_clause): Sanity check that false clauses are "optimized";
8724 never add clauses to predicate that is already known to be false.
8725 (and_predicate): Use flase_predicate_p.
8726 (evaulate_predicate): Rename to ...
8727 (evaluate_predicate): ... this one; update all callers; assert
8728 that false is not listed among possible truths.
8729 (dump_predicate): Use true_predicate_p.
8730 (account_size_time): Use false_predicate_p.
8731 (evaulate_conditions_for_edge): Rename to ...
8732 (evaluate_conditions_for_edge) ... this one.
8733 (edge_set_predicate): New function.
8734 (inline_edge_duplication_hook): Duplicate edge predicates.
8735 (inline_edge_removal_hook): Free edge predicates.
8736 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8737 (dump_inline_summary): Update.
8738 (estimate_function_body_sizes): Set edge predicates.
8739 (estimate_calls_size_and_time): Handle predicates.
8740 (estimate_callee_size_and_time): Update.
8741 (remap_predicate): Add toplev_predicate; update comment.
8742 (remap_edge_predicates): New function.
8743 (inline_merge_summary): Compute toplev predicate; update.
8744 (read_predicate): New function.
8745 (read_inline_edge_summary): Use it.
8746 (inline_read_section): Likewise.
8747 (write_predicate): New function.
8748 (write_inline_edge_summary): Use it.
8749 (inline_write_summary): Likewise.
8750 (inline_free_summary): Free alloc pool and edge summary vec.
8752 2011-04-27 Richard Guenther <rguenther@suse.de>
8754 * tree-ssa-structalias.c (changed_count): Remove.
8755 (changed): Use a bitmap.
8756 (unify_nodes): Adjust.
8757 (do_sd_constraint): Likewise.
8758 (do_ds_constraint): Likewise.
8759 (do_complex_constraint): Likewise.
8760 (solve_graph): Likewise.
8762 2011-04-27 Jan Hubicka <jh@suse.cz>
8764 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8766 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8768 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8769 (avx_vperm2f128_*_operand): Ditto.
8770 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8771 Use avx_vpermilp_parallel in insn condition.
8772 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8773 Use avx_vperm2f128_parallel in insn condition.
8775 2011-04-27 Richard Guenther <rguenther@suse.de>
8777 * Makefile.in (tree-ssa-structalias.o): Remove
8778 gt-tree-ssa-structalias.h dependency.
8779 (GTFILES): Remove tree-ssa-structalias.c.
8780 * tree.c (allocate_decl_uid): New function.
8781 (make_node_stat): Use it.
8782 (copy_node_stat): Likewise.
8783 * tree.h (allocate_decl_uid): Declare.
8784 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8785 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8786 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8787 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8788 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8789 (struct heapvar_map): Likewise.
8790 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8791 heapvar_insert): Likewise.
8792 (make_heapvar_for): Rename to ...
8793 (make_heapvar): ... this. Simplify.
8794 (fake_var_decl_obstack): New global var.
8795 (build_fake_var_decl): New function.
8796 (make_constraint_from_heapvar): Adjust.
8797 (handle_lhs_call): Likewise.
8798 (create_function_info_for): Likewise.
8799 (intra_create_variable_infos): Likewise.
8800 (init_alias_vars): Allocate fake_var_decl_obstack.
8801 (init_alias_heapvars, delete_alias_heapvars): Remove.
8802 (compute_points_to_sets): Do not call init_alias_heapvars.
8803 (ipa_pta_execute): Likewise.
8804 (delete_points_to_sets): Free fake_var_decl_obstack.
8806 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8808 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8809 (si_from_UTItype, si_to_UTItype): New functions.
8810 (__udivmodti4): Use them to implement type-punning.
8811 * config/spu/multi3.c (union qword_TItype): New data type.
8812 (si_from_TItype, si_to_TItype): New functions.
8813 (__multi3): Use them to implement type-punning.
8815 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8817 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8819 2011-04-27 Jan Hubicka <jh@suse.cz>
8821 * ipa-prop.c (function_insertion_hook_holder): New holder.
8822 (ipa_add_new_function): New function.
8823 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8824 Register/deregister holder.
8826 2011-04-27 Richard Guenther <rguenther@suse.de>
8828 PR tree-optimization/48772
8829 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8831 2011-04-27 Richard Guenther <rguenther@suse.de>
8833 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8834 TARGET_MEM_REF handling.
8836 2011-04-27 Nick Clifton <nickc@redhat.com>
8838 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8839 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8840 (REG_CLASS_NAMES): Likewise.
8841 (REG_CLASS_CONTENTS): Likewise.
8842 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8843 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8844 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8845 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8846 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8847 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8848 duplicate register classes.
8849 (frv_class_likely_spilled_p): Likewise.
8850 (frv_register_move_cost): Likewise.
8852 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8853 end of the regno_reg_class array.
8855 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8858 * c-typeck.c (build_binary_op): Don't wrap arguments if
8859 int_operands is true.
8861 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8864 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8865 targetm.calls.must_pass_in_stack for void type.
8867 2011-04-26 Jan Hubicka <jh@suse.cz>
8869 * cgraphbuild.c (build_cgraph_edges): Update call
8870 of cgraph_create_edge and cgraph_create_indirect_edge.
8871 * cgraph.c (cgraph_create_edge_including_clones,
8872 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8873 cgraph_update_edges_for_call_stmt_node): Do not take nest
8874 argument; do not initialize call_stmt_size/time.
8875 (dump_cgraph_node): Do not dump nest.
8876 (cgraph_clone_edge): Do not take loop_nest argument;
8877 do not propagate it; do not clone call_stmt_size/time.
8878 (cgraph_clone_node): Likewise.
8879 (cgraph_create_virtual_clone): Update.
8880 * cgraph.h (struct cgraph_edge): Remove
8881 call_stmt_size/call_stmt_time/loop_nest.
8882 (cgraph_create_edge, cgraph_create_indirect_edge,
8883 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8885 * tree-emutls.c (gen_emutls_addr): Update.
8886 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8887 loop_nest; handle indirect calls, too.
8888 (clone_inlined_nodes): Do not care about updating inline summaries.
8889 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8890 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8891 stream call_stmt_size/call_stmt_time/loop_nest.
8892 * ipa-inline.c (edge_badness): Update.
8893 (ipa_inline): dump summaries after inlining.
8894 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8896 (inline_edge_summary): New function.
8897 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8898 (inline_edge_removal_hook): Handle edge summaries.
8899 (inline_edge_duplication_hook): New hook.
8900 (inline_summary_alloc): Alloc hooks.
8901 (initialize_growth_caches): Do not register removal hooks.
8902 (free_growth_caches); Do not free removal hook.
8903 (dump_inline_edge_summary): New function.
8904 (dump_inline_summary): Use it.
8905 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8906 (inline_update_callee_summaries): New function.
8907 (inline_merge_summary): Use it.
8908 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8909 (read_inline_edge_summary): New function.
8910 (inline_read_section): Use it.
8911 (write_inline_edge_summary): New function.
8912 (inline_write_summary): Use it.
8913 (inline_free_summary): Free edge new holders.
8914 * tree-inline.c (copy_bb): Update.
8916 2011-04-26 Jason Merrill <jason@redhat.com>
8918 * tree-eh.c (lower_try_finally_switch): Create the label along with
8919 the CASE_LABEL_EXPR.
8921 2011-04-26 David S. Miller <davem@davemloft.net>
8922 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8924 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8925 * configure: Regenerate.
8927 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8930 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8932 (VEC_reduc): New code iterator and splitters for vector reduction.
8933 (VEC_reduc_name): Ditto.
8934 (VEC_reduc_rtx): Ditto.
8935 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8936 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8938 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8939 support for extracting SF on VSX.
8941 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8942 generating xscvspdp.
8943 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8944 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8945 double add, minimum, maximum vector reduction.
8946 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8947 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8948 optimize double vector reduction.
8949 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8951 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8953 * config/fr30/fr30.h (inhibit_libc): Don't define.
8954 * config/m32r/m32r-protos.h: Correct comment.
8955 * config/v850/v850.h (GHS_default_section_names,
8956 GHS_current_section_names): Use tree, not union tree_node *.
8958 2011-04-26 Xinliang David Li <davidxl@google.com>
8960 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8961 * c-family/c-opts.c (c_common_handle_option): Set
8962 warn_maybe_uninitialized.
8963 * opts.c (common_handle_option): Ditto.
8964 * common.opt: New option.
8965 * tree-ssa.c (warn_uninit): Add one more parameter.
8966 (warn_uninitialized_var): Pass warning code.
8967 * tree-flow.h: Interface change.
8969 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8971 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8972 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8973 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8975 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8977 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8978 * config/mips/mips.opt (mmips-tfile): Remove.
8980 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8981 mips-tdump reference to ...
8982 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8983 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8984 reference by Tru64 UNIX.
8986 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8989 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8990 is error_mark_node, set value to NULL.
8992 PR tree-optimization/48734
8993 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8994 if return value from maybe_fold_*_comparsions isn't something
8995 the code is prepared to handle.
8997 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8999 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
9001 (ext_QIreg_nomode_operands): Remove.
9002 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
9006 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
9008 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
9010 2011-04-26 Richard Guenther <rguenther@suse.de>
9012 * c-typeck.c (build_unary_op): Do not expand array-refs via
9013 pointer arithmetic. Only adjust qualifiers for function types.
9015 2011-04-26 Richard Guenther <rguenther@suse.de>
9018 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
9019 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
9020 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
9021 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
9023 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9025 * doc/extend.texi: Document __underlying_type.
9027 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
9029 * config/rs6000/titan.md (automata_option "progress"): Remove.
9031 2011-04-25 Jeff Law <law@redhat.com>
9033 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
9035 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9037 * system.h (ENUM_BITFIELD): Remove.
9039 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
9040 Eric Botcazou <ebotcazou@adacore.com>
9042 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
9043 for STORE_FLAG_VALUE==-1 case.
9045 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
9048 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
9049 LEGITIMATE_PIC_OPERAND_P.
9051 2011-04-24 Jan Hubicka <jh@suse.cz>
9053 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
9055 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
9056 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
9057 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
9058 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
9059 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
9060 Sanity check predicate length.
9061 (remap_predicate): Likewise; sanity check jump functions.
9062 (inline_read_section, inline_write_summary): Sanity check
9065 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9068 * doc/extend.texi (Type Traits): Document __is_standard_layout,
9069 __is_literal_type, and __is_trivial; update throughout about
9070 possibly cv-qualified void types.
9072 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9074 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
9075 testsuite and make it version agnostic.
9077 2011-04-22 Jan Hubicka <jh@suse.cz>
9079 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
9081 2011-04-23 Jakub Jelinek <jakub@redhat.com>
9084 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9085 to VOID_TYPE even around MODIFY_EXPR.
9087 2011-04-22 Mike Stump <mikestump@comcast.net>
9089 * gensupport.c (read_md_rtx): Fix typo in comment.
9090 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
9093 2011-04-22 Jan Hubicka <jh@suse.cz>
9095 * gengtype.c (open_base_files): Add ipa-inline.h include.
9096 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
9097 ipa-prop.c; update all uses.
9098 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
9099 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
9100 merge summary of inlined function into former caller.
9101 * ipa-inline.c (max_benefit): Remove.
9102 (edge_badness): Compensate for removal of benefits.
9103 (update_caller_keys): Use
9104 reset_node_growth_cache/reset_edge_growth_cache.
9105 (update_callee_keys): Likewise.
9106 (update_all_callee_keys): Likewise.
9107 (inline_small_functions): Do not collect max_benefit; do not reset
9108 estimated_growth; call free_growth_caches and initialize_growth_caches.
9109 * ipa-inline.h (struct condition, type clause_t, struct predicate,
9110 struct size_time_entry): New structures.
9111 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
9112 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
9113 and estimated_growth.
9114 (edge_growth_cache_entry): New structure.
9115 (node_growth_cache, edge_growth_cache): New global vars.
9116 (estimate_growth): Turn into inline.
9117 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
9118 initialize_growth_caches, free_growth_caches): Declare.
9119 (estimate_edge_growth): Rewrite.
9120 (estimate_edge_time): Implement as inline cache lookup.
9121 (reset_node_growth_cache, reset_edge_growth_cache): New inline
9123 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
9124 (NUM_CONDITIONS): New constant.
9125 (predicate_conditions): New enum.
9126 (IS_NOT_CONSTANT): New constant.
9127 (edge_removal_hook_holder): New var.
9128 (node_growth_cache, edge_growth_cache): New global vars.
9129 (true_predicate, single_cond_predicate, false_predicate,
9130 not_inlined_predicate, add_condition, add_clause, and_predicates,
9131 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
9132 dump_clause, dump_predicate, account_size_time,
9133 evaulate_conditions_for_edge): New functions.
9134 (inline_summary_alloc): Move to heap.
9135 (inline_node_removal_hook): Clear condition and entry vectors.
9136 (inline_edge_removal_hook): New function.
9137 (initialize_growth_caches, free_growth_caches): New function.
9138 (dump_inline_summary): Update.
9139 (edge_execution_predicate): New function.
9140 (will_be_nonconstant_predicate): New function.
9141 (estimate_function_body_sizes): Compute BB and constantness predicates.
9142 (compute_inline_parameters): Do not clear estimated_growth.
9143 (estimate_edge_size_and_time): New function.
9144 (estimate_calls_size_and_time): New function.
9145 (estimate_callee_size_and_time): New function.
9146 (remap_predicate): New function.
9147 (inline_merge_summary): New function.
9148 (do_estimate_edge_time): New function based on...
9149 (estimate_edge_time): ... this one.
9150 (do_estimate_edge_growth): New function.
9151 (do_estimate_growth): New function based on....
9152 (estimate_growth): ... this one.
9153 (inline_analyze_function): Analyze after deciding on jump functions.
9154 (inline_read_section): New function.
9155 (inline_read_summary): Use it.
9156 (inline_write_summary): Write all the new data.
9157 * ipa-prop.c (ipa_get_param_decl_index): Export.
9158 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
9159 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
9161 (ipa_get_lattice): Move here from ipa-cp.c
9162 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
9163 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
9164 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
9165 cgraph_edge_inlinable_p): Remove.
9166 * cgraphunit.c: Include ipainline.h
9167 (cgraph_process_new_functions): Update call of
9168 compute_inline_parameters.
9170 2011-04-22 Richard Guenther <rguenther@suse.de>
9172 * tree.c (build_int_cst): Properly create canonicalized integer
9174 (build_int_cst_type): Remove scary comments.
9176 2011-04-22 Xinliang David Li <davidxl@google.com>
9178 * toplev.c (process_options): Enable -Werror=coverage-mismatch
9179 by default when -Wno-error is not specified.
9180 * opts-global.c (decode_options): Remove call to
9181 control_warning_options.
9183 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9185 PR tree-optimization/48717
9186 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9187 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9189 2011-04-22 Joseph Myers <joseph@codesourcery.com>
9191 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
9192 definition where used.
9194 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9197 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9198 TREE_STATIC variables declared inside of some OpenMP construct.
9200 2011-04-22 Martin Jambor <mjambor@suse.cz>
9203 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
9205 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
9208 * c-typeck.c (pop_init_level): Do not warn about initializing
9211 2011-04-22 Alan Modra <amodra@gmail.com>
9213 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9214 when returning call_cookie.
9215 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9216 pointers, to functions with no more vector args than the current
9217 function, and some non-local calls for ABI_V4.
9218 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9219 sibcall_nonlocal_aix64): Combine to ..
9220 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
9221 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9222 (sibcall_value_nonlocal_aix<mode>): ..likewise.
9223 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9224 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
9226 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9227 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9228 sibcall_value_symbolic_64): Delete.
9230 2011-04-21 Xinliang David Li <davidxl@google.com>
9232 * cgraph.h: Remove pid.
9233 * cgraph.c: Remove pid.
9234 * value-prof.c (init_node_map): New function.
9235 (del_node_map): New function.
9236 (find_func_by_funcdef_no): New function.
9237 (gimple_ic_transform): Call new function.
9238 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9239 * function.c (get_last_funcdef_no): New function.
9240 * function.h (get_last_funcdef_no): New function.
9241 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9242 to libgcov function.
9243 (tree-profiling): Call node map init and delete function.
9245 2011-04-21 Ian Lance Taylor <iant@google.com>
9247 * godump.c (go_format_type): Use exported Go name for anonymous
9250 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9252 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9253 Call builtin_function_type_list instead of builtin_function_type.
9254 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9256 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9258 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9259 build_function_type_list instead of build_function_type.
9260 Delete variable `endlink'.
9262 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9264 * config/s390/s390.c (s390_init_builtins): Call
9265 build_function_type_list instead of build_function_type.
9267 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9269 * config/ia64/ia64.c (ia64_init_builtins): Call
9270 build_function_type_list instead of builtin_function_type.
9272 2011-04-21 Easwaran Raman <eraman@google.com>
9274 * cfgexpand.c (stack_var): Remove OFFSET...
9275 (add_stack_var): ...and its reference here...
9276 (expand_stack_vars): ...and here.
9277 (stack_var_cmp): Sort by descending order of size.
9278 (partition_stack_vars): Change heuristic.
9279 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9280 (dump_stack_var_partition): Add newline after each partition.
9282 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9283 Jeff Law <law@redhat.com>
9285 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9286 * gengtype.c (matching_file_name_substitute): Likewise.
9288 2011-04-21 Richard Guenther <rguenther@suse.de>
9291 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9293 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9295 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9297 2011-04-21 Richard Guenther <rguenther@suse.de>
9299 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9302 2011-04-21 Richard Guenther <rguenther@suse.de>
9304 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9305 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9306 Use DECL_P, not SSA_VAR_P.
9307 (ptr_derefs_may_alias_p): Likewise.
9308 (ptr_deref_may_alias_ref_p_1): Likewise.
9309 (decl_refs_may_alias_p): Likewise.
9310 (refs_may_alias_p_1): Likewise.
9311 (ref_maybe_used_by_call_p_1): Likewise.
9312 (call_may_clobber_ref_p_1): Likewise.
9313 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9314 are either MEM_REF or TARGET_MEM_REF.
9315 (indirect_refs_may_alias_p): Likewise.
9316 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9317 for MEM_EXPR of indirect calls.
9319 2011-04-21 Tristan Gingold <gingold@adacore.com>
9321 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9322 (dst_file_info_struct): Remove flen field.
9323 (lookup_filename): Remove code that set flen field.
9325 2011-04-21 Tristan Gingold <gingold@adacore.com>
9327 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9329 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
9332 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9333 vec_extract and vec_concat for non-SSE4_1 targets.
9335 2011-04-21 Richard Guenther <rguenther@suse.de>
9337 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9340 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9342 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9344 (FILE): Don't undefine.
9346 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9348 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9350 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9352 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9353 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9354 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9356 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9357 definitions where used.
9358 * config/microblaze/microblaze.h (struct microblaze_args): Use
9359 rtx, not struct rtx_def *.
9360 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9362 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9363 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9364 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9365 not struct rtx_def *.
9366 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9368 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9370 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9372 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9374 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9375 operand_equal_p to compare DR_BASE_ADDRESSes.
9376 (vect_check_interleaving): Likewise.
9378 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9381 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9382 for all Neon struct constants.
9384 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9386 * target.def (legitimate_constant_p): New hook.
9387 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9388 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9389 * doc/tm.texi: Regenerate.
9390 * hooks.h (hook_bool_mode_rtx_true): Declare.
9391 * hooks.c (hook_bool_mode_rtx_true): Define.
9392 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9393 * calls.c (precompute_register_parameters): Replace uses of
9394 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9395 (emit_library_call_value_1): Likewise.
9396 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9397 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9398 * ira-costs.c (scan_one_insn): Likewise.
9399 * recog.c (general_operand, immediate_operand): Likewise.
9400 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9401 * reload1.c (init_eliminable_invariants): Likewise.
9403 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9405 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9406 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9408 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9409 * config/alpha/predicates.md (input_operand): Update call to
9410 alpha_legitimate_constant_p.
9412 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9413 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9414 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9415 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9416 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9417 (arm_legitimate_constant_p): New functions.
9418 (arm_cannot_force_const_mem): Make static.
9420 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9422 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9423 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9424 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9425 instead of bfin_legitimate_constant_p.
9426 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9427 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9429 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9431 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9433 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9434 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9435 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9436 (frv_legitimate_constant_p): Make static. Add a mode argument.
9438 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9439 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9440 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9442 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9443 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9444 * config/i386/i386.c (legitimate_constant_p): Rename to...
9445 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9447 (ix86_cannot_force_const_mem): Update accordingly.
9448 (ix86_legitimate_address_p): Likewise.
9449 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9450 * config/i386/i386.md: Update commentary.
9452 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9453 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9454 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9455 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9457 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9459 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9460 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9461 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9462 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9464 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9465 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9466 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9468 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9469 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9470 (m32r_legitimate_constant_p): New function.
9472 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9473 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9474 LEGITIMATE_CONSTANT_P.
9475 (LEGITIMATE_CONSTANT_P): Delete.
9476 * config/m68k/m68k.c (m68k_expand_prologue): Call
9477 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9478 (m68k_legitimate_constant_p): New function.
9479 * config/m68k/m68k.md: Update comments.
9481 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9482 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9483 (mcore_legitimate_constant_p): New function.
9485 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9486 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9487 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9488 Add a mode argument.
9489 (mep_legitimate_address): Update accordingly.
9490 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9492 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9494 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9495 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9496 static. Check OP's mode for VOIDmode.
9497 (microblaze_legitimate_constant_p): New function.
9498 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9500 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9501 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9502 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9503 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9504 * config/mips/predicates.md: Update comments.
9506 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9507 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9508 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9509 (mmix_legitimate_constant_p): Make static, return a bool, and take
9511 (mmix_print_operand_address): Update accordingly.
9513 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9515 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
9516 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9517 static. Add a mode argument.
9518 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9520 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9522 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9523 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9524 (pa_legitimate_constant_p): New function.
9526 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9528 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9529 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9530 (pdp11_legitimate_constant_p): New function.
9532 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9533 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9534 (rs6000_legitimate_constant_p): New function.
9536 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9537 (rx_legitimate_constant_p): ...this.
9538 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9539 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9540 (rx_legitimate_constant_p): ...this.
9541 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9542 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9544 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9545 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9546 * config/s390/s390.c (legitimate_constant_p): Rename to...
9547 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9548 and add a mode argument.
9549 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9551 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9553 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9554 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9555 (sh_legitimate_constant_p): New function.
9557 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9558 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9559 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9560 (legitimate_constant_p): Rename to...
9561 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9563 (constant_address_p): Update accordingly.
9565 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9566 argument and return a bool.
9567 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9568 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9569 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9570 (spu_rtx_costs): Update accordingly.
9571 * config/spu/predicates.md (vec_imm_operand): Likewise.
9573 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9575 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9576 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9577 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9579 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9580 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9581 * config/vax/vax.c (legitimate_constant_p): Likewise.
9583 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9584 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9585 (xtensa_legitimate_constant_p): New function.
9587 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9589 * target.def (cannot_force_const_mem): Add a mode argument.
9590 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9591 * doc/tm.texi: Regenerate.
9592 * hooks.h (hook_bool_mode_rtx_false): Declare.
9593 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9594 (hook_bool_mode_const_rtx_true): Likewise.
9595 (hook_bool_mode_rtx_false): New function.
9596 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9597 to be non-VOID. Update call to cannot_force_const_mem.
9598 (find_reloads): Update accordingly.
9599 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9600 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9602 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9603 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9604 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9605 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9606 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9607 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9608 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9609 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9610 (m68k_cannot_force_const_mem): ...this new function.
9611 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9613 (mips_const_insns, mips_legitimize_const_move): Update calls.
9614 (mips_secondary_reload_class): Likewise.
9615 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9616 (pa_cannot_force_const_mem): ...this new function.
9617 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
9618 (rs6000_cannot_force_const_mem): ...this new function.
9619 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9621 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9622 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9624 (xtensa_cannot_force_const_mem): ...this new function.
9626 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9628 * config/mips/mips.c (mips16_build_function_stub): Call
9629 build_function_type_list instead of build_function_type.
9630 (mips16_build_call_stub): Likewise.
9632 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9634 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9635 instead of build_function_type.
9637 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9639 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9640 instead of build_function_type.
9642 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
9645 * config/i386/i386.md (insv): Change operand 0 constraint to
9646 "register_operand". Change operand 1 and 2 constraint to
9647 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9648 * config/i386/sse.md (sse4_1_pinsrb): Export.
9649 (sse2_pinsrw): Ditto.
9650 (sse4_1_pinsrd): Ditto.
9651 (sse4_1_pinsrq): Ditto.
9652 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9653 * config/i386/i386.c (ix86_expand_pinsr): New.
9655 2011-04-20 Easwaran Raman <eraman@google.com>
9657 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9658 containing union type only with -fstrict-aliasing.
9660 2011-04-20 Jim Meyering <meyering@redhat.com>
9662 Remove useless if-before-free tests.
9663 * calls.c (expand_call, save_area): Likewise.
9664 * cfgcleanup.c (try_forward_edges): Likewise.
9665 * collect2.c (collect_execute): Likewise.
9666 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9667 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9668 * coverage.c (coverage_checksum_string): Likewise.
9669 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9670 * cselib.c (cselib_init): Likewise.
9671 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9672 (df_set_clean_cfg): Likewise.
9673 * function.c (free_after_compilation): Likewise.
9674 * gcc.c (do_spec_1, main): Likewise.
9675 * gcov.c (create_file_names): Likewise.
9676 * gensupport.c (identify_predicable_attribute): Likewise.
9677 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9678 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9679 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9680 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9681 * ipa-pure-const.c (local_pure_const): Likewise.
9682 * ipa-reference.c (propagate): Likewise.
9683 * ira-costs.c (free_ira_costs): Likewise.
9684 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9685 * matrix-reorg.c (mat_free): Likewise.
9686 * prefix.c (get_key_value): Likewise.
9687 * profile.c (compute_value_histograms): Likewise.
9688 * reload1.c (free_reg_equiv): Likewise.
9689 * sched-deps.c (free_deps): Likewise.
9690 * sel-sched-ir.c (fence_clear): Likewise.
9691 * sese.c (set_rename, if_region_set_false_region): Likewise.
9692 * tree-data-ref.c (free_rdg): Likewise.
9693 * tree-eh.c (lower_try_finally): Likewise.
9694 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9695 * tree-ssa-live.c (delete_var_map): Likewise.
9696 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9697 * tree-ssa-pre.c (phi_trans_add): Likewise.
9699 2011-04-20 Jakub Jelinek <jakub@redhat.com>
9701 PR tree-optimization/48611
9702 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9703 beyond ERT_MUST_NOT_THROW region.
9705 2011-04-20 Catherine Moore <clm@codesourcery.com>
9707 * config/mips/mips.opt (mfix-24k): New.
9708 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9709 * config/mips/mips.md (length): Increase by 4 for stores if
9711 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9712 all noreorder if fixing 24K errata.
9713 * doc/invoke.texi: Document mfix-24k.
9715 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9717 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9718 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9720 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9722 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9723 (const_ok_for_op): ... to here.
9725 2011-04-20 Kai Tietz <ktietz@redhat.com>
9727 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9728 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9730 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9732 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9734 2011-04-20 Richard Guenther <rguenther@suse.de>
9736 PR tree-optimization/47892
9737 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9740 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9742 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9744 2011-04-20 Tristan Gingold <gingold@adacore.com>
9746 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9748 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
9752 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9753 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9754 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9755 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9756 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9758 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9761 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9762 (avr_asm_named_section, avr_asm_output_aligned_common,
9763 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9764 New functions to update...
9765 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9766 (avr_asm_init_sections): Overwrite section callbacks for
9767 data_section, bss_section.
9768 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9770 (avr_file_end): ...here.
9772 2011-04-20 Richard Guenther <rguenther@suse.de>
9775 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9776 objects and types here. Adjust for their offset before comparing.
9778 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9780 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9783 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9785 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9786 (GIMPLE_H): Include $(INTERNAL_FN_H).
9787 (OBJS-common): Add internal-fn.o.
9788 (internal-fn.o): New rule.
9789 * internal-fn.def: New file.
9790 * internal-fn.h: Likewise.
9791 * internal-fn.c: Likewise.
9792 * gimple.h: Include internal-fn.h.
9793 (GF_CALL_INTERNAL): New gf_mask.
9794 (gimple_statement_call): Put fntype into a union with a new
9796 (gimple_build_call_internal): Declare.
9797 (gimple_build_call_internal_vec): Likewise.
9798 (gimple_call_same_target_p): Likewise.
9799 (gimple_call_internal_p): New function.
9800 (gimple_call_internal_fn): Likewise.
9801 (gimple_call_fntype): Return null for internal calls.
9802 (gimple_call_set_fntype): Assert that the function is not internal.
9803 (gimple_call_set_fn): Likewise.
9804 (gimple_call_set_fndecl): Likewise.
9805 (gimple_call_set_internal_fn): New function.
9806 (gimple_call_addr_fndecl): Handle null functions.
9807 (gimple_call_return_type): Likewise null types.
9808 * gimple.c (gimple_build_call_internal_1): New function.
9809 (gimple_build_call_internal): Likewise.
9810 (gimple_build_call_internal_vec): Likewise.
9811 (gimple_call_same_target_p): Likewise.
9812 (gimple_call_flags): Handle calls to internal functions.
9813 (gimple_call_fnspec): New function.
9814 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9815 (gimple_has_side_effects): Handle null functions.
9816 (gimple_rhs_has_side_effects): Likewise.
9817 (gimple_call_copy_skip_args): Handle calls to internal functions.
9818 * cfgexpand.c (expand_call_stmt): Likewise.
9819 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9820 * gimple-fold.c (gimple_fold_call): Handle null functions.
9821 (gimple_fold_stmt_to_constant_1): Don't fold
9822 calls to internal functions.
9823 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9825 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9826 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9827 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9828 (do_warn_unused_result): Likewise.
9829 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9830 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9831 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9832 the target of a call.
9833 (initialize_hash_element): Update accordingly.
9834 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9835 (iterative_hash_hashable_expr): Handle calls to internal functions.
9836 (print_expr_hash_elt): Likewise.
9837 * tree-ssa-pre.c (can_value_number_call): Likewise.
9838 (eliminate): Handle null functions.
9839 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9840 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9841 (find_func_aliases): Likewise.
9842 * value-prof.c (gimple_ic_transform): Likewise.
9843 (gimple_indirect_call_to_profile): Likewise.
9844 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9845 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9847 2011-04-19 Jan Hubicka <jh@suse.cz>
9849 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9850 * ipa-inline.c (inline_small_functions): Compute summaries first,
9851 populate heap later.
9853 2011-04-19 Jan Hubicka <jh@suse.cz>
9855 * cgraph.h (save_inline_function_body): Remove.
9856 * ipa-inline-transform.c: New file, broke out of...
9857 * ipa-inline.c: ... this one; Update toplevel comment.
9858 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9860 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9861 (cgraph_mark_inline_edge): Rename to inline_call; move to
9862 ipa-inline-transform.c.
9863 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9864 move to ipa-inline-transform.c
9865 (recursive_inlining, inline_small_functions, flatten_function,
9866 ipa_inline, inline_always_inline_functions,
9867 early_inline_small_functions): Update.
9868 (inline_transform): Move to ipa-inline-transform.c.
9869 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9871 * Makefile.in (ipa-inline-transform.o): New file.
9872 * cgraphunit.c (save_inline_function_body): Move to
9873 ipa-inline-transform.c
9875 2011-04-19 DJ Delorie <dj@redhat.com>
9877 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9878 registers if we already know there aren't any.
9879 (m32c_emit_epilogue): Don't emit a barrier here.
9880 (m32c_emit_eh_epilogue): Likewise.
9881 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9882 operands at expand time.
9883 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9885 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9886 duplicates. Provide aliases instead.
9887 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9888 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9891 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9893 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9894 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9895 (general_or_i64_p, sparc_register_move_cost): New function.
9897 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9899 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9900 Add lynx, mipssde. Sort table.
9902 2011-04-19 Xinliang David Li <davidxl@google.com>
9904 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9907 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9910 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9911 is a SUBREG with non-MODE_INT mode inside of it.
9913 2011-04-19 Martin Jambor <mjambor@suse.cz>
9915 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9916 also according to actual contants.
9917 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9918 (gimple_fold_call): Use it.
9919 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9921 2011-04-19 Martin Jambor <mjambor@suse.cz>
9923 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9924 non-pointer assignments.
9926 2011-04-19 Martin Jambor <mjambor@suse.cz>
9928 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9929 account anc_offset and otr_type from the indirect edge info.
9930 * ipa-prop.c (get_ancestor_addr_info): New function.
9931 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9932 get_ancestor_addr_info, call it.
9933 (ipa_note_param_call): Do not initialize information about polymorphic
9934 calls, return the indirect call graph edge. Remove the last
9935 parameter, adjust all callers.
9936 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9937 parameters. Initialize polymorphic information in the indirect edge.
9939 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9942 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9943 the types if they have different enumeration identifiers.
9945 2011-04-19 Jan Hubicka <jh@suse.cz>
9947 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9948 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9949 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9950 (optimize_function_for_size_p) ... here.
9952 2011-04-19 Richard Guenther <rguenther@suse.de>
9955 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9958 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9960 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9961 if DECL_NO_INLINE_WARNING_P is set on the function.
9963 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9966 * reload1.c (inc_for_reload): Return void. All callers changed.
9967 (emit_input_reload_insns): Don't try to delete previous output
9968 reloads to a register, or record spill_reg_store for autoincs.
9970 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9972 * gengtype.h: Updated copyright year.
9973 (struct input_file_st): Add inpisplugin field.
9974 (type_fileloc): New function.
9976 (write_typed_struct_alloc_def): Add gcc_assert.
9977 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9978 (write_typed_alloc_defns): Don't output for plugin files.
9979 (input_file_by_name): Clear inpisplugin field.
9980 (main): Set inpisplugin field for plugin files.
9982 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9984 * gengtype-state.c (string_eq): New.
9985 (read_state): Use string_eq instead of strcmp when creating the
9988 2011-04-19 Wei Guozhi <carrot@google.com>
9991 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9992 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9994 * config/arm/constraints.md (Uu): New constraint.
9995 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9997 2011-04-19 Tristan Gingold <gingold@adacore.com>
9999 * config.gcc (-*-*-*vms): Added.
10000 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
10002 * config/vms/vms-ld.c: New file.
10003 * config/vms/vms-ar.c: New file.
10004 * config/vms/t-vmsnative: New file.
10006 2011-04-18 Xinliang David Li <davidxl@google.com>
10008 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
10010 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10012 PR middle-end/48661
10013 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
10014 if TREE_TYPE (v) is non-NULL.
10016 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
10017 gimple_get_virt_mehtod_for_binfo.
10018 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
10019 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
10021 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10023 2011-04-18 Michael Matz <matz@suse.de>
10024 Steve Ellcey <sje@cup.hp.com>
10026 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
10027 use its mode as source mode if it isn't VOIDmode.
10029 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
10031 * doc/passes.texi: Fill crossref nodes.
10033 2011-04-18 Jim Meyering <meyering@redhat.com>
10035 Fix doubled-word typos in comments and strings
10036 * config/alpha/vms-unwind.h: s/for for/for/
10037 * config/arm/unwind-arm.h: Likewise.
10038 * config/microblaze/microblaze.c: Likewise.
10039 * config/sh/constraints.md: s/in in/in/
10040 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
10042 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
10044 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
10045 (AVX_FLOAT_MODE_P): Ditto.
10046 (AVX128_VEC_FLOAT_MODE_P): Ditto.
10047 (AVX256_VEC_FLOAT_MODE_P): Ditto.
10048 (AVX_VEC_FLOAT_MODE_P): Ditto.
10049 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
10050 (UNSPEC_MASKSTORE): Ditto.
10051 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
10052 Merge from <sse>_movmsk<ssemodesuffix> and
10053 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
10054 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
10056 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
10057 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
10058 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
10060 2011-04-18 Jan Hubicka <jh@suse.cz>
10062 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
10064 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
10065 (want_inline_function_called_once_p): Break out the logic from
10067 (edge_badness): Ensure that profile is not misupdated.
10068 (lookup_recursive_calls): Prioritize by call frequencies.
10069 (inline_small_functions): Move program size estimates here;
10070 actually process whole queue even when unit growth has been
10071 met. (to properly compute inline_failed reasons and for the
10072 case unit size decrease.) Revisit comments on recursive inlining.
10073 (ipa_inline): Remove unit summary code; first inline hot calls
10074 of functions called once, cold calls next.
10075 (order, nnodes): Remove unused variables.
10076 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
10077 (GTFILES): Remove ipa-inline.c
10078 * sel-sched.c (fill_insns): Silence uninitialized var warning.
10080 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10082 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
10084 2011-04-18 Jie Zhang <jie@codesourcery.com>
10085 Richard Earnshaw <rearnsha@arm.com>
10087 * arm.c (neon_builtin_type_bits): Remove.
10088 (typedef enum neon_builtin_mode): New.
10089 (T_MAX): Don't define.
10090 (typedef enum neon_builtin_datum): Remove bits, codes[],
10091 num_vars and base_fcode. Add mode, code and fcode.
10092 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
10093 VAR10): Change accordingly.
10094 (neon_builtin_data[]): Change accordingly
10095 (arm_init_neon_builtins): Change accordingly.
10096 (neon_builtin_compare): Remove.
10097 (locate_neon_builtin_icode): Remove.
10098 (arm_expand_neon_builtin): Change accordingly.
10100 * arm.h (enum arm_builtins): Move to ...
10101 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
10103 * arm.c (arm_builtin_decl): Declare.
10104 (TARGET_BUILTIN_DECL): Define.
10105 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
10106 (arm_builtin_decls[]): New.
10107 (arm_init_neon_builtins): Store builtin declarations in
10108 arm_builtin_decls[].
10109 (arm_init_tls_builtins): Likewise.
10110 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
10111 (arm_builtin_decl): New.
10113 2011-04-18 Richard Guenther <rguenther@suse.de>
10115 * tree.c (upper_bound_in_type): Build properly canonicalized
10117 (lower_bound_in_type): Likewise.
10119 2011-04-18 Richard Guenther <rguenther@suse.de>
10121 * gimple.h (gimple_call_addr_fndecl): New function.
10122 (gimple_call_fndecl): Use it.
10123 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
10125 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
10126 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
10128 2011-04-18 Richard Guenther <rguenther@suse.de>
10130 PR middle-end/48650
10131 * tree.c (build_string): STRING_CST is now derived from tree_typed.
10133 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10136 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
10137 DECL_IN_CONSTANT_POOL without RTL.
10139 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
10140 Ira Rosen <ira.rosen@linaro.org>
10143 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
10144 to match neon_vzip/vuzp/vtrn_internal.
10145 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
10146 outputs explicitly dependent on both inputs.
10147 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
10149 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10151 PR tree-optimization/48616
10152 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
10153 whether the shift is by scalar or vector based on whether all SLP
10154 scalar stmts have the same rhs.
10156 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
10158 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
10161 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10164 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10167 2011-04-17 Jan Hubicka <jh@suse.cz>
10169 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
10170 * cgrpahunit.c (cgraph_finalize_function): Do not set
10171 finalized_by_frontend.
10172 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10173 finalized_by_frontend.
10175 2011-04-17 Jan Hubicka <jh@suse.cz>
10177 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10178 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10179 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
10180 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10182 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10184 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10186 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10189 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10190 is non-null before accessing it.
10191 (input_cgraph): Remove trailing spaces.
10193 2011-04-17 Revital Eres <revital.eres@linaro.org>
10195 * params.def (sms-min-sc): New param flag.
10196 * modulo-sched.c (sms_schedule): Use it.
10197 * doc/invoke.texi (sms-min-sc): Document it.
10199 2011-04-17 Jan Hubicka <jh@suse.cz>
10201 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10202 present, also set gimple_call_set_cannot_inline.
10203 * ipa-inline.c: Update toplevel comment.
10204 (MAX_TIME): Remove.
10205 (cgraph_clone_inlined_nodes): Fix linebreaks.
10206 (cgraph_check_inline_limits): Restructure to ...
10207 (caller_growth_limits): ... this one; be more tolerant
10208 on growth in nested inline chains; add explanatory comment;
10209 fix stack accounting thinko introduced by previous patch.
10210 (cgraph_default_inline_p): Remove.
10211 (report_inline_failed_reason): New function.
10212 (can_inline_edge_p): New function.
10213 (can_early_inline_edge_p): New function.
10214 (leaf_node_p): Move upwards in file.
10215 (want_early_inline_function_p): New function.
10216 (want_inline_small_function_p): New function.
10217 (want_inline_self_recursive_call_p): New function.
10218 (cgraph_edge_badness): Rename to ...
10219 (edge_badness) ... this one; fix linebreaks.
10220 (update_edge_key): Update call of edge_baddness; add
10221 detailed dump about queue updates.
10222 (update_caller_keys): Use can_inline_edge_p and
10223 want_inline_small_function_p.
10224 (cgraph_decide_recursive_inlining): Rename to...
10225 (recursive_inlining): Use can_inline_edge_p and
10226 want_inline_self_recursive_call_p; simplify and remove no longer
10228 (cgraph_set_inline_failed): Remove.
10229 (add_new_edges_to_heap): Use can_inline_edge_p and
10230 want_inline_small_function_p.
10231 (cgraph_decide_inlining_of_small_functions): Rename to ...
10232 (inline_small_functions): ... this one; cleanup; use
10233 can/want predicates; cleanup debug ouput; work edges till fibheap
10234 is exhausted and do not stop once unit growth is reached; remove
10235 later loop processing remaining edges.
10236 (cgraph_flatten): Rename to ...
10237 (flatten_function): ... this one; use can_inline_edge_p
10238 and can_early_inline_edge_p predicates.
10239 (cgraph_decide_inlining): Rename to ...
10240 (ipa_inline): ... this one; remove unreachable nodes before
10241 inlining functions called once; simplify the pass.
10242 (cgraph_perform_always_inlining): Rename to ...
10243 (inline_always_inline_functions): ... this one; use
10244 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10245 (cgraph_decide_inlining_incrementally): Rename to ...
10246 (early_inline_small_functions): ... this one; simplify
10247 using new predicates; cleanup; make dumps prettier.
10248 (cgraph_early_inlining): Rename to ...
10249 (early_inliner): newer inline regular functions into always-inlines;
10250 fix updating of call stmt summaries.
10251 (pass_early_inline): Update for new names.
10252 (inline_transform): Fix formating.
10253 (gate_cgraph_decide_inlining): Rename to ...
10254 (pass_ipa_inline): ... this one.
10255 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10256 * ipa-inline-analysis.c (dump_inline_summary): Update.
10257 (compute_inline_parameters): Do not compute disregard_inline_limits;
10258 look for mismatching arguments.
10259 (estimate_growth): Fix handlig of non-trivial self recursion.
10260 (inline_read_summary): Do not read info->disregard_inline_limits.
10261 (inline_write_summary): Do not write info->disregard_inline_limits.
10262 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10263 and move all checks into can_inline_edge_p predicate; re-enable code
10264 comparing optimization levels.
10265 (expand_call_inline): Do not test inline_forbidden_into_p.
10266 * Makefile.in (ipa-inline.o): Update arguments.
10268 2011-04-17 Revital Eres <revital.eres@linaro.org>
10270 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10272 2011-04-17 Revital Eres <revital.eres@linaro.org>
10274 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10276 2011-04-17 Michael Matz <matz@suse.de>
10278 PR tree-optimization/48622
10280 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10281 in same order as they're written.
10283 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10285 * config/pa/predicates.md: Reorganize and simplify predicates.
10286 Eliminate duplicate code checks.
10287 (arith_operand): Rename to arith14_operand
10288 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10289 * config/pa/pa.md: Use renamed operands.
10290 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10291 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10292 arith11_operand, adddi3_operand, indexed_memory_operand,
10293 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10294 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10295 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10296 move_dest_operand, move_src_operand, prefetch_cc_operand,
10297 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10298 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10299 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10300 div_operand, int5_operand, movb_comparison_operator,
10301 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10302 arith_double_operand, ireg_operand, lhs_lshift_operand,
10303 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10304 integer_store_memory_operand): Likewise.
10305 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10306 (integer_store_memory_operand, read_only_operand,
10307 function_label_operand, borx_reg_operand,
10308 non_hard_reg_operand): Likewise.
10309 (eq_neq_comparison_operator): Delete unused operator.
10310 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10311 function_label_operand.
10312 (emit_move_sequence): Likewise.
10314 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10316 * config/i386/sse.md (sseunpackmode): New mode attribute.
10317 (ssepackmode): Ditto.
10318 (vec_pack_trunc_<mode>): Macroize expander from
10319 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10320 (vec_unpacks_lo_<mode>): Macroize expander from
10321 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10322 (vec_unpacks_hi_<mode>): Macroize expander from
10323 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10324 (vec_unpacku_lo_<mode>): Macroize expander from
10325 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10326 (vec_unpacku_hi_<mode>): Macroize expander from
10327 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10328 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10329 ix86_expand_sse4_unpack.
10330 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10332 2011-04-16 Jan Hubicka <jh@suse.cz>
10334 * cgraphbuild.c: Include ipa-inline.h.
10335 (reset_inline_failed): Use initialize_inline_failed.
10336 * cgraph.c: Include ipa-inline.h.
10337 (cgraph_create_node_1): Do not initialize estimated_growth.
10338 (initialize_inline_failed): More to ipa-inline-analysis.c
10339 (dump_cgraph_node): Do not dump inline flags.
10340 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10341 and disregard_inline_limits flags.
10342 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10343 time, size, estimated_growth.
10344 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10346 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10347 DECL_DISREGARD_INLINE_LIMITS.
10348 (cgraph_analyze_function): Do not initialize
10349 node->local.disregard_inline_limits.
10350 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10351 inlinable, versionable and disregard_inline_limits.
10352 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10353 cgraph_check_inline_limits, cgraph_default_inline_p,
10354 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10355 add_new_edges_to_heap): Update.
10356 (cgraph_decide_inlining_of_small_function): Update; set
10357 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10358 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10359 cgraph_decide_inlining_incrementally): Update.
10360 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10361 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10362 time, size and estimated_growth parameters.
10363 (estimate_edge_growth): Update.
10364 (initialize_inline_failed): Declare.
10365 * ipa-split.c: Include ipa-inline.h
10366 (execute_split_functions): Update.
10367 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10368 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10369 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10370 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10371 estimated_growth to INT_MIN.
10372 (inline_node_duplication_hook): Likewise.
10373 (dump_inline_summary): Dump new fields.
10374 (compute_inline_parameters): Update.
10375 (estimate_edge_time, estimate_time_after_inlining,
10376 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10377 inline_write_summary):
10378 (initialize_inline_failed): Move here from cgraph.c.
10379 * tree-sra.c: Include ipa-inline.h.
10380 (ipa_sra_preliminary_function_checks): Update.
10381 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10384 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10386 * config/i386/sse.md (V16): New mode iterator.
10388 (AVXMODEQI, AVXMODEDI): Remove.
10389 (sse2, sse3): New mode attribute.
10390 (mov<mode>): Use V16 mode iterator.
10391 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10392 (push<mode>1): Use V16 mode iterator.
10393 (movmisalign<mode>): Ditto.
10394 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10395 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10396 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10397 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10398 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10399 avx_movdqu<avxmodesuffix>.
10400 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10401 *avx_movdqu<avxmodesuffix>.
10402 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10403 avx_lddqu<avxmodesuffix>.
10404 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10405 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10406 avx_movnt<AVXMODEDI:mode>.
10407 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10408 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10410 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10413 * haifa-sched.c (prune_ready_list, schedule_block): Use
10414 sched_pressure_p rather than flag_sched_pressure.
10416 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
10418 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10419 cgraph_get_node instead of cgraph_get_create_node.
10421 2011-04-15 Jakub Jelinek <jakub@redhat.com>
10423 * cfgexpand.c (expand_debug_expr): Use
10424 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10426 2011-04-15 Michael Matz <matz@suse.de>
10428 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10429 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10430 * function.c (gimplify_parameters): Ditto.
10431 * gimplify.c (gimplify_vla_decl): Ditto.
10433 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10434 (gimple_call_set_alloca_for_var): New inline function.
10435 (gimple_call_alloca_for_var_p): Ditto.
10436 * gimple.c (gimple_build_call_from_tree): Remember
10437 CALL_ALLOCA_FOR_VAR_P state.
10438 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10440 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10441 calls if they were for VLA objects.
10443 2011-04-15 Martin Jambor <mjambor@suse.cz>
10445 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10448 2011-04-15 Martin Jambor <mjambor@suse.cz>
10450 PR middle-end/48601
10451 * tree-emutls.c (lower_emutls_function_body): Call
10452 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10453 result is non-NULL.
10455 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10457 * c-decl.c (detect_field_duplicates): Call
10458 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10460 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10462 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10463 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10464 * ipa-pure-const.c (check_stmt): Call it.
10465 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10467 2011-04-15 Richard Guenther <rguenther@suse.de>
10469 PR tree-optimization/48290
10470 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10471 Properly decide inhibiting propagation based on the valueized
10472 operand. Do loop-closed SSA form preserving here ...
10473 (init_copy_prop): ... not here.
10475 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10478 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10479 (*ieee_smax<mode>3): Likewise.
10481 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10483 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10484 Replace match_operand with match_dup for the third operand in
10487 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10489 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10490 to track processing of conditionals. Update all callers.
10491 (try_combine, simplify_if_then_else): Update.
10493 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10495 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10498 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
10500 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10501 instead of match_operand for operand 3.
10503 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10505 * recog.h (insn_operand_data): Add an "allows_mem" field.
10506 * genoutput.c (output_operand_data): Initialize it.
10507 * optabs.c (maybe_legitimize_operand_same_code): New function.
10508 (maybe_legitimize_operand): Use it when matching the original
10511 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10513 * gimplify.c: Fix issues in comments throughout.
10514 (voidify_wrapper_expr): Fix long line.
10515 (build_stack_save_restore): Likewise.
10516 (gimplify_loop_expr): Likewise.
10517 (gimplify_compound_lval): Likewise.
10518 (gimplify_init_ctor_eval): Likewise.
10519 (gimplify_modify_expr_rhs): Likewise.
10520 (omp_notice_threadprivate_variable): Likewise.
10522 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10524 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10525 original one if this is not a builtin function.
10527 2011-04-14 Jakub Jelinek <jakub@redhat.com>
10530 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10531 offset it as needed based on top 2 bits in operands[3], change
10532 MEM mode to SFmode and mask those 2 bits away from operands[3].
10534 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10536 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10537 change from objc_declare_protocols() to objc_declare_protocol().
10539 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
10541 * config/i386/sse.md (sse4_1): New mode attribute.
10542 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10543 avx_blend<ssemodesuffix><avxmodesuffix> and
10544 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10545 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10546 avx_blendv<ssemodesuffix><avxmodesuffix> and
10547 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10548 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10549 avx_dp<ssemodesuffix><avxmodesuffix> and
10550 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10551 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10552 (sse4_1_packusdw): Merge with *avx_packusdw.
10553 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10554 (sse4_1_pblendw): Merge with *avx_pblendw.
10555 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10556 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10557 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10559 (sse4_1_round<ssescalarmodesuffix>): Merge with
10560 *avx_round<ssescalarmodesuffix>.
10561 (aesenc): Merge with *avx_aesenc.
10562 (aesenclast): Merge with *avx_aesenclast.
10563 (aesdec): Merge with *avx_aesdec.
10564 (aesdeclast): Merge with *avx_aesdeclast.
10565 (pclmulqdq): Merge with *pclmulqdq.
10566 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10568 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10570 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10572 PR middle-end/48608
10573 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10574 (align_local_variable): This. Update DECL_ALIGN.
10575 (add_stack_var): Updated.
10576 (expand_one_stack_var): Likewise.
10578 2011-04-14 Richard Guenther <rguenther@suse.de>
10580 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10582 (dse_initialize_block_local_data, dse_leave_block,
10583 record_voperand_set, get_stmt_uid): Likewise.
10584 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10585 (dse_optimize_stmt): Remove voperand set handling code.
10586 Simplify and improve to handle any kind of killing stmt.
10587 (dse_record_phi): Remove.
10588 (dse_enter_block): Simplify.
10589 (tree_ssa_dse): Likewise.
10590 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10592 2011-04-14 Jan Hubicka <jh@suse.cz>
10594 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10595 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10596 (cgraph_local_info): Remove inline_summary.
10597 * ipa-cp.c: Include ipa-inline.h.
10598 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10599 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10601 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10602 (input_overwrite_node): Do not set inline summary.
10603 (input_node): Do not stream inline summary.
10604 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10605 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10606 growth; we do not have inline parameters computed for that anyway.
10607 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10608 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10609 (inline_summary_t): New type and VECtor.
10610 (debug_inline_summary, dump_inline_summaries): Declare.
10611 (inline_summary): Use VOCtor.
10612 (estimate_edge_growth): Kill hack computing call stmt size directly.
10613 * lto-section-in.c (lto_section_name): Add inline section.
10614 * ipa-inline-analysis.c: Include lto-streamer.h
10615 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10616 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10617 (inline_summary_vec): Define.
10618 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10619 dump_inline_summaries): New functions.
10620 (estimate_function_body_sizes): Properly compute size/time of outgoing
10622 (compute_inline_parameters): Alloc inline_summary; do not compute
10623 size/time of incomming calls.
10624 (estimate_edge_time): Avoid missing time summary hack.
10625 (inline_read_summary): Read inline summary info.
10626 (inline_write_summary): Write inline summary info.
10627 (inline_free_summary): Free all hooks and inline summary vector.
10628 * lto-streamer.h: Add LTO_section_inline_summary section.
10629 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10630 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10632 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10634 * tree-vectorizer.h (vect_strided_store_supported): Add a
10635 HOST_WIDE_INT argument.
10636 (vect_strided_load_supported): Likewise.
10637 (vect_permute_store_chain): Return void.
10638 (vect_transform_strided_load): Likewise.
10639 (vect_permute_load_chain): Delete.
10640 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10641 count argument. Check that the count is a power of two.
10642 (vect_strided_load_supported): Likewise.
10643 (vect_permute_store_chain): Return void. Update after above changes.
10644 Assert that the access is supported.
10645 (vect_permute_load_chain): Likewise.
10646 (vect_transform_strided_load): Return void.
10647 * tree-vect-stmts.c (vectorizable_store): Update calls after
10648 above interface changes.
10649 (vectorizable_load): Likewise.
10650 (vect_analyze_stmt): Don't check for strided powers of two here.
10652 2011-04-14 Richard Guenther <rguenther@suse.de>
10654 PR tree-optimization/48590
10655 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10656 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10657 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10658 BUILT_IN_STACK_SAVE.
10659 * tree-ssa-dce.c (propagate_necessity): Handle
10660 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10662 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10664 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10665 objc_declare_class.
10667 2011-04-14 Richard Guenther <rguenther@suse.de>
10669 * tree.h (get_object_alignment_1): Declare.
10670 * builtins.c (get_object_alignment_1): Split out worker from ...
10671 (get_object_alignment): ... here.
10672 * fold-const.c (get_pointer_modulus_and_residue): Use
10673 get_object_alignment_1.
10675 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10677 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10679 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10680 parameter. Generalise code to handle arrays as well as vectors.
10681 (vect_setup_realignment): Update accordingly.
10682 * tree-vect-stmts.c (vectorizable_store): Likewise.
10683 (vectorizable_load): Likewise.
10685 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10687 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10688 within the per-copy loop.
10690 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10692 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10695 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10697 * doc/options.texi (Negative): Explicitly mention that the
10698 Negative chain must be circular.
10700 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10702 * function.h (block_chainon): Declare.
10703 * function.c (block_chainon): Define.
10705 2011-04-14 Anatoly Sokolov <aesok@post.ru>
10706 Eric Weddington <eric.weddington@atmel.com>
10707 Georg-Johann Lay <avr@gjlay.de>
10709 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10711 (avr_init_builtins, avr_expand_builtin,
10712 avr_expand_delay_cycles, avr_expand_unop_builtin,
10713 avr_expand_binop_builtin ): New functions.
10714 (avr_builtin_id): New enum
10715 (struct avr_builtin_description): New struct
10716 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10717 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10719 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10720 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10721 UNSPECV_DELAY_CYCLES): new enumeration values
10722 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10723 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10724 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10725 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10726 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10727 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10728 "fmulsu"): New insns
10730 * config/avr/avr-c.c: fix line endings
10731 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10732 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10733 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10734 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10735 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10737 * doc/extend.texi (AVR Built-in Functions): New node
10738 (Target Builtins): Add documentation of AVR
10739 built-in functions.
10741 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
10744 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10745 alone. Error if non-const data has attribute progmem.
10747 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10749 * tree.h (struct tree_constructor): Include tree_typed instead of
10751 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10752 TS_TYPED instead of TS_COMMON.
10754 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10756 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10757 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10758 (sse2_psadbw): Merge with *avx_psadbw.
10759 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10760 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10761 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10762 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10763 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10764 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10765 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10766 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10767 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10768 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10769 (ssse3_palignrti): Merge with *avx_palignrti.
10771 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10773 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10774 * tree-ssanames.c (fini_ssanames): VEC_free it.
10775 (make_ssa_name_fn): Update for VECness of free_ssanames.
10776 (release_ssa_name, release_dead_ssa_names): Likewise.
10777 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10779 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10780 TS_TYPED instead of TS_COMMON.
10782 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10784 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10785 statistics_counter_event.
10786 * tree-ssa-copyrename.c (stats): Define.
10787 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10788 statistics_counter_event.
10789 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10790 (bswap_stats, widen_mul_stats): Define.
10791 (insert_reciprocals): Increment rdivs_inserted.
10792 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10793 rfuncs_inserted. Add calls to statistics_counter_event.
10794 (execute_cse_sincos_1): Increment inserted.
10795 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10796 statistics_counter_event.
10797 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10798 of bswap_stats. Add calls to statistics_counter_event.
10799 (convert_mult_to_widen): Increment widen_mults_inserted.
10800 (convert_plusminus_to_widen): Increment maccs_inserted.
10801 (convert_mult_to_fma): Increment fmas_inserted.
10802 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10803 calls to statistics_counter_event.
10805 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10807 PR rtl-optimization/48455
10808 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10809 `temp_costs->mem_cost'.
10811 2011-04-13 Jan Hubicka <jh@suse.cz>
10813 * ipa-inline.h: New file.
10814 * ipa-inline-analysis.c: New file. Broken out of ...
10815 * ipa-inline.c: ... this file; update toplevel comment;
10816 include ipa-inline.h
10817 (inline_summary): Move to ipa-inline.h
10818 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10819 ipa-inline-analysis.c.
10820 (cgraph_estimate_time_after_inlining): Rename to
10821 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10822 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10823 to estimate_edge_growth.
10824 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10825 rename to estimate_size_after_inlining.
10826 (cgraph_mark_inline_edge): Update for new naming convention.
10827 (cgraph_check_inline_limits): Likewise.
10828 (cgraph_edge_badness): Likewise.
10829 (cgraph_decide_recursive_inlining): Likewise.
10830 (cgraph_decide_inlining_of_small_functions): Likewise.
10831 (cgraph_decide_inlining_incrementally): Likewise.
10832 (cgraph_estimate_growth): Rename to estimate_growth; move to
10833 ipa-inline-analysis.c.
10834 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10835 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10836 (compute_inline_parameters): Likewise.
10837 (compute_inline_parameters_for_current): Likewise.
10838 (pass_inline_parameters): Likewise.
10839 (inline_indirect_intraprocedural_analysis): Likewise.
10840 (analyze_function): Rename to inline_analyze_function; likewise.
10841 (add_new_function): Move to ipa-inline-analysis.c.
10842 (inline_generate_summary): Likewise.
10843 (inline_read_summary): Likewise.
10844 (inline_write_summary): Likewise.
10845 * Makefile.in (ipa-inline-analysis.c): New file.
10847 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10849 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10850 * configure: Regenerate.
10852 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10854 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10855 instead of tree_common.
10856 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10858 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10859 TS_TYPED rather than TS_COMMON.
10860 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10862 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10865 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10866 r20 around calls of __tablejump_elpm__
10868 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10870 PR middle-end/48591
10871 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10873 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10875 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10877 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10878 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10879 (cfi_vec): New typedef.
10880 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10881 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10882 (cie_cfi_vec): New static variable.
10883 (cie_cfi_head): Delete.
10884 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10885 declaration changed. Use vector rather than list operations.
10886 (new_cfi): Don't initialize the dw_cfi_next field.
10887 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10888 rather than list operations.
10889 (lookup_cfa): Use vector rather than list operations.
10890 (output_cfis): New argument upto. Accept a cfi_vec rather than
10891 a dw_cfi_ref list head as argument. All callers changed.
10892 Iterate over the vector using upto as a maximum index.
10893 (output_all_cfis): New static function.
10894 (output_fde): Use vector rather than list operations. Use the
10895 new upto argument for output_cfis rather than manipulating a
10897 (dwarf2out_begin_prologue): Change initializations to match
10898 new struct members.
10899 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10900 from the vector length rather than searching for the end of a list.
10901 Use output_all_cfis.
10902 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10904 2011-04-13 Nick Clifton <nickc@redhat.com>
10906 * config/rx/rx.md (movmemsi): Do not use this pattern when
10907 volatile pointers are involved.
10909 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10911 * config/i386/sse.md (pinsrbits): Remove.
10912 (sse2_packsswb): Merge with *avx_packsswb.
10913 (sse2_packssdw): Merge with *avx_packssdw.
10914 (sse2_packuswb): Merge with *avx_packuswb.
10915 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10916 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10917 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10918 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10919 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10920 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10921 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10922 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10923 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10924 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10925 (sse2_loadld): Merge with *avx_loadld.
10926 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10927 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10928 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10929 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10930 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10932 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10934 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10935 calling TREE_CHAIN.
10936 * print-tree.c (print_node): Likewise.
10937 * tree-inline.c (copy_tree_r): Likewise.
10938 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10939 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10940 instead of TS_COMMON.
10941 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10942 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10943 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10944 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10945 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10947 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10949 (TREE_CHAIN): Check for a TS_COMMON structure.
10950 (TREE_TYPE): Check for a TS_TYPED structure.
10952 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10954 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10955 cgraph_get_create_node instead of cgraph_node.
10957 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10959 * c-parser.c (c_parser_initelt): Updated call to
10960 objc_build_message_expr.
10961 (c_parser_postfix_expression): Likewise.
10963 2011-04-12 Kai Tietz <ktietz@redhat.com>
10965 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10966 MASK_MS_BITFIELD_LAYOUT bit.
10968 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10970 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10971 assert it is always true.
10972 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10975 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10977 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10978 compiling Objective-C to be more efficient.
10980 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10982 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10985 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10987 * recog.h, genoutput.c, optabs.c: Revert last patch.
10989 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10992 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10994 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10996 * recog.h (insn_operand_data): Add an "allows_mem" field.
10997 * genoutput.c (output_operand_data): Initialize it.
10998 * optabs.c (maybe_legitimize_operand_same_code): New function.
10999 (maybe_legitimize_operand): Use it when matching the original
11002 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11004 * genpreds.c (process_define_predicate): Move most processing
11005 to gensupport.c. Continue to validate the expression.
11006 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
11007 (process_define_predicate): Move processing to gensupport.c.
11008 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
11009 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
11010 (compute_predicate_codes): Moved from genrecog.c. Add lineno
11012 (valid_predicate_name_p): New function, split out from old
11013 genpreds.c:process_define_predicate.
11014 (process_define_predicate): New function, combining code from
11015 old genpreds.c and genrecog.c functions.
11016 (process_rtx): Call it for DEFINE_PREDICATE and
11017 DEFINE_SPECIAL_PREDICATE.
11019 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11021 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
11022 size of a '%A' memory reference.
11023 (T_DREG, T_QREG): New neon_builtin_type_bits.
11024 (arm_init_neon_builtins): Assert that the load and store operands
11025 are neon_struct_operands.
11026 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
11027 (NEON_ARG_MEMORY): New builtin_arg.
11028 (neon_dereference_pointer): New function.
11029 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
11030 Handle NEON_ARG_MEMORY.
11031 (arm_expand_neon_builtin): Update after above interface changes.
11032 Use NEON_ARG_MEMORY for loads and stores.
11033 * config/arm/predicates.md (neon_struct_operand): New predicate.
11034 * config/arm/iterators.md (V_two_elem): Tweak formatting.
11035 (V_three_elem): Use BLKmode for accesses that have no associated mode.
11036 (V_four_elem): Tweak formatting.
11037 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
11038 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
11039 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
11040 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
11041 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
11042 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
11043 (neon_vst4<mode>): Replace pointer operand with a memory operand.
11044 Use %A in the output template.
11045 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
11046 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
11047 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
11048 the width of the memory access. Remove post-increment.
11049 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
11051 2011-04-12 Nick Clifton <nickc@redhat.com>
11053 * config/v850/v850.c (expand_prologue): Do not use the CALLT
11054 instruction for interrupt handlers if the target is the basic V850
11056 (expand_epilogue): Likewise.
11058 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11060 PR rtl-optimization/48549
11061 * combine.c (propagate_for_debug): Also stop after BB_END of
11062 this_basic_block. Process LAST and just stop processing after it.
11063 (combine_instructions): If last_combined_insn has been deleted,
11064 set last_combined_insn to its PREV_INSN.
11066 2011-04-12 Richard Guenther <rguenther@suse.de>
11068 PR tree-optimization/46076
11069 * gimple.h (struct gimple_statement_call): Add fntype field.
11070 (gimple_call_fntype): Adjust.
11071 (gimple_call_set_fntype): New function.
11072 * gimple.c (gimple_build_call_1): Set the call function type.
11073 * gimplify.c (gimplify_call_expr): Preserve the function
11074 type the frontend used for the call.
11075 (gimplify_modify_expr): Likewise.
11076 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
11078 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
11080 * tree-ssa.c (useless_type_conversion_p): Function pointer
11081 conversions are useless.
11083 2011-04-12 Martin Jambor <mjambor@suse.cz>
11085 * cgraph.h (cgraph_node): Remove function declaration.
11086 (cgraph_create_node): Declare.
11087 (cgraph_get_create_node): Likewise.
11088 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
11089 Updated all callers.
11090 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
11091 the decl does not already exist. Call cgraph_get_create_node instead
11093 (cgraph_get_create_node): New function.
11094 (cgraph_same_body_alias): Update comment.
11095 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
11096 assert it does not return NULL.
11097 (cgraph_update_edges_for_call_stmt): Likewise.
11098 (cgraph_clone_edge): Likewise.
11099 (cgraph_create_virtual_clone): Likewise.
11100 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
11101 instead of cgraph_node.
11102 (cgraph_add_new_function): Call cgraph_create_node or
11103 cgraph_get_create_node instead of cgraph_node.
11104 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
11105 instead of cgraph_node.
11106 (record_eh_tables): Likewise.
11107 (mark_address): Likewise.
11108 (mark_load): Likewise.
11109 (build_cgraph_edges): Call cgraph_get_create_node instead
11111 (rebuild_cgraph_edges): Likewise.
11112 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
11113 instead of cgraph_node.
11114 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
11116 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
11117 cgraph_create_node instead of cgraph_node.
11118 * c-decl.c (finish_function): Call cgraph_get_create_node instead
11120 * lto-cgraph.c (input_node): Likewise.
11121 * lto-streamer-in.c (input_function): Likewise.
11122 * varasm.c (mark_decl_referenced): Likewise.
11123 (assemble_alias): Likewise.
11125 2011-04-12 Martin Jambor <mjambor@suse.cz>
11127 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
11128 instead of cgraph_node and assert it does not return NULL.
11129 * lto-streamer-in.c (lto_read_body): Likewise.
11130 * omp-low.c (new_omp_context): Likewise.
11131 (create_task_copyfn): Likewise.
11132 * tree-emutls.c (lower_emutls_function_body): Likewise.
11133 * matrix-reorg.c (transform_allocation_sites): Likewise.
11135 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11138 * c-typeck.c (build_asm_expr): Error out on attempts to use
11139 void type outputs or inputs for constraints that allow reg or
11140 don't allow memory.
11142 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
11143 Richard Earnshaw <rearnsha@arm.com>
11146 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
11147 to use sign-magnitude offsets. Reject unsupported unaligned
11148 cases. Add detailed description in comments.
11149 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
11150 condition from TARGET_32BIT to TARGET_ARM.
11152 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
11154 * tree.h (struct typed_tree): New.
11155 (struct tree_common): Include it instead of tree_base.
11156 (TREE_TYPE): Update for new location of type field.
11157 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
11158 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
11159 (union tree_node): Add typed field.
11160 * treestruct.def (TS_TYPED): New.
11161 * lto-streamer.c (check_handled_ts_structures): Handle it.
11162 * tree.c (MARK_TS_TYPED): New macro.
11163 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
11165 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
11167 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11168 (force_nonfallthru): Do not alter the loop nest if no basic block
11171 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11173 * config/i386/sse.md (VI): New mode iterator.
11174 (SSEMODEI): Remove.
11175 (AVX256MODEI): Ditto.
11176 (AVXMODEF4P): Ditto.
11177 (avxvecpsmode): Ditto.
11178 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
11179 (sse2_andnot<mode>3): New expander.
11180 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11181 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
11182 (<any_logic:code><mode>3): Use VI mode iterator.
11183 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11184 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
11185 (*andnottf3): Handle AVX three-operand constraints.
11186 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11188 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11189 Robert Millan <rmh@gnu.org>
11191 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11192 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11193 GNU_USER_DYNAMIC_LINKER64): Define.
11194 (REG_NAME): Don't undefine.
11195 (MD_UNWIND_SUPPORT): Undefine.
11196 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11197 (REG_NAME): Don't undefine.
11198 (MD_UNWIND_SUPPORT): Undefine.
11199 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
11201 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11203 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11204 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11206 2011-04-11 Xinliang David Li <davidxl@google.com>
11208 * value-profile.c (check_ic_target): New function.
11209 (gimple_ic_transform): Sanity check indirect call target.
11210 * gimple-low.c (gimple_check_call_args): Interface change.
11211 (gimple_check_call_matching_types): New function.
11212 * tree-inline.c (tree_can_inline_p): Call new function.
11214 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
11216 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11217 tree-pretty-print.h & realmpfr.h.
11219 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
11221 PR middle-end/48464
11222 * ira.c (setup_pressure_classes): Fix typo in loop condition.
11223 (setup_allocno_and_important_classes): Ditto.
11225 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11227 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11228 GNU_USER_DYNAMIC_LINKER.
11229 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11230 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11231 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11232 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11233 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11234 GNU_USER_TARGET_OS_CPP_BUILTINS.
11235 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11236 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11237 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11238 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11239 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11240 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11241 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11242 GNU_USER_TARGET_OS_CPP_BUILTINS.
11243 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11244 GNU_USER_DYNAMIC_LINKER.
11245 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11246 GNU_USER_TARGET_OS_CPP_BUILTINS.
11247 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11248 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11249 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11250 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11251 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11252 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11253 GNU_USER_DYNAMIC_LINKER64): Remove.
11254 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11255 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11256 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11257 GNU_USER_DYNAMIC_LINKER.
11258 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11259 GNU_USER_TARGET_OS_CPP_BUILTINS.
11260 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11261 GNU_USER_TARGET_OS_CPP_BUILTINS.
11262 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11263 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11264 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11265 GNU_USER_TARGET_OS_CPP_BUILTINS.
11266 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11267 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11268 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11269 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11270 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11271 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11272 GNU_USER_DYNAMIC_LINKER.
11273 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11274 GNU_USER_TARGET_OS_CPP_BUILTINS.
11275 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11277 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11278 GNU_USER_DYNAMIC_LINKER.
11279 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11280 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11281 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11282 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11283 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11284 GNU_USER_DYNAMIC_LINKER.
11285 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11286 GNU_USER_DYNAMIC_LINKERN32.
11287 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11288 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11289 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11290 GNU_USER_DYNAMIC_LINKER32.
11291 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11292 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11293 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11294 GNU_USER_DYNAMIC_LINKER.
11295 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11296 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11297 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11298 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11299 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11300 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11301 GNU_USER_DYNAMIC_LINKER32.
11302 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11303 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11304 GNU_USER_DYNAMIC_LINKER.
11305 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11306 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11307 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11308 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11309 GNU_USER_DYNAMIC_LINKER64.
11310 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11311 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11312 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11313 GNU_USER_DYNAMIC_LINKER.
11314 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11315 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11316 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11317 GNU_USER_DYNAMIC_LINKER.
11318 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11319 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11320 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11321 GNU_USER_DYNAMIC_LINKER32.
11322 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11323 GNU_USER_DYNAMIC_LINKER64.
11324 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11325 GNU_USER_DYNAMIC_LINKER64.
11326 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11327 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11328 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11329 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11330 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11332 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11334 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11335 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11336 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11337 GNU_USER_DYNAMIC_LINKER.
11338 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11339 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11340 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11341 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11342 GNU_USER_DYNAMIC_LINKER64.
11343 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11344 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11345 GNU_USER_LINK_EMULATION.
11346 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11347 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11348 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11349 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11350 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11351 CPP_SPEC, CC1_SPEC): Remove.
11352 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11353 (GNU_USER_DYNAMIC_LINKER): Define.
11354 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11355 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11356 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11357 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11358 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11359 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11360 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11361 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11362 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11363 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11364 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11365 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11366 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11367 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11368 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11369 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11370 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11371 GNU_USER_DYNAMIC_LINKER.
11372 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11373 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11374 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11375 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11376 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11377 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11378 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11379 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11380 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11381 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11383 2011-04-11 Kai Tietz <ktietz@redhat.com>
11387 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11388 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11390 (ix86_is_msabi_thiscall): Removed.
11391 (ix86_is_type_thiscall): Likewise.
11392 (ix86_get_callcvt): New function.
11393 (ix86_comp_type_attributes): Simplify check.
11394 (ix86_function_regparm): Use ix86_get_callcvt for calling
11395 convention attribute checks.
11396 (ix86_return_pops_args): Likewise.
11397 (ix86_static_chain): Likewise.
11398 (x86_this_parameter): Likewise.
11399 (x86_output_mi_thunk): Likewise.
11400 (ix86_function_type_abi): Optimize check for types without attributes.
11401 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11402 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11403 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11405 (IX86_BASE_CALLCVT): Helper macro.
11406 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11407 Use ix86_get_callcvt for calling convention attribute checks and avoid
11408 symbol-decoration for stdcall in TARGET_RTD case.
11409 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11411 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11414 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11416 * config/i386/sse.md (VI_128): New mode iterator.
11417 (VI12_128): Rename from SSEMODE12.
11418 (VI14_128): Rename from SSEMODE14.
11419 (VI124_128): New mode iterator.
11420 (VI24_128): Rename from SSEMODE248.
11421 (VI248_128): Rename from SSEMODE248.
11422 (SSEMODE124C8): Remove.
11423 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11424 (*sse2_<plusminus_insn><mode>3): Merge with
11425 *avx_<plusminus_insn><mode>3.
11426 (*mulv8hi3): Merge with *avx_mulv8hi3.
11427 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11428 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11429 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11430 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11431 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11432 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11433 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11434 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11435 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11436 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11437 (*<smaxmin:code>v8hi3): Ditto.
11438 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11439 (*<smaxmin:code>v16qi3): Ditto.
11440 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11441 (*sse2_eq<mode>3): Ditto.
11442 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11443 (*sse2_gt<mode>3): Ditto.
11444 (vcondv2di): Split out of vcond<mode>.
11445 (vconduv2di): Split out of vcondu<mode>.
11447 2011-04-11 Richard Guenther <rguenther@suse.de>
11449 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11450 before calling tree_low_cst.
11452 2011-04-11 Richard Guenther <rguenther@suse.de>
11454 * stor-layout.c (layout_type): Compute all array index size operations
11455 in the original type.
11456 (initialize_sizetypes): Add comment.
11457 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11459 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11461 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11463 2011-04-11 Martin Jambor <mjambor@suse.cz>
11465 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11466 of cgraph_node, handle NULL return value.
11467 (cgraph_global_info): Likewise.
11468 (cgraph_rtl_info): Likewise.
11469 * tree-inline.c (estimate_num_insns): Likewise.
11470 * gimplify.c (unshare_body): Likewise.
11471 (unvisit_body): Likewise.
11472 (gimplify_body): Likewise.
11473 * predict.c (optimize_function_for_size_p): Likewise.
11474 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11475 (call_may_clobber_ref_p_1): Likewise.
11476 * varasm.c (function_section_1): Likewise.
11477 (assemble_start_function): Likewise.
11479 2011-04-11 Martin Jambor <mjambor@suse.cz>
11481 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11483 * final.c (rest_of_clean_state): Likewise.
11484 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11485 * passes.c (pass_init_dump_file): Likewise.
11486 (execute_all_ipa_transforms): Likewise.
11487 (function_called_by_processed_nodes_p): Likewise.
11488 * predict.c (maybe_hot_frequency_p): Likewise.
11489 (probably_never_executed_bb_p): Likewise.
11490 (compute_function_frequency): Likewise.
11491 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11492 (unnest_nesting_tree_1): Likewise.
11493 (lower_nested_functions): Likewise.
11494 * tree-optimize.c (execute_fixup_cfg): Likewise.
11495 (tree_rest_of_compilation): Likewise.
11496 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11497 * tree-sra.c (ipa_early_sra): Likewise.
11498 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11499 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11500 * ipa.c (record_cdtor_fn): Likewise.
11501 * ipa-inline.c (cgraph_early_inlining): Likewise.
11502 (compute_inline_parameters_for_current): Likewise.
11503 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11504 * ipa-pure-const.c (local_pure_const): Likewise.
11505 * ipa-split.c (split_function): Likewise.
11506 (execute_split_functions): Likewise.
11507 * cgraphbuild.c (build_cgraph_edges): Likewise.
11508 (rebuild_cgraph_edges): Likewise.
11509 (cgraph_rebuild_references): Likewise.
11510 (remove_cgraph_callee_edges): Likewise.
11511 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11512 (verify_cgraph_node): Likewise.
11513 (cgraph_analyze_functions): Likewise.
11514 (cgraph_preserve_function_body_p): Likewise.
11515 (save_inline_function_body): Likewise.
11516 (save_inline_function_body): Likewise.
11517 * tree-inline.c (copy_bb): Likewise.
11518 (optimize_inline_calls): Likewise.
11520 2011-04-11 Martin Jambor <mjambor@suse.cz>
11522 PR tree-optimization/48195
11523 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11524 ipa_check_create_edge_args.
11525 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11526 ipa_check_create_edge_args.
11527 * ipa-inline.c (inline_generate_summary): Do not call
11528 ipa_check_create_node_params and ipa_check_create_edge_args.
11529 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11530 ipa_check_create_edge_args.
11532 2011-04-09 Anatoly Sokolov <aesok@post.ru>
11534 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11536 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11537 * function.c (record_hard_reg_sets): Likewise.
11538 * ira.c (compute_regs_asm_clobbered): Likewise.
11539 * sched-deps.c (sched_analyze_1): Likewise.
11540 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11542 2011-04-09 Xinliang David Li <davidxl@google.com>
11544 PR tree-optimization/PR48484
11545 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11546 has_valid_pred lazily
11548 2011-04-09 Duncan Sands <baldrick@free.fr>
11550 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11552 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11554 * combine.c (combine_validate_cost): Adjust comments. Set registered
11555 cost of I0 to zero at the end, if any.
11557 2011-04-08 Xinliang David Li <davidxl@google.com>
11559 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11560 to insane profile data.
11562 2011-04-08 Xinliang David Li <davidxl@google.com>
11564 * ipa-cp.c (ipcp_update_profiling): Correct
11565 negative scale factor due to insane profile data.
11567 2011-04-08 Xinliang David Li <davidxl@google.com>
11569 * final.c (dump_basic_block_info): New function.
11570 (final): Dump basic block.
11571 (final_scan_insn): Remove old dump.
11573 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11576 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11579 2011-04-08 Michael Matz <matz@suse.de>
11581 PR middle-end/48389
11582 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11584 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11585 * rtl.h (rebuild_jump_labels_chain): Declare.
11586 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11587 insns inserted on edges.
11589 2011-04-08 Joseph Myers <joseph@codesourcery.com>
11591 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11592 * config/arm/arm-arches.def: New.
11593 * config/arm/arm-opts.h: New.
11594 * config/arm/genopt.sh: New.
11595 * config/arm/arm-tables.opt: New (generated).
11596 * config/arm/arm.c (arm_handle_option, arm_target_help,
11597 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11598 (all_architectures): Get most table contents from arm-arches.def.
11599 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11600 arm_selected_tune here.
11601 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11602 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11603 (march=, mcpu=, mtune=): Use Enum and Var.
11604 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11605 (arm.o): Update dependencies.
11607 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
11609 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11611 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11612 (write_typed_alloc_defns): Likewise.
11613 (main): Calls write_typed_alloc_defns with output_header.
11615 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11617 PR inline-asm/48435
11618 * ira-color.c (setup_profitable_hard_regs): Add comments.
11619 Don't take prohibited hard regs into account.
11620 (setup_conflict_profitable_regs): Rename to
11621 get_conflict_profitable_regs.
11622 (check_hard_reg_p): Check prohibited hard regs.
11624 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11626 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11627 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11628 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11630 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11633 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
11634 move from floating point to shift amount register.
11635 (emit_move_sequence): Remove secondary reload support for floating
11636 point to shift amount amount register copies.
11637 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11638 amount register copies.
11639 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11640 register, return false if mode isn't a scalar integer mode.
11641 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11643 2011-04-08 Richard Guenther <rguenther@suse.de>
11645 * gimple.c (gimple_call_flags): Remove kludge.
11647 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11649 * sel-sched.c (sel_region_init): Move call to
11650 sel_setup_region_sched_flags after setup_current_loop_nest.
11652 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
11654 PR rtl-optimization/48272
11655 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11656 init_insn_reg_pressure_info. Adjust a caller.
11657 * sched-int.h (init_insn_reg_pressure_info): Declare.
11658 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11659 when sched-pressure is enabled.
11661 2011-04-08 Richard Guenther <rguenther@suse.de>
11663 * gimple.c (gimple_set_modified): Do not queue calls to
11664 MODIFIED_NORETURN_CALLS here ...
11665 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11667 2011-04-08 Richard Guenther <rguenther@suse.de>
11670 * toplev.c (lang_dependent_init): Do not open asm_out_file
11671 in WPA mode, nor perform debug machinery initialization.
11672 (finalize): Do not unlink asm_out_file in WPA mode.
11674 2011-04-08 Richard Guenther <rguenther@suse.de>
11676 * gimple.h (gimple_call_fntype): New function.
11677 (gimple_call_return_type): Use it.
11678 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11679 * gimple-low.c (gimple_check_call_args): Likewise.
11680 * gimple.c (gimple_call_flags): Likewise.
11681 (gimple_call_arg_flags): Likewise.
11682 (gimple_call_return_flags): Likewise.
11683 * tree-cfg.c (verify_gimple_call): Likewise.
11684 (do_warn_unused_result): Likewise.
11685 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11686 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11688 2011-04-08 Dmitry Melnik <dm@ispras.ru>
11690 PR rtl-optimization/48235
11691 * sel-sched.c (code_motion_process_successors): Recompute the last
11692 insn in basic block if control flow changed.
11693 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11694 Update condition for ilist_remove.
11696 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11698 PR rtl-optimization/48302
11699 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11700 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11701 it to record added preheader blocks.
11702 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11703 on to sel_add_loop_preheaders.
11704 (sel_region_init): Move call to setup_current_loop_nest after
11707 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11710 * cfgloop.h (loop_has_exit_edges): New helper.
11711 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11713 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11714 that have no exit edges.
11716 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11718 PR rtl-optimization/48442
11719 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11720 all callers. Adjust assert.
11722 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11724 PR tree-optimization/48377
11725 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11726 is_packed to true even for types with smaller TYPE_ALIGN than
11729 2011-04-08 Richard Guenther <rguenther@suse.de>
11732 * doc/tm.texi: Re-generate.
11734 2011-04-08 Wei Guozhi <carrot@google.com>
11737 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11738 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11739 * config/arm/arm.md (*push_multi): Change the length computation to
11742 2011-04-08 Anatoly Sokolov <aesok@post.ru>
11744 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11745 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11746 * doc/tm.texi: Regenerate.
11747 * system.h (ASM_OUTPUT_BSS): Poison.
11748 * varasm.c (asm_output_bss): Remove function.
11749 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11751 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11752 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11753 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11754 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11756 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11758 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11760 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11762 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11764 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11767 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11769 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11770 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11771 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11773 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11774 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11775 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11776 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11777 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11778 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11779 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11780 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11781 options. Don't map other m68k options manually. Don't handle
11782 old-style options as canonical.
11783 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11784 * doc/install.texi (m68k-*-*): Document binutils version requirement.
11786 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11788 * basic-block.h (force_nonfallthru): Move to...
11789 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11790 (force_nonfallthru): ...here.
11791 * cfghooks.c (force_nonfallthru): New function.
11792 * cfgrtl.c (force_nonfallthru): Rename into...
11793 (rtl_force_nonfallthru): ...this.
11794 (commit_one_edge_insertion): Do not set AUX field.
11795 (commit_edge_insertions): Do not discover new basic blocks.
11796 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11797 (cfg_layout_rtl_cfg_hooks): Likewise.
11798 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11799 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11800 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11802 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11804 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11807 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11809 * config/i386/sse.md: Update copyright year.
11810 (avxcvtvecmode): Remove.
11811 (sse_movhlps): Merge with *avx_movhlps.
11812 (sse_movlhps): Merge with *avx_movlhps.
11813 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11814 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11815 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11816 (sse_loadhps): Merge with *avx_loadhps.
11817 (sse_storelps): Merge with *avx_storelps.
11818 (sse_loadlps): Merge with *avx_loadlps.
11819 (sse_movss): Merge with *avx_movss.
11820 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11821 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11822 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11823 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11824 (vec_set<mode>_0): Ditto.
11825 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11826 (sse4_1_insertps): Merge with *avx_insertps.
11827 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11828 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11829 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11830 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11831 (sse2_storehpd): Merge with *avx_storehpd.
11832 (sse2_loadhpd): Merge with *avx_loadhpd.
11833 (sse2_loadlpd): Merge with *avx_loadlpd.
11834 (sse2_movsd): Merge with *avx_movsd.
11835 (*vec_concatv2df): Merge with *vec_concatv2df.
11837 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11840 * combine.c (combine_instructions): Add last_combined_insn,
11841 update it if insn is after it, pass it to all try_combine calls.
11842 (try_combine): Add last_combined_insn parameter, pass it instead of
11843 i3 to propagate_for_debug.
11845 2011-04-07 Nick Clifton <nickc@redhat.com>
11847 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11848 to handle MDR <-> data register transfers.
11849 (movhi_internal): Likewise.
11851 2011-04-07 Alan Modra <amodra@gmail.com>
11853 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11854 previous stack info.
11856 2011-04-07 Tom de Vries <tom@codesourcery.com>
11859 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11860 flow_find_cross_jump. Swap variables to implement backward replacement.
11861 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11863 2011-04-07 Tom de Vries <tom@codesourcery.com>
11866 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11867 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11869 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11870 src1 or src2. Redirect edges to the last basic block. Update
11871 frequency and count on multiple basic blocks in case of fallthru.
11873 2011-04-07 Tom de Vries <tom@codesourcery.com>
11876 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11878 (old_insns_match_p): Change return type. Replace return false/true
11879 with return dir_none/dir_both. Use can_replace_by.
11880 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11881 direction from dir_p. Register replacement direction in dir, last_dir
11882 and afterlast_dir. Handle new return type of old_insns_match_p using
11883 merge_dir. Return replacement direction in dir_p.
11884 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11885 return type of old_insns_match_p.
11886 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11887 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11888 flow_find_cross_jump.
11889 * basic-block.h (enum replace_direction): New type.
11890 (flow_find_cross_jump): Add parameter to declaration.
11892 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11894 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11895 (AVXMODEDCVTPS2DQ): Ditto.
11896 (VEC_FLOAT_MODE): Ditto.
11897 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11898 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11899 (<any_logic:code><mode>3): Use VF mode iterator.
11900 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11901 Use VF mode iterator.
11902 (copysign<mode>3): Use VF mode iterator.
11903 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11904 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11905 (*<any_logic:code><MODEF:mode>3): Merge with
11906 *avx_<any_logic:code><MODEF:mode>3.
11907 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11908 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11909 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11910 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11911 (sse2_cvtdq2ps): Use %v modifier.
11912 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11913 (avx_cvtps2dq<avxmodesuffix>): Remove.
11914 (sse2_cvtps2dq): Use %v modifier.
11915 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11916 (avx_cvttps2dq<avxmodesuffix>): Remove.
11917 (sse2_cvttps2dq): Use %v modifier.
11918 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11919 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11920 (sse2_cvtsd2siq): Fix insn template.
11921 (sse2_cvtsd2siq_2): Ditto.
11922 (sse2_cvttsd2siq): Ditto.
11923 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11924 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11926 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11928 * gcov-io.c: Use GCC Runtime Library Exception.
11930 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11933 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11934 as base_reg whatever register reg has been eliminated to, instead
11935 of hardcoding STACK_POINTER_REGNUM.
11937 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11939 * doc/tm.texi.in: Document C target hooks as separate from general
11941 * doc/tm.texi: Regenerate.
11942 * genhooks.c (struct hook_desc): Add docname field.
11943 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11945 (hook_array): Include c-target.def.
11946 (emit_documentation): Use docname field in output.
11947 (emit_init_macros): Take docname argument. Only emit definitions
11948 for hooks matching docname.
11949 (main): Expect additional arguments in all cases. Pass argument
11950 to emit_init_macros.
11951 * target.def: Move initial macro definitions and comments to
11952 target-hooks-macros.h.
11953 (gcc_targetcm): Move to c-family/c-target.def.
11954 * target.h (targetcm): Move declaration to c-family/c-target.h.
11955 * targhooks.c (default_handle_c_option): Move to
11957 * targhooks.h (default_handle_c_option): Move declaration to
11958 c-family/c-common.h.
11959 * target-hooks-macros.h: New file.
11960 * config.gcc (target_has_targetcm): Define and use to add to
11961 c_target_objs and cxx_target_objs.
11962 * config/default-c.c: New file.
11963 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11964 of target.h and target-def.h.
11965 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11966 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11967 darwin_check_cfstring_format_arg): Make static.
11968 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11969 TARGET_STRING_OBJECT_REF_TYPE_P,
11970 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11971 * config/darwin-protos.h (darwin_objc_construct_string,
11972 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11974 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11975 TARGET_STRING_OBJECT_REF_TYPE_P,
11976 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11977 * config/t-darwin (darwin-c.o): Update dependencies.
11978 * system.h (TARGET_HAS_TARGETCM): Poison.
11979 * Makefile.in (TARGET_H): Update.
11980 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11981 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11982 (default-c.o): New target.
11983 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11984 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11985 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11987 (build/genhooks.o): Update dependencies.
11989 2011-04-06 Richard Guenther <rguenther@suse.de>
11991 * ipa-inline.c (enum inlining_mode): Remove.
11992 (cgraph_flatten): Use some other token.
11993 (cgraph_edge_early_inlinable_p): New function, split out from ...
11994 (cgraph_perform_always_inlining): New function, split out from ...
11995 (cgraph_decide_inlining_incrementally): ... here.
11996 (cgraph_mark_inline_edge): Adjust.
11997 (cgraph_early_inlining): Re-structure.
11998 (pass_early_inline): Require SSA form.
12000 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
12001 Julian Brown <julian@codesourcery.com>
12002 Mark Shinwell <shinwell@codesourcery.com>
12004 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
12005 LO_REGS only for Thumb-1.
12006 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
12007 be used in short instructions when optimising for size on Thumb-2.
12009 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12011 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
12012 associated with user returns to be preserved.
12014 2011-04-06 Tristan Gingold <gingold@adacore.com>
12016 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
12017 symbol_queue_size, DBXOUT_DECR_NESTING,
12018 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
12019 if XCOFF_DEBUGGING_INFO.
12021 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
12023 * config/i386/i386.md (attribute isa): New.
12024 (attribute enabled): New.
12025 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
12026 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
12027 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
12028 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
12029 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
12030 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12031 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
12032 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
12034 * config/i386/sse.md (VF): New mode iterator.
12038 (SSEMODEF4): Remove.
12039 (attribute sse): Handle V8SF and V4DF modes.
12040 (<absneg:code><mode>2): Use VF mode iterator.
12041 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
12043 (<plusminus_insn><mode>3): Use VF mode iterator.
12044 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12045 Use VF mode iterator.
12046 (<sse>_vm<plusminus_insn><mode>3): Merge with
12047 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
12048 (mul<mode>3): Use VF mode iterator.
12049 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
12050 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
12052 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
12053 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
12054 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
12055 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
12057 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
12058 Use VF1 mode iterator.
12059 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
12060 (sqrt<VF2:mode>2): New expander.
12061 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
12062 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
12063 and sqrtv2df2. Use VF mode iterator.
12064 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
12066 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
12067 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
12068 Use VF1 mode iterator.
12069 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
12070 (<smaxmin:code><mode>3): Use VF mode iterator.
12071 (*<smaxmin:code><mode>3_finite): Merge with
12072 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
12073 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12074 (<sse>_vm<smaxmin:code><mode>2): Merge with
12075 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
12076 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
12078 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
12080 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
12081 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
12082 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
12083 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
12084 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
12086 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
12087 Use VF_128 mode iterator.
12088 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
12090 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
12091 VF_128 mode iterator.
12092 (vcond<mode>): Use VF mode iterator.
12093 * config/i386/predicates.md (sse_comparison_operator): Merge with
12094 avx_comparison_float_operator. Do not declare as special_predicate.
12095 * config/i386/i386.c (struct builtin_description): Update for renamed
12097 (ix86_expand_args_builtin): Ditto.
12098 (ix86_expand_sse_compare_mask): Ditto.
12100 2011-04-06 Richard Guenther <rguenther@suse.de>
12102 * tree-inline.c (estimate_num_insns): For calls simply account
12103 for all passed arguments and a used return value.
12105 2011-04-06 Richard Guenther <rguenther@suse.de>
12107 PR tree-optimization/47663
12108 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
12109 call_stmt_time fields.
12110 (cgraph_edge_inlinable_p): Declare.
12111 (cgraph_edge_recursive_p): New inline function.
12112 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
12113 (cgraph_clone_edge): Copy it.
12114 * ipa-inline.c (cgraph_estimate_edge_time): New function.
12115 Account for call stmt time.
12116 (cgraph_estimate_time_after_inlining): Take edge argument.
12117 (cgraph_estimate_edge_growth): Account call stmt size.
12118 (cgraph_estimate_size_after_inlining): Take edge argument.
12119 (cgraph_mark_inline_edge): Adjust.
12120 (cgraph_check_inline_limits): Likewise.
12121 (cgraph_recursive_inlining_p): Remove.
12122 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
12123 (cgraph_decide_recursive_inlining): Take edge argument and
12125 (cgraph_decide_inlining_of_small_functions): Do not avoid
12126 diags for recursive inlining here.
12127 (cgraph_flatten): Adjust.
12128 (cgraph_decide_inlining_incrementally): Likewise.
12129 (estimate_function_body_sizes): Remove call cost handling.
12130 (compute_inline_parameters): Initialize caller edge call costs.
12131 (cgraph_estimate_edge_growth): New function.
12132 (cgraph_estimate_growth): Use it.
12133 (cgraph_edge_badness): Likewise.
12134 (cgraph_check_inline_limits): Take an edge argument.
12135 (cgraph_decide_inlining_of_small_functions): Adjust.
12136 (cgraph_decide_inlining): Likewise.
12137 * tree-inline.c (estimate_num_insns): Only account for call
12138 return value if it is used.
12139 (expand_call_inline): Avoid diagnostics on recursive inline
12141 * lto-cgraph.c (lto_output_edge): Output edge call costs.
12142 (input_edge): Input edge call costs.
12144 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12146 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
12148 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12150 * doc/invoke.texi (Spec Files): Fix typo.
12152 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12154 * profile.c (branch_prob): Move declaration of local variable. Remove
12155 obsolete ??? comment. Expand the location explicitly instead of using
12156 the LOCATION_FILE and LOCATION_LINE macros.
12158 2011-04-06 Wei Guozhi <carrot@google.com>
12161 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
12162 (arm_cond_branch): Likewise.
12163 (arm_cond_branch_reversed): Likewise.
12164 (arm_jump): Likewise.
12165 (push_multi): Likewise.
12166 * config/arm/constraints.md (Py): New constraint.
12168 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12171 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12173 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12174 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12175 #ifdef DBX_DEBUGGING_INFO.
12177 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
12180 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12181 if old and new states differ.
12183 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12185 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12186 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12187 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12188 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12189 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12190 mcfv4e): Use Alias.
12191 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12192 ColdFire options to -mcpu= options.
12194 2011-04-05 Jeff Law <law@redhat.com>
12196 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12197 check if BB is a successor of LOOP->header and return
12198 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12200 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12202 * cprop.c (struct reg_use): Remove.
12203 (reg_use_table): Make an array of RTX.
12204 (find_used_regs, constprop_register, local_cprop_pass,
12205 bypass_block): Simplify users of reg_use_table.
12206 (cprop_insn): Likewise. Iterate if copy propagation succeeded
12207 on one of the uses found by find_used_regs.
12209 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12212 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12215 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12217 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12219 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12221 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12223 PR middle-end/48441
12224 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12226 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12228 * combine.c: Include obstack.h.
12229 (struct insn_link): Define.
12230 (uid_log_links): Adjust type.
12231 (FOR_EACH_LOG_LINK): New macro.
12232 (insn_link_obstack): Declare.
12233 (alloc_insn_link): Define.
12234 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12235 type of link variables.
12236 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12237 (try_combine, record_promoted_values, distribute_notes): Likewise.
12238 (distribute_links): Likewise. Tweak prototype.
12239 (clear_log_links): Delete.
12240 (adjust_for_new_dest): Call alloc_insn_link.
12241 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12243 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12245 * gcse.c (modify_mem_list): Convert to an array of VECs.
12246 (canon_modify_mem_list, compute_transp): Tweak formatting.
12247 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12248 (load_killed_in_block_p): Likewise.
12249 (record_last_mem_set_info): Likewise.
12250 (clear_modify_mem_tables): Likewise.
12252 2011-04-05 Tom de Vries <tom@codesourcery.com>
12254 PR middle-end/48461
12255 * function.c (emit_use_return_register_into_block): Only define if
12258 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12260 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12262 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12264 * config/rx/rx-opts.h: New.
12265 * config/rx/rx.c (rx_cpu_type): Remove.
12266 (rx_handle_option): Don't assert that global structures are in
12267 use. Access variables via opts pointer. Defer most handling of
12268 OPT_mint_register_. Use error_at.
12269 (rx_option_override): Handle deferred OPT_mint_register_ here.
12270 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12271 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12272 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12273 (rx_cpu_types): New Enum and EnumValue entries.
12274 (mint-register=): Use Defer and use Var accordingly.
12276 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12278 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12279 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12280 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12282 (debug_free_queue, debug_nesting, symbol_queue_index):
12284 * dbxout.c: ...to here. Make static.
12286 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12288 * gcse.c (modify_pair): Define. Define a VEC of it.
12289 (canon_modify_mem_list): Convert to an array of VECs.
12290 (free_insn_expr_list_list): Delete.
12291 (clear_modify_mem_tables): Call VEC_free instead.
12292 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12293 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12294 (canon_list_insert, compute_transp): Likewise.
12296 2011-04-05 Tom de Vries <tom@codesourcery.com>
12299 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12302 2011-04-05 Tom de Vries <tom@codesourcery.com>
12305 * function.c (emit_use_return_register_into_block): New function.
12306 (thread_prologue_and_epilogue_insns): Use
12307 emit_use_return_register_into_block.
12309 2011-04-05 Tom de Vries <tom@codesourcery.com>
12312 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12315 2011-04-05 Tom de Vries <tom@codesourcery.com>
12317 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12319 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12321 * config/arm/arm.md (define_constants for unspec): Replace with
12323 (define_constants for unspecv): Replace with define_c_enum.
12324 * config/arm/neon.md (define_constants for unspec): Replace with
12327 2011-04-04 Richard Henderson <rth@redhat.com>
12330 * dwarf2out.c (output_line_info): Always emit line info from
12331 at least one section.
12332 (dwarf2out_init): Create text_section_line_info here ...
12333 (set_cur_line_info_table): ... not here.
12335 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
12338 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12341 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12343 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12345 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12346 (expr_equiv_p): Remove.
12347 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12348 (hash_scan_set): Update call to insert_set_in_table.
12349 (dump_hash_table): Dump <dest, src> pair.
12350 (lookup_set): Simplify. Lookup <dest, src> pair.
12351 (compute_transp): Remove, fold heavily simplified code into...
12352 (compute_local_properties): ...here. Expect COMP and TRANSP
12354 (find_avail_set): Take set directly from struct expr.
12355 (find_bypass-set): Likewise.
12356 (bypass_block): Likewise.
12357 (cprop_insn): Likewise. Remove redundant INSN_P test.
12359 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12360 checks on form of COND from find_implicit_sets to here.
12361 (find_implicit_sets): Cleanup control flow. Split critical edges
12362 if it exposes implicit sets. Allocate/resize implicit_sets as
12364 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12365 changed something. Run df_analyze after find_implicit_sets if any
12366 edges were split. Do not allocate implicit_sets here.
12368 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12369 (gcse_obstack): Renamed to cprop_obstack.
12370 (GNEW, GNEWVEC, GNEWVAR): Remove.
12372 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12373 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12374 (gcse_alloc): Likewise, and rename to cprop_alloc.
12375 (alloc_gcse_men, free_gcse_mem): Remove.
12376 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12377 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12378 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12380 * cprop.c (oprs_not_set_p): Remove.
12381 (mark_set, mark_clobber): Remove.
12382 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12383 (reg_not_set_p): New function.
12384 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12385 (cprop_insn): Likewise.
12386 (cprop_jump): Use FOR_EACH_EDGE.
12388 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12391 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12392 (rank_for_schedule): Use scheduled_insns vector instead of
12393 last_scheduled_insn.
12394 (ok_for_early_queue_removal): Likewise.
12395 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12397 (choose_ready): Likewise.
12398 (commit_schedule): Use VEC_iterate.
12399 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12400 a dbg_cnt, use it and ensure the first insn is in the ready list.
12401 (haifa_sched_init): Allocate scheduled_insns.
12402 (sched_extend_ready_list): Don't allocate it; reserve space.
12403 (haifa_sched_finish): Free it.
12405 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12407 * optc-gen.awk: Always remove type from Variable entry before
12408 recording in var_seen.
12410 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12412 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12413 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12414 call to tidy_fallthru_edges.
12416 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12418 * doc/options.texi (ToLower): Document.
12419 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12420 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12421 * opts.h (cl_option): Add cl_tolower field.
12422 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12423 arguments with lowercase strings.
12424 * config/rx/rx.opt (mcpu=): Add ToLower.
12425 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12428 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12430 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12432 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12434 * config/vax/vax.c: Include reload.h.
12436 2011-04-04 Anatoly Sokolov <aesok@post.ru>
12438 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12439 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12440 (sparc_preferred_reload_class): New function.
12442 2011-04-04 Jakub Jelinek <jakub@redhat.com>
12445 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12446 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12448 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12450 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12451 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12453 2011-04-03 Anatoly Sokolov <aesok@post.ru>
12455 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12456 (ASM_OUTPUT_ALIGNED_BSS): Define.
12458 2011-04-03 Michael Matz <matz@suse.de>
12460 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12461 and next_slot members.
12462 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12463 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12464 (lto_streamer_cache_append): Declare.
12465 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12466 unsigned index, remove offset parameter, ensure that we append
12467 or update existing entries.
12468 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12469 parameter, update next_slot for append.
12470 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12472 (lto_streamer_cache_insert_at): Likewise.
12473 (lto_streamer_cache_append): New function.
12474 (lto_streamer_cache_lookup): Use unsigned index.
12475 (lto_streamer_cache_get): Likewise.
12476 (lto_record_common_node): Don't test tree_node_can_be_shared.
12477 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12478 (lto_streamer_cache_delete): Don't free offsets member.
12479 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12480 (lto_output_string_with_length): Use lto_output_data_stream.
12481 (lto_output_tree_header): Remove ix parameter, don't write it.
12482 (lto_output_builtin_tree): Likewise.
12483 (lto_write_tree): Adjust callers to above, don't track and write
12484 offset, write unsigned index.
12485 (output_unreferenced_globals): Don't emit all global vars.
12486 (write_global_references): Use unsigned indices.
12487 (lto_output_decl_state_refs): Likewise.
12488 (write_symbol): Likewise.
12489 * lto-streamer-in.c (lto_input_chain): Move earlier.
12490 (input_function): Use unsigned index.
12491 (input_alias_pairs): Don't read and then ignore all global vars.
12492 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12493 don't pass it back, use lto_streamer_cache_append.
12494 (lto_register_var_decl_in_symtab): Use unsigned index.
12495 (lto_register_function_decl_in_symtab): Likewise.
12496 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12498 (lto_get_builtin_tree): Don't read index, use
12499 lto_streamer_cache_append.
12500 (lto_read_tree): Adjust call to lto_materialize_tree.
12502 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12503 don't use function calls in arguments to MIN.
12505 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12508 * gimple.c (gimple_type_leader_entry): Mark deletable.
12510 2011-04-03 Alan Modra <amodra@gmail.com>
12512 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12514 2011-04-03 Michael Matz <matz@suse.de>
12516 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12518 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12520 2011-04-03 Michael Matz <matz@suse.de>
12522 * cgraphbuild.c (record_reference): Canonicalize constructor values.
12523 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12524 without function context.
12525 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12526 current_function_decl and cfun.
12528 2011-04-03 Michael Matz <matz@suse.de>
12530 * tree.c (decl_init_priority_insert): Don't create entry for
12532 (decl_fini_priority_insert): Ditto.
12533 (fields_compatible_p, find_compatible_field): Remove.
12534 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12535 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12537 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12539 * combine.c (try_combine): Remove useless local variable.
12541 2011-04-03 Richard Guenther <rguenther@suse.de>
12542 Ira Rosen <ira.rosen@linaro.org>
12544 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12545 non-variable offsets and compare the remaining bases of the two
12546 accesses instead of looking for exact same data-ref.
12548 2011-04-02 Kai Tietz <ktietz@redhat.com>
12551 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12553 * i386.c (ix86_is_msabi_thiscall): New helper function.
12554 (ix86_is_type_thiscall): New helper function.
12555 (ix86_comp_type_attributes): Handle thiscall for method-functions
12557 (init_cumulative_args): Likewise.
12558 (find_drap_reg): Likewise.
12559 (ix86_static_chain): Likewise.
12560 (x86_this_parameter): Likewise.
12561 (x86_output_mi_thunk): Likewise.
12563 2011-04-01 Olivier Hainque <hainque@adacore.com>
12564 Nicolas Setton <setton@adacore.com>
12565 Eric Botcazou <ebotcazou@adacore.com>
12567 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12568 (add_gnat_descriptive_type_attribute): New function.
12569 (gen_array_type_die): Call it.
12570 (gen_enumeration_type_die): Likewise.
12571 (gen_struct_or_union_type_die): Likewise.
12572 (modified_type_die): Likewise.
12573 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12574 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12575 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12577 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12580 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12581 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12584 2011-03-17 Richard Guenther <rguenther@suse.de>
12587 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12588 origin for decls in other ltrans units.
12589 (input_varpool_node): Likewise.
12591 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12593 PR middle-end/48335
12594 * expr.c (expand_assignment): Handle all possibilities
12595 if TO_RTX is CONCAT.
12596 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
12597 (store_split_bit_field): If SUBREG_REG (op0) or
12598 op0 itself has smaller mode than word, return it
12599 for offset 0 and const0_rtx for out-of-bounds stores.
12600 If word is const0_rtx, skip it.
12602 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12604 * config/h8300/h8300.c (print_operand_address): Rename to...
12605 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12606 Call h8300_print_operand and h8300_print_operand_address instead of
12607 print_operand and print_operand_address. Declare.
12608 (print_operand): Renake to...
12609 (h8300_print_operand): ...this. Make static. Adjust comments.
12610 Call h8300_print_operand instead of print_operand. Declare.
12611 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12612 (h8300_register_move_cost): Likewise.
12613 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12614 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12615 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12616 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12617 * config/h8300/h8300-protos.h (print_operand): Delete.
12618 (print_operand_address): Delete.
12620 2011-04-01 Richard Henderson <rth@redhat.com>
12623 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12624 in strict mode before dwarf4. Re-order tests to early out
12625 before switching sections.
12627 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12629 * config/h8300/constraints.md: New file.
12630 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12631 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12632 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12633 * config/h8300/predicates.md (bit_operand): Likewise.
12634 (incdec_operand): Use satisfies_constraint_M and
12635 satisfies_constraint_O. Don't use C code block.
12636 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12637 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12638 (compute_mov_length): Use satisfies_constraint_G.
12639 (fix_bit_operand): Use satisfies_constraint_U.
12640 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12641 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12642 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12643 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12644 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12645 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12646 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12647 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12648 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12649 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12650 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12651 (EXTRA_MEMORY_CONSTRAINT): Delete.
12653 2011-04-01 Andrew Pinski <pinskia@gmail.com>
12654 Michael Meissner <meissner@linux.vnet.ibm.com>
12657 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12658 operands, as per the specifications.
12660 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12661 (vec_extract_evenv4sf): Ditto.
12662 (vec_extract_evenv8hi): Ditto.
12663 (vec_extract_evenv16qi): Ditto.
12664 (vec_extract_oddv4si): Ditto.
12666 2011-03-31 Mark Wielaard <mjw@redhat.com>
12668 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12669 high_pc attribute if the CU has no associated code. Only output
12670 DW_AT_entry_pc for CU if not generating strict dwarf and
12673 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12675 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12676 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12678 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12679 * final.c (final_start_function): Call the new function rather
12680 than using a NULL argument for dwarf2out_frame_debug.
12682 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12683 that contains the prologue.
12685 * haifa-sched.c (queue_insn): New arg REASON. All callers
12686 changed. Print it in debugging output.
12688 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12690 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12691 Split most of the code into...
12692 (begin_move_insn): ... here. New function.
12693 (ebb_sched_info): Add a pointer to it.
12694 * haifa-sched.c (scheduled_insns): New static variable.
12695 (sched_extend_ready_list): Allocate it.
12696 (schedule_block): Use it to record the order of scheduled insns.
12697 Perform RTL changes to move insns only after all scheduling
12698 decisions have been made.
12699 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12700 begin_move_insn field.
12701 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12702 * sched-int.h (struct haifa_sched_info): Remove second argument
12703 from begin_schedule_ready hook. Add new member begin_move_insn.
12704 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12705 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12707 * haifa-sched.c (prune_ready_list): New function, broken out of
12709 (schedule_block): Use it.
12711 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12713 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12715 2011-04-01 Kai Tietz <ktietz@redhat.com>
12717 * config.gcc (*-*-mingw*): Allow as option the
12718 posix threading model.
12719 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12720 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12722 (CPP_SPEC): Add pthread/no-pthread handling.
12723 (LIB_SPEC): Likewise.
12724 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12725 (LIB_SPEC): Likewise.
12726 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12727 flag to pass -pthread option for shared libgcc build.
12728 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12729 for shared libgcc build.
12730 * config/i386/t-mingw-pthread: New file.
12731 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12732 New define to enable use of library pthread by default.
12733 * config/i386/mingw.opt (pthread): New driver option.
12734 (no-pthread): New driver option.
12735 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12736 * config/i386/mingw-w64.opt: Likewise.
12738 2011-04-01 Gary Funck <gary@intrepid.com>
12740 * c-decl.c (grokdeclarator): Fix formatting.
12742 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12744 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12745 instead of n_operands.
12746 (set_storage_via_setmem): Likewise.
12747 * optabs.c (maybe_gen_insn): Likewise.
12748 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12749 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12750 (mips_expand_builtin_direct): Likewise.
12751 * config/spu/spu.c (expand_builtin_args): Likewise.
12753 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12755 * recog.h (insn_data_d): Add n_generator_args.
12756 * genoutput.c (data): Likewise.
12757 (output_insn_data): Print it.
12758 (max_opno, num_dups): Delete.
12759 (scan_operands): Just fill in "d->operand[...]".
12760 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12762 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12764 * gensupport.h (pattern_stats): New structure.
12765 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12766 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12767 (max_operand_1, max_operand_vec): Delete.
12768 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12770 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12772 * emit-rtl.c (emit_pattern_after_setloc): New function.
12773 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12774 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12775 (emit_pattern_after): New function.
12776 (emit_insn_after, emit_jump_insn_after): Call it.
12777 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12778 (emit_pattern_before_setloc): New function.
12779 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12780 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12782 (emit_pattern_before): New function.
12783 (emit_insn_before, emit_jump_insn_before): Call it.
12784 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12786 2011-03-31 Richard Henderson <rth@redhat.com>
12788 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12789 (dw_separate_line_info_entry): Remove.
12790 (enum dw_line_info_opcode): New.
12791 (dw_line_info_entry): Use it.
12792 (dw_line_info_table, dw_line_info_table_p): New.
12793 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12794 (line_info_table, line_info_label_num): Remove.
12795 (line_info_table_in_use): Remove.
12796 (separate_line_info_table): Remove.
12797 (separate_line_info_table_allocated): Remove.
12798 (separate_line_info_table_in_use): Remove.
12799 (LINE_INFO_TABLE_INCREMENT): Remove.
12800 (line_info_label_num): New.
12801 (cur_line_info_table): New.
12802 (text_section_line_info, cold_text_section_line_info): New.
12803 (separate_line_info): New.
12804 (SEPARATE_LINE_CODE_LABEL): Remove.
12805 (print_dwarf_line_table): Remove.
12806 (debug_dwarf): Don't dump it.
12807 (output_one_line_info_table): New.
12808 (output_line_info): Use it.
12809 (new_line_info_table): New.
12810 (set_cur_line_info_table): New.
12811 (dwarf2out_switch_text_section): Use it.
12812 (dwarf2out_begin_function): Likewise.
12813 (push_dw_line_info_entry): New.
12814 (dwarf2out_source_line): Rewrite for new line info tables.
12815 (dwarf2out_init): Remove dead initailizations.
12817 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12819 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12821 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12822 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12823 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12824 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12825 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12826 * opt-functions.awk (flag_init, switch_bit_fields): New.
12827 (switch_flags): Don't handle flags moved to bit-fields. Don't
12828 generate CL_MISSING_OK or CL_SAVE.
12829 * optc-gen.awk: Update to generate bit-field output as well as
12831 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12832 bit-field instead of CL_REJECT_DRIVER flag.
12833 * opts-common.c (generate_canonical_option,
12834 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12835 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12836 instead of CL_REJECT_NEGATIVE flag.
12837 * toplev.c (print_switch_values): Use cl_report bit-field instead
12840 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12842 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12843 a zero minimum index only if it is redundant.
12845 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12847 PR rtl-optimization/48381
12848 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12849 instead of ira_class_hard_reg_index for calculating conflicting
12852 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12854 * cprop.c: Clean up hash table building.
12855 (reg_avail_info): Remove.
12856 (oprs_available_p): Remove.
12857 (record_last_reg_set_info): Remove.
12858 (record_last_set_info): Remove.
12859 (reg_available_p): New function.
12860 (gcse_constant_p): Do not treat unfolded conditions as constants.
12861 (make_set_regs_unavailable): New function.
12862 (hash_scan_set): Simplify with new reg_available_p.
12863 (compute_hash_table_work): Traverse insns stream only once.
12864 Do not compute reg_avail_info. Traverse insns in reverse order.
12865 Record implicit sets after recording explicit sets from the block.
12867 2011-03-31 Michael Matz <matz@suse.de>
12869 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12871 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12873 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12874 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12875 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12876 (h8300_mode_dependent_address_p): New function.
12877 (h8300_get_index): Make static.
12879 2011-03-31 Jeff Law <law@redhat.com>
12881 * reload1.c (elimination_effects): Fix typo in recent change.
12883 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12884 typo potentially leading to null pointer dereference.
12886 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12887 (setup_save_areas): Corresponding changes to avoid useless
12890 * jump.c (reversed_comparison_code_parts): Avoid successive return
12891 statements when REVERSE_CONDITION is defined.
12893 * expr.c (expand_assignment): Avoid useless assignments.
12894 (expand_expr_real_1): Likewise.
12895 (expand_expr_real_2): Avoid useless statements.
12897 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12899 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12901 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12904 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12906 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12909 * doc/tm.texi.in (TARGET_VERSION): Remove.
12910 * doc/tm.texi: Regenerate.
12911 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12912 * collect2.c (main): Don't use TARGET_VERSION.
12913 * mips-tdump.c (main): Don't use TARGET_VERSION.
12914 * mips-tfile.c (main): Don't use TARGET_VERSION.
12915 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12916 * config/rs6000/vxworksae.h: Remove.
12917 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12918 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12919 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12920 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12921 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12922 * config/arm/arm.h (TARGET_VERSION): Remove.
12923 * config/arm/coff.h (TARGET_VERSION): Remove.
12924 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12925 * config/arm/elf.h (TARGET_VERSION): Remove.
12926 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12927 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12928 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12929 * config/arm/pe.h (TARGET_VERSION): Remove.
12930 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12931 * config/arm/semi.h (TARGET_VERSION): Remove.
12932 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12933 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12934 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12935 * config/avr/avr.h (TARGET_VERSION): Remove.
12936 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12937 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12938 * config/frv/frv.h (TARGET_VERSION): Remove.
12939 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12940 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12941 * config/i386/darwin.h (TARGET_VERSION): Remove.
12942 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12943 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12944 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12945 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12946 * config/i386/gnu.h (TARGET_VERSION): Remove.
12947 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12948 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12949 * config/i386/linux.h (TARGET_VERSION): Remove.
12950 * config/i386/linux64.h (TARGET_VERSION): Remove.
12951 * config/i386/lynx.h (TARGET_VERSION): Remove.
12952 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12953 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12954 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12955 * config/i386/netware.h (TARGET_VERSION): Remove.
12956 * config/i386/nto.h (TARGET_VERSION): Remove.
12957 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12958 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12959 * config/ia64/elf.h (TARGET_VERSION): Remove.
12960 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12961 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12962 * config/ia64/linux.h (TARGET_VERSION): Remove.
12963 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12964 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12965 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12966 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12967 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12968 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12969 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12970 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12971 * config/m68k/linux.h (TARGET_VERSION): Remove.
12972 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12973 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12974 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12975 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12976 * config/mep/mep.h (TARGET_VERSION): Remove.
12977 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12978 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12979 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12980 * config/mips/linux.h (TARGET_VERSION): Remove.
12981 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12982 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12983 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12984 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12985 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12986 * config/pa/pa.h (TARGET_VERSION): Remove.
12987 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12988 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12989 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12990 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12991 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12992 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12993 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12994 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12995 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12996 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12997 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12998 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12999 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
13000 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
13001 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
13002 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
13003 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
13004 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
13005 * config/s390/linux.h (TARGET_VERSION): Remove.
13006 * config/s390/s390.h (TARGET_VERSION): Remove.
13007 * config/s390/tpf.h (TARGET_VERSION): Remove.
13008 * config/score/score.h (TARGET_VERSION): Remove.
13009 * config/sh/linux.h (TARGET_VERSION): Remove.
13010 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
13011 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
13012 * config/sh/sh.h (TARGET_VERSION): Remove.
13013 * config/sh/sh64.h (TARGET_VERSION): Remove.
13014 * config/sh/superh.h (TARGET_VERSION): Remove.
13015 * config/sh/vxworks.h (TARGET_VERSION): Remove.
13016 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
13017 * config/sparc/linux.h (TARGET_VERSION): Remove.
13018 * config/sparc/linux64.h (TARGET_VERSION): Remove.
13019 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
13020 TARGET_NAME32, TARGET_NAME): Remove.
13021 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
13022 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
13023 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
13024 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
13025 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
13026 * config/spu/spu.h (TARGET_VERSION): Remove.
13027 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
13028 * config/v850/v850.h (TARGET_VERSION): Remove.
13029 * config/vax/linux.h (TARGET_VERSION): Remove.
13030 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
13031 * config/xtensa/elf.h (TARGET_VERSION): Remove.
13032 * config/xtensa/linux.h (TARGET_VERSION): Remove.
13034 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13037 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
13038 frame-related from frame-unrelated adjustments to the stack pointer.
13040 2011-03-31 Jakub Jelinek <jakub@redhat.com>
13042 * common.opt (fdebug-types-section): Move earlier.
13043 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
13045 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
13047 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
13050 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
13052 * tree.h (CASE_CHAIN): Define.
13053 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
13054 (gimple_redirect_edge_and_branch): Likewise.
13056 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13058 PR middle-end/48367
13059 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
13062 2011-03-30 Jeff Law <law@redhat.com>
13064 * PR bootstrap/48371
13065 * reload1.c (reload): Fix botch in last change.
13067 * reload.h (struct reload): Fix typo introduced in last change.
13069 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13071 * config/arm/arm.opt (mhard-float, msoft-float): Mark
13072 Undocumented. Remove help text.
13073 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
13076 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13078 * doc/options.texi (NegativeAlias): Document.
13079 (Alias): Mention NegativeAlias.
13080 * opt-functions.awk: Handle NegativeAlias.
13081 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
13082 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
13083 * opts.h (CL_NEGATIVE_ALIAS): Define.
13084 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
13085 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
13087 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
13089 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13090 mno-spe and mno-isel instead of mspe=no and -misel=no.
13092 2011-03-29 Mark Wielaard <mjw@redhat.com>
13094 * common.opt (fdebug-types-section): New flag.
13095 * doc/invoke.texi: Document new -fno-debug-types-section flag.
13096 * dwarf2out.c (use_debug_types): New define.
13097 (struct die_struct): Mark die_id with GTY desc use_debug_types.
13098 (print_die): Guard output of type unit signatures using
13100 (build_abbrev_table): Replace assert of dwarf_version >= 4
13101 with assert on use_debug_types.
13102 (size_of_die): Likewise.
13103 (unmark_dies): Likewise.
13104 (value_format): Decide AT_ref_external form on use_debug_types.
13105 (output_die): Replace dwarf_version version check guard with
13106 use_debug_types where appropriate.
13107 (modified_type_die): Likewise.
13108 (gen_reference_type_die): Likewise.
13109 (dwarf2out_start_source_file): Likewise.
13110 (dwarf2out_end_source_file): Likewise.
13111 (prune_unused_types_walk_attribs): Likewise.
13112 (dwarf2out_finish): Likewise.
13114 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13116 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
13118 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13120 PR rtl-optimization/48332
13121 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
13122 mode of input operand N and modeN to its actual mode.
13124 2011-03-30 Jeff Law <law@redhat.com>
13126 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
13127 define accessor macro.
13128 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
13129 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
13130 (reg_equiv_init): Likewise.
13131 (reg_equivs_size): New variable.
13132 (reg_equiv_init_size): Remove.
13133 (allocate_initial_values): Move prototype to here from....
13134 * integrate.h (allocate_initial_values): Remove prototype.
13135 * integrate.c: Include reload.h.
13136 (allocate_initial_values): Corresponding changes.
13137 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
13138 (fix_reg_equiv_init, no_equiv): Corresponding changes.
13139 (update_equiv_regs): Corresponding changes.
13140 (ira): Corresponding changes.
13141 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
13142 (push_secondary_reload): Corresponding changes.
13143 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
13144 (make_memloc, find_reloads_address): Corresponding changes.
13145 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
13146 (find_reloads_address_1): Corresponding changes.
13147 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
13148 (refers_to_regno_for_reload_p): Corresponding changes.
13149 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
13150 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
13151 * reload1.c: Include ggc.h.
13152 (grow_reg_equivs): New function.
13153 (replace_pseudos_in, reload): Corresponding changes.
13154 (calculate_needs_all_insns, alter_regs): Corresponding changes.
13155 (eliminate_regs_1, elimination_effects): Corresponding changes.
13156 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
13157 (delete_output_reload): Likewise.
13158 * caller-save.c (mark_referenced_regs): Corresponding changes.
13159 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
13160 * frv/predicates.md (frv_load_operand): Corresponding changes.
13161 * microblaze/microblaze.c (double_memory_operand): Corresponding
13163 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
13164 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
13165 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
13166 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13167 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13169 * pa/pa.c (emit_move_sequence): Corresponding changes.
13170 * vax/vax.c (nonindexed_address_p): Corresponding changes.
13172 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13175 * config/arm/arm.c (coproc_secondary_reload_class): Handle
13176 structure modes. Don't check neon_vector_mem_operand for
13177 vector or structure modes.
13179 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13180 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13183 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13184 operand 1 and reshuffle the operands to match.
13185 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13187 2011-03-30 Christian Schüler <cschueler@gmx.de>
13190 * config/c.opt (F): Added 'Driver' to -F option.
13193 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13195 * config/darwin.opt: Added '-arch' option.
13197 2011-03-30 Nick Clifton <nickc@redhat.com>
13199 * config/rx/rx.md: Add peepholes and patterns to combine
13200 extending loads and simple arithmetic instructions.
13201 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
13202 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13203 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
13204 modes to use pre-decrement and post-increment addressing.
13205 (rx_is_restricted_memory_address): Add range checking of REG+INT
13207 (rx_print_operand): Add support for %Q. Fix handling of %Q.
13208 (rx_memory_move_cost): Adjust cost of stores.
13209 (rx_adjust_insn_length): New function.
13211 2011-03-30 Jakub Jelinek <jakub@redhat.com>
13214 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13215 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13216 matching arg00/arg01 types.
13218 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
13220 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13221 last_location to UNKNOWN_LOCATION.
13223 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
13226 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13229 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13230 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13233 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13234 Init(PROCESSOR_V7).
13235 (sparc_cpu): Likewise.
13236 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13239 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13242 PR middle-end/48342
13243 PR rtl-optimization/48345
13244 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13245 hard regs for given mode from profitable regs when doing secondary
13248 2011-03-29 Jeff Law <law@redhat.com>
13251 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13252 do_not_duplicate field.
13253 (lookup_redirection_data): Corresponding changes.
13254 (create_duplicates): Always create a template block.
13255 (redirect_edges): Remove code which reused the original block
13256 when it was going to become unreachable code.
13257 (thread_block): Don't set do_not_duplicate field.
13259 2011-03-29 Joseph Myers <joseph@codesourcery.com>
13261 * lto-opts.c (register_user_option_p, lto_register_user_option):
13262 Make type argument unsigned.
13263 * lto-streamer.h (lto_register_user_option): Make type argument
13265 * opth-gen.awk: Make CL_* macros unsigned.
13266 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13267 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13268 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13269 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13270 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13271 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13272 (find_opt): Make lang_mask argument unsigned.
13274 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13276 PR rtl-optimization/48331
13277 PR rtl-optimization/48334
13278 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13279 for any used algorithm.
13281 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13283 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13286 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
13288 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13289 (alpha_option_override): Don't set alpha_sr_alias_set.
13290 (emit_frame_store_1): Use gen_frame_mem rather than calling
13292 (alpha_expand_epilogue): Ditto.
13294 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
13296 PR tree-optimization/48290
13297 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13298 vectorization, check that relevant phis in the basic block after
13299 the inner loop are really inner loop's exit phis.
13301 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13304 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13305 (cached_dw_loc_list_def): New structure.
13306 (cached_dw_loc_list): New typedef.
13307 (cached_dw_loc_list_table): New variable.
13308 (cached_dw_loc_list_table_hash): New function.
13309 (cached_dw_loc_list_table_eq): Likewise.
13310 (add_location_or_const_value_attribute): Take a bool cache_p.
13311 Cache the list when the parameter is true.
13312 (gen_formal_parameter_die): Update caller.
13313 (gen_variable_die): Likewise.
13314 (dwarf2out_finish): Likewise.
13315 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13316 while generating debug info for the decl.
13317 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13318 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13319 (resolve_addr): Cache the result of resolving a chain of
13322 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13324 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13325 conflict object hard regset nodes have intersecting hard reg sets.
13327 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13328 after regstat_init_n_sets_and_refs.
13330 * ira.c: Add more comments at the top.
13331 (setup_stack_reg_pressure_class, setup_pressure_classes):
13332 Add comments how we compute the register pressure classes.
13333 (setup_allocno_and_important_classes): Add more comments.
13334 (setup_class_translate_array, reorder_important_classes)
13335 (setup_reg_class_relations): Add comments.
13337 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13340 * ira-color.c: Add 2011 to the Copyright line.
13341 (assign_hard_reg): Add more comments.
13342 (improve_allocation): Ditto.
13344 * ira-costs.c: Add 2011 to the Copyright line.
13345 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13347 (setup_regno_cost_classes_by_mode): Ditto.
13349 Initial patches from ira-improv branch:
13351 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13353 * ira-build.c (ira_create_object): Remove initialization of
13354 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13355 (ira_create_allocno): Remove initialization of
13356 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13357 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13358 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13359 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13360 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13361 Initialize ALLOCNO_ADD_DATA.
13362 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13363 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13365 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13366 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13368 * ira.c (ira_reallocate): Remove.
13369 (setup_pressure_classes): Call
13370 ira_init_register_move_cost_if_necessary. Use
13371 ira_register_move_cost instead of ira_get_register_move_cost.
13372 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13373 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13375 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13376 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13377 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13378 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13379 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13380 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13382 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13383 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13384 (struct allocno_color_data): New.
13385 (allocno_color_data_t): New typedef.
13386 (allocno_color_data): New definition.
13387 (ALLOCNO_COLOR_DATA): New macro.
13388 (struct object_color_data): New.
13389 (object_color_data_t): New typedef.
13390 (object_color_data): New definition.
13391 (OBJECT_COLOR_DATA): New macro.
13392 (update_copy_costs, calculate_allocno_spill_cost): Call
13393 ira_init_register_move_cost_if_necessary. Use
13394 ira_register_move_cost instead of ira_get_register_move_cost.
13395 (move_spill_restore, update_curr_costs): Ditto.
13396 (allocno_spill_priority): Make it inline.
13397 (color_pass): Allocate and free allocno_color_dat and object_color_data.
13398 (struct coalesce_data, coalesce_data_t): New.
13399 (allocno_coalesce_data): New definition.
13400 (ALLOCNO_COALESCE_DATA): New macro.
13401 (merge_allocnos, coalesced_allocno_conflict_p): Use
13402 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13403 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13404 (coalesce_allocnos): Ditto.
13405 (setup_coalesced_allocno_costs_and_nums): Ditto.
13406 (collect_spilled_coalesced_allocnos): Ditto.
13407 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13408 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13409 (coalesce_spill_slots): Ditto.
13410 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13411 free allocno_coalesce_data.
13413 * ira-conflicts.c: Fix formatting.
13414 (process_regs_for_copy): Call
13415 ira_init_register_move_cost_if_necessary. Use
13416 ira_register_move_cost instead of ira_get_register_move_cost.
13417 (build_object_conflicts): Optimize.
13419 * ira-costs.c (record_reg_classes): Optimize. Call
13420 ira_init_register_move_cost_if_necessary. Use
13421 ira_register_move_cost, ira_may_move_in_cost, and
13422 ira_may_move_out_cost instead of ira_get_register_move_cost and
13423 ira_get_may_move_cost.
13424 (record_address_regs): Ditto.
13425 (scan_one_insn): Optimize.
13426 (find_costs_and_classes): Optimize.
13427 (process_bb_node_for_hard_reg_moves): Call
13428 ira_init_register_move_cost_if_necessary. Use
13429 ira_register_move_cost instead of ira_get_register_move_cost.
13431 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13432 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13433 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13434 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13436 (ira_initiate_emit_data, ira_finish_emit_data)
13437 (create_new_allocno): New functions.
13438 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13439 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13440 Use ira_register_move_cost instead of ira_get_register_move_cost.
13442 * ira-int.h: Fix some comments.
13443 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13444 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13445 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13446 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13448 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13449 bitfield after mode. Make hard_regno a short int. Make
13450 hard_regno short. Remove first_coalesced_allocno and
13451 next_coalesced_allocno. Move mem_optimized_dest_p,
13452 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13453 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13454 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13455 temp, colorable_p. Add new member add_data.
13456 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13457 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13458 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13459 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13460 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13461 (ALLOCNO_ADD_DATA): New macro.
13462 (ira_emit_data_t): New typedef.
13463 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13464 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13465 from struct ira_allocno.
13466 (ALLOCNO_EMIT_DATA): New macro.
13467 (ira_allocno_emit_data, allocno_emit_reg): New.
13468 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13469 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13470 (OBJECT_ADD_DATA): New macro.
13471 (ira_reallocate): Remove.
13472 (ira_initiate_emit_data, ira_finish_emit_data): New.
13473 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13474 (ira_init_register_move_cost_if_necessary): New.
13475 (ira_object_conflict_iter_next): Merge into
13476 ira_object_conflict_iter_cond.
13477 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13479 * ira-live.c (process_single_reg_class_operands): Call
13480 ira_init_register_move_cost_if_necessary. Use
13481 ira_register_move_cost instead of ira_get_register_move_cost.
13483 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13485 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13487 * ira-costs.c: Fix formatting.
13488 (cost_classes, cost_classes_num): Remove.
13489 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13490 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13491 (cost_classes_del, cost_classes_htab): New.
13492 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13493 (initiate_regno_cost_classes, setup_cost_classes): New.
13494 (setup_regno_cost_classes_by_aclass): New.
13495 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13496 (record_reg_classes): Use regno_cost_classes instead of
13497 cost_classes. Move checking opposite operand up.
13498 (record_address_regs): Use regno_cost_classes
13499 instead of cost_classes.
13500 (scan_one_insn): Ditto. Use always general register.
13501 (print_allocno_costs): Use regno_cost_classes instead of
13503 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13504 (find_costs_and_classes): Set up cost classes for each registers.
13505 Use also their mode for this. Use regno_cost_classes instead of
13507 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13509 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13510 (ira_costs, ira_set_pseudo_classes): Call
13511 initiate_regno_cost_classes and finish_regno_cost_classes.
13513 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13515 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13517 * target.def (ira_cover_classes): Remove.
13519 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
13521 * doc/tm.texi.in: Ditto.
13523 * ira-conflicts.c: Remove mentioning cover classes from the file.
13524 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
13525 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
13527 * targhooks.c (default_ira_cover_classes): Remove.
13529 * targhooks.h (default_ira_cover_classes): Ditto.
13531 * haifa-sched.c: Remove mentioning cover classes from the file.
13532 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13533 ira_pressure_classes and ira_pressure_classes_num instead of
13534 ira_reg_class_cover_size and ira_reg_class_cover. Use
13535 sched_regno_pressure_class instead of sched_regno_cover_class.
13536 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13537 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13539 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13540 classes from the file.
13541 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13542 (struct object_hard_regs, struct object_hard_regs_node): New.
13543 (struct ira_object): New members profitable_hard_regs,
13544 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13545 (struct ira_allocno): Rename cover_class to aclass. Rename
13546 cover_class_cost and updated_cover_class_cost to class_cost and
13547 updated_class_cost. Remove splay_removed_p and
13548 left_conflict_size. Add new members colorable_p.
13549 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13550 (ALLOCNO_COLORABLE_P): New macro.
13551 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13552 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13553 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13554 (OBJECT_...): Rename parameter C to O.
13555 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13556 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13557 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13558 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13559 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13560 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13561 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13562 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13563 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13564 x_ira_reg_class_subunion.
13565 (ira_max_memory_move_cost, ira_max_register_move_cost)
13566 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13567 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13568 (ira_important_class_nums, ira_reg_class_superunion): New macros.
13569 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
13570 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13571 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13572 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13573 (ira_tune_allocno_costs_and_cover_classes): Rename to
13574 ira_tune_allocno_costs.
13575 (ira_debug_hard_regs_forest): New.
13576 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13577 (ira_object_conflict_iter_next): Fix comments.
13578 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
13579 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13580 cover_class to aclass.
13581 (ira_allocate_and_accumulate_costs): Ditto.
13582 (ira_allocate_and_set_or_copy_costs): Ditto.
13584 * opts.c (decode_options): Remove ira_cover_class check.
13586 * ira-color.c: Remove mentioning cover classes from the file. Use
13587 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13588 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13589 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13590 (splay-tree.h): Remove include.
13591 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13592 before copy_freq_compare_func.
13593 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13594 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13596 (hard_regs_roots, hard_regs_node_vec): Ditto.
13597 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13598 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13599 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13600 (create_new_object_hard_regs_node): Ditto.
13601 (add_new_object_hard_regs_node_to_forest): Ditto.
13602 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
13603 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13605 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13606 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13607 (remove_unused_object_hard_regs_nodes): Ditto.
13608 (enumerate_object_hard_regs_nodes): Ditto.
13609 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13610 (object_hard_regs_subnode_t): Ditto.
13611 (struct object_hard_regs_subnode): Ditto.
13612 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13613 (setup_object_hard_regs_subnode_index): Ditto.
13614 (get_object_hard_regs_subnodes_num): Ditto.
13615 (form_object_hard_regs_nodes_forest): Ditto.
13616 (finish_object_hard_regs_nodes_tree): Ditto.
13617 (finish_object_hard_regs_nodes_forest): Ditto.
13618 (allocnos_have_intersected_live_ranges_p): Rename to
13619 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13620 (pseudos_have_intersected_live_ranges_p): Rename to
13621 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13622 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13623 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13624 (update_copy_costs): Remove assert. Skip cost update if the hard
13625 reg does not belong the class.
13626 (assign_hard_reg): Process only profitable hard regs.
13627 (uncolorable_allocnos_num): Make it scalar.
13628 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13629 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13630 and ira_reg_class_max_nregs.
13631 (bucket_allocno_compare_func): Check frequency first.
13632 (sort_bucket): Add compare function as a parameter.
13633 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13634 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13635 (push_allocno_to_stack): Rewrite for checking new allocno
13637 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
13638 (push_only_colorable): Pass new parameter to sort_bucket.
13639 (push_allocno_to_spill): Remove.
13640 (allocno_spill_priority_compare): Make it inline and rewrite.
13641 (splay_tree_allocate, splay_tree_free): Remove.
13642 (allocno_spill_sort_compare): New function.
13643 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13644 build and use splay tree. Choose first allocno in uncolorable
13645 allocno bucket to spill. Remove setting spill cost.
13646 (all_conflicting_hard_regs): Remove.
13647 (setup_allocno_available_regs_num): Check only profitable hard
13648 regs. Print info about hard regs nodes.
13649 (setup_allocno_left_conflicts_size): Remove.
13650 (put_allocno_into_bucket): Don't call
13651 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
13652 (improve_allocation): New.
13653 (color_allocnos): Call setup_profitable_hard_regs,
13654 form_object_hard_regs_nodes_forest, improve_allocation,
13655 finish_object_hard_regs_nodes_forest. Setup spill cost.
13656 (print_loop_title): Use pressure classes.
13657 (color_allocnso): Ditto.
13658 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13659 and allocnos_for_spilling.
13660 (ira_sort_regnos_for_alter_reg): Don't setup members
13661 {first,next}_coalesced_allocno.
13662 (color): Remove allocating and freeing removed_splay_allocno_vec.
13663 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13664 prohibited_class_mode_regs.
13666 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13668 (update_allocno_pressure_excess_length): Use pressure classes.
13669 (inc_register_pressure, dec_register_pressure): Check for pressure
13671 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13672 pressure class. Use ira_reg_class_nregs instead of
13673 ira_reg_class_max_nregs.
13674 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13675 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13676 (single_reg_class): Use ira_reg_class_nregs instead of
13677 ira_reg_class_max_nregs.
13678 (process_bb_node_lives): Use pressure classes.
13680 * ira-emit.c: Remove mentioning cover classes from the file. Use
13681 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13682 (change_loop): Use pressure classes.
13683 (modify_move_list): Call ira_set_allocno_class instead of
13684 ira_set_allocno_cover_class.
13686 * ira-build.c: Remove mentioning cover classes from the file. Use
13687 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13688 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13689 ALLOCNO_UPDATED_CLASS_COST instead of
13690 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13691 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13692 (ira_create_allocno): Remove initialization of
13693 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13694 ALLOCNO_COLORABLE_P.
13695 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13696 Update conflict regs for the objects.
13697 (create_cap_allocno): Remove assert. Don't propagate
13698 ALLOCNO_AVAILABLE_REGS_NUM.
13699 (ira_free_allocno_costs): New function.
13700 (finish_allocno): Change a part of code into call of
13701 ira_free_allocno_costs.
13702 (low_pressure_loop_node_p): Use pressure classes.
13703 (object_range_compare_func): Don't compare classes.
13704 (setup_min_max_conflict_allocno_ids): Ditto.
13706 * loop-invariant.c: Remove mentioning cover classes from the file.
13707 Use ira_pressure_classes and ira_pressure_classes_num instead of
13708 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13709 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13710 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13711 Use reg_allocno_class instead of reg_cover_class.
13712 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13713 STACK_REG_COVER_CLASS.
13714 (get_regno_cover_class): Rename to get_regno_pressure_class.
13715 (move_loop_invariants): Initialize and finalize regstat.
13717 * ira.c: Remove mentioning cover classes from the file. Add
13718 comments about coloring without cover classes. Use ALLOCNO_CLASS
13719 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13720 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13721 setup_class_subset_and_memory_move_costs.
13722 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13723 (setup_cover_and_important_classes): Rename to
13724 setup_allocno_and_important_classes.
13725 (setup_class_translate_array): New.
13726 (setup_class_translate): Call it for allocno and pressure classes.
13727 (cover_class_order): Rename to allocno_class_order.
13728 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13729 of ira_class_translate.
13730 (reorder_important_classes): Set up ira_important_class_nums.
13731 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13732 (print_class_cover): Rename to print_classes. Add parameter.
13733 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13734 Print pressure classes too.
13735 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13736 setup_reg_subclasses.
13737 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13738 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13739 (setup_prohibited_class_mode_regs): Use
13740 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13741 (clarify_prohibited_class_mode_regs): New function.
13742 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13743 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13744 (ira_init_once): Initialize them.
13745 (free_register_move_costs): Process them.
13746 (ira_init): Move calls of find_reg_classes and
13747 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13748 Call clarify_prohibited_class_mode_regs.
13749 (ira_no_alloc_reg): Remove.
13750 (too_high_register_pressure_p): Use pressure classes.
13752 * sched-deps.c: Remove mentioning cover classes from the file.
13753 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13754 ira_pressure_classes and ira_pressure_classes_num instead of
13755 ira_reg_class_cover_size and ira_reg_class_cover.
13756 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13757 sched_regno_pressure_class instead of sched_regno_cover_class.
13758 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13759 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13761 * ira.h: Add 2010 to Copyright.
13762 (ira_no_alloc_reg): Remove external.
13763 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13764 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13765 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13766 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13767 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13768 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13769 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13770 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13771 x_ira_no_alloc_regs.
13772 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13773 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13774 ira_allocno_classes_num and ira_allocno_classes.
13775 (ira_class_translate): Rename to ira_allocno_class_translate.
13776 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13777 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13778 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13779 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13780 (ira_no_alloc_regs): New.
13782 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13783 classes from the file. Use ALLOCNO_CLASS instead of
13784 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13785 ALLOCNO_COVER_CLASS_COST.
13786 (regno_cover_class): Rename to regno_aclass.
13787 (record_reg_classes): Use ira_reg_class_subunion instead of
13788 ira_reg_class_union.
13789 (record_address_regs): Check overflow.
13790 (scan_one_insn): Ditto.
13791 (print_allocno_costs): Print total mem cost fore regional allocation.
13792 (print_pseudo_costs): Use REG_N_REFS.
13793 (find_costs_and_classes): Use classes intersected with them on the
13794 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13795 ira_reg_class_union. Use ira_allocno_class_translate and
13796 regno_aclass instead of ira_class_translate and regno_cover_class.
13797 Modify code for finding regno_aclass. Setup preferred classes for
13799 (setup_allocno_cover_class_and_costs): Rename to
13800 setup_allocno_class_and_costs. Use regno_aclass instead of
13801 regno_cover_class. Use ira_set_allocno_class instead of
13802 ira_set_allocno_cover_class.
13803 (init_costs, finish_costs): Use regno_aclass instead of
13805 (ira_costs): Use setup_allocno_class_and_costs instead of
13806 setup_allocno_cover_class_and_costs.
13807 (ira_tune_allocno_costs_and_cover_classes): Rename to
13808 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13809 by processing objects. Use ira_reg_class_max_nregs instead of
13810 ira_reg_class_nregs.
13812 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13814 * sched-int.h: Remove mentioning cover classes from the file.
13815 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13817 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13818 classes from the file.
13819 (struct reg_pref): Rename coverclass into allocnoclass.
13820 (reg_cover_class): Rename to reg_allocno_class.
13822 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13824 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13826 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13828 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13830 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13832 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13834 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13836 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13838 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13840 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13842 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13843 (i386_ira_cover_classes): Ditto.
13845 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13847 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13849 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13851 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13853 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13855 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13857 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13858 (mips_ira_cover_classes): Ditto.
13860 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13862 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13864 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13866 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13868 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13870 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13871 (IRA_COVER_CLASSES_VSX): Ditto.
13873 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13874 (rs6000_ira_cover_classes): Ditto.
13876 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13878 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13880 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13882 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13884 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13886 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13888 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13890 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13892 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13894 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13896 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13899 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13900 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13901 dw_fde_unlikely_section_end_label, cold_in_std_section,
13902 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13903 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13905 (output_fde): Use dw_fde_second_{begin,end} if second is
13906 true, otherwise dw_fde_{begin,end}.
13907 (output_call_frame_info): Test dw_fde_second_begin != NULL
13908 instead of dw_fde_switched_sections.
13909 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13910 fields, initialize new fields. Initialize in_std_section
13911 unconditionally from the first partition.
13912 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13913 dw_fde_second_begin is non-NULL.
13914 (dwarf2out_switch_text_section): Stop initializing removed
13915 dw_fde_struct fields, initialize new fields, initialize
13916 also dw_fde_end here. Set dw_fde_switch_cfi even when
13917 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13918 (struct var_loc_list_def): Add last_before_switch field.
13919 (arange_table, arange_table_allocated, arange_table_in_use,
13920 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13921 (size_of_aranges): Count !in_std_section and !second_in_std_section
13922 hunks in fdes, instead of looking at arange_table_in_use.
13923 (output_aranges): Add aranges_length argument, don't call
13924 size_of_aranges here. Instead of using aranges_table*
13925 emit ranges for fdes when !in_std_section resp.
13926 !second_in_std_section.
13927 (dw_loc_list): Break ranges crossing section switch.
13928 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13929 use dw_fde_second_end instead of dw_fde_end as end of last range.
13930 (gen_subprogram_die): Don't call add_arange. Use
13931 dw_fde_{begin,end} for first partition and if switched
13932 section dw_fde_second_{begin,end} for the second.
13933 (var_location_switch_text_section_1,
13934 var_location_switch_text_section): New functions.
13935 (dwarf2out_begin_function): Initialize cold_text_section even
13936 when function_section () isn't text_section.
13937 (prune_unused_types): Don't walk arange_table.
13938 (dwarf2out_finish): Don't needlessly test
13939 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13940 If info_section_emitted, call size_of_aranges and if it indicates
13941 non-empty .debug_aranges, call output_aranges with the computed
13942 size. Stop using removed dw_fde_struct fields, use
13943 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13947 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13948 create ENTRY_VALUE if incoming or address of incoming's MEM
13950 * dwarf2out.c (mem_loc_descriptor): Don't emit
13951 DW_OP_GNU_entry_value of DW_OP_fbreg.
13952 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13953 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13954 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13955 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13957 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13958 is a REG_P or MEM_P with REG_P address, compute hash directly
13959 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13960 (preserve_only_constants): Don't clear VALUES forwaring
13961 ENTRY_VALUE to some other VALUE.
13963 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13965 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13966 instead of GEN_INT.
13968 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13970 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13971 block before expanding the statement.
13972 (expand_gimple_stmt_1): Likewise. Set them here...
13973 (expand_gimple_stmt): ...and not here. Tidy.
13974 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13977 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13979 * Makefile.in: New rule for cprop.o.
13980 * gcse.c: Move constant/copy propagation to cprop.c.
13981 (compute_local_properties): Only handle expression tables.
13982 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13983 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13984 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13985 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13986 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13987 compute_cprop_data, find_used_regs, try_replace_reg,
13988 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13989 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13990 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13991 find_bypass_set, reg_killed_on_edge, bypass_block,
13992 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13993 execute_rtl_cprop, pass_rtl_cprop): Move to...
13994 * cprop.c: ...here. New file, constant/copy propagation for RTL
13995 moved from gcse.c to here with minor cleanups in duplicated code.
13997 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13999 * config/i386/i386.c (flag_opts): Fix a typo in
14000 -mavx256-split-unaligned-store.
14002 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14004 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14005 LIBCALL_VALUE): Remove macros.
14006 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14007 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14008 (h8300_function_value, h8300_libcall_value,
14009 h8300_function_value_regno_p): New functions.
14011 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14013 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
14015 2011-03-28 Jeff Law <law@redhat.com>
14017 * tree-ssa-threadupdate.c (redirect_edges): Call
14018 create_edge_and_update_destination_phis as needed.
14019 (create_edge_and_update_destination_phis): Accept new BB argument.
14020 All callers updated.
14021 (thread_block): Do not update the profile when threading around
14022 intermediate blocks.
14023 (thread_single_edge): Likewise.
14024 (determine_bb_domination_status): If BB is not a successor of the
14025 loop header, return NONDOMINATING.
14026 (register_jump_thread): Note when we register a jump thread around
14027 an intermediate block.
14028 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
14029 (thread_across_edge): Use it.
14031 2011-03-28 Tristan Gingold <gingold@adacore.com>
14033 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
14034 when for_return is 2.
14036 2011-03-28 Jeff Law <law@redhat.com>
14038 * var-tracking.c (canonicalize_values_mark): Delete unused
14040 (canonicalize_values_star, set_variable_part): Likewise.
14041 (clobber_variable_part, delete_variable_part): Likewise.
14043 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14045 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
14047 2011-03-28 Martin Jambor <mjambor@suse.cz>
14049 * tree-inline.c (expand_call_inline): Do not check that destination
14051 (optimize_inline_calls): Assert that destination node is analyzed.
14052 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
14053 not call tree_lowering_passes.
14054 * cgraph.h (cgraph_analyze_function): Declare.
14055 * cgraphunit.c (cgraph_analyze_function): Make public.
14057 2011-03-28 Joseph Myers <joseph@codesourcery.com>
14059 * config/sparc/sparc-opts.h: New.
14060 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
14061 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
14062 (sparc_option_override): Store processor_type enumeration rather
14063 than string in cpu_default. Remove name and enumeration from
14064 cpu_table. Directly default -mcpu then default -mtune from -mcpu
14065 without using sparc_select. Use target_flags_explicit instead of
14067 * config/sparc/sparc.h (enum processor_type): Move to
14069 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
14070 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
14071 HeaderInclude entry.
14072 (mcpu=, mtune=): Use Var and Enum.
14073 (sparc_processor_type): New Enum and EnumValue entries.
14075 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14076 Iain Sandoe <iains@gcc.gnu.org>
14079 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
14081 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14083 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
14084 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
14085 Insert new statements at it in lieu of STMT.
14086 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
14087 * tree-vect-stmts.c (vectorizable_store): Likewise.
14088 (vectorizable_load): Likewise.
14090 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
14092 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
14097 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14099 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
14100 unaligned 256bit load/store.
14101 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
14102 (*avx_movdqu<avxmodesuffix>): Likewise.
14104 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14107 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
14108 * config/pa/pa.md (iordi3): Use new predicate in expander.
14109 (iorsi3): Likewise.
14111 2011-03-27 Anatoly Sokolov <aesok@post.ru>
14113 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
14114 FUNCTION_VALUE_REGNO_P): Remove macros.
14115 * config/mips/mips-protos.h (mips_function_value): Remove.
14116 * config/mips/mips.c (mips_function_value): Rename to...
14117 (mips_function_value_1): ... this. Make static. Handle receiving
14118 the function type in 'fn_decl_or_type' argument.
14119 (mips_function_value, mips_libcall_value,
14120 mips_function_value_regno_p): New function.
14121 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14122 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14124 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14126 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
14127 and -mavx256-split-unaligned-store.
14128 (ix86_option_override_internal): Split 32-byte AVX unaligned
14129 load/store by default.
14130 (ix86_avx256_split_vector_move_misalign): New.
14131 (ix86_expand_vector_move_misalign): Use it.
14133 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
14134 -mavx256-split-unaligned-store.
14136 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
14137 256bit load/store. Generate unaligned store on misaligned memory
14139 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
14141 (*avx_movdqu<avxmodesuffix>): Likewise.
14143 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
14144 -mavx256-split-unaligned-store.
14146 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14149 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
14152 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14154 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
14155 opno arguments with an expand_operand. Use create_input_operand.
14156 (mips_prepare_builtin_target): Delete.
14157 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
14159 (mips_expand_builtin_direct): Use create_output_operand and
14160 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
14161 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
14162 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
14164 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
14166 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14168 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14170 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14172 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14173 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
14174 basic blocks and call commit_edge_insertions directly.
14175 (fixup_abnormal_edges): Move from here to...
14176 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
14177 on the edges and return whether some have actually been inserted.
14178 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14181 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
14183 PR rtl-optimization/48144
14184 * sel-sched-ir.c (merge_history_vect): Factor out from ...
14185 (merge_expr_data): ... here.
14186 (av_set_intersect): Rename to av_set_code_motion_filter.
14187 Update all callers. Call merge_history_vect when an expression
14188 is found in both sets.
14189 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14191 2011-03-26 Alan Modra <amodra@gmail.com>
14193 * config/rs6000/predicates.md (word_offset_memref_op): Handle
14194 cmodel medium addresses.
14195 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14196 64-bit gpr loads and stores.
14197 (rs6000_secondary_reload_ppc64): New function.
14198 * config/rs6000/rs6000-protos.h: Declare it.
14199 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14201 2011-03-26 Alan Modra <amodra@gmail.com>
14204 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14205 GNU Go in traceback table.
14207 2011-03-25 Richard Henderson <rth@redhat.com>
14209 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14210 if there are exactly 6 operands.
14211 (set_storage_via_setmem): Similarly.
14213 2011-03-25 Kai Tietz <ktietz@redhat.com>
14215 * collect2.c (write_c_file_stat): Handle backslash
14216 as right-hand directory separator.
14217 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14218 checking just for slash.
14219 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14220 instead of checking for trailing slash.
14221 * gcc.c (record_temp_file): Use filename_cmp instead
14223 (do_spec_1): Likewise.
14224 (replace_outfile_spec_function): Likewise.
14225 (is_directory): Use filename_ncmp instead of strncmp.
14226 (print_multilib_info): Likewise.
14227 * gcov.c (find_source): Use filename_cmp instead
14229 (make_gcov_file_name): Fix order of slash/backslash
14231 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14232 (add_standard_paths): Likewise.
14233 * mips-tfile.c (saber_stop): Handle backslash.
14234 * prefix.c (update_path): Use filename_ncmp instead of
14236 * profile.c (output_location): Use filename_cmp instead
14238 * read-md.c (handle_toplevel_file): Handle backslash.
14239 * tlink.c (frob_extension): Likewise.
14240 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14242 * tree-dump.c (dequeue_and_dump): Handle backslash.
14243 * tree.c (get_file_function_name): Likewise.
14244 * gengtype.c (read_input_list): Likewise.
14245 (get_file_realbasename): Likewise.
14246 (get_output_file_with_visibility): Use filename_cmp
14249 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14251 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14254 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14256 * fold-const.c (expr_location_or): New function.
14257 (fold_truth_not_expr): Call it.
14259 2011-03-25 Jeff Law <law@redhat.com>
14261 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14263 * c-family/c-common.c (def_fn_type): Likewise.
14264 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14265 * emit-rtl.c (gen_rtvec): Likewise.
14266 * lto/lto-lang.c (def_fn_type): Likewise.
14268 2011-03-25 Richard Guenther <rguenther@suse.de>
14270 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14271 also generate copies.
14272 (fini_copy_prop): Handle constant values properly.
14274 2011-03-25 Jakub Jelinek <jakub@redhat.com>
14276 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14277 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14278 (hash_loc_operands, compare_loc_operands): Handle
14279 DW_OP_GNU_entry_value.
14281 2011-03-25 Kai Tietz <ktietz@redhat.com>
14283 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14284 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14285 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14286 comment and use macro TARGET_64BIT_MS_ABI instead.
14287 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14288 and change default behavior for 32-bit MS_ABI.
14289 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14290 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14292 (ix86_cfun_abi): Likewise.
14293 (ix86_maybe_switch_abi): Adjust comment.
14294 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14295 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14296 instead of checking for SYSV_ABI.
14297 (ix86_nsaved_sseregs): Likewise.
14298 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14300 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14301 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14302 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14303 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14304 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14306 2011-03-25 Richard Guenther <rguenther@suse.de>
14308 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14309 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14310 (verify_gimple): Remove.
14311 * tree-cfg.c (verify_gimple_call): Merge verification
14313 (verify_gimple_phi): Merge verification from verify_stmts.
14314 (verify_gimple_label): New function.
14315 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14316 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14317 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14318 (verify_stmts): Rename to verify_gimple_in_cfg.
14319 (verify_gimple_in_cfg): New function.
14320 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14321 * tree-ssa.c (verify_ssa): Likewise.
14322 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14324 2011-03-25 Richard Guenther <rguenther@suse.de>
14326 * passes.c (init_optimization_passes): Add FRE pass after
14329 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14330 Andrew Stubbs <ams@codesourcery.com>
14332 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14334 (arm_movdi_vfp_cortexa8): New pattern.
14335 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14336 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14337 instructions when tuning for Cortex-A8. Set attribute "arch".
14338 * config/arm/arm.md: Move include arm-tune.md up a bit.
14339 (define_attr "arch"): Add "onlya8" and "nota8" values.
14340 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14342 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14346 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14348 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14349 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14350 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14351 * passes.c (init_optimization_passes): Move
14352 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14354 2011-03-25 Kai Tietz <ktietz@redhat.com>
14356 * c-typeck.c (comptypes_internal): Replace target
14357 hook call of comp_type_attributes by version in tree.c file.
14358 * gimple.c (gimple_types_compatible_p_1): Likewise.
14359 * tree-ssa.c (useless_type_conversion_p): Likewise.
14360 * tree.c (build_type_attribute_qual_variant): Likewise.
14361 (attribute_value_equal): New static helper function.
14362 (comp_type_attributes): New function.
14363 (merge_attributes): Use attribute_value_equal for comparison.
14364 (attribute_list_contained): Likewise.
14365 * tree.h (comp_type_attributes): New prototype.
14367 2011-03-25 Richard Guenther <rguenther@suse.de>
14369 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14370 of complex types at -O0.
14371 (verify_gimple_assign_binary): Likewise.
14372 (verify_gimple_assign_ternary): Likewise.
14374 2011-03-24 Mark Wielaard <mjw@redhat.com>
14376 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14377 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14379 2011-03-24 Mark Wielaard <mjw@redhat.com>
14382 * dwarf2out.c (output_abbrev_section): Only write table when
14383 abbrev_die_table_in_use > 1.
14385 2011-02-24 Richard Henderson <rth@redhat.com>
14387 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14388 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14389 (alpha_expand_unaligned_load_words): Use extql.
14390 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14391 (emit_insxl): Handle all modes for consistency.
14393 2011-02-24 Richard Henderson <rth@redhat.com>
14395 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14396 (alpha_expand_unaligned_load): Likewise.
14397 (alpha_expand_unaligned_store): Likewise.
14398 (alpha_expand_unaligned_load_words): Likewise.
14399 (alpha_expand_unaligned_store_words): Likewise.
14400 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14401 (alpha_split_lock_test_and_set_12): Likewise.
14402 (print_operand, alpha_fold_builtin_extxx): Likewise.
14403 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14404 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14405 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14406 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14407 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14408 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14409 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14410 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14411 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14412 (extwl, extll, extql): Similarly.
14413 (inswh, inslh, insqh): Similarly.
14414 (mskbl, mskwl, mskll, mskql): Similarly.
14415 (mskwh, msklh, mskqh): Similarly.
14417 2011-02-24 Richard Henderson <rth@redhat.com>
14419 * config/alpha/alpha.md (attribute isa): Add er, ner.
14420 (attribute enabled): Handle them.
14421 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14423 2011-02-24 Richard Henderson <rth@redhat.com>
14425 * config/alpha/alpha.md (attribute isa): Add vms.
14426 (attribute enabled): Handle it.
14427 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14428 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14429 (*movtf): Rename from *movtf_internal for consistency.
14430 (*movsi): Merge with *movsi_nt_vms.
14431 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14432 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14433 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14434 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14436 2011-02-24 Richard Henderson <rth@redhat.com>
14438 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14439 (extendqisi2, extendhisi2): Likewise.
14440 (extendqidi2): Simplify BWX/non-BWX expansions.
14441 (extendhidi2): Similarly.
14443 2011-02-24 Richard Henderson <rth@redhat.com>
14445 * config/alpha/alpha.md (attribute isa): New.
14446 (attribute enabled): New.
14447 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14448 (zero_extendqisi2, zero_extendqidi2): Similarly.
14449 (zero_extendhisi2, zero_extendhidi2): Similarly.
14450 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14452 2011-02-24 Richard Henderson <rth@redhat.com>
14454 * config/alpha/predicates.md (input_operand): Revert last change;
14455 update comment to mention 32-bit VMS rather than Windows.
14457 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14459 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14460 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14461 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14462 * passes.c (init_optimization_passes): Move
14463 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14465 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14467 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14469 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14471 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14474 2011-03-24 Jakub Jelinek <jakub@redhat.com>
14477 * simplify-rtx.c (simplify_const_unary_operation): Call
14478 real_convert when changing mode class with FLOAT_EXTEND.
14480 2011-03-24 Nick Clifton <nickc@redhat.com>
14482 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14483 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14484 * config/rx/rx.c (rx_option_override): Set align_jumps,
14485 align_loops and align_labels if not set by the user.
14486 (rx_align_for_label): New function.
14487 (rx_max_skip_for_label): New function.
14488 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14489 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14490 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14491 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14492 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14494 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14496 PR rtl-optimization/48263
14497 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14498 and original commutative_p handling. Use maybe_gen_insn.
14500 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14502 * reload.c (find_reloads_subreg_address): Add address_reloaded
14503 parameter and return true there if the full address has been
14505 (find_reloads_toplev): Pass address_reloaded flag.
14506 (find_reloads_address_1): Don't use address_reloaded parameter.
14508 2011-03-24 Jeff Law <law@redhat.com>
14510 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14511 unused variable "ann".
14512 (remove_unused_locals): Likewise.
14514 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14517 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14520 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14522 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14523 for invalid symbolic addresses.
14524 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14527 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14529 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14530 the argument in calls to fold_truth_not_expr.
14532 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14534 * tree.c (record_node_allocation_statistics): New function.
14535 (make_node_stat, copy_node_stat, build_string): Call it.
14536 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14537 (build1_stat, build_omp_clause): Likewise.
14539 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14541 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14544 2011-03-24 Richard Guenther <rguenther@suse.de>
14546 PR tree-optimization/48271
14547 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14548 blocks that still exist.
14550 2011-03-24 Richard Guenther <rguenther@suse.de>
14552 PR tree-optimization/48270
14553 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14554 not free datarefs before ddrs.
14556 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14558 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14559 from the address built for a reference with variable offset.
14561 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14564 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14565 alternatives that can be handled with movq or movabsq insn.
14566 (*movdf_internal): Disable for !TARGET_64BIT.
14567 (*movdf_internal_nointeger): Ditto.
14568 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14570 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14572 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14573 (FUNCTION_ARG_ADVANCE): Likewise.
14574 * tm.texi.in: Change references to them to hook references.
14575 * tm.texi: Regenerate.
14576 * targhooks.c (default_function_arg): Eliminate check for target macro.
14577 (default_function_incoming_arg): Likewise.
14578 (default_function_arg_advance): Likewise.
14579 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14580 (function_arg_advance): Likewise.
14581 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14583 2011-03-24 Richard Guenther <rguenther@suse.de>
14585 PR middle-end/48269
14586 * tree-object-size.c (addr_object_size): Do not double-account
14587 for MEM_REF offsets.
14589 2011-03-24 Diego Novillo <dnovillo@google.com>
14591 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
14592 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
14593 (lto_input_data_block): Move from lto-opts.c. Make extern.
14595 (lto_input_string): Rename from input_string. Make extern.
14597 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14598 output_string_with_length.
14599 Output 0 to indicate a non-NULL string. Update all callers to
14601 (lto_output_string): Rename from output_string. Make extern.
14603 (lto_output_decl_state_streams): Make extern.
14604 (lto_output_decl_state_refs): Make extern.
14605 * lto-streamer.h (lto_input_string): Declare.
14606 (lto_input_data_block): Declare.
14607 (lto_output_string): Declare.
14608 (lto_output_string_with_length): Declare.
14609 (lto_output_decl_state_streams): Declare.
14610 (lto_output_decl_state_refs): Declare.
14612 2011-03-24 Richard Guenther <rguenther@suse.de>
14614 PR tree-optimization/46562
14615 * tree.c (build_invariant_address): New function.
14616 * tree.h (build_invariant_address): Declare.
14617 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14618 a renamed function moved ...
14619 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14620 Take valueization callback parameter.
14621 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14622 * gimple-fold.h: New file.
14623 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14624 (ccp_fold, fold_const_aggregate_ref,
14625 fold_ctor_reference, fold_nonarray_ctor_reference,
14626 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14627 get_base_constructor): Move ...
14628 * gimple-fold.c: ... here.
14629 (gimple_fold_stmt_to_constant_1): New function
14630 split out from ccp_fold. Take a valueization callback parameter.
14631 Valueize all operands.
14632 (gimple_fold_stmt_to_constant): New wrapper function.
14633 (fold_const_aggregate_ref_1): New function split out from
14634 fold_const_aggregate_ref. Take a valueization callback parameter.
14635 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14636 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14637 invariant POINTER_PLUS_EXPRs to invariant form.
14638 (vn_valueize): New function.
14639 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14640 * tree-vrp.c (vrp_valueize): New function.
14641 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14642 to fold statements to constants.
14643 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14644 function declarations.
14645 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14646 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14648 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14650 * config/h8300/predicates.md (jump_address_operand): Fix register
14653 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
14655 * doc/invoke.texi (max-stores-to-sink): Document.
14656 * params.h (MAX_STORES_TO_SINK): Define.
14657 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14658 if either vectorization or if-conversion is disabled.
14659 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14660 tree-vect-data-refs.c vect_equal_offsets.
14661 (dr_equal_offsets_p): New function.
14662 (find_data_references_in_bb): Remove static.
14663 * tree-data-ref.h (find_data_references_in_bb): Declare.
14664 (dr_equal_offsets_p): Likewise.
14665 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14666 (vect_drs_dependent_in_basic_block): Update calls to
14667 vect_equal_offsets.
14668 (vect_check_interleaving): Likewise.
14669 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14670 (cond_if_else_store_replacement): Rename to...
14671 (cond_if_else_store_replacement_1): ... this. Change arguments and
14673 (cond_if_else_store_replacement): New function.
14674 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14675 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14677 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14680 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14681 to subtract lower bound instead of GEN_INT().
14683 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14688 * doc/extend.texi (Alignment): Move section to match order in TOC.
14689 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14690 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14692 2011-03-23 Jeff Law <law@redhat.com>
14694 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14695 before removing the edge.
14697 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14698 it may have been freed by redirect_branch_edge or
14699 redirect_edge_succ_nodup.
14701 2011-03-23 Richard Guenther <rguenther@suse.de>
14703 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14704 (check_va_list_escapes): Likewise.
14705 (check_all_va_list_escapes): Likewise.
14707 2011-03-23 Richard Guenther <rguenther@suse.de>
14709 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14710 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14711 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14712 (alias.o): Likewise.
14713 (ipa-type-escape.o): Remove.
14714 (ipa-struct-reorg.o): Likewise.
14715 (GTFILES): Remove ipa-struct-reorg.c.
14716 * alias.c: Do not include ipa-type-escape.h.
14717 * tree-ssa-alias.c: Likewise.
14718 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14719 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14720 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14721 and ipa-type-escape passes.
14722 * tree-pass.h (pass_ipa_type_escape): Remove.
14723 (pass_ipa_struct_reorg): Likewise.
14724 * ipa-struct-reorg.h: Remove.
14725 * ipa-struct-reorg.c: Likewise.
14726 * ipa-type-escape.h: Likewise.
14727 * ipa-type-escape.c: Likewise.
14728 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14729 (--param struct-reorg-cold-struct-ratio): Likewise.
14730 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14731 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14732 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14734 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14736 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14737 cpu attribute value.
14738 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14739 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14740 * config/s390/s390.c (processor_flags_table): New constant array.
14741 (s390_handle_arch_option): Remove.
14742 (s390_handle_option): Remove s390_handle_arch_option invocations
14743 and OPT_mwarn_framesize_ handling.
14744 (s390_option_override): Remove s390_handle_arch_option invocation.
14745 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14747 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14748 * config/s390/s390.opt (s390_tune, s390_arch)
14749 (march=): Replace s390_arch_option enum and values with
14750 processor_type. Set variable name to s390_arch. Set
14751 initialization value.
14752 (mtune=): Replace s390_arch_option with processor_type. Set
14753 variable name to s390_tune. Set initialization value.
14755 2011-03-23 Julian Brown <julian@codesourcery.com>
14757 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14758 accesses which are not naturally aligned.
14760 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14763 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14765 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14767 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14768 parameter from "int" to "enum insn_code".
14769 (expand_operand_type): New enum.
14770 (expand_operand): New structure.
14771 (create_expand_operand): New function.
14772 (create_fixed_operand, create_output_operand): Likewise
14773 (create_input_operand, create_convert_operand_to): Likewise.
14774 (create_convert_operand_from, create_address_operand): Likewise.
14775 (create_integer_operand): Likewise.
14776 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14777 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14778 (expand_insn, expand_jump_insn): Likewise.
14779 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14780 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14781 (expand_movstr, expand_builtin___clear_cache): Likewise.
14782 (expand_builtin_lock_release): Likewise.
14783 * explow.c (allocate_dynamic_stack_space): Likewise.
14784 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14785 and use the default handling in that case.
14786 * expmed.c (check_predicate_volatile_ok): Delete.
14787 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14788 (emit_cstore): Likewise.
14789 * expr.c (emit_block_move_via_movmem): Likewise.
14790 (set_storage_via_setmem, expand_assignment): Likewise.
14791 (emit_storent_insn, try_casesi): Likewise.
14792 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14793 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14794 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14795 (expand_twoval_unop, expand_twoval_binop): Likewise.
14796 (expand_unop_direct, emit_indirect_jump): Likewise.
14797 (emit_conditional_move, vector_compare_rtx): Likewise.
14798 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14799 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14800 (expand_sync_lock_test_and_set): Likewise.
14801 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14802 (emit_unop_insn): Likewise.
14803 (expand_copysign_absneg): Change icode to an insn_code.
14804 (create_convert_operand_from_type): New function.
14805 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14806 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14807 (expand_insn, expand_jump_insn): Likewise.
14808 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14809 than const_int_operand for operand 2.
14811 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14813 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14816 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14818 * emit-rtl.c (emit_pattern_before_noloc): New function.
14819 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14820 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14821 (emit_pattern_after_noloc): New function.
14822 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14823 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14825 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14827 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14828 (__ffsDI2): Likewise.
14830 2011-03-22 Richard Henderson <rth@redhat.com>
14832 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14833 of !TARGET_ABI_OPEN_VMS.
14834 (alpha_trampoline_init, alpha_start_function): Likewise.
14835 (alpha_expand_epilogue, alpha_file_start): Likewise.
14836 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14837 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14838 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14839 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14840 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14844 * config/s390/s390-opts.h: New.
14845 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14846 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14847 s390_stack_guard): Remove.
14848 (s390_handle_arch_option): Return void. Take enum
14849 s390_arch_option value instead of string and searching array.
14850 (s390_handle_option): Don't assert that global structures are in
14851 use. Access variables via opts pointer. Use error_at. Don't use
14852 sscanf for -mstack-guard= or -mstack-size=. Update call to
14853 s390_handle_arch_option.
14854 (s390_option_override): Update call to s390_handle_arch_option.
14855 (s390_emit_prologue): Use %d format for s390_stack_size in
14856 diagnostic. Use %wd for HOST_WIDE_INT.
14857 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14858 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14859 * config/s390/s390.opt (config/s390/s390-opts.h): New
14860 HeaderInclude entry.
14861 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14862 s390_arch_flags, s390_warn_framesize): New Variable entries.
14863 (s390_arch_option): New Enum and EnumValue entries.
14864 (march=): Use Enum instead of Var.
14865 (mstack-guard=, mstack-size=): Use UInteger and Var.
14866 (mtune=): Use Enum.
14868 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14870 * config/score/score.c (score_handle_option): Don't assert that
14871 global structures are in use. Access target_flags via opts
14872 pointer. Use value of -march= option to determine target_flags
14874 * config/score/score.opt (march=): Use Enum.
14875 (score_arch): New Enum and EnumValue entries.
14877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14879 * config/mep/mep.c (option_mtiny_specified): Remove.
14880 (mep_option_override): Move register handling for -mivc2 from
14881 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14882 instead of option_mtiny_specified.
14883 (mep_handle_option): Access target_flags via opts pointer. Don't
14884 assert that global structures are in use. Defer part of -mivc2
14885 handling and move it to mep_option_override.
14886 * config/mep/mep.opt (IVC2): New Mask entry.
14887 (mivc2): Use Var and Defer instead of Mask.
14889 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14891 * config/v850/v850-opts.h: New.
14892 * config/v850/v850.c (small_memory): Replace with
14893 small_memory_physical_max array. Make that array static const.
14894 (v850_handle_memory_option): Take integer value of argument. Take
14895 gcc_options pointer, option text and location. Return void.
14896 Update for changes to small memory structures.
14897 (v850_handle_option): Access target_flags via opts pointer. Don't
14898 assert that global structures are in use. Update calls to
14899 v850_handle_memory_option.
14900 (v850_encode_data_area): Update references to small memory settings.
14901 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14902 (enum small_memory_type): Move to v850-opts.h.
14903 * config/v850/v850.opt (config/v850/v850-opts.h): New
14904 HeaderInclude entry.
14905 (small_memory_max): New Variable entry.
14906 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14907 (mtda, mzda): Likewise.
14909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14911 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14912 pointer. Don't assert that global structures are in use.
14914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14916 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14917 via opts pointer. Don't assert that global structures are in use.
14919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14921 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14922 (munix=93): Use Var.
14923 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14924 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14925 * config/pa/pa-opts.h: New.
14926 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14927 (pa_handle_option): Don't assert that global structures are in
14928 use. Access target_flags via opts pointer. Don't handle
14929 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14931 (pa_option_override): Handle deferred OPT_mfixed_range_.
14933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14935 * config/mn10300/mn10300-opts.h: New.
14936 * config/mn10300/mn10300.c (mn10300_processor,
14937 mn10300_tune_string): Remove.
14938 (mn10300_handle_option): Don't assert that global structures are
14939 in use. Access mn10300_processor via opts pointer. Don't handle
14941 * config/mn10300/mn10300.h (enum processor_type): Move to
14943 (mn10300_processor): Remove.
14944 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14945 HeaderInclude entry.
14946 (mn10300_processor): New Variable entry.
14949 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14951 * config/microblaze/microblaze.c: Don't include opts.h.
14952 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14953 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14954 (mno-clearbss): Use Var and Warn.
14956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14958 * config/m32r/m32r-opts.h: New.
14959 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14960 (m32r_handle_option): Don't assert that global structures are in
14961 use. Access target_flags and m32r_cache_flush_func via opts
14962 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14963 OPT_mno_flush_trap here.
14964 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14965 include of m32r-opts.h.
14966 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14967 HeaderInclude entry.
14968 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14969 (mmodel=): Use Enum and Var.
14970 (m32r_model): New Enum and EnumValue entries.
14971 (mno-flush-trap): Use Var.
14972 (msdata=): Use Enum and Var.
14973 (m32r_sdata): New Enum and EnumValue entries.
14975 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14977 * config/m32c/m32c.c: Don't include opts.h.
14978 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14979 m32c_handle_option): Remove.
14980 (m32c_option_override): Check global_options_set.x_target_memregs
14981 instead of target_memregs_set.
14982 * config/m32c/m32c.h (target_memregs): Remove.
14983 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14988 * config/iq2000/iq2000-opts.h: New.
14989 * config/iq2000/iq2000.c: Don't include opts.h.
14990 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14991 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14992 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14993 HeaderInclude entry.
14994 (iq2000_tune): New Variable entry.
14995 (march=): Add comment. Use Enum.
14996 (iq2000_arch): New Enum and EnumValue entries.
14997 (mcpu=): Use Enum and Var.
14998 (iq2000_tune): New Enum and EnumValue entries.
15000 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15002 * config/ia64/ia64-opts.h: New.
15003 * config/ia64/ia64.c (ia64_tune): Remove.
15004 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
15005 here. Use error_at.
15006 (ia64_option_override): Handle deferred OPT_mfixed_range_.
15007 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
15008 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
15009 HeaderInclude entry.
15010 (ia64_tune): New Variable entry.
15011 (mfixed-range=): Use Defer and Var.
15012 (mtune=): Use Enum and Var.
15013 (ia64_tune): New Enum and EnumValue entries.
15015 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15017 * config/frv/frv-opts.h: New.
15018 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
15020 (frv_cpu_type): Remove.
15021 * config/frv/frv.c: Don't include opts.h.
15022 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
15023 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
15024 (frv_cpu_type): New Variable entry.
15025 (frv_cpu): New Enum and EnumValue entries.
15027 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15029 * config/cris/cris.c (cris_handle_option): Access target_flags via
15030 opts pointer. Don't assert that global structures are in use.
15031 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
15032 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
15034 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15036 * config/bfin/bfin-opts.h: New.
15037 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
15038 bfin_si_revision, bfin_workarounds): Remove.
15039 (bfin_cpus): Make static const.
15040 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
15041 not bfin_lib_id_given.
15042 (bfin_handle_option): Don't set bfin_lib_id_given. Access
15043 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
15044 pointer. Use error_at. Don't assert that global structures are in use.
15045 * config/bfin/bfin.h: Include bfin-opts.h.
15046 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
15047 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
15048 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
15049 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
15052 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15054 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
15055 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
15056 or -msoft-float here.
15057 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
15058 -msoft-float and -mhard-float.
15059 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
15060 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15062 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
15064 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
15065 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
15067 (LIBGCC_SPEC): Don't handle -msoft-float.
15068 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
15070 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15072 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
15073 -mfloat-abi=*, not -msoft-float and -mhard-float.
15074 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
15076 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
15077 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
15078 mhard-float and msoft-float.
15079 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
15080 mfloat-abi=soft in comments, not mhard-float and msoft-float.
15081 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15082 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
15084 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
15085 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
15087 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
15089 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
15092 2011-03-22 Richard Henderson <rth@redhat.com>
15094 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
15095 TARGET_ABI_WINDOWS_NT.
15096 (alpha_output_function_end_prologue): Likewise.
15097 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
15098 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15099 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
15100 (trap, *movsi_nt_vms): Likewise.
15101 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
15102 (*tablejump_osf_nt_internal): Remove.
15103 * config/alpha/predicates.md (input_operand): Only test Pmode.
15105 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15107 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
15108 via opts pointer. Use error_at. Don't assert that global
15109 structures are in use.
15111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15113 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
15114 (ix86_handle_option): Access ix86_isa_flags and
15115 ix86_isa_flags_explicit via opts pointer. Don't assert that
15116 global structures are in use.
15117 (ix86_function_specific_save, ix86_function_specific_restore):
15118 Update ix86_isa_flags_explicit field name.
15119 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
15120 (ix86_isa_flags_explicit): Rename TargetSave entry to
15121 x_ix86_isa_flags_explicit.
15123 2011-03-22 Richard Henderson <rth@redhat.com>
15125 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
15126 (alpha_option_override, direct_return): Likewise.
15127 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
15128 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
15129 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
15130 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15131 (alpha_expand_epilogue, alpha_end_function): Likewise.
15132 (alpha_init_libfuncs): Likewise.
15133 (struct machine_function): Remove unicosmk members.
15134 (print_operand) ['t']: Remove.
15135 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
15136 unicosmk_output_module_name, unicosmk_output_common,
15137 current_section_align, unicosmk_output_text_section_asm_op,
15138 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
15139 unicosmk_section_type_flags, unicosmk_unique_section,
15140 unicosmk_asm_named_section, unicosmk_insert_attributes,
15141 unicosmk_output_align, unicosmk_defer_case_vector,
15142 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
15143 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
15144 unicosmk_output_ssib, unicosmk_add_call_info_word,
15145 unicosmk_extern_head, unicosmk_output_default_externs,
15146 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
15147 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
15148 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
15149 * config/alpha/alpha-protos.h: Update.
15150 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
15151 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
15152 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
15153 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
15154 (*mulsi_se, mulvsi3): Likewise.
15155 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
15156 (*divmodsi_internal, call, call_value, realign): Likewise.
15157 (moddi3, umoddi3): Likewise; remove duplicate expander.
15158 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
15159 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
15160 (*movdi_nofix): Remove r/U alternative.
15161 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
15162 * config/alpha/constraints.md ("U"): Remove.
15163 * config/alpha/predicates.md (call_operand"): Don't test
15164 TARGET_ABI_UNICOSMK.
15166 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15168 * target.def (handle_option): Take gcc_options and
15169 cl_decoded_option pointers and location_t.
15170 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15171 * doc/tm.texi: Regenerate.
15172 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15173 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15174 * lto-opts.c (lto_reissue_options): Generate option structure for
15175 targetm.handle_option call.
15176 * opts.c (target_handle_option): Update call to
15177 targetm.handle_option. Remove assertions about values now passed
15179 * targhooks.c (default_target_handle_option): New.
15180 * targhooks.h (default_target_handle_option): Declare.
15181 * config/alpha/alpha.c: Include opts.h.
15182 (alpha_handle_option): Update to new hook interface.
15183 * config/arm/arm.c: Include opts.h.
15184 (arm_handle_option): Update to new hook interface.
15185 * config/arm/t-arm (arm.o): Update dependencies.
15186 * config/bfin/bfin.c: Include opts.h.
15187 (bfin_handle_option): Update to new hook interface.
15188 * config/cris/cris.c: Include opts.h.
15189 (cris_handle_option): Update to new hook interface.
15190 * config/frv/frv.c: Include opts.h.
15191 (frv_handle_option): Update to new hook interface.
15192 * config/i386/i386.c: Include opts.h.
15193 (ix86_handle_option): Update to new hook interface.
15194 (ix86_valid_target_attribute_inner_p): Generate option structure
15195 for call to ix86_handle_option.
15196 * config/i386/t-i386 (i386.o): Update dependencies.
15197 * config/ia64/ia64.c: Include opts.h.
15198 (ia64_handle_option): Update to new hook interface.
15199 * config/ia64/t-ia64 (ia64.o): Update dependencies.
15200 * config/iq2000/iq2000.c: Include opts.h.
15201 (iq2000_handle_option): Update to new hook interface.
15202 * config/m32c/m32c.c: Include opts.h.
15203 (m32c_handle_option): Update to new hook interface.
15204 * config/m32r/m32r.c: Include opts.h.
15205 (m32r_handle_option): Update to new hook interface.
15206 * config/m68k/m68k.c: Include opts.h.
15207 (m68k_handle_option): Update to new hook interface.
15208 * config/mep/mep.c: Include opts.h.
15209 (mep_handle_option): Update to new hook interface.
15210 * config/microblaze/microblaze.c: Include opts.h.
15211 (microblaze_handle_option): Update to new hook interface.
15212 * config/mips/mips.c: Include opts.h.
15213 (mips_handle_option): Update to new hook interface.
15214 * config/mn10300/mn10300.c: Include opts.h.
15215 (mn10300_handle_option): Update to new hook interface.
15216 * config/pa/pa.c: Include opts.h.
15217 (pa_handle_option): Update to new hook interface.
15218 * config/pdp11/pdp11.c: Include opts.h.
15219 (pdp11_handle_option): Update to new hook interface.
15220 * config/rs6000/rs6000.c: Include opts.h.
15221 (rs6000_handle_option): Update to new hook interface.
15222 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15223 * config/rx/rx.c: Include opts.h.
15224 (rx_handle_option): Update to new hook interface.
15225 * config/s390/s390.c: Include opts.h.
15226 (s390_handle_option): Update to new hook interface.
15227 * config/score/score.c: Include opts.h.
15228 (score_handle_option): Update to new hook interface.
15229 * config/sh/sh.c: Include opts.h.
15230 (sh_handle_option): Update to new hook interface.
15231 * config/sparc/sparc.c: Include opts.h.
15232 (sparc_handle_option): Update to new hook interface.
15233 * config/v850/v850.c: Include opts.h.
15234 (v850_handle_option): Update to new hook interface.
15236 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15238 * gcc.c (driver_unknown_option_callback): Only permit and save
15239 unknown -Wno- options.
15240 (driver_wrong_lang_callback): Save options directly instead of via
15241 driver_unknown_option_callback.
15243 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15245 * combine.c (simplify_set): Try harder to find the best CC mode when
15246 simplifying a nested COMPARE on the RHS.
15248 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15250 * config/alpha/gnu.h: Remove.
15251 * config/arc: Remove directory.
15252 * config/arm/netbsd.h: Remove.
15253 * config/arm/t-pe: Remove.
15254 * config/crx: Remove directory.
15255 * config/i386/netbsd.h: Remove.
15256 * config/m68hc11: Remove directory.
15257 * config/m68k/uclinux-oldabi.h: Remove.
15258 * config/mcore/mcore-pe.h: Remove.
15259 * config/mcore/t-mcore-pe: Remove.
15260 * config/netbsd-aout.h: Remove.
15261 * config/rs6000/gnu.h: Remove.
15262 * config/sh/sh-symbian.h: Remove.
15263 * config/sh/symbian-base.c: Remove.
15264 * config/sh/symbian-c.c: Remove.
15265 * config/sh/symbian-cxx.c: Remove.
15266 * config/sh/symbian-post.h: Remove.
15267 * config/sh/symbian-pre.h: Remove.
15268 * config/sh/t-symbian: Remove.
15269 * config/svr3.h: Remove.
15270 * config/vax/netbsd.h: Remove.
15271 * config.build: Don't handle i[34567]86-*-pe.
15272 * config.gcc: Remove handling of deprecations for most deprecated
15274 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15275 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15276 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15277 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15278 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15279 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15281 * config.host: Don't handle i[34567]86-*-pe.
15282 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15283 (ASM_SPEC32): Don't handle -mcall-gnu.
15284 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15286 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15287 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15288 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15289 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15290 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15291 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15292 conditional on SYMBIAN.
15293 * configure.ac: Don't handle powerpc*-*-gnu*.
15294 * configure: Regenerate.
15295 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15296 * doc/install-old.texi (m6811, m6812): Don't mention.
15297 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15298 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15299 (m68k-uclinuxoldabi): Don't mention.
15300 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15302 (-mcall-gnu): Remove.
15303 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15304 families): Remove constraint documentation.
15306 2011-03-22 Marius Strobl <marius@FreeBSD.org>
15308 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15309 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15310 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15312 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15315 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15316 vector when peeking at the next token for vector, don't expand the
15319 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
15321 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15322 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15323 * config/avr/avr.c (init_cumulative_args)
15324 (avr_function_arg_advance): Use it.
15325 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15327 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15328 (avr_function_ok_for_sibcall): ...this new function.
15329 (avr_lookup_function_attribute1): New static Function.
15330 (avr_naked_function_p, interrupt_function_p)
15331 (signal_function_p, avr_OS_task_function_p)
15332 (avr_OS_main_function_p): Use it.
15333 * config/avr/avr.md ("sibcall", "sibcall_value")
15334 ("sibcall_epilogue"): New expander.
15335 ("*call_insn", "*call_value_insn"): New insn.
15336 ("call_insn", "call_value_insn"): Remove
15337 ("call", "call_value", "epilogue"): Change expander to handle
15340 2011-03-21 Nick Clifton <nickc@redhat.com>
15342 * doc/invoke.texi (Overall Options): Move closing brace to end of
15344 (Optimization Options): Add missing @gol.
15345 (Directory Options): Likewise.
15346 (i386 and x86-64 Options): Likewise.
15347 (RS6000 and PowerPC Options): Likewise.
15348 (i386 and x86-64 Windows Options): Likewise.
15349 (V850 Options): Add text missing from descriptions.
15351 2011-03-22 Richard Henderson <rth@redhat.com>
15353 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15354 (avr_incoming_return_addr_rtx): New.
15355 (emit_push_byte): New.
15356 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15357 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15358 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15359 (emit_pop_byte): New.
15360 (expand_epilogue): Use it. Pop frame pointer by bytes.
15361 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15362 (INCOMING_RETURN_ADDR_RTX): New.
15363 (INCOMING_FRAME_SP_OFFSET): New.
15364 (ARG_POINTER_CFA_OFFSET): New.
15365 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15366 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15369 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15371 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15373 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15374 (FUNCTION_ARG_ADVANCE): Likewise.
15375 * tm.texi.in: Change references to them to hook references.
15376 * tm.texi: Regenerate.
15377 * targhooks.c (default_function_arg): Eliminate check for target
15379 (default_function_incoming_arg): Likewise.
15380 (default_function_arg_advance): Likewise.
15381 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15382 (function_arg_advance): Likewise.
15383 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15385 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15387 * tree.c (build_call_1): New function.
15388 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15390 2011-03-22 Richard Guenther <rguenther@suse.de>
15392 PR tree-optimization/48228
15393 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15394 for single-arg PHIs.
15396 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
15398 PR rtl-optimization/48143
15399 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15400 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15401 sse2_cvtps2pd): Likewise.
15403 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15405 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15407 2011-03-22 Richard Guenther <rguenther@suse.de>
15409 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15410 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15411 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15412 and REALIGN_LOAD_EXPR.
15413 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15414 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15415 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15416 DOT_PROD_EXPR case ...
15417 (expand_expr_real_2): ... here.
15418 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15419 and REALIGN_LOAD_EXPR.
15420 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15421 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15422 (vect_create_epilog_for_reduction): Likewise.
15423 (vectorizable_reduction): Likewise.
15424 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15425 * tree-vect-stmts.c (vectorizable_load): Likewise.
15427 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15429 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15431 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15433 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15434 handling for PLTOFF/GOTOFF.
15436 2011-03-22 Nick Clifton <nickc@redhat.com>
15438 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15439 trailing backslash from the end of the macro definition.
15441 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15443 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15446 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15448 * expr.h (prepare_operand): Move to...
15449 * optabs.h (prepare_operand): ...here and change the insn code
15450 parameter from "int" to "enum insn_code".
15451 (insn_operand_matches): Declare.
15452 * expr.c (init_expr_target): Use insn_operand_matches.
15453 (compress_float_constant): Likewise.
15454 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15455 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15456 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15457 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15459 (gen_cond_trap): Likewise.
15460 (prepare_operand): Likewise. Change icode to an insn_code.
15461 (insn_operand_matches): New function.
15462 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15463 * reload1.c (gen_reload): Likewise.
15464 * targhooks.c (default_secondary_reload): Likewise.
15466 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15468 * config/alpha/alpha.md (unspec): New define_c_enum.
15471 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15474 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15475 between a call and its CALL_ARG_LOCATION note.
15477 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15479 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15481 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15485 * c-common.c (shorten_compare): If primopN is first sign-extended
15486 to opN and then zero-extended to result type, set primopN to opN.
15488 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15490 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15491 for barrier handlers.
15493 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15495 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15496 UNSPEC constants to be in the unspec enumeration, and redefine
15497 all UNSPECV constants to be in the unspecv enumeration, so that
15498 dumps print which unspec/unspec_volatile this is.
15499 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15500 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15501 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15502 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15503 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15505 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15506 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15507 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15508 * config/rs6000/sync.md (isync, lwsync): Ditto.
15510 2011-03-21 Richard Guenther <rguenther@suse.de>
15512 * params.def (lto-min-partition): Fix typo.
15514 2011-03-21 Richard Guenther <rguenther@suse.de>
15517 * c-decl.c (grokdeclarator): Drop to the main variant only
15518 for array types. Drop flag_gen_aux_info check.
15520 2011-03-21 Richard Guenther <rguenther@suse.de>
15522 PR translation/47911
15523 * params.def (lto-partitions): Fix typo.
15524 (lto-min-partition): Fix wording.
15526 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
15528 * config/rs6000/t-freebsd: Remove duplication from file.
15530 2011-03-21 Richard Guenther <rguenther@suse.de>
15532 PR middle-end/47661
15533 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15535 2011-03-21 Richard Guenther <rguenther@suse.de>
15538 * params.def (lto-partitions): Require at least 1 partition.
15540 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15542 * gthr-solaris.h: Remove.
15543 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15544 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15545 (LIB_SPEC): Likewise.
15546 * config/sol2.opt (threads): Remove.
15547 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
15548 (sparc*-*-solaris2*): Likewise.
15549 * configure.ac (enable_threads): Enable solaris support.
15550 * configure: Regenerate.
15551 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
15552 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15555 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15557 * config.gcc: Obsolete *-*-solaris2.8*.
15558 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15560 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15563 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15564 reference. Solaris 8 perl works.
15566 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15569 * doc/install.texi (Prerequisites): Move jar etc. up.
15570 Explain support library version requirements.
15572 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15575 * doc/install.texi (Prerequisites): Move Perl to build
15576 requirements. Always necessary on Solaris 2 with Sun ld.
15578 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15580 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15582 (Specific, i?86-*-solaris2.[89]): Likewise.
15583 (Specific, i?86-*-solaris2.10): Likewise.
15584 (Specific, mips-sgi-irix6): Likewise.
15585 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15586 Update for binutils 2.21.
15588 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15590 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15591 Allow -fuse-linker-plugin for non-default plugin linker.
15592 * configure: Regenerate.
15594 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15597 * gengtype.c (files_rules): Added rule for cp/parser.h.
15599 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15602 * config/s390/s390.c (s390_delegitimize_address): Don't call
15603 lowpart_subreg if orig_x has BLKmode.
15605 2011-03-21 Kai Tietz <ktietz@redhat.com>
15608 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15609 * tree.h (attribute_spec): Add new member affects_type_identity.
15610 * attribs.c (empty_attribute_table): Adjust attribute_spec
15612 * config/alpha/alpha.c: Likewise.
15613 * config/arc/arc.c: Likewise.
15614 * config/arm/arm.c: Likewise.
15615 * config/avr/avr.c: Likewise.
15616 * config/bfin/bfin.c: Likewise.
15617 * config/crx/crx.c: Likewise.
15618 * config/darwin.h: Likewise.
15619 * config/h8300/h8300.c: Likewise.
15620 * config/i386/cygming.h: Likewise.
15621 * config/i386/i386.c: Likewise.
15622 * config/ia64/ia64.c: Likewise.
15623 * config/m32c/m32c.c: Likewise.
15624 * config/m32r/m32r.c: Likewise.
15625 * config/m68hc11/m68hc11.c: Likewise.
15626 * config/m68k/m68k.c: Likewise.
15627 * config/mcore/mcore.c: Likewise.
15628 * config/mep/mep.c: Likewise.
15629 * config/microblaze/microblaze.c: Likewise.
15630 * config/mips/mips.c: Likewise.
15631 * config/rs6000/rs6000.c: Likewise.
15632 * config/rx/rx.c: Likewise.
15633 * config/sh/sh.c: Likewise.
15634 * config/sol2.h: Likewise.
15635 * config/sparc/sparc.c: Likewise.
15636 * config/spu/spu.c: Likewise.
15637 * config/stormy16/stormy16.c: Likewise.
15638 * config/v850/v850.c: Likewise.
15640 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15642 * simplify-rtx.c (simplify_binary_operation_1): Handle
15643 (xor (and A B) C) case when B and C are both constants.
15645 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15647 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15649 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15652 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15654 2011-03-20 Jakub Jelinek <jakub@redhat.com>
15656 PR rtl-optimization/48156
15657 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15658 assume df and df_lr are not NULL.
15660 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15663 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15664 between a call and its CALL_ARG_LOCATION note.
15666 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15669 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15670 between a call and its corresponding CALL_ARG_LOCATION note.
15672 2011-03-19 Anatoly Sokolov <aesok@post.ru>
15674 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15675 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15676 * haifa-sched.c (setup_ref_regs): Ditto.
15677 * caller-save.c (add_used_regs_1): Ditto.
15678 * dse.c (look_for_hardregs): Ditto.
15679 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15680 * sched-rgn.c (check_live_1): Ditto.
15682 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15684 * c-decl.c (diagnose_mismatched_decls): Give an error for
15685 redefining a typedef with variably modified type.
15687 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15689 * c-decl.c (grokfield): Don't allow typedefs for structures or
15690 unions with no tag by default.
15691 * doc/extend.texi (Unnamed Fields): Update.
15693 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
15695 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15696 Rewrite using indirect functions.
15697 (lwp_slwpcb): Ditto.
15698 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15699 (avx_vinsertf128<mode>): Ditto.
15701 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15703 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15706 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15708 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15709 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15711 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15713 PR rtl-optimization/48170
15714 * gcse.c (hoist_code): Remove bogus asserts.
15716 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15718 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15719 computation for prologue/epilogue.
15721 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15723 * Makefile.in (check-consistency): Remove.
15725 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15728 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15729 arange_table_in_use is 0, but either text_section_used or
15730 cold_text_section_used is true. Don't call it if
15731 !info_section_emitted.
15733 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15735 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15736 FUNCTION_VALUE_REGNO_P): Remove.
15737 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15739 * config/avr/avr.c (avr_ret_register): Make static inline.
15740 (avr_function_value_regno_p): New function.
15741 (avr_libcall_value): Make static. Add 'func' argument.
15742 (avr_function_value): Make static. Rename 'func' argument to
15743 'fn_decl_or_type', forward it to avr_libcall_value. Call
15744 avr_ret_register function instead of RET_REGISTER macro.
15745 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15747 2011-03-18 Jason Merrill <jason@redhat.com>
15750 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15752 2011-03-18 Richard Guenther <rguenther@suse.de>
15754 * doc/install.texi (--enable-gold): Remove.
15755 (--with-plugin-ld): Document.
15756 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15758 2011-03-18 Andrew Pinski <pinskia@gmail.com>
15760 PR middle-end/47790
15761 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15762 again after expansion changes.
15764 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15766 * combine.c (try_combine): Do simplification only call of
15767 subst() on i2 even when i1 is present. Update comments.
15769 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15771 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15772 and UNSPEC_PCREL_SYMOFF.
15774 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15776 * config/s390/s390.md: Use define_c_enum for the unspec constant
15779 2011-03-18 Richard Henderson <rth@redhat.com>
15780 Jakub Jelinek <jakub@redhat.com>
15783 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15784 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15786 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15788 PR middle-end/47725
15789 * combine.c (cant_combine_insn_p): Don't check zero/sign
15790 extended hard registers.
15792 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15794 PR middle-end/47725
15795 * combine.c (cant_combine_insn_p): Check zero/sign extended
15798 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15800 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15801 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15802 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15803 Change return type to bool.
15804 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15806 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15809 * var-tracking.c (prepare_call_arguments): If CALL target
15810 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15811 pc instead of looking it up using cselib_lookup and use
15812 Pmode for it if x has VOIDmode.
15813 * dwarf2out.c (gen_subprogram_die): If also both first and
15814 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15817 * function.c (assign_parms): For data.passed_pointer parms
15818 use MEM of data.entry_parm instead of data.entry_parm itself
15819 as DECL_INCOMING_RTL.
15820 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15821 also when passed and declared mode is the same, DECL_RTL
15822 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15825 2011-03-16 Jeff Law <law@redhat.com>
15827 PR rtl-optimization/37273
15828 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15829 handle them like argument loads from stack slots. Do not double
15830 count memory for memory constants and argument loads from stack slots.
15832 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15835 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15837 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15840 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15842 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15845 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15847 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15848 Clear call_arg_locations and call_arg_loc_last always.
15850 PR middle-end/48152
15851 * var-tracking.c (prepare_call_arguments): If argument needs to be
15852 passed by reference, adjust argtype and mode.
15854 2011-03-17 Richard Guenther <rguenther@suse.de>
15856 PR middle-end/48134
15857 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15858 a value make sure to fold the statement.
15860 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15863 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15864 return condition with !cfun->calls_alloca.
15866 2011-03-17 Richard Guenther <rguenther@suse.de>
15869 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15870 origin for decls in other ltrans units.
15871 (input_varpool_node): Likewise.
15873 2011-03-17 Richard Guenther <rguenther@suse.de>
15875 PR middle-end/48165
15876 * tree-object-size.c (compute_object_offset): Properly return
15877 the offset operand of MEM_REFs as sizetype.
15879 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15881 PR rtl-optimization/48141
15882 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15883 * dse.c: Include params.h.
15884 (active_local_stores_len): New variable.
15885 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15887 (record_store, check_mem_read_rtx): Decrease it when removing
15889 (scan_insn): Likewise. Increase it when adding to chain, if it
15890 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15891 set active_local_stores to NULL before the addition.
15892 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15894 PR rtl-optimization/48141
15895 * dse.c (record_store): If no positions are needed in an insn
15896 that cannot be deleted, at least unchain it from active_local_stores.
15898 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15901 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15902 (lookup_type_die_strip_naming_typedef): ... here.
15903 (get_context_die): Use it.
15904 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15905 the anonymous struct named by the naming typedef.
15907 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15910 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15911 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15913 2011-03-16 Jeff Law <law@redhat.com>
15915 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15916 check for operands of conditional. Allow type to be a pointer.
15918 2011-03-16 Richard Guenther <rguenther@suse.de>
15920 PR tree-optimization/48149
15921 * fold-const.c (fold_binary_loc): Fold
15922 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15924 2011-03-16 Richard Guenther <rguenther@suse.de>
15926 PR tree-optimization/26134
15927 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15928 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15929 (non_rewritable_mem_ref_base): Handle complex type component
15930 accesses, constrain offsets for vector and complex extracts
15933 2011-03-16 Richard Guenther <rguenther@suse.de>
15935 PR tree-optimization/48146
15936 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15937 operands avoiding the need for renaming.
15939 2011-03-16 Richard Guenther <rguenther@suse.de>
15941 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15942 constant folding. Move MEM_REF canonicalization first.
15943 Rely on fold_const_aggregate_ref for initializer folding.
15944 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15946 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15948 PR middle-end/48136
15949 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15950 arg0/arg1 or their arguments are always fold converted to matching
15953 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15956 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15959 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15960 Handle in-tree gold.
15961 (ld_vers): Extract binutils version for gold.
15962 (gcc_cv_ld_hidden): Handle gold here.
15963 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15964 * configure: Regenerate.
15965 * config.in: Regenerate.
15966 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15967 -fuse-linker-plugin otherwise.
15968 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15969 (LINK_COMMAND_SPEC): Use it.
15970 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15972 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15974 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15975 * calls.c: Remove debug.h include.
15976 (emit_call_1): Don't call virtual_call_token debug hook.
15977 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15978 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15979 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15980 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15981 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15982 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15983 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15984 dwarf2out_virtual_call): Remove.
15985 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15986 copy_call_info and virtual_call hooks.
15987 (dwarf2out_init): Don't initialize vcall_insn_table,
15988 debug_dcall_section and debug_vcall_section.
15989 (prune_unused_types): Don't mark nodes from dcall_table.
15990 (dwarf2out_finish): Don't output dcall or vcall tables.
15991 * final.c (final_scan_insn): Don't call direct_call or
15992 virtual_call debug hooks.
15993 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15994 virtual_call_token, copy_call_info and virtual_call hooks.
15995 (debug_nothing_uid): Remove prototype.
15996 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15997 copy_call_info and virtual_call hooks.
15998 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15999 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
16000 * debug.c (do_nothing_debug_hooks): Likewise.
16001 (debug_nothing_uid): Remove.
16002 * doc/invoke.texi (-fenable-icf-debug): Remove.
16003 * common.opt (-fenable-icf-debug): Likewise.
16005 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
16006 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
16007 call's MEM. Handle functions returning aggregate through a hidden
16008 first pointer. For virtual calls add clobbered pc to call arguments
16010 * dwarf2out.c (gen_subprogram_die): Emit
16011 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
16015 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
16016 * rtl.h (ENTRY_VALUE_EXP): Define.
16017 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
16018 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
16019 * print-rtl.c (print_rtx): Likewise.
16020 * gengtype.c (adjust_field_rtx_def): Likewise.
16021 * var-tracking.c (vt_add_function_parameter): Adjust
16022 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
16023 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
16024 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
16025 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
16026 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
16028 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
16029 Call var_location debug hook even on CALL_INSNs.
16030 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
16031 * rtl.def (ENTRY_VALUE): New.
16032 * dwarf2out.c: Include cfglayout.h.
16033 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16034 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
16035 (struct call_arg_loc_node): New type.
16036 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
16037 tail_call_site_count): New variables.
16038 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
16039 DW_TAG_GNU_call_site_parameter.
16040 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
16041 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
16042 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
16043 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
16044 and DW_AT_GNU_all_source_call_sites.
16045 (mem_loc_descriptor): Handle ENTRY_VALUE.
16046 (add_src_coords_attributes): Don't add enything if
16047 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
16048 (dwarf2out_abstract_function): Save and clear call_arg_location,
16049 call_site_count and tail_call_site_count around dwarf2out_decl call.
16050 (gen_call_site_die): New function.
16051 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
16052 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
16053 (dwarf2out_function_decl): Clear call_arg_locations,
16054 call_arg_loc_last, set call_site_count and tail_call_site_count
16055 to -1 and free block_map.
16056 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
16057 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
16058 followed by any real instructions.
16059 (dwarf2out_begin_function): Set call_site_count and
16060 tail_call_site_count to 0.
16061 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
16062 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
16063 attempt to force a DIE for it and worst case remove the attribute.
16064 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
16065 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
16067 * var-tracking.c: Include tm_p.h.
16068 (vt_stack_adjustments): For calls call note_register_arguments.
16069 (argument_reg_set): New variable.
16070 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
16071 ensure the VALUE is resolved.
16072 (call_arguments): New variable.
16073 (prepare_call_arguments): New function.
16074 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
16075 (struct expand_loc_callback_data): Add ignore_cur_loc field.
16076 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
16077 always use the best expression.
16078 (vt_expand_loc): Add ignore_cur_loc argument.
16079 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
16080 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
16081 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
16082 note for all calls.
16083 (vt_add_function_parameter): Use cselib_lookup_from_insn.
16084 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
16085 argument. Don't call cselib_preserve_only_values and
16086 cselib_reset_table.
16087 (note_register_arguments): New function.
16088 (vt_initialize): Compute argument_reg_set. Call
16089 vt_add_function_parameters before processing basic blocks instead of
16090 afterwards. For calls call prepare_call_arguments before calling
16091 cselib_process_insn.
16092 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
16093 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
16094 (var-tracking.o): Depend on $(TM_P_H).
16095 * cfglayout.h (insn_scope): New prototype.
16096 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
16097 * cfglayout.c (insn_scope): No longer static.
16098 * insn-notes.def (CALL_ARG_LOCATION): New.
16099 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
16100 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
16101 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
16102 nothing for DECL_EXTERNAL BLOCK_VARS.
16104 2011-03-16 Alan Modra <amodra@gmail.com>
16107 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16108 create invalid offset address for vsx splat insn.
16109 * config/rs6000/predicates.md (splat_input_operand): New.
16110 * config/rs6000/vsx.md (vsx_splat_*): Use it.
16112 2011-03-15 Xinliang David Li <davidxl@google.com>
16115 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
16116 (normalize_preds): New function.
16117 (is_use_properly_guarded): Normalize def predicates.
16119 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16122 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
16123 in the output template.
16125 2011-03-15 Richard Guenther <rguenther@suse.de>
16127 PR middle-end/47650
16128 * tree-pretty-print.c (dump_function_declaration): Properly
16129 dump unprototyped and varargs function types.
16131 2011-03-15 Richard Guenther <rguenther@suse.de>
16133 PR tree-optimization/13954
16134 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
16137 2011-03-15 Richard Guenther <rguenther@suse.de>
16139 PR tree-optimization/48037
16140 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
16141 selects into BIT_FIELD_REFs.
16142 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
16145 2011-03-15 Jakub Jelinek <jakub@redhat.com>
16147 PR tree-optimization/48129
16148 * builtins.c (fold_builtin_snprintf): Convert to type of
16149 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
16150 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
16152 2011-03-15 Richard Guenther <rguenther@suse.de>
16154 PR tree-optimization/41490
16155 * tree-ssa-dce.c (propagate_necessity): Handle returns without
16156 value but with VUSE.
16157 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
16159 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
16160 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
16161 * tree-tailcall.c (find_tail_calls): Ignore returns.
16163 2011-03-15 Richard Guenther <rguenther@suse.de>
16165 PR middle-end/48031
16166 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16167 or variable-indexed array accesses when in gimple form.
16169 2011-03-15 Richard Guenther <rguenther@suse.de>
16171 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
16173 2011-03-15 Alan Modra <amodra@gmail.com>
16176 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16177 presume symbol_refs without a symbol_ref_decl are suitably
16178 aligned, nor other trees we may see here. Handle anchor symbols.
16179 (legitimate_constant_pool_address_p): Comment. Add mode param.
16180 Check cmodel=medium addresses. Adjust all calls.
16181 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16182 creating cmodel=medium optimized access to locals.
16183 * config/rs6000/constraints.md (R): Pass QImode to
16184 legitimate_constant_pool_address_p.
16185 * config/rs6000/predicates.md (input_operand): Pass mode to
16186 legitimate_constant_pool_address_p.
16187 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16190 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16193 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16194 64-bit constants being loaded into registers other than GPRs such
16195 as loading 0 into a VSX register.
16197 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16199 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
16201 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16203 PR middle-end/47917
16204 * builtins.c (fold_builtin_snprintf): New function.
16205 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16206 (fold_builtin_4): Likewise.
16208 PR middle-end/38878
16209 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16210 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
16211 and C - X == X also strip nops from +/-/p+ operand.
16212 When optimizing -X == C, fold C to arg0's type.
16215 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16216 emit it as add_AT_int instead of add_AT_unsigned.
16218 2011-03-14 Tom Tromey <tromey@redhat.com>
16220 * unwind-dw2.c: Include sys/sdt.h if it exists.
16221 (_Unwind_DebugHook): Use STAP_PROBE2.
16222 * config.in, configure: Rebuild.
16223 * configure.ac: Check for sys/sdt.h.
16225 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
16227 * config/i386/i386.md (ROUND_FLOOR): New constant.
16228 (ROUND_CEIL): Ditto.
16229 (ROUND_TRUNC): Ditto.
16230 (ROUND_MXCSR): Ditto.
16231 (ROUND_NO_EXC): Ditto.
16232 (rint<mode>2): Use new defines instead of numerical constants.
16233 (floor<mode>2): Ditto.
16234 (ceil<mode>2): Ditto.
16235 (btrunc<mode>2): Ditto.
16236 * config/i386/i386-builtin-types.def: Define ROUND function type
16238 * config/i386/i386.c (enum ix86_builtins): Add
16239 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16240 (struct builtin_description): Add
16241 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16242 (ix86_expand_sse_round): New static function.
16243 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16245 (ix86_builtin_vectorized_function): Handle
16246 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16248 2011-03-14 Tom Tromey <tromey@redhat.com>
16250 * c-parser.c (c_parser_asm_string_literal): Clear
16251 warn_overlength_strings.
16253 2011-03-14 Tom Tromey <tromey@redhat.com>
16255 * c-parser.c (disable_extension_diagnostics): Save
16256 warn_overlength_strings.
16257 (restore_extension_diagnostics): Restore warn_overlength_strings.
16259 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16261 * BASE-VER: Change to 4.7.0.
16263 2011-03-14 Richard Guenther <rguenther@suse.de>
16265 PR middle-end/48098
16266 * tree.c (build_vector_from_val): Adjust assert to requirements
16269 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16272 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16274 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
16276 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16277 terms of target_flags_explicit. Adjust copyright year.
16279 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16280 * config/rs6000/t-freebsd: New file. Add override for
16283 2011-03-13 Chris Demetriou <cgd@google.com>
16285 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16286 (-fno-diagnostics-show-option): this, to reflect current default.
16287 (-Werror=): Update text about -fno-diagnostics-show-option.
16289 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16292 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16293 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16294 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16295 mode is not V2DImode or V2DFmode.
16296 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16297 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16298 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16300 (movdi_internal64): Likewise.
16302 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16304 PR tree-optimization/47127
16305 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16307 (set_cloog_options): Same.
16308 (scop_to_clast): Same.
16309 (print_clast_stmt): Do not call cloog_state_malloc and
16311 (print_generated_program): Same.
16313 * graphite-clast-to-gimple.h (cloog_state): Declared.
16314 (scop_to_clast): Adjust declaration.
16315 * graphite.c (cloog_state): Defined here.
16316 (graphite_initialize): Call cloog_state_malloc.
16317 (graphite_finalize): Call cloog_state_free.
16319 2011-03-11 Jason Merrill <jason@redhat.com>
16321 * attribs.c (lookup_attribute_spec): Take const_tree.
16324 2011-03-11 Joseph Myers <joseph@codesourcery.com>
16326 * config/sparc/sparc.c (sparc_option_override): Use
16327 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16329 2011-03-11 Richard Guenther <rguenther@suse.de>
16331 PR tree-optimization/48067
16332 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16333 multiplication result will be only used once on the target
16336 2011-03-11 Richard Guenther <rguenther@suse.de>
16338 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16340 2011-03-11 Richard Guenther <rguenther@suse.de>
16343 * tree.c (find_decls_types_r): Do not walk types only reachable
16344 from IDENTIFIER_NODEs.
16346 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16348 PR middle-end/48044
16349 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16350 all vnode->force_output nodes as needed.
16352 2011-03-11 Jason Merrill <jason@redhat.com>
16355 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16356 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16358 2011-03-11 Martin Jambor <mjambor@suse.cz>
16360 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16363 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16365 PR tree-optimization/48063
16366 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16367 inline functions called once if !tree_can_inline_p (node->callers).
16369 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
16371 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16373 * config/score/score3.c: Delete.
16374 * config/score/score3.h: Delete.
16375 * config/score/mul-div.S: Delete.
16376 * config/score/sfp-machine.h: Add new file.
16377 * config/score/constraints.md: Add new file.
16378 * config/score/t-score-softfp: Add new file.
16379 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16380 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16381 (score7_extra_constraint): Delete.
16382 (score7_option_override): Remove unused code.
16383 * config/score/score.c: Remove score3 and score5 define and code.
16384 * config/score/score.h: Remove score3 and score5 define and code.
16385 * config/score/score.md: Remove score3 template and unusual insn.
16386 * config/score/score.opt: Remove score3 and score5 options.
16388 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16390 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16391 when _HPUX_SOURCE is defined.
16392 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16394 2011-03-10 Jason Merrill <jason@redhat.com>
16397 * stor-layout.c (layout_type): Don't set structural equality
16398 on arrays of incomplete type.
16399 * tree.c (type_hash_eq): Handle comparing them properly.
16401 2011-03-10 Jakub Jelinek <jakub@redhat.com>
16404 * config/s390/s390.c (s390_delegitimize_address): Make sure the
16405 result mode matches original rtl mode.
16407 2011-03-10 Nick Clifton <nickc@redhat.com>
16409 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16410 (andsi3, andsi3_flags): Fix timings for three operand alternative.
16412 2011-03-09 Jakub Jelinek <jakub@redhat.com>
16414 PR rtl-optimization/47866
16415 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16416 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16417 if target wasn't scalar.
16418 * function.c (assign_stack_temp_for_type): Assert that neither
16419 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16420 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16422 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16424 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16426 * config/s390/s390-protos.h (s390_label_align): New prototype.
16427 * config/s390/s390.c (s390_label_align): New function.
16428 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16430 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16433 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16434 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16435 (output_vec_const_move): Ditto.
16437 2011-03-08 Anatoly Sokolov <aesok@post.ru>
16439 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16440 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16441 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16442 Change 'rclass' argument and result type to reg_class_t.
16443 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16445 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
16447 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16448 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16449 (TARGET_MEMORY_MOVE_COST): Define.
16450 (avr_register_move_cost, avr_memory_move_cost): New Functions.
16452 2011-03-08 Jakub Jelinek <jakub@redhat.com>
16455 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16458 PR tree-optimization/48022
16459 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16462 2011-03-07 Jakub Jelinek <jakub@redhat.com>
16465 * var-tracking.c (find_use_val): Return NULL for
16466 cui->sets && cui->store_p BLKmode MEMs.
16468 2011-03-07 Anatoly Sokolov <aesok@post.ru>
16470 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16472 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16473 xstormy16_print_operand_address): Remove.
16474 * config/stormy16/stormy16.c (xstormy16_print_operand,
16475 xstormy16_print_operand_address): Make static.
16476 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16478 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
16481 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16482 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16485 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
16488 * cfgloopmanip.c (fix_bb_placements): Return immediately
16489 if FROM is BASE_LOOP's header.
16491 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16493 * gimplify.c (gimplify_function_tree): Fix building calls
16494 to __builtin_return_address.
16496 2011-03-07 Alan Modra <amodra@gmail.com>
16498 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16499 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16500 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16501 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16503 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16504 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16505 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16506 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16507 * config/rs6000/rs6000.c
16508 (rs6000_elf_end_indicate_exec_stack): Rename to..
16509 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16510 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16511 (rs6000_file_start): ..here.
16512 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16513 file scope variables.
16514 (call_ABI_of_interest): New function.
16515 (init_cumulative_args): Set above vars when function return value
16516 is a float, vector, or small struct.
16517 (rs6000_function_arg_advance_1): Likewise for function args.
16518 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16519 references float args.
16521 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16523 * doc/cfg.texi: Remove "See" before @ref.
16524 * doc/invoke.texi: Likewise.
16526 2011-03-05 Jason Merrill <jason@redhat.com>
16528 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16530 2011-03-05 Anthony Green <green@moxielogic.com>
16532 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16534 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
16536 PR rtl-optimization/47899
16537 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16538 to flow_loop_nested_p when moving the loop upward.
16540 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
16543 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16545 2011-03-05 Jakub Jelinek <jakub@redhat.com>
16547 PR tree-optimization/47967
16548 * ipa-cp.c (build_const_val): Return NULL instead of creating
16549 VIEW_CONVERT_EXPR for mismatching sizes.
16550 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16551 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16552 give up on versioning.
16554 2011-03-05 Alan Modra <amodra@gmail.com>
16557 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16558 full cmodel medium/large lo_sum + high addresses.
16560 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16562 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16563 pool references in UNSPEC_LTREL_OFFSET.
16565 2011-03-04 Jan Hubicka <jh@suse.cz>
16568 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16569 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
16570 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16572 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16573 cgraph_add_thunk): Add node pointers.
16574 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16575 associated to right node.
16576 (input_node): Update use of cgraph_same_body_alias
16577 and cgraph_add_thunk.
16579 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16581 * config/i386/i386.opt (mprefer-avx128): New flag.
16582 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16583 modes when the flag -mprefer-avx128 is on.
16585 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16587 * dwarf2out.c (compare_loc_operands): Fix address handling.
16589 2011-03-04 Alan Modra <amodra@gmail.com>
16591 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16593 2011-03-04 Richard Guenther <rguenther@suse.de>
16595 PR middle-end/47968
16596 * expmed.c (extract_bit_field_1): Prefer vector modes that
16597 vec_extract patterns can handle.
16599 2011-03-04 Richard Guenther <rguenther@suse.de>
16601 PR middle-end/47975
16602 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16604 2011-03-04 Richard Henderson <rth@redhat.com>
16606 * explow.c (emit_stack_save): Remove 'after' parameter.
16607 (emit_stack_restore): Likewise.
16608 * expr.h: Update to match.
16609 * builtins.c, calls.c, stmt.c: Likewise.
16610 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16611 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16612 * function.c (expand_function_end): Insert the emit_stack_save
16613 sequence before parm_birth_insn instead of after.
16615 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
16617 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16618 (ssse3_pmaddubsw128): Ditto.
16619 (ssse3_pmaddubsw): Ditto.
16621 2011-03-03 Steve Ellcey <sje@cup.hp.com>
16623 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16625 2011-03-03 Jakub Jelinek <jakub@redhat.com>
16628 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16629 on TYPE_SIZE_UNIT if it is a DECL.
16632 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16633 first operand is not is_gimple_mem_ref_addr, try to fold it.
16634 If the operand still isn't is_gimple_mem_ref_addr, clear
16637 2011-03-03 Richard Guenther <rguenther@suse.de>
16639 PR middle-end/47283
16640 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16642 (refs_may_alias_p_1): For release branches return true if
16643 we are confused by our input.
16645 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16647 * config/s390/s390.c (s390_function_value): Rename to ...
16648 (s390_function_and_libcall_value): ... this.
16649 (s390_function_value): New function.
16650 (s390_libcall_value): New function.
16651 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16652 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16653 target macro definitions.
16654 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16656 2011-03-02 Joseph Myers <joseph@codesourcery.com>
16658 * config/i386/freebsd64.h (CC1_SPEC): Define.
16659 * config/i386/linux64.h (CC1_SPEC): Define.
16660 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16662 2011-03-02 Anatoly Sokolov <aesok@post.ru>
16664 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16666 * config/stormy16/stormy16.c: Include reload.h.
16667 (xstormy16_memory_move_cost): New function.
16668 (TARGET_MEMORY_MOVE_COST): Define.
16670 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16672 PR rtl-optimization/47925
16673 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16674 with side effects. Remove the more-specific check for volatile asms.
16676 2011-03-02 Alan Modra <amodra@gmail.com>
16679 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16680 toc relative addresses for valid offsets.
16682 2011-03-01 Richard Guenther <rguenther@suse.de>
16684 PR tree-optimization/47890
16685 * tree-vect-loop.c (get_initial_def_for_induction): Set
16686 related stmt properly.
16688 2011-03-01 Richard Guenther <rguenther@suse.de>
16691 * lto-streamer.c (lto_record_common_node): Also register
16692 the canonical type.
16694 2011-03-01 Richard Guenther <rguenther@suse.de>
16697 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16698 Do not stream DECL_ABSTRACT_ORIGIN.
16699 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16700 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16701 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16702 Do not stream DECL_ABSTRACT_ORIGIN.
16703 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16704 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16706 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16708 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16709 FUNCTION_VALUE_REGNO_P): Remove.
16710 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16711 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16712 Add 'outgoing' argument.
16713 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16715 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16716 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16718 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16721 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16722 (lookup_filename): Likewise.
16723 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16725 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16726 Jakub Jelinek <jakub@redhat.com>
16728 PR middle-end/47893
16729 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16730 (assign_stack_local_1): Change last argument type to int.
16731 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16732 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16733 don't record padding space into frame_space_list nor use those areas.
16734 (assign_stack_local): Adjust caller.
16735 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16736 of assign_stack_local, pass 0 as last argument.
16737 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16740 2011-02-28 Jakub Jelinek <jakub@redhat.com>
16743 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16744 Use target address_mode and pointer_mode hooks instead of hardcoded
16745 Pmode and ptr_mode. Handle some simple cases of extending if
16746 POINTERS_EXTEND_UNSIGNED < 0.
16747 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16748 Call convert_debug_memory_address.
16749 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16750 convert_debug_memory_address.
16752 PR middle-end/46790
16753 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16754 * configure: Regenerated.
16755 * config.in: Regenerated.
16756 * varasm.c (default_function_section): Return NULL
16757 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16759 2011-02-28 Martin Jambor <mjambor@suse.cz>
16761 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16762 the description to match the printed values.
16764 2011-02-28 Richard Guenther <rguenther@suse.de>
16766 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16767 of the copied scope tree.
16769 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16771 * doc/extend.texi (Function Attributes): Avoid deeply (and
16772 wrongly) nested tables.
16774 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16776 PR middle-end/47903
16777 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16778 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16779 r isn't op0 nor op1.
16781 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16783 * config/avr/avr.md: Remove magic comment for emacs.
16785 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16788 * config/avr/avr.c (avr_option_override): Use error on bad options.
16789 (avr_help): New function.
16790 (TARGET_HELP): Define.
16792 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16795 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16796 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16798 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16800 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16801 (ARM Options): Ditto.
16802 (i386 and x86-64 Options): Ditto.
16803 (RX Options): Ditto.
16804 (SPARC Options): Ditto.
16806 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16808 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16809 FreeBSD 6 and later. Generally use cpu generic.
16811 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16813 * doc/cpp.texi: Update copyright years.
16815 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16818 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16820 2011-02-25 Jon Beniston <jon@beniston.com>
16823 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16824 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16825 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16826 (lm32_block_move_inline): Add type cast to remove warning.
16827 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16828 (gen_int_relational): Move declarations to start of function.
16830 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16832 PR tree-optimization/45470
16833 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16834 can throw internally only.
16835 * tree-vect-stmts.c (vectorizable_call): Likewise.
16837 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16839 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16840 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16841 * config/stormy16/stormy16-protos.h
16842 (xstormy16_preferred_reload_class): Remove.
16843 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16844 static. Change 'rclass' argument and return type to reg_class_t.
16845 (TARGET_PREFERRED_RELOAD_CLASS,
16846 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16848 2011-02-24 Richard Guenther <rguenther@suse.de>
16850 * lto-streamer-in.c (input_bb): Do not find referenced vars
16851 in debug statements.
16853 2011-02-23 Jason Merrill <jason@redhat.com>
16855 * common.opt (fabi-version): Document v5 and v6.
16857 2011-02-23 Richard Guenther <rguenther@suse.de>
16859 PR tree-optimization/47849
16860 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16862 2011-02-23 Jie Zhang <jie@codesourcery.com>
16864 * opts-common.c (decode_cmdline_option): Print empty string
16865 argument as "" in decoded->orig_option_with_args_text.
16866 * gcc.c (execute): Print empty string argument as ""
16867 in the verbose output.
16868 (do_spec_1): Keep empty string argument.
16870 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16872 * config.gcc: Declare score-* and crx-* obsolete.
16874 2011-02-23 Jie Zhang <jie@codesourcery.com>
16876 PR rtl-optimization/47763
16877 * web.c (web_main): Ignore naked clobber when replacing register.
16879 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16881 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16884 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16887 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16889 2011-02-22 Mike Stump <mikestump@comcast.net>
16891 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16893 * configure: Regenerate.
16895 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16897 PR rtl-optimization/46002
16898 * ira-color.c (update_copy_costs): Change class intersection
16899 test to reg_class_contents[] test of 'hard_regno'.
16901 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16903 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16904 than Driver option.
16905 * config/hpux11.opt (mt): Likewise.
16906 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16907 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16908 * config/vax/elf.opt (mno-asm-pic): Likewise.
16909 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16911 2011-02-21 Mike Stump <mikestump@comcast.net>
16914 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16915 tree so we can get save the type.
16916 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16917 for CFString instead of trying to use past the end of the builtins.
16918 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16919 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16920 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16921 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16922 Rename to darwin_builtin_cfstring.
16923 (darwin_init_cfstring_builtins): Return the built type.
16925 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16928 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16929 (_mm256_insert_epi64): Use _mm_insert_epi64.
16931 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16933 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16934 * config/stormy16/stormy16-protos.h
16935 (xstormy16_mode_dependent_address_p): Remove.
16936 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16937 Make static. Change return type to bool. Change argument type to
16938 const_rtx. Remove dead code.
16939 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16941 2011-02-21 Richard Guenther <rguenther@suse.de>
16944 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16945 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16946 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16948 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16949 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16951 2011-02-20 Richard Guenther <rguenther@suse.de>
16954 * tree.c (free_lang_data_in_decl): Clean builtins from
16955 the TU decl BLOCK_VARS.
16957 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16961 * haifa-sched.c (fix_tick_ready): Skip tick computation
16964 2011-02-19 Richard Guenther <rguenther@suse.de>
16967 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16968 Remove lazy BLOCK_VARS streaming.
16969 (lto_input_ts_block_tree_pointers): Likewise.
16970 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16972 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16974 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16976 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16978 * config/i386/biarch32.h, config/i386/mach.h,
16979 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16981 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16984 * config/i386/i386.md (peephole2 for shift and plus): Use
16985 operands[1] original mode in the first insn.
16987 2011-02-18 Mike Stump <mikestump@comcast.net>
16989 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16991 2011-02-18 Jan Hubicka <jh@suse.cz>
16993 PR middle-end/47788
16994 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16995 to zero when the function is not inlinable at all.
16997 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16999 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
17000 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17001 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
17002 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
17003 * config/pa/t-pa64: Likewise.
17004 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17006 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17009 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
17011 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17014 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
17016 2011-02-18 Anatoly Sokolov <aesok@post.ru>
17018 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17019 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
17020 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
17021 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17022 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
17023 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
17024 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
17025 m32r_load_postinc_p, m32r_store_preinc_predec_p,
17026 m32r_legitimate_address_p): New functions.
17027 * config/m32r/constraints.md (constraint "S"): Don't use
17028 STORE_PREINC_PREDEC_P.
17029 (constraint "U"): Don't use LOAD_POSTINC_P.
17031 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
17033 PR rtl-optimization/46178
17034 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
17035 compute ira_hard_regno_cover_class[].
17037 2011-02-18 Richard Guenther <rguenther@suse.de>
17040 * lto-streamer.h (lto_global_var_decls): Declare.
17041 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
17042 statics for global var processing.
17044 2011-02-18 Richard Guenther <rguenther@suse.de>
17046 PR tree-optimization/47737
17047 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
17048 edge dominance check.
17050 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17053 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
17054 avoid invalid rtx sharing.
17056 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
17058 * doc/cpp.texi (Obsolete Features): Add background on the
17059 origin of assertions.
17061 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
17063 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
17065 * config/darwin.c (output_objc_section_asm_op): Added support for
17067 (is_objc_metadata): New.
17068 (darwin_objc2_section): New.
17069 (darwin_objc1_section): New.
17070 (machopic_select_section): Added support for ABI v1 and v2.
17071 (darwin_emit_objc_zeroed): New.
17072 (darwin_output_aligned_bss): Detect objc metadata and treat it
17074 (darwin_asm_output_aligned_decl_common): Same.
17075 (darwin_asm_output_aligned_decl_local): Same.
17076 * config/darwin-sections.def: Updated for ABI v1 and v2.
17077 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
17078 compiling Objective-C code for the NeXT runtime, default to using
17079 ABI version 0 for 32-bit, and version 2 for 64-bit.
17081 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17083 * common.opt (optimize_fast): New Variable.
17084 * opts.c (default_options_optimization): Use opts->x_optimize_fast
17085 instead of local variable ofast.
17087 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
17089 * doc/invoke.texi (fobjc-abi-version): Documented.
17090 (fobjc-nilcheck): Documented.
17091 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
17094 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17097 * common.opt (export-dynamic): New Driver option.
17098 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
17100 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17102 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
17104 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
17105 Jan Hubicka <jh@suse.cz>
17109 * cfgexpand.c (account_used_vars_for_block): Remove.
17110 (estimated_stack_frame_size): Use referenced vars.
17111 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
17112 that were referenced in the original function. Test src_fn
17113 rather than cfun. Drop redundant get_var_ann.
17114 (setup_one_parameter): Drop redundant get_var_ann.
17115 (declare_return_variable): Likewise.
17116 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
17117 (copy_arguments_for_versioning): Drop redundant get_var_ann.
17118 * ipa-inline.c (compute_inline_parameters): Do not compute
17119 disregard_inline_limits here.
17120 (compute_inlinable_for_current, pass_inlinable): New.
17121 (pass_inline_parameters): Require PROP_referenced_vars.
17122 * cgraphunit.c (cgraph_process_new_functions): Don't run
17123 compute_inline_parameters explicitly unless function is in SSA form.
17124 (cgraph_analyze_function): Set .disregard_inline_limits.
17125 * tree-sra.c (convert_callers): Compute inliner parameters
17126 only for functions already in SSA form.
17128 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17130 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
17131 -mlittle-endian-data.
17133 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17135 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
17136 -mno-fpu, not -fpu and -no-fpu.
17137 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
17138 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
17140 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
17143 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
17144 input reload with PLUS RTX.
17146 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17148 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
17149 of InverseVar(MDMX).
17151 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17153 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
17156 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17158 * config/mn10300/mn10300.opt (mno-crt0): New.
17160 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17162 * config/m68k/uclinux.opt (static-libc): New Driver option.
17164 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17166 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17168 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17170 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17171 %{muser-extend-enabled}.
17173 2011-02-16 Richard Guenther <rguenther@suse.de>
17175 PR tree-optimization/47738
17176 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17177 the TODO from tree_predictive_commoning.
17179 2011-02-15 Jeff Law <law@redhat.com>
17182 2011-01-25 Jeff Law <law@redhat.com>
17184 PR rtl-optimization/37273
17185 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17186 handle them like argument loads from stack slots. Do not double
17187 count memory for memory constants and argument loads from stack slots.
17189 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17191 PR middle-end/47725
17192 * combine.c (cant_combine_insn_p): Revert the last change.
17194 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17197 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17198 mode for vector constants. Remove code that checks for TImode.
17200 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17204 * cgraph.h (compute_inline_parameters): Return void.
17205 * ipa-inline.c (compute_inline_parameters): Adjust.
17207 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17211 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17213 * cfgexpand.c (estimated_stack_frame_size): Likewise.
17214 * ipa-inline.c (compute_inline_parameters): Adjust.
17216 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17220 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17221 Adjust all users. Pass FN to...
17222 * tree-flow-inline.h (first_referenced_var): ... this. Add
17224 * ipa-struct-reorg.c: Adjust.
17225 * tree-dfa.c: Adjust.
17226 * tree-into-ssa.c: Adjust.
17227 * tree-sra.c: Adjust.
17228 * tree-ssa-alias.c: Adjust.
17229 * tree-ssa-live.c: Adjust.
17230 * tree-ssa.c: Adjust.
17231 * tree-ssanames.c: Adjust.
17232 * tree-tailcall.c: Adjust.
17234 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17238 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17239 Adjust all callers.
17240 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17241 * tree-flow-inline.h: Adjust.
17242 * gimple-pretty-print.c: Adjust.
17243 * tree-into-ssa.c: Adjust.
17244 * tree-ssa.c: Adjust.
17245 * cfgexpand.c: Adjust.
17247 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17249 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17250 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17251 (EXTRA_CONSTRAINT): Delete.
17252 * config/iq2000/constraints.md: New file.
17253 * config/iq2000/iq2000.md: Include it.
17254 (define_insn ""): Delete.
17255 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17256 unsupported constraint letters from patterns.
17257 (call_value, call_value_internal1): Likewise.
17258 (call_value_multiple_internal1): Likewise.
17260 2011-02-15 Nick Clifton <nickc@redhat.com>
17262 * config/mn10300/mn10300.c: Include tm-constrs.h.
17263 (struct liw_data): New data structure describing an LIW candidate
17265 (extract_bundle): Use struct liw_data. Allow small integer
17266 operands for some instructions.
17267 (check_liw_constraints): Use struct liw_data. Remove swapped
17268 parameter. Add comments describing the checks. Fix bug when
17269 assigning the source of liw1 to the source of liw2.
17270 (liw_candidate): Delete. Code moved into extract_bundle.
17271 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17273 * config/mn10300/predicates.md (liw_operand): New predicate.
17274 Allows registers and small integer constants.
17275 * config/mn10300/constraints.md (O): New constraint. Accetps
17276 integers in the range -8 to +7 inclusive.
17277 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17278 for moving a small integer into a register. Give this alternative
17280 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17281 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17282 using the J,K,L and M constraints,
17283 (liw): Remove SI mode on second operands to allow for HI and QI
17285 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17288 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17290 PR middle-end/47725
17291 * combine.c (cant_combine_insn_p): Check zero/sign extended
17294 2011-02-15 Richard Guenther <rguenther@suse.de>
17296 PR tree-optimization/47743
17297 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17298 for a non-type-compatible VN lookup bail out.
17300 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17302 * config/fr30/constraints.md: New file.
17303 * config/fr30/fr30.md: Include it.
17304 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17305 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17306 (EXTRA_CONSTRAINT): Delete.
17308 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17310 * config/frv/constraints.md: New file.
17311 * config/frv/predicates.md: Include it.
17312 * config/frv/frv.c (reg_class_from_letter): Delete.
17313 (frv_option_override): Don't initialize it.
17314 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17315 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17316 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17317 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17318 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17319 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17320 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17321 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17322 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17323 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17324 (REG_CLASS_FROM_CONSTRAINT): Delete.
17326 2011-02-15 Jakub Jelinek <jakub@redhat.com>
17328 PR middle-end/47581
17329 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17330 if frame size is 0 in a leaf function.
17332 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17335 * config/alpha/host-osf.c: New file.
17336 * config/alpha/x-osf: New file.
17337 * config.host (alpha*-dec-osf*): Use it.
17339 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17341 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17342 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17343 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17344 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17346 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17348 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17350 * config/stormy16/constraints.md: New file.
17351 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17352 Use satisfies_constraint_Q and satisfies_constraint_R.
17353 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17355 (xstormy16_legitiamte_address_p): Declare.
17356 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17357 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17358 (EXTRA_CONSTRAINT): Delete.
17359 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17361 (xstormy16_extra_constraint_p): Delete.
17363 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17365 PR tree-optimization/46494
17366 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17367 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17368 (pass_rtl_loop_done): Add TODO_verify_flow.
17369 * fwprop.c (pass_rtl_fwprop): Likewise.
17370 * modulo-sched.c (pass_sms): Likewise.
17371 * tree-ssa-dom.c (pass_dominator): Likewise.
17372 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17373 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17374 (pass_tree_loop_done): Likewise.
17375 * tree-ssa-pre.c (execute_pre): Likewise.
17376 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17377 * tree-ssa-sink.c (pass_sink_code): Likewise.
17378 * tree-vrp.c (pass_vrp): Likewise.
17380 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17382 * config/v850/constraints.md: New file.
17383 * config/v850/v850.md: Include it.
17384 * config/v850/predicates.md (reg_or_0_operand): Use
17385 satisfies_constraint_G.
17386 (special_symbolref_operand): Use satisfies_constraint_K.
17387 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17388 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17389 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17390 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17391 (EXTRA_CONSTRAINT): Delete.
17392 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17393 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17394 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17396 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17399 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17402 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17404 * config/mcore/constraints.md: New file.
17405 * config/mcore/mcore.md: Include it.
17406 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17407 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17408 (REG_CLASS_FROM_LETTER): Delete.
17409 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17410 insn_const_int_ok_for_constraint.
17411 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17412 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17413 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17414 (EXTRA_CONSTRAINT): Delete.
17416 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17419 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17420 (IS_SIGHANDLER): Define.
17421 (sparc64_is_sighandler): New function, split off from
17422 sparc64_fallback_frame_state.
17423 (sparc_is_sighandler): New function, split off from
17424 sparc_fallback_frame_state.
17425 (sparc64_fallback_frame_state): Merge with ...
17426 (sparc_fallback_frame_state): ... this into ...
17427 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17428 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17429 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17430 stack instead of hardcoded offsets.
17432 2011-02-14 Andriy Gapon <avg@freebsd.org>
17435 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17437 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17439 * configure: Regenerate.
17441 2011-02-12 Joseph Myers <joseph@codesourcery.com>
17444 * gcc.c (asm_options): Correct spec matching --target-help.
17446 2011-02-12 Martin Jambor <mjambor@suse.cz>
17448 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17449 to gimple call error.
17451 2011-02-12 Mike Stump <mikestump@comcast.net>
17453 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17454 comments in backslash regions.
17456 2011-02-12 Mike Stump <mikestump@comcast.net>
17457 Jakub Jelinek <jakub@redhat.com>
17458 Iain Sandoe <iains@gcc.gnu.org>
17461 * dwarf2out.c (output_cfa_loc): When required, apply the
17462 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17463 (output_loc_sequence): Likewise.
17464 (output_loc_operands_raw): Likewise.
17465 (output_loc_sequence_raw): Likewise.
17466 (output_cfa_loc): Likewise.
17467 (output_loc_list): Suppress register number adjustment when
17468 calling output_loc_sequence()
17469 (output_die): Likewise.
17471 2011-02-12 Anatoly Sokolov <aesok@post.ru>
17473 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17475 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17476 xtensa_memory_move_cost): New functions.
17477 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17479 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
17482 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17483 in the current directory.
17484 * configure: Rebuilt.
17486 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17488 * config/darwin.c (darwin_override_options): Add a hunk missed
17489 from the commit of r168571. Trim comment line lengths and
17490 correct indents of the preceding block.
17492 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17494 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17497 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17499 * common.opt (nostartfiles): New Driver option.
17501 2011-02-11 Xinliang David Li <davidxl@google.com>
17503 PR tree-optimization/47707
17504 * tree-chrec.c (convert_affine_scev): Keep type precision.
17506 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17508 PR tree-optimization/47420
17509 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17511 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
17513 PR rtl-optimization/47614
17514 * rtl.h (check_for_inc_dec): Declare.
17515 * dse.c (check_for_inc_dec): Externalize...
17516 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17517 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17519 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17522 * gcc.c (main): Do not compile inputs if there were errors in
17524 * opts-common.c (read_cmdline_option): Check for wrong language
17525 after other error checks.
17527 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17529 * cgraph.c: Fix comment typos.
17530 * cgraph.h: Likewise.
17531 * cgraphunit.c: Likewise.
17532 * ipa-cp.c: Likewise.
17533 * ipa-inline.c: Likewise.
17534 * ipa-prop.c: Likewise.
17535 * ipa-pure-const.c: Likewise.
17536 * ipa-ref.c: Likewise.
17537 * ipa-reference.c: Likewise.
17539 2011-02-11 Jakub Jelinek <jakub@redhat.com>
17542 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
17544 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17547 * doc/sourcebuild.texi (Require Support): Document
17548 dg-require-ascii-locale.
17550 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17552 * doc/lto.texi (Write summary): Fix missing parentheses.
17554 2011-02-10 DJ Delorie <dj@redhat.com>
17556 * config/m32c/m32c.c (m32c_option_override): Disable
17557 -fcombine-stack-adjustments until flag value tracking and compare
17558 optimization can be rewritten.
17560 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17562 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17564 (PROCESSOR_DEFAULT64): Likewise.
17566 2011-02-10 Richard Henderson <rth@redhat.com>
17568 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17569 change from 2011-02-03.
17570 * config/rx/rx.c (flags_from_code): Likewise.
17571 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17572 is valid, n/pz otherwise.
17573 (rx_select_cc_mode): Return CCmode if Y is not zero.
17575 2011-02-10 Richard Guenther <rguenther@suse.de>
17577 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
17579 2011-02-10 Richard Guenther <rguenther@suse.de>
17581 PR tree-optimization/47677
17582 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17584 2011-02-10 Jakub Jelinek <jakub@redhat.com>
17587 * combine.c (make_compound_operation): Only change shifts into
17588 multiplication for SCALAR_INT_MODE_P.
17590 2011-02-10 Jie Zhang <jie@codesourcery.com>
17594 2011-02-05 Jie Zhang <jie@codesourcery.com>
17596 * web.c (entry_register): Don't clobber the number of the
17597 first uninitialized reference in used[].
17599 2011-02-09 Richard Guenther <rguenther@suse.de>
17601 PR tree-optimization/47664
17602 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17605 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
17609 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17611 (PROCESSOR_DEFAULT64): Same.
17612 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17614 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17616 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17618 2011-02-09 Martin Jambor <mjambor@suse.cz>
17620 PR middle-end/45505
17621 * tree-sra.c (struct access): New flags grp_scalar_read and
17622 grp_scalar_write. Changed description of assignment read and write
17624 (dump_access): Dump new flags, reorder all of them.
17625 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17626 to detect multiple scalar reads.
17627 (analyze_access_subtree): Use the new scalar read write flags instead
17628 of the old flags. Adjusted comments.
17630 2011-02-08 DJ Delorie <dj@redhat.com>
17633 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17636 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17638 * config/m68k/uclinux.opt: New.
17639 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17641 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17643 * config/cris/elf.opt (sim): New Driver option.
17645 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17647 * config/xtensa/elf.opt: New.
17648 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17650 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17652 * config/vax/elf.opt: New.
17653 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17655 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17657 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17659 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17661 * config/gnu-user.opt: New.
17662 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17663 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17664 *-*-uclinux*): Use gnu-user.opt.
17666 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
17668 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17669 * config/i386/gnu.h (CPP_SPEC): Likewise.
17671 2011-02-08 Ian Lance Taylor <iant@google.com>
17673 * common.opt (fcx-limited-range): Add SetByCombined flag.
17674 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17675 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17676 (fassociative-math, freciprocal-math): Likewise.
17677 (funsafe-math-optimizations): Likewise.
17678 * opth-gen.awk: Handle SetByCombined.
17679 * optc-gen.awk: Likewise.
17680 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17681 (set_unsafe_math_optimizations_flags): Likewise.
17682 * doc/options.texi (Option properties): Document SetByCombined.
17684 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17686 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17687 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17688 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17689 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17690 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17692 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17694 PR tree-optimization/46834
17695 PR tree-optimization/46994
17696 PR tree-optimization/46995
17697 * graphite-sese-to-poly.c (used_outside_reduction): New.
17698 (detect_commutative_reduction): Call used_outside_reduction.
17699 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17700 translate_scalar_reduction_to_array only when at least one
17701 loop-phi/close-phi tuple has been detected.
17703 2011-02-08 Richard Guenther <rguenther@suse.de>
17705 PR middle-end/47639
17706 * tree-vect-generic.c (expand_vector_operations_1): Update
17708 (expand_vector_operations): ... not here. Cleanup EH info
17709 and the CFG if required.
17711 2011-02-08 Richard Guenther <rguenther@suse.de>
17713 PR tree-optimization/47641
17714 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17715 require type compatibility.
17717 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17719 * gimple-low.c (lower_function_body): Don't remove the location of
17720 the return statement here.
17721 (lower_gimple_return): Do it here instead but only if the return
17722 statement is actually used twice.
17724 2011-02-08 Richard Guenther <rguenther@suse.de>
17726 PR tree-optimization/47632
17727 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17728 unused up_to_stmt parameter, return whether cfg-cleanup is
17729 necessary, remove EH info properly.
17730 (forward_propagate_into_gimple_cond): Adjust caller.
17731 (forward_propagate_into_cond): Likewise.
17732 (forward_propagate_comparison): Likewise.
17733 (tree_ssa_forward_propagate_single_use_vars): Make
17734 forward_propagate_comparison case similar to the two others.
17736 2011-02-08 Nick Clifton <nickc@redhat.com>
17738 * config/mn10300/mn10300.opt (mliw): New command line option.
17739 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17740 (liw_bundling): New automaton.
17741 (liw): New attribute.
17742 (liw_op): New attribute.
17743 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17744 (movsi_internal): Add LIW attributes.
17745 (andsi3): Likewise.
17746 (iorsi3): Likewise.
17747 (xorsi3): Likewise.
17748 (addsi3): Separate register and immediate alternatives.
17749 Add LIW attributes.
17750 (subsi3): Likewise.
17752 (aslsi3): Likewise.
17753 (lshrsi3): Likewise.
17754 (ashrsi3): Likewise.
17755 (liw): New pattern.
17756 * config/mn10300/mn10300.c (liw_op_names): New
17757 (mn10300_print_operand): Handle 'W' operand descriptor.
17758 (extract_bundle): New function.
17759 (check_liw_constraints): New function.
17760 (liw_candidate): New function.
17761 (mn10300_bundle_liw): New function.
17762 (mn10300_reorg): New function.
17763 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17764 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17765 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17766 __LIW__ or __NO_LIW__.
17767 * doc/invoke.texi: Describe the -mliw command line option.
17769 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17771 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17772 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17773 pthread_mutex_unlock): Remove.
17774 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17775 * config/pa/t-pa64: Likewise.
17776 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17777 shared libc if not linking against libpthread.
17778 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17780 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17783 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17784 on 10.6 and later to ensure that we always use the unwinder from
17785 the system. Only add -no_compact_unwind when tarteting darwin
17788 2011-02-07 Steve Ellcey <sje@cup.hp.com>
17791 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17792 (vec_interleave_lowv2sf): Ditto.
17793 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17794 (vec_extract_oddv2sf): Ditto.
17796 2011-02-07 Mike Stump <mikestump@comcast.net>
17799 Add __ieee_divdc3 entry point.
17800 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17802 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17803 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17804 * config/darwin.c (darwin_rename_builtins): Add.
17805 * config/darwin-protos.h (darwin_rename_builtins): Add.
17807 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17810 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17813 2011-02-07 Mike Stump <mikestump@comcast.net>
17815 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17817 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17820 * config/avr/libgcc.S (exit): Move .endfunc
17822 2011-02-07 Richard Guenther <rguenther@suse.de>
17824 PR tree-optimization/47615
17825 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17826 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17827 (run_scc_vn): Initialize it.
17828 (visit_reference_op_load): Use it.
17829 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17831 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17833 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17834 DImode trapping arithmetic libfuncs.
17836 2011-02-07 Richard Guenther <rguenther@suse.de>
17838 PR tree-optimization/47621
17839 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17841 (execute_update_addresses_taken): ... here. Make it more
17842 conservative in what we accept.
17844 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17846 * config/sparc/freebsd.h (ASM_SPEC): Define.
17847 * config/sparc/vxworks.h (ASM_SPEC): Define.
17849 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17851 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17853 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17855 * doc/invoke.texi: Remove reference to compiler internals from
17856 user documentation.
17858 * reg-notes.def: Remove REG_VALUE_PROFILE.
17859 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17861 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17863 PR middle-end/47610
17864 * varasm.c (default_section_type_flags): If decl is NULL,
17865 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17867 2011-02-05 Jie Zhang <jie@codesourcery.com>
17870 * web.c (entry_register): Don't clobber the number of the
17871 first uninitialized reference in used[].
17873 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17875 PR tree-optimization/46194
17876 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17877 (build_classic_dist_vector_1): Do not represent classic distance
17878 vectors when the access functions are variating in different loops.
17880 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17882 * config/mips/iris6.opt: New.
17883 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17885 2011-02-04 Richard Henderson <rth@redhat.com>
17886 Steve Ellcey <sje@cup.hp.com>
17889 * config/ia64/predicates.md (mux1_brcst_element): New.
17890 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17891 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17892 (ia64_unpack_sign): New.
17893 (ia64_expand_unpack): Rewrite using new routines.
17894 (ia64_expand_widen_sum): Ditto.
17895 (ia64_expand_dot_prod_v8qi): Ditto.
17896 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17897 routines, add endian check.
17898 (pmpy2_even): Rename from pmpy2_r, add endian check.
17899 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17900 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17901 (vec_widen_smult_hi_v4hi): Ditto.
17902 (vec_widen_umult_lo_v4hi): Ditto.
17903 (vec_widen_umult_hi_v4hi): Ditto.
17904 (mulv2si3): Change endian checks.
17905 (sdot_prodv4hi): Rewrite with new calls.
17906 (udot_prodv4hi): New.
17907 (vec_pack_ssat_v4hi): Add endian check.
17908 (vec_pack_usat_v4hi): Ditto.
17909 (vec_pack_ssat_v2si): Ditto.
17910 (max1_even): Rename from max1_r, add endian check.
17911 (max1_odd): Rename from max1_l, add endian check.
17912 (*mux1_rev): Format change.
17913 (*mux1_mix): Ditto.
17914 (*mux1_shuf): Ditto.
17915 (*mux1_alt): Ditto.
17916 (*mux1_brcst_v8qi): Use new predicate.
17917 (vec_extract_evenv8qi): Remove endian check.
17918 (vec_extract_oddv8qi): Ditto.
17919 (vec_interleave_lowv4hi): Format change.
17920 (vec_interleave_highv4hi): Ditto.
17921 (mix2_even): Rename from mix2_r, add endian check.
17922 (mix2_odd): Rename from mux2_l, add endian check.
17923 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17924 (vec_extract_evenodd_helper): Format change.
17925 (vec_extract_evenv4hi): Remove endian check.
17926 (vec_extract_oddv4hi): Remove endian check.
17927 (vec_interleave_lowv2si): Format change.
17928 (vec_interleave_highv2si): Format change.
17929 (vec_initv2si): Remove endian check.
17930 (vecinit_v2si): Add endian check.
17931 (reduc_splus_v2sf): Add endian check.
17932 (reduc_smax_v2sf): Ditto.
17933 (reduc_smin_v2sf): Ditto.
17934 (vec_initv2sf): Remove endian check.
17935 (fpack): Add endian check.
17936 (fswap): Add endian check.
17937 (vec_interleave_highv2sf): Add endian check.
17938 (vec_interleave_lowv2sf): Add endian check.
17939 (fmix_lr): Add endian check.
17940 (vec_setv2sf): Format change.
17941 (*vec_extractv2sf_0_be): Use shift to extract operand.
17942 (*vec_extractv2sf_1_be): New.
17943 (vec_pack_trunc_v4hi): Add endian check.
17944 (vec_pack_trunc_v2si): Format change.
17946 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17948 PR inline-asm/23200
17949 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17950 do bb, locus and block comparison and disallow loads if it is not set.
17951 (stmt_is_replaceable_p): New function.
17952 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17954 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17955 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17957 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17959 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17961 * config/rs6000/xilinx.opt: New.
17962 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17964 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17966 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17968 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17970 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17971 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17972 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17973 secondary_reload_info, xtensa_secondary_reload): Remove.
17974 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17975 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17976 (xtensa_preferred_reload_class): Make static. Change return and
17977 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17978 Use CONST_DOUBLE_P predicate.
17979 (xtensa_preferred_output_reload_class): New function.
17980 (xtensa_secondary_reload): Make static.
17982 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17984 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17985 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17986 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17988 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17990 PR middle-end/31490
17991 * output.h (SECTION_RELRO): Define.
17992 (SECTION_MACH_DEP): Adjust.
17993 (get_variable_section): New prototype.
17994 * varpool.c (varpool_finalize_named_section_flags): New function.
17995 (varpool_assemble_pending_decls): Call it.
17996 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17997 * cgraphunit.c (cgraph_output_in_order): Call
17998 varpool_finalize_named_section_flags.
17999 * varasm.c (get_section): Allow section flags conflicts between
18000 relro and read-only sections if the section hasn't been declared yet.
18001 Set SECTION_OVERRIDE after diagnosing section type conflict.
18002 (get_variable_section): No longer static.
18003 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
18004 readonly sections that need relocations.
18005 (decl_readonly_section_1): New function.
18006 (decl_readonly_section): Use it.
18009 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
18010 Steve Ellcey <sje@cup.hp.com>
18012 PR middle-end/31490
18013 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
18014 if section attribute used.
18016 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18018 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
18019 * config/darwin.c (SECTION_NO_ANCHOR): Define.
18020 (darwin_init_sections): Remove assertion.
18022 2011-02-03 Nick Clifton <nickc@redhat.com>
18024 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
18026 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
18027 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
18028 instead of "n" and "pz".
18029 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18032 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18035 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
18036 fma, expand FMA_EXPR as fma{,f,l} call.
18039 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
18040 copy them into a unsigned char variable and pass address of it to
18041 lto_output_data_stream.
18044 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
18045 around backend_init_target and lang_dependent_init_target calls.
18046 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
18047 (verify_cgraph_node): Don't call set_cfun here. Use
18048 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
18049 Set error_found for incorrectly represented calls to thunks.
18051 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18054 PR rtl-optimization/43494
18055 * rtl.h (for_each_inc_dec_fn): New type.
18056 (for_each_inc_dec): Declare.
18057 * rtlanal.c (struct for_each_inc_dec_ops): New type.
18058 (for_each_inc_dec_find_inc_dec): New fn.
18059 (for_each_inc_dec_find_mem): New fn.
18060 (for_each_inc_dec): New fn.
18061 * dse.c (struct insn_size): Remove.
18062 (replace_inc_dec, replace_inc_dec_mem): Remove.
18063 (emit_inc_dec_insn_before): New fn.
18064 (check_for_inc_dec): Use it, along with for_each_inc_dec.
18065 (canon_address): Pass mem modes to cselib_lookup.
18066 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
18067 (cselib_lookup_from_insn): Likewise.
18068 (cselib_subst_to_values): Likewise.
18069 * cselib.c (find_slot_memmode): New var.
18070 (cselib_find_slot): New fn. Use it instead of
18071 htab_find_slot_with_hash everywhere.
18072 (entry_and_rtx_equal_p): Use find_slot_memmode.
18073 (autoinc_split): New fn.
18074 (rtx_equal_for_cselib_p): Rename and implement in terms of...
18075 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
18076 Deal with autoinc. Special-case recursion into MEMs.
18077 (cselib_hash_rtx): Likewise.
18078 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
18079 address and MEM modes.
18080 (cselib_subst_to_values): Add memmode, pass it on.
18082 (cselib_lookup): Add memmode argument, pass it on.
18083 (cselib_lookup_from_insn): Add memmode.
18084 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
18085 (struct cselib_record_autoinc_data): New.
18086 (cselib_record_autoinc_cb): New fn.
18087 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
18088 mode to cselib_lookup. Reset autoinced REGs here instead of...
18089 (cselib_process_insn): ... here.
18090 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
18092 (add_uses): Likewise, also to cselib_subst_to_values.
18093 (add_stores): Likewise.
18094 * sched-deps.c (add_insn_mem_dependence): Pass mode to
18095 cselib_subst_to_values.
18096 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
18097 * gcse.c (do_local_cprop): Adjusted.
18098 * postreload.c (reload_cse_simplify_set): Adjusted.
18099 (reload_cse_simplify_operands): Adjusted.
18100 * sel-sched-dump (debug_mem_addr_value): Pass mode.
18102 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18104 PR tree-optimization/45122
18105 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
18106 unsafe assumptions when there's more than one loop exit.
18108 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18111 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18112 Document using vector double with the load/store builtins, and
18113 that the load/store builtins always use Altivec instructions.
18115 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
18116 to use altivec memory instructions, even on VSX.
18117 (vector_altivec_store_<mode>): Ditto.
18119 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
18122 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18123 V2DF, V2DI support to load/store overloaded builtins.
18125 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
18126 altivec load/store builtins for V2DF/V2DI types.
18128 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18129 set avoid indexed addresses on power6 if -maltivec.
18130 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
18131 vector_altivec_load/vector_altivec_store builtins.
18132 (altivec_expand_st_builtin): Ditto.
18133 (altivec_expand_builtin): Add VSX memory builtins.
18134 (rs6000_init_builtins): Add V2DI types to internal types.
18135 (altivec_init_builtins): Add support for V2DF/V2DI altivec
18136 load/store builtins.
18137 (rs6000_address_for_altivec): Insure memory address is appropriate
18140 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
18141 vec_vsx_ld and vec_vsx_st.
18142 (vsx_store_<mode>): Ditto.
18144 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
18145 variables to hold long long types for VSX vector memory builtins.
18146 (RS6000_BTI_unsigned_long_long): Ditto.
18147 (long_long_integer_type_internal_node): Ditti.
18148 (long_long_unsigned_type_internal_node): Ditti.
18150 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
18151 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
18152 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
18154 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
18156 (vec_vsx_st): Ditto.
18158 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18160 * config/pa/pa-hpux10.opt: New.
18161 * config/hpux11.opt (pthread): New Driver option.
18162 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
18163 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
18165 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18167 * config/ia64/vms.opt: New.
18168 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18170 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18173 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18174 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18175 generator functions.
18176 (vsx_floatuns<VSi><mode>2): Ditto.
18177 (vsx_fix_trunc<mode><VSi>2): Ditto.
18178 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18180 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18182 * config/i386/djgpp.opt (posix): New Driver option.
18184 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18186 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18187 Move to the unsupported targets list.
18189 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
18191 PR rtl-optimization/47525
18192 * df-scan.c: Update copyright years.
18193 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18194 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18196 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18198 * config/i386/sysv4.h (TARGET_VERSION): Remove.
18199 (SUBTARGET_RETURN_IN_MEMORY): Remove.
18200 (ASM_OUTPUT_ASCII): Remove.
18201 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18203 2011-02-02 Jeff Law <law@redhat.com>
18205 PR middle-end/47543
18206 * reload.c (find_reloads_address): Handle reg+d address where both
18207 components are invalid by reloading the entire address.
18209 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18210 Richard Guenther <rguenther@suse.de>
18212 PR tree-optimization/40979
18214 * passes.c (init_optimization_passes): After LIM call copy_prop
18215 and DCE to clean up.
18216 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18218 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18220 PR tree-optimization/47576
18221 PR tree-optimization/47555
18222 * doc/invoke.texi (scev-max-expr-complexity): Documented.
18223 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18224 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18225 * tree-scalar-evolution.c (follow_ssa_edge): Use
18226 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18228 2011-02-02 Richard Guenther <rguenther@suse.de>
18230 PR tree-optimization/47566
18231 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18233 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18237 * tree-inline.c (declare_return_variable): Remove unused caller
18242 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18243 * cfgexpand.c (account_used_vars_for_block): Use them.
18244 * tree-nrv.c (tree_nrv): Likewise.
18245 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18246 (dump_scope_block): Likewise.
18247 (remove_unused_locals): Likewise.
18251 * tree-inline.c (declare_return_variable): Add result decl to
18252 local decls only once.
18253 * gimple-low.c (record_vars_into): Mark newly-created variables
18256 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18262 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18264 (no_real_insns_p, schedule_block, set_priorities): Drop special
18265 treatment of boundary debug insns.
18266 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18267 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18268 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18269 (BOUNDARY_DEBUG_INSN_P): Likewise.
18270 (SCHEDULE_DEBUG_INSN_P): Likewise.
18271 * sched-rgn.c (init_ready_list): Drop special treatment of
18272 boundary debug insns.
18273 * final.c (rest_of_clean_state): Clear notes' BB.
18275 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18277 * config/openbsd.opt (assert=): New Driver option.
18279 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18281 * config/i386/nto.opt: New.
18282 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18284 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18286 * config/i386/netware.opt: New.
18287 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18289 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18291 * config/interix.opt (posix): New Driver option.
18293 2011-02-01 DJ Delorie <dj@redhat.com>
18295 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18297 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18300 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18302 PR tree-optimization/47561
18303 * toplev.c (process_options): Print the Graphite flags. Add
18304 flag_loop_flatten to the list of options requiring Graphite.
18306 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18308 * config/i386/cygming.opt (posix): New Driver option.
18310 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18312 * config/arm/vxworks.opt: New.
18313 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18315 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18317 * config/alpha/elf.opt: New.
18318 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18319 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18321 2011-02-01 Richard Guenther <rguenther@suse.de>
18323 PR tree-optimization/47559
18324 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18325 store-motion on references that can throw.
18327 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18329 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18330 * tree-pass.h (TDF_CSELIB): New macro.
18331 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18332 cselib_lookup): Check for it rather than for TDF_DETAILS.
18334 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18337 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18338 is HOST_BIT_BUCKET.
18340 * opts.c (finish_options): Don't add x_aux_base_name if it is
18343 2011-02-01 Richard Guenther <rguenther@suse.de>
18345 PR tree-optimization/47555
18347 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18349 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18351 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18354 * config/lm32/t-lm32: Add multilib for all CPU options.
18356 2011-02-01 Richard Guenther <rguenther@suse.de>
18358 PR tree-optimization/47541
18359 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18360 sure to have a field at offset zero.
18362 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18364 * config/arc/arc.opt (EB, EL): New Driver options.
18366 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18368 * config/alpha/osf5.opt: New.
18369 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18371 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18373 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18375 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18377 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18378 -floop-interchange.
18379 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18380 is an alias of -floop-interchange and that it requires the
18381 Graphite infrastructure.
18382 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18383 flag_loop_interchange based on the value of flag_tree_loop_linear.
18385 2011-01-31 Jakub Jelinek <jakub@redhat.com>
18386 Richard Guenther <rguenther@suse.de>
18388 PR tree-optimization/47538
18389 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18390 type instead of r1type, except for comparisons. For right
18391 shifts and comparisons punt if there are mismatches in
18392 sizetype vs. non-sizetype types.
18394 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18396 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18399 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18401 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18403 * configure: Regenerate.
18405 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18407 * configure.ac (gcc_cv_ld_static_option): Define.
18408 (gcc_cv_ld_dynamic_option): Define.
18409 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18411 (HAVE_LD_STATIC_DYNAMIC): Update message.
18412 (LD_STATIC_OPTION): Define.
18413 (LD_DYNAMIC_OPTION): Define.
18414 * configure: Regenerate.
18415 * config.in: Regenerate.
18416 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18417 HAVE_LD_STATIC_DYNAMIC]: Use them.
18419 2011-01-31 Nick Clifton <nickc@redhat.com>
18421 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18422 registers inside interrupt handlers if the handler is not a leaf
18425 2011-01-31 Nick Clifton <nickc@redhat.com>
18427 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18428 reg_renumber returning an INVALID_REGNUM.
18430 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18433 * doc/install.texi: Document host options discarded when cross
18434 configuring target libraries.
18436 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18439 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18442 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18444 (no_real_insns_p, schedule_block, set_priorities): Drop special
18445 treatment of boundary debug insns.
18446 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18447 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18448 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18449 (BOUNDARY_DEBUG_INSN_P): Likewise.
18450 (SCHEDULE_DEBUG_INSN_P): Likewise.
18451 * sched-rgn.c (init_ready_list): Drop special treatment of
18452 boundary debug insns.
18453 * final.c (rest_of_clean-state): Clear notes' BB.
18455 2011-01-31 Alan Modra <amodra@gmail.com>
18457 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18458 toc relative expressions as we do in print_operand_address.
18460 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
18462 * doc/extend.texi: Follow spelling conventions.
18463 * doc/invoke.texi: Fix a typo.
18465 2011-01-30 Joseph Myers <joseph@codesourcery.com>
18467 * config/hpux11.opt: New.
18468 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18469 ia64*-*-hpux*): Use hpux11.opt.
18471 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
18473 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18476 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18478 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18481 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18483 * doc/install.texi (Binaries): Remove outdated reference for
18484 Motorola 68HC11/68HC12 downloads.
18486 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18488 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18491 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18494 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18497 2011-01-28 Ahmad Sharif <asharif@google.com>
18499 * value-prof.c (check_counter): Corrected error message.
18501 2011-01-29 Jie Zhang <jie@codesourcery.com>
18503 * config/arm/arm.c (arm_legitimize_reload_address): New.
18504 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18505 arm_legitimize_reload_address.
18506 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18508 2011-01-28 Ian Lance Taylor <iant@google.com>
18510 * godump.c (go_define): Ignore macros whose definitions include
18511 two adjacent operands.
18513 2011-01-28 Jakub Jelinek <jakub@redhat.com>
18516 * varasm.c (force_const_mem): Store copy of x in desc->constant
18517 instead of x itself.
18518 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18519 itself into REG_EQUAL note.
18521 2011-01-28 Joseph Myers <joseph@codesourcery.com>
18523 * config/freebsd.opt (posix, rdynamic): New Driver options.
18525 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18527 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18528 -Bstatic/-Bdynamic.
18529 * configure: Regenerate.
18531 2011-01-27 Joseph Myers <joseph@codesourcery.com>
18533 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18534 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18536 2011-01-27 Anatoly Sokolov <aesok@post.ru>
18538 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18539 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18540 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18541 (s390_preferred_reload_class): Make static. Change return and
18542 'rclass' argument type to reg_class_t.
18544 2011-01-27 Jan Hubicka <jh@suse.cz>
18546 PR middle-end/46949
18547 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18548 (process_function_and_variable_attributes): Check defined weakrefs.
18550 2011-01-27 Martin Jambor <mjambor@suse.cz>
18552 PR tree-optimization/47228
18553 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18554 build_ref_for_offset.
18556 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18558 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18560 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
18562 PR rtl-optimization/46856
18563 * postreload.c (reload_combine_recognize_const_pattern): Do not
18564 separate cc0 setter and user on cc0 targets.
18566 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18569 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18570 passed a VOID_TYPE expression, immediately emit an error and
18571 return error_mark_node.
18573 2011-01-26 Jeff Law <law@redhat.com>
18575 PR rtl-optimization/47464
18576 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18577 rather than may_trap_p as needed.
18579 2011-01-26 DJ Delorie <dj@redhat.com>
18581 PR rtl-optimization/46878
18582 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18583 setter/user dependency as well.
18585 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18587 PR rtl-optimization/44469
18588 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18589 after removing trivially dead basic blocks.
18591 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18593 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18594 * config/frv/frv.h (LINK_SPEC): Likewise.
18595 * config/i386/netware.h (LINK_SPEC): Likewise.
18596 * config/m68k/linux.h (ASM_SPEC): Likewise.
18597 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18598 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18599 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18600 * config/sparc/linux.h (ASM_SPEC): Likewise.
18601 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18602 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18604 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18606 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18607 * config/frv/frv.h (ASM_SPEC): Likewise.
18608 * config/m68k/linux.h (ASM_SPEC): Likewise.
18609 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18610 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18611 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18612 * config/sparc/linux.h (ASM_SPEC): Likewise.
18613 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18614 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18616 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18618 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18619 * config/frv/frv.h (LINK_SPEC): Likewise.
18620 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18622 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18624 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18625 * config/frv/frv.h (ASM_SPEC): Likewise.
18626 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18627 * config/m68k/linux.h (ASM_SPEC): Likewise.
18628 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18629 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18630 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18631 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18632 * config/sparc/linux.h (ASM_SPEC): Likewise.
18633 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18634 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18635 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18637 2011-01-26 Steve Ellcey <sje@cup.hp.com>
18640 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18642 (vec_extract_evenodd_help): Ditto.
18643 (vec_extract_evenv4hi): Ditto.
18644 (vec_extract_oddv4hi): Ditto.
18645 (vec_interleave_lowv2si): Ditto.
18646 (vec_interleave_highv2si): Ditto.
18647 (vec_extract_evenv2si): Ditto.
18648 (vec_extract_oddv2si: Ditto.
18649 (vec_pack_trunc_v2si): Ditto.
18651 2011-01-22 Jan Hubicka <jh@suse.cz>
18654 * cgraph.h (cgraph_local_info): New field can_change_signature.
18655 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18656 signature can change.
18657 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18659 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18660 (cgraph_function_versioning): We can not change signature of functions
18661 that don't allow that.
18662 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18663 (lto_input_node): Likewise.
18664 * ipa-inline.c (compute_inline_parameters): Compute
18665 local.can_change_signature.
18666 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18667 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18668 functions that can not change signature.
18669 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18670 init_cumulative_args): Do not use local calling conventions
18671 for functions that can not change signature.
18673 2011-01-22 Jan Hubicka <jh@suse.cz>
18675 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18677 2011-01-26 Richard Guenther <rguenther@suse.de>
18679 PR tree-optimization/47190
18680 * cgraphunit.c (process_common_attributes): New function.
18681 (process_function_and_variable_attributes): Use it.
18683 2011-01-26 Richard Guenther <rguenther@suse.de>
18686 * cgraphbuild.c (record_eh_tables): Record reference to personality
18689 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
18692 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18693 non-debug insns from moving up.
18695 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18698 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18699 t-dlldir{,-x} fragment for build and add it to tmake_file.
18700 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18701 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18702 * config/i386/t-dlldir: New file.
18703 (SHLIB_DLLDIR): Define.
18704 * config/i386/t-dlldir-x: New file.
18705 (SHLIB_DLLDIR): Define.
18706 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18707 (SHLIB_INSTALL): Use it.
18709 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18712 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18713 lower bound of the allowed Thumb-2 coprocessor load/store
18714 index range to -256. Add explaining comment.
18716 2011-01-25 Ian Lance Taylor <iant@google.com>
18718 * godump.c (go_define): Improve lexing of macro expansion to only
18719 accept expressions which match Go spec.
18721 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18724 * tree.c (handle_dll_attribute): Handle it.
18725 * doc/extend.texi (@item dllexport): Mention it.
18726 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18728 2011-01-25 Ian Lance Taylor <iant@google.com>
18730 PR tree-optimization/26854
18731 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18732 (decl_jump_unsafe): Move higher in file, with no other change.
18733 (bind): Set has_jump_unsafe_decl if appropriate.
18734 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18735 (check_earlier_gotos): Likewise.
18736 (c_check_switch_jump_warnings): Likewise.
18738 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18740 * doc/invoke.texi (Warning Options): Add missing hyphen.
18741 (-fprofile-dir): Minor grammatical fixes.
18742 (-fbranch-probabilities): Likewise.
18744 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18748 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18750 (no_real_insns_p, schedule_block, set_priorities): Drop special
18751 treatment of boundary debug insns.
18752 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18753 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18754 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18755 (BOUNDARY_DEBUG_INSN_P): Likewise.
18756 (SCHEDULE_DEBUG_INSN_P): Likewise.
18757 * sched-rgn.c (init_ready_list): Drop special treatment of
18758 boundary debug insns.
18759 * final.c (rest_of_clean-state): Clear notes' BB.
18761 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18763 * Makefile.in (LAMBDA_H): Removed.
18764 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18765 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18766 lambda-trans.o, and tree-loop-linear.o.
18767 (lto-symtab.o): Remove dependence on LAMBDA_H.
18768 (tree-loop-linear.o): Remove rule.
18769 (lambda-mat.o): Same.
18770 (lambda-trans.o): Same.
18771 (lambda-code.o): Same.
18772 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18773 (tree-vect-slp.o): Same.
18774 * hwint.h (gcd): Moved here.
18775 (least_common_multiple): Same.
18776 * lambda-code.c: Removed.
18777 * lambda-mat.c: Removed.
18778 * lambda-trans.c: Removed.
18779 * lambda.h: Removed.
18780 * tree-loop-linear.c: Removed.
18781 * lto-symtab.c: Do not include lambda.h.
18782 * omega.c (gcd): Removed.
18783 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18784 * tree-data-ref.c (print_lambda_vector): Moved here.
18785 (lambda_vector_copy): Same.
18786 (lambda_matrix_copy): Same.
18787 (lambda_matrix_id): Same.
18788 (lambda_vector_first_nz): Same.
18789 (lambda_matrix_row_add): Same.
18790 (lambda_matrix_row_exchange): Same.
18791 (lambda_vector_mult_const): Same.
18792 (lambda_vector_negate): Same.
18793 (lambda_matrix_row_negate): Same.
18794 (lambda_vector_equal): Same.
18795 (lambda_matrix_right_hermite): Same.
18796 * tree-data-ref.h: Do not include lambda.h.
18797 (lambda_vector): Moved here.
18798 (lambda_matrix): Same.
18799 (dependence_level): Same.
18800 (lambda_transform_legal_p): Removed declaration.
18801 (lambda_collect_parameters): Same.
18802 (lambda_compute_access_matrices): Same.
18803 (lambda_vector_gcd): Same.
18804 (lambda_vector_new): Same.
18805 (lambda_vector_clear): Same.
18806 (lambda_vector_lexico_pos): Same.
18807 (lambda_vector_zerop): Same.
18808 (lambda_matrix_new): Same.
18809 * tree-flow.h (least_common_multiple): Removed declaration.
18810 * tree-parloops.c (lambda_trans_matrix): Moved here.
18811 (LTM_MATRIX): Same.
18812 (LTM_ROWSIZE): Same.
18813 (LTM_COLSIZE): Same.
18814 (LTM_DENOMINATOR): Same.
18815 (lambda_trans_matrix_new): Same.
18816 (lambda_matrix_vector_mult): Same.
18817 (lambda_transform_legal_p): Same.
18818 * tree-pass.h (pass_linear_transform): Removed declaration.
18819 * tree-ssa-loop.c (tree_linear_transform): Removed.
18820 (gate_tree_linear_transform): Removed.
18821 (pass_linear_transform): Removed.
18822 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18823 flag_loop_interchange.
18825 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18827 PR tree-optimization/47265
18828 PR tree-optimization/47443
18829 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18830 if name still has some uses.
18832 2011-01-25 Martin Jambor <mjambor@suse.cz>
18834 PR tree-optimization/47382
18835 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18836 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18838 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18840 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18841 sjlj_except_unwind_info.
18843 2011-01-25 Richard Guenther <rguenther@suse.de>
18845 PR tree-optimization/47426
18846 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18847 visible functions results escape.
18849 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18852 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18853 (arm_get_frame_offsets): Use it.
18855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18856 Jakub Jelinek <jakub@redhat.com>
18858 PR tree-optimization/47271
18859 * tree-if-conv.c (bb_postdominates_preds): New.
18860 (if_convertible_bb_p): Call bb_postdominates_preds.
18861 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18862 (predicate_scalar_phi): Call bb_postdominates_preds.
18864 2011-01-25 Nick Clifton <nickc@redhat.com>
18866 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18867 * config/rx/rx.c (rx_function_value): Likewise.
18868 (rx_promote_function_mode): Likewise.
18869 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18870 in order to make it legitimate.
18871 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18872 make sure that the first operand is the same as the result register.
18873 (addsi3_unspec): Delete.
18874 (subdi3): Do not accept immediate operands.
18875 (subdi3_internal): Likewise.
18877 2011-01-25 Jeff Law <law@redhat.com>
18879 PR rtl-optimization/37273
18880 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18881 handle them like argument loads from stack slots. Do not double
18882 count memory for memory constants and argument loads from stack slots.
18884 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18886 PR tree-optimization/47427
18887 PR tree-optimization/47428
18888 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18889 coalesce if the new root var would be TREE_READONLY.
18891 2011-01-25 Richard Guenther <rguenther@suse.de>
18893 PR middle-end/47414
18894 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18895 correct type for TBAA.
18897 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18899 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18900 (close_phi_written_to_memory): Call for_each_index with
18901 dr_indices_valid_in_loop.
18903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18905 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18906 when it is initialized.
18908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18910 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18911 call to graphite_find_data_references_in_stmt.
18912 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18913 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18914 call to graphite_find_data_references_in_stmt.
18915 (analyze_drs_in_stmts): Same.
18916 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18917 in which the scalar analysis of indices is performed.
18918 (create_data_ref): Same. Update call to dr_analyze_indices.
18919 (find_data_references_in_stmt): Update call to create_data_ref.
18920 (graphite_find_data_references_in_stmt): Same.
18921 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18923 (create_data_ref): Same.
18924 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18925 call to create_data_ref.
18927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18929 * graphite-sese-to-poly.c (build_poly_scop): Move
18930 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18932 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18934 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18935 VAR_DECL, PARM_DECL, and RESULT_DECL.
18937 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18939 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18940 in a reduction PBB.
18941 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18942 that have already been marked as PBB_IS_REDUCTION.
18944 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18946 * graphite-scop-detection.c (same_close_phi_node): New.
18947 (remove_duplicate_close_phi): New.
18948 (make_close_phi_nodes_unique): New.
18949 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18951 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18953 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18954 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18955 of both data references to be the same.
18957 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18959 * graphite-dependences.c (build_lexicographical_constraint): Remove
18960 the gdim parameter.
18961 (build_lexicographical_constraint): Adjust call to
18962 ppl_powerset_is_empty.
18963 (dependence_polyhedron): Same.
18964 (graphite_legal_transform_dr): Same.
18965 (graphite_carried_dependence_level_k): Same.
18966 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18968 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18972 * graphite-sese-to-poly.c
18973 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18974 (close_phi_written_to_memory): New.
18975 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18978 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18980 * doc/install.texi: Update the expected version number of PPL to 0.11.
18981 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18982 #if PPL_VERSION_MINOR < 11.
18984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18986 * graphite-dependences.c: Include graphite-cloog-util.h.
18987 (new_poly_ddr): Inlined into dependence_polyhedron.
18988 (free_poly_ddr): Moved close by new_poly_ddr.
18989 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18990 Early return NULL when ppl_powerset_is_empty returns true.
18991 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18992 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18993 (graphite_legal_transform_dr): Call new_poly_ddr.
18994 (graphite_carried_dependence_level_k): Same.
18995 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18996 (dot_transformed_deps_stmt_1): Removed.
18997 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18998 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18999 (dot_deps_1): Call dot_deps_2.
19000 * Makefile.in (graphite-dependences.o): Add missing dependence on
19001 graphite-cloog-util.h.
19003 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19005 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
19006 (build_lexicographical_constraint): Same.
19007 (dependence_polyhedron_1): Same.
19008 (graphite_legal_transform_dr): Same.
19009 (graphite_carried_dependence_level_k): Same.
19010 * graphite-ppl.c (ppl_powerset_is_empty): New.
19011 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
19012 * tree-data-ref.c (dump_data_reference): Print the basic block index.
19014 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19016 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
19017 the "a followed by b" relation and document it.
19019 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19021 * graphite-dependences.c (build_lexicographical_constraint): Stop the
19022 iteration when the bag of constraints is empty.
19024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19026 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
19028 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19030 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
19031 nest and two loop depths as parameters.
19032 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
19033 lst_perfect_nestify.
19035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19037 * graphite-dependences.c (print_pddr): Call
19038 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
19040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19042 * graphite-ppl.c (debug_gmp_value): New.
19043 * graphite-ppl.h (debug_gmp_value): Declared.
19045 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
19047 * doc/install.texi: Document availability of cloog-0.16.
19049 2011-01-25 Vladimir Kargov <kargov@gmail.com>
19051 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
19052 invalid postdominance info.
19054 2011-01-24 Jan Hubicka <jh@suse.cz>
19057 * doc/extend.texi (weak pragma): Drop claim that it must
19058 appear before definition.
19059 * varasm.c (merge_weak, declare_weak): Only sanity check
19060 that DECL is not output at a time it is declared weak.
19062 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
19064 * machmode.def: Fixed comments.
19066 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
19068 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
19070 2011-01-24 Paul Koning <ni1d@arrl.net>
19072 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
19075 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
19078 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
19079 (block_info): Add scanned and prev.
19080 (move_or_delete_vzeroupper_2): Return if the basic block
19081 has been scanned and the upper 128bit state is unchanged
19082 from the last scan.
19083 (move_or_delete_vzeroupper_1): Return true if the exit
19085 (move_or_delete_vzeroupper): Visit basic blocks using the
19086 work-list based algorithm based on vt_find_locations in
19089 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
19091 2011-01-24 Nick Clifton <nickc@redhat.com>
19093 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
19094 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
19095 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
19096 then define __v850e1__.
19097 * doc/invoke.texi: Document -mv850es.
19099 2011-01-24 Richard Henderson <rth@redhat.com>
19101 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
19102 compound unordered comparisons.
19103 * config/rx/rx.c (rx_split_fp_compare): Remove.
19104 * config/rx/rx-protos.h: Update.
19105 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
19106 (cbranchsf4): Don't call rx_split_fp_compare.
19107 (*cbranchsf4): Use rx_split_cbranch.
19108 (*cmpsf): Don't accept "i" constraint.
19109 (*conditional_branch): Only valid after reload.
19110 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
19112 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19115 * config/rs6000/altivec.md (vector constant splitters): Add
19116 support for creating vector single precision constants if -mvsx is
19117 used and we would create the constant using Altivec primitives.
19119 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
19120 Richard Sandiford <rdsandiford@googlemail.com>
19122 PR rtl-optimization/47166
19123 * reload1.c (emit_reload_insns): Disable the spill_reg_store
19124 mechanism for PRE_MODIFY and POST_MODIFY.
19125 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
19128 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
19130 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
19132 2011-01-22 Jan Hubicka <jh@suse.cz>
19135 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
19137 2011-01-22 Jan Hubicka <jh@suse.cz>
19139 PR tree-optimization/43884
19141 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
19142 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
19144 2011-01-22 Anatoly Sokolov <aesok@post.ru>
19146 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19147 * config/s390/s390.c (s390_register_move_cost,
19148 s390_memory_move_cost): New.
19149 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
19151 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19153 PR middle-end/47401
19154 * except.c (sjlj_assign_call_site_values): Move setting the
19155 crtl->uses_eh_lsda flag to ...
19156 (sjlj_mark_call_sites): ... here.
19157 (sjlj_emit_function_enter): Support NULL dispatch label.
19158 (sjlj_build_landing_pads): In a function with no landing pads
19159 that still has must-not-throw regions, generate code to register
19160 a personality function with empty LSDA.
19162 2011-01-21 Richard Henderson <rth@redhat.com>
19164 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
19166 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19168 * compare-elim.c: New file.
19169 * Makefile.in (OBJS-common): Add it.
19170 (compare-elim.o): New.
19171 * common.opt (fcompare-elim): New.
19172 * opts.c (default_options_table): Add OPT_fcompare_elim.
19173 * tree-pass.h (pass_compare_elim_after_reload): New.
19174 * passes.c (init_optimization_passes): Add it.
19175 * recog.h: Protect against re-inclusion.
19176 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19177 * doc/invoke.texi (-fcompare-elim): Document it.
19178 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19179 * doc/tm.texi: Rebuild.
19181 2011-01-22 Nick Clifton <nickc@redhat.com>
19183 * config/rx/rx.md (cstoresf4): Pass comparison operator to
19184 rx_split_fp_compare.
19186 2011-01-22 Nick Clifton <nickc@redhat.com>
19188 * config/rx/rx.md (UNSPEC_CONST): New.
19189 (deallocate_and_return): Wrap the amount popped off the stack in
19190 an UNSPEC_CONST in order to stop it being rejected by
19191 -mmax-constant-size.
19192 (pop_and_return): Add a "(return)" rtx.
19193 (call): Drop the immediate operand.
19194 (call_internal): Likewise.
19195 (call_value): Likewise.
19196 (call_value_internal): Likewise.
19197 (sibcall_internal): Likewise.
19198 (sibcall_value_internal): Likewise.
19199 (sibcall): Likewise. Generate an explicit call using
19201 (sibcall_value): Likewise.
19202 (mov<>): FAIL if a constant operand is not legitimate.
19203 (addsi3_unpsec): New pattern.
19205 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
19206 (ok_for_max_constant): New function.
19207 (gen_safe_add): New function.
19208 (rx_expand_prologue): Use gen_safe_add.
19209 (rx_expand_epilogue): Likewise.
19210 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
19213 2011-01-21 Jeff Law <law@redhat.com>
19215 PR tree-optimization/47053
19216 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19217 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19218 statements are deleted.
19219 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
19220 is nonempty, then purge dead edges and cleanup the CFG.
19222 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19225 Temporarily revert:
19226 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19228 * tree-dfa.c (create_var_ann): Mark variable as used.
19230 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19232 PR middle-end/45566
19233 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19234 notes from other section in hot/cold partitioning even if
19235 last_action is -3. Increment call_site_base.
19237 PR rtl-optimization/47366
19238 * fwprop.c (forward_propagate_into): Return bool. If
19239 any changes are made, -fnon-call-exceptions is used and
19240 REG_EH_REGION note is present, call purge_dead_edges
19241 and return true if it purged anything.
19242 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19243 any EH edges were purged.
19245 2011-01-21 Jeff Law <law@redhat.com>
19247 PR rtl-optimization/41619
19248 * caller-save.c (setup_save_areas): Break out code to determine
19249 which hard regs are live across calls by examining the reload chains
19250 so that it is always used.
19251 Eliminate code which checked REG_N_CALLS_CROSSED.
19253 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19255 PR tree-optimization/47355
19256 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19257 NOP has non-debug uses beyond PHIs in new_bb.
19259 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19262 * cfgexpand.c (account_used_vars_for_block): Only account vars
19263 that are annotated as used.
19264 (estimated_stack_frame_size): Don't set TREE_USED.
19265 * tree-dfa.c (create_var_ann): Mark variable as used.
19267 2011-01-21 Richard Guenther <rguenther@suse.de>
19269 PR middle-end/47395
19270 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19272 2011-01-21 Richard Guenther <rguenther@suse.de>
19274 PR tree-optimization/47365
19275 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19276 (vn_reference_lookup_pieces): Adjust.
19277 (vn_reference_lookup): Likewise.
19278 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19279 (vn_reference_lookup_3): Only look through kills if in
19280 VN_WALKREWRITE mode.
19281 (vn_reference_lookup_pieces): Adjust.
19282 (vn_reference_lookup): Likewise.
19283 (visit_reference_op_load): Likewise.
19284 (visit_reference_op_store): Likewise.
19285 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19286 (compute_avail): Likewise.
19287 (eliminate): Likewise.
19289 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19291 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19292 DECL_IGNORED_P non-reg vars if they are used.
19294 PR tree-optimization/47391
19295 * varpool.c (const_value_known_p): Return false if
19298 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
19301 * config/i386/i386.c (ix86_local_alignment): Handle
19302 case for va_list_type_node is nil.
19303 (ix86_canonical_va_list_type): Likewise.
19305 2011-01-21 Alan Modra <amodra@gmail.com>
19307 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19308 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19310 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19312 * config/arm/arm.md (define_attr type): Rename f_load
19313 and f_store to f_fpa_load and f_fpa_store. Update.
19314 (write_conflict): Deal with rename fallout.
19315 (*push_fp_multi): Likewise.
19316 * config/arm/fpa.md (f_load): Use f_fpa_load.
19317 (f_store): Use f_fpa_store.
19318 (*movsf_fpa): Likewise.
19319 (*movdf_fpa): Likewise.
19320 (*movxf_fpa): Likewise.
19321 (*thumb2_movsf_fpa): Likewise.
19322 (*thumb2_movdf_fpa): Likewise.
19323 (*thumb2_movxf_fpa): Likewise.
19324 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19325 f_loadd and f_stored.
19326 (*thumb2_movdi_vfp): Likewise.
19327 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19328 (*thumb2_movsi_vfp): Likewise.
19329 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19330 Use f_loads instead of f_load.
19331 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19333 2011-01-20 Anatoly Sokolov <aesok@post.ru>
19335 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19336 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19337 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19338 (xtensa_mode_dependent_address_p): New function.
19339 (constantpool_address_p): Make static. Change return type to bool.
19340 Change argument type to const_rtx. Use CONST_INT_P predicate.
19342 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
19345 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19347 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19350 * cfgexpand.c (expand_debug_expr): Instead of generating
19351 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19354 2011-01-20 Richard Guenther <rguenther@suse.de>
19356 PR middle-end/47370
19357 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19358 the pointer operand of MEM_REFs.
19360 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19362 PR tree-optimization/46130
19363 * ipa-split.c (consider_split): If return_bb contains non-virtual
19364 PHIs other than for retval or if split_function would not adjust it,
19367 2011-01-20 Richard Guenther <rguenther@suse.de>
19369 PR tree-optimization/47167
19370 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19371 Revert previous change, only avoid enumeral type changes.
19373 2011-01-19 Mike Stump <mikestump@comcast.net>
19375 * doc/tm.texi.in (BRANCH_COST): Englishify.
19376 * doc/tm.texi (BRANCH_COST): Likewise.
19378 2011-01-19 Dodji Seketeli <dodji@redhat.com>
19381 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19382 (gen_scheduled_generic_parms_dies): New functions.
19383 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19384 generation for the end of CU compilation.
19385 (dwarf2out_finish): Generate template parameters DIEs here.
19387 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19390 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19391 debug bind stmt on merge edges.
19393 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19397 * function.c (instantiate_expr): Instantiate incoming rtl of
19398 implicit arguments, and recurse on VALUE_EXPRs.
19399 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19400 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19402 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19404 * c-parser.c (c_parser_for_statement): Initialize
19405 collection_expression.
19407 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19409 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19411 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19413 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19414 (LINK_SHLIB_SPEC): Don't use %(link_path).
19415 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19417 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19419 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19420 (NO_SHARED_LIB_SUPPORT): Remove.
19421 (LINK_SHLIB_SPEC): Remove one conditional definition.
19423 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19425 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19427 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19428 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19429 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19430 %{call_shared} and conditionals on these options not being passed.
19431 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19434 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19436 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19439 * ipa-split.c: Spelling fixes.
19441 2011-01-19 Richard Henderson <rth@redhat.com>
19443 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19444 (*mulsi3): Likewise.
19446 * longlong.h [__mn10300__] (count_leading_zeros): New.
19447 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19448 [__mn10300__] (add_ssaaaa, subddmmss): New.
19449 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19450 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19452 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19454 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19456 2011-01-19 Richard Henderson <rth@redhat.com>
19458 * config/mn10300/mn10300.md (addsi3_flags): New.
19459 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19460 (subsi3_flags, subc_internal, subdi3): New.
19461 (subdi3_internal, *subdi3_degenerate): New.
19462 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19464 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19465 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19466 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19467 * config/mn10300/mn10300-protos.h: Update.
19468 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19469 (return_ret): Likewise. Rename from return_internal_regs.
19470 (return_internal): Remove.
19472 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19473 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19474 (mn10300_legitimate_constant_p): Likewise.
19475 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19476 (mn10300_frame_size): New.
19477 (mn10300_expand_prologue): Use it.
19478 (mn10300_expand_epilogue): Likewise.
19479 (mn10300_initial_offset): Likewise.
19480 * config/mn10300/mn10300-protos.h: Update.
19481 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19482 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19483 (prologue, epilogue, return_internal): Tidy output code.
19484 (mn10300_store_multiple_operation, return): Likewise.
19485 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19486 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19487 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19488 (load_pic, am33_load_pic): New.
19489 (mn10300_load_pic0, mn10300_load_pic1): New.
19491 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19492 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19493 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19494 (cc_flags_for_mode, cc_flags_for_code): New.
19495 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19496 overflow flag is not valid. Validate that the flags we need
19497 for the comparison are valid.
19498 (mn10300_output_cmp): Remove.
19499 (mn10300_output_add): New.
19500 (mn10300_select_cc_mode): Use cc_flags_for_code.
19501 (mn10300_split_cbranch): New.
19502 (mn10300_match_ccmode): New.
19503 (mn10300_split_and_operand_count): New.
19504 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19506 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19507 (addsi3): ... here. Use mn10300_output_add.
19508 (*addsi3_flags): New.
19509 (*am33_subsi3, *mn10300_subsi3): Merge...
19510 (subsi3): ... here. Use attribute isa.
19511 (*subsi3_flags): New.
19512 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19514 (*am33_andsi3, *mn10300_andsi3): Merge...
19515 (andsi3): ... here.
19516 (*andsi3_flags): New.
19517 (andsi3 splitters): New.
19518 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19519 (iorsi3): ... here.
19520 (*iorsi3_flags): New.
19521 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19522 (xorsi3): ... here.
19523 (*xorsi3_flags): New.
19524 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19525 (one_cmplsi2): ... here.
19526 (*one_cmplsi2_flags): New.
19527 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19528 instead of "dax" in constraints. Use mn10300_split_cbranch.
19529 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19530 use matching constraints to eliminate a self-comparison.
19531 (*integer_conditional_branch): Rename from integer_conditional_branch.
19532 Use int_mode_flags to match CC_REG.
19533 (*cbranchsi4_btst, *btstsi): New.
19534 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19535 mn10300_split_cbranch.
19536 (*am33_cmpsf): Rename from am33_cmpsf.
19537 (*float_conditional_branch): Rename from float_conditional_branch.
19538 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19539 (zero_extendqisi2): ... here.
19540 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19541 (zero_extendhisi2): ... here.
19542 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19543 (extendqisi2): ... here.
19544 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19545 (extendhisi2): ... here.
19546 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19547 (ashlsi3): ... here.
19548 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19549 (lshrsi3): ... here.
19550 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19551 (ashrsi3): ... here.
19552 (consecutive add peephole): Remove.
19553 * config/mn10300/predicates.md (label_ref_operand): New.
19554 (int_mode_flags): New.
19555 (CCZN_comparison_operator): New.
19557 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19558 (throughput_42_latency_43): New reservation.
19559 (mulsidi3, umulsidi3): New expanders.
19560 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19561 the MDR register to allocation; separately allocate the low and
19562 high parts of the DImode result.
19563 (umulsidi3_internal): Similarly.
19564 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19565 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19566 (udivsi3, umodsi3): Remove.
19567 (udivmodsi4, divmodsi4): New expanders.
19568 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19569 (*divmodsi4): Simiarly.
19570 (ext_internal): New.
19572 * config/mn10300/constraints.md ("z"): New constraint.
19573 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19574 (FIXED_REGISTERS): Don't fix MDR.
19575 (CALL_USED_REGSITERS): Reformat nicely.
19576 (REG_ALLOC_ORDER): Add MDR.
19577 (enum regclass): Add MDR_REGS.
19578 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19579 (IRA_COVER_CLASSES): Add MDR_REGS.
19580 (REGNO_REG_CLASS): Handle MDR_REG.
19581 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19582 (mn10300_register_move_cost): Likewise.
19583 * config/mn10300/mn10300.md (MDR_REG): New.
19584 (*movsi_internal): Handle moves to/from MDR_REGS.
19586 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19588 (mn10300_secondary_reload): Tidy combination reload classes.
19589 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19590 addresses for AM33. Allow symbolic offsets for reg+imm.
19591 (mn10300_regno_in_class_p): New.
19592 (mn10300_legitimize_reload_address): New.
19593 * config/mn10300/mn10300.h (enum reg_class): Remove
19594 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19595 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19596 SP_OR_GENERAL_REGS.
19597 (REG_CLASS_NAMES): Update to match.
19598 (REG_CLASS_CONTENTS): Likewise.
19599 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19600 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19601 (REGNO_IN_RANGE_P): Remove.
19602 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19603 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19604 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19605 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19606 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19607 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19608 (REGNO_GENERAL_P): New.
19609 (HAVE_POST_MODIFY_DISP): New.
19610 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19611 (LEGITIMIZE_RELOAD_ADDRESS): New.
19612 * config/mn10300/mn10300-protos.h: Update.
19614 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19615 DATA_REGS for AM33 stack-pointer destination.
19616 (mn10300_preferred_output_reload_class): Likewise.
19617 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19618 into a form appropriate for ...
19619 (TARGET_SECONDARY_RELOAD): New.
19620 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19621 * config/mn10300/mn10300-protos.h: Update.
19622 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19623 reload_insi; use the "A" constraint for the scratch; handle AM33
19624 moves of sp to non-address registers.
19626 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19627 (*movqi_internal): ... here.
19628 (*am33_movhi, *mn10300_movhi): Merge into...
19629 (*movhi_internal): ... here.
19630 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19631 as the source/destination of moves from/to SP.
19632 (movsf): Only allow for AM33-2.
19633 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
19634 any integer constant constraint. Only allow for AM33-2. Tidy
19635 all of the alternative outputs.
19636 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19637 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19639 (udivsi3, umodsi3): New patterns for MN103 only.
19641 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
19643 * doc/tm.texi.in: Spell out that a lack of register class unions
19645 * doc/tm.texi: Regenerate.
19647 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19649 PR rtl-optimization/47337
19650 * dce.c (check_argument_store): New function.
19651 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19653 PR tree-optimization/47290
19654 * tree-eh.c (infinite_empty_loop_p): New function.
19655 (cleanup_empty_eh): Use it.
19657 2011-01-18 Steve Ellcey <sje@cup.hp.com>
19660 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19661 (a64_expand_widen_sum): Ditto.
19662 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19663 (vec_extract_evenodd_help): Ditto.
19664 (vec_extract_evenv4hi): Ditto.
19665 (vec_extract_oddv4hi): Ditto.
19666 (vec_extract_evenv2si): Ditto.
19667 (vec_extract_oddv2si): Ditto.
19668 (vec_extract_evenv2sf): Ditto.
19669 (vec_extract_oddv2sf): Ditto.
19670 (vec_pack_trunc_v4hi: Ditto.
19671 (vec_pack_trunc_v2si): Ditto.
19672 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19673 (vec_interleave_highv8qi): Ditto.
19675 (vec_extract_oddv8qi): Ditto.
19676 (vec_interleave_lowv4hi): Ditto.
19677 (vec_interleave_highv4hi): Ditto.
19678 (vec_interleave_lowv2si): Ditto.
19679 (vec_interleave_highv2si): Ditto.
19681 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19683 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19684 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19685 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19686 (pa_c_mode_for_suffix): New.
19687 (TARGET_EXPAND_BUILTIN): Define.
19688 (TARGET_C_MODE_FOR_SUFFIX): Define.
19689 (pa_builtins): Define.
19690 (pa_init_builtins): Register __float128 type and init new support
19692 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19693 * config/pa/quadlib.c (_U_Qfcopysign): New.
19695 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19697 PR middle-end/46894
19698 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19699 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19702 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19704 PR tree-optimization/47179
19705 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19706 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19708 2011-01-18 Richard Guenther <rguenther@suse.de>
19710 PR rtl-optimization/47216
19711 * emit-rtl.c: Include tree-flow.h.
19712 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19713 of replicating it with different semantics.
19714 * Makefile.in (emit-rtl.o): Adjust.
19716 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19718 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19719 (cortex_a9_dp): Handle neon types correctly.
19721 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19723 PR rtl-optimization/47299
19724 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19725 subtarget. Use normal multiplication if both operands are constants.
19726 * expmed.c (expand_widening_mult): Don't try to optimize constant
19727 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19730 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19732 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19733 spacing after 'e.g.', typos, comma, hyphenation.
19735 2011-01-17 Richard Henderson <rth@redhat.com>
19737 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19738 (rx_restricted_mem_operand): New.
19739 (rx_shift_operand): Use register_operand.
19740 (rx_source_operand, rx_compare_operand): Likewise.
19741 * config/rx/rx.md (addsi3_flags): New expander.
19742 (adddi3): Rewrite as expander.
19743 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19744 (subsi3_flags): New expander.
19745 (subdi3): Rewrite as expander.
19746 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19748 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19749 (rx_init_builtins): Remove sat builtin.
19750 (rx_expand_builtin): Likewise.
19751 * config/rx/rx.md (ssaddsi3): New.
19752 (*sat): Rename from sat. Represent the CC_REG input.
19754 * config/rx/predicates.md (rshift_operator): New.
19755 * config/rx/rx.c (rx_expand_insv): Remove.
19756 * config/rx/rx-protos.h: Update.
19757 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19758 operand to the canonical position.
19759 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19760 (*bitclr, *bitclr_in_memory): Similarly.
19761 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19762 (insv): Retain the zero_extract in the expansion.
19764 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19765 (bswaphi2, bitinvert, revw): Likewise.
19767 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19768 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19769 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19770 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19771 (bitset, bitset_in_memory): Likewise.
19772 (bitinvert, bitinvert_in_memory): Likewise.
19773 (bitclr, bitclr_in_memory): Likewise.
19774 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19775 (rx_strend, rx_cmpstrn): Likewise.
19776 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19777 (bitop peep2 patterns): Remove.
19779 * config/rx/rx.c (rx_match_ccmode): New.
19780 * config/rx/rx-protos.h: Update.
19781 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19782 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19783 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19784 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19785 (fix_truncsfsi2, floatsisf2): Likewise.
19786 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19787 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19788 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19789 (*subsi3_flags, *xorsi3_flags): New.
19791 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19793 * config/rx/rx.c (rx_print_operand): Remove workaround for
19794 unsplit comparison operations.
19796 * config/rx/rx.md (movsicc): Split after reload.
19797 (*movsicc): Merge *movsieq and *movsine via match_operator.
19798 (*stcc): New pattern.
19800 * config/rx/rx.c (rx_float_compare_mode): Remove.
19801 * config/rx/rx.h (rx_float_compare_mode): Remove.
19802 * config/rx/rx.md (cstoresi4): Split after reload.
19803 (*sccc): New pattern.
19805 * config/rx/predicates.md (label_ref_operand): New.
19806 (rx_z_comparison_operator): New.
19807 (rx_zs_comparison_operator): New.
19808 (rx_fp_comparison_operator): New.
19809 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19810 Validate that the flags are set properly for the comparison.
19811 (rx_gen_cond_branch_template): Remove.
19812 (rx_cc_modes_compatible): Remove.
19813 (mode_from_flags): New.
19814 (flags_from_code): Rename from flags_needed_for_conditional.
19815 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19816 (rx_select_cc_mode): Likewise.
19817 (rx_split_fp_compare): New.
19818 (rx_split_cbranch): New.
19819 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19820 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19821 (*cbranchsf4): Similarly.
19822 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19823 match_operator and rx_split_cbranch.
19824 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19825 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19826 (*cmpsi): Rename from cmpsi.
19827 (*tstsi): Rename from tstsi.
19828 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19829 (*conditional_branch): Rename from conditional_branch.
19830 (*reveresed_conditional_branch): Remove.
19831 (b<code>): Remove expander.
19832 * config/rx/rx-protos.h: Update.
19834 * config/rx/rx.c (rx_compare_redundant): Remove.
19835 * config/rx/rx.md (cmpsi): Don't use it.
19836 * config/rx/rx-protos.h: Update.
19838 * config/rx/rx-modes.def (CC_F): New mode.
19839 * config/rx/rx.c (rx_select_cc_mode): New.
19840 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19841 * config/rx/rx-protos.h: Update.
19843 2011-01-17 Richard Henderson <rth@redhat.com>
19845 * except.c (dump_eh_tree): Fix stray ; after for statement.
19847 2011-01-17 Richard Guenther <rguenther@suse.de>
19849 PR tree-optimization/47313
19850 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19851 handling before copying the body. Properly deal with
19852 by-reference result in SSA form.
19854 2011-01-17 Ian Lance Taylor <iant@google.com>
19857 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19858 (struct_value_alias_set): Don't define.
19859 (sparc_option_override): Don't set sparc_sr_alias_set and
19860 struct_value_alias_set.
19861 (save_or_restore_regs): Use gen_frame_mem rather than calling
19863 (sparc_struct_value_rtx): Likewise.
19865 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19868 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19869 (_mm_maskstore_pd): Likewise.
19870 (_mm_maskload_ps): Likewise.
19871 (_mm_maskstore_ps): Likewise.
19872 (_mm256_maskload_pd): Change mask to __m256i.
19873 (_mm256_maskstore_pd): Likewise.
19874 (_mm256_maskload_ps): Likewise.
19875 (_mm256_maskstore_ps): Likewise.
19877 * config/i386/i386-builtin-types.def: Updated.
19878 (ix86_expand_special_args_builtin): Likewise.
19880 * config/i386/i386.c (bdesc_special_args): Update
19881 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19882 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19883 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19884 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19886 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19887 Use <avxpermvecmode> on mask register.
19888 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19890 2011-01-17 Olivier Hainque <hainque@adacore.com>
19891 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19892 Eric Botcazou <ebotcazou@adacore.com>
19895 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19896 if <= USHRT_MAX in 32-bit mode.
19898 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19900 * doc/install.texi (Configuration, Specific): Wrap long
19901 lines in examples. Allow line wrapping in long options
19902 and URLs where beneficial for PDF output.
19904 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19906 * config/mips/mips.c (mips_classify_symbol): Don't return
19907 SYMBOL_PC_RELATIVE for nonlocal labels.
19909 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19911 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19913 2011-01-15 Jan Hubicka <jh@suse.cz>
19915 PR tree-optimization/47276
19916 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19917 declarations as needed.
19919 2011-01-15 Martin Jambor <mjambor@suse.cz>
19921 * common.opt (fdevirtualize): New flag.
19922 * doc/invoke.texi (Option Summary): Document it.
19923 * opts.c (default_options_table): Add devirtualize flag.
19924 * ipa-prop.c (detect_type_change): Return immediately if
19925 devirtualize flag is not set.
19926 (detect_type_change_ssa): Likewise.
19927 (compute_known_type_jump_func): Likewise.
19928 (ipa_analyze_virtual_call_uses): Likewise.
19930 2011-01-14 Martin Jambor <mjambor@suse.cz>
19932 PR tree-optimization/45934
19933 PR tree-optimization/46302
19934 * ipa-prop.c (type_change_info): New type.
19935 (stmt_may_be_vtbl_ptr_store): New function.
19936 (check_stmt_for_type_change): Likewise.
19937 (detect_type_change): Likewise.
19938 (detect_type_change_ssa): Likewise.
19939 (compute_complex_assign_jump_func): Check for dynamic type change.
19940 (compute_complex_ancestor_jump_func): Likewise.
19941 (compute_known_type_jump_func): Likewise.
19942 (compute_scalar_jump_functions): Likewise.
19943 (ipa_analyze_virtual_call_uses): Likewise.
19944 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19946 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19948 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19949 * config/i386/i386.opt (msse5): New Alias.
19951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19953 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19954 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19955 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19956 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19958 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19960 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19962 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19963 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19964 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19965 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19967 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19971 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19973 2011-01-14 Mike Stump <mikestump@comcast.net>
19975 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19976 * config/fr30/fr30.md: Likweise
19977 (movsi_push): Likewise.
19978 (movsi_pop): Likewise.
19979 (enter_func): Likewise.
19980 * config/moxie/moxie.md (movsi_push): Likewise.
19981 (movsi_pop): Likewise.
19983 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19985 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19986 %{no_archive} %{exact_version}.
19987 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19988 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19989 %{no_archive} %{exact_version}.
19990 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19991 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19992 * config/mips/vxworks.h: Likewise.
19994 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19996 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19998 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20000 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
20001 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
20003 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20005 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
20008 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20010 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
20012 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
20013 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
20015 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
20016 Don't handle -shlib.
20018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20020 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
20021 (CC1_SPEC): Don't handle -profile.
20023 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20025 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
20026 * config/mips/mips.h (CC1_SPEC): Likewise.
20028 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20030 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
20031 * config/mips/mips.h (CC1_SPEC): Likewise.
20033 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20035 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
20036 * config/m32r/linux.h (LINK_SPEC): Likewise.
20037 * config/mips/linux.h (LINK_SPEC): Likewise.
20038 * config/mips/linux64.h (LINK_SPEC): Likewise.
20039 * config/sparc/linux.h (LINK_SPEC): Likewise.
20040 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20041 LINK_SPEC): Likewise.
20042 * config/xtensa/linux.h (LINK_SPEC): Likewise.
20044 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20046 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
20048 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
20050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20052 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
20053 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20055 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20057 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
20059 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20061 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
20062 supports -Bstatic/-Bdynamic.
20063 * configure: Regenerate.
20065 2011-01-14 Jan Hubicka <jh@suse.cz>
20066 Jack Howarth <howarth@bromo.med.uc.edu>
20069 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
20070 when checking debug_info_level. Test write_symbols instead of
20071 debug_hooks->var_location when setting flag_var_tracking_uninit.
20073 2011-01-14 Richard Guenther <rguenther@suse.de>
20075 PR tree-optimization/47179
20076 * target.def (ref_may_alias_errno): New target hook.
20077 * targhooks.h (default_ref_may_alias_errno): Declare.
20078 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
20079 (default_ref_may_alias_errno): New function.
20080 * target.h (struct ao_ref_s): Declare.
20081 * tree-ssa-alias.c: Include target.h.
20082 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
20083 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
20084 (targhooks.o): Likewise.
20085 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
20086 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
20088 2011-01-14 Richard Guenther <rguenther@suse.de>
20090 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
20092 2011-01-14 Richard Guenther <rguenther@suse.de>
20094 PR tree-optimization/47280
20095 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
20096 return CFG changes.
20097 (tree_ssa_forward_propagate_single_use_vars): Deal with
20098 CFG changes from associate_plusminus.
20100 2011-01-14 Richard Guenther <rguenther@suse.de>
20102 PR middle-end/47281
20104 2011-01-11 Richard Guenther <rguenther@suse.de>
20106 PR tree-optimization/46076
20107 * tree-ssa.c (useless_type_conversion_p): Conversions from
20108 unprototyped to empty argument list function types are useless.
20110 2011-01-14 Richard Guenther <rguenther@suse.de>
20112 PR tree-optimization/47286
20113 * tree-ssa-structalias.c (new_var_info): Register variables are global.
20115 2011-01-14 Martin Jambor <mjambor@suse.cz>
20117 PR middle-end/46823
20118 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
20120 2011-01-13 Anatoly Sokolov <aesok@post.ru>
20122 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
20123 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20124 * config/xtensa/xtensa.c (xtensa_libcall_value,
20125 xtensa_function_value_regno_p): New functions.
20126 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20128 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
20131 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
20133 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
20134 New function prototype.
20135 * config/i386/winnt.c (i386_pe_assemble_visibility):
20136 Warn only if attribute was specified by user.
20138 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20141 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
20143 (floatunsdidf2_fcfidu): Ditto.
20145 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20147 * config/s390/s390.c (print_operand_address): Replace 'error' with
20148 'output_operand_lossage'.
20149 (print_operand): Likewise.
20151 2011-01-13 Jeff Law <law@redhat.com>
20153 PR rtl-optimization/39077
20154 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
20155 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
20156 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
20157 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
20158 * gcse.c (prune_insertions_deletions): New function.
20159 (compute_pre_data): Use it.
20161 2011-01-13 Dodji Seketeli <dodji@redhat.com>
20164 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
20166 (prune_unused_types_mark): Use it.
20168 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
20170 PR rtl-optimization/45352
20171 * sel-sched.c: Update copyright years.
20172 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
20173 in the advancing loop when we have issued issue_rate insns.
20175 2011-01-12 Richard Henderson <rth@redhat.com>
20177 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20178 (TARGET_MD_ASM_CLOBBERS): New.
20180 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20181 (TARGET_DELEGITIMIZE_ADDRESS): New.
20183 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20184 (clzsi2, *bsch): New patterns.
20186 * config/mn10300/mn10300.md (INT): New mode iterator.
20187 (*mov<INT>_clr): New pattern, and peep2 to generate it.
20189 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20190 flag_split_wide_types.
20192 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20193 (mn10300_trampoline_init): Rewrite without a template, an immediate
20194 load and a direct branch.
20195 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20197 2011-01-12 Anatoly Sokolov <aesok@post.ru>
20199 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20200 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20201 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20202 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20204 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
20207 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20210 2011-01-12 Jan Hubicka <jh@suse.cz>
20213 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20214 (PLUGIN_COND_CLOSE): New macro.
20215 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20217 2011-01-12 Richard Guenther <rguenther@suse.de>
20220 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20221 register variables in a MEM_REF.
20223 2011-01-12 Joseph Myers <joseph@codesourcery.com>
20225 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20226 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20227 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20228 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20229 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20230 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20231 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20232 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20233 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20234 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20235 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20236 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20237 * config/gnu-user.h: New. Copied from linux.h.
20238 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20239 GNU_USER_TARGET_STARTFILE_SPEC.
20240 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20241 GNU_USER_TARGET_ENDFILE_SPEC.
20242 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20243 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20244 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20245 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20246 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20247 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20248 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20249 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20250 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20251 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20252 * config/arm/linux-eabi.h (CC1_SPEC): Use
20253 GNU_USER_TARGET_CC1_SPEC.
20254 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20255 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20256 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20257 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20258 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20259 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20260 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20261 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20263 2011-01-12 Richard Guenther <rguenther@suse.de>
20266 * doc/invoke.texi (ffast-math): Document it is turned on
20269 2011-01-12 Jan Hubicka <jh@suse.cz>
20271 PR tree-optimization/47233
20272 * opts.c (common_handle_option): Disable ipa-reference with profile
20275 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20277 * c-parser.c (c_parser_objc_at_property_declaration): Improved
20280 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20282 * c-parser.c (c_lex_one_token): Updated and reindented some
20283 comments. No changes in code.
20285 2011-01-11 Ian Lance Taylor <iant@google.com>
20287 * godump.c (go_output_var): Don't output the variable if there is
20288 already a type with the same name.
20290 2011-01-11 Ian Lance Taylor <iant@google.com>
20292 * godump.c (go_format_type): Don't generate float80.
20294 2011-01-11 Richard Henderson <rth@redhat.com>
20296 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20297 declaration. Rewrite for both speed and size.
20298 (mn10300_address_cost_1): Remove.
20299 (mn10300_register_move_cost): New.
20300 (mn10300_memory_move_cost): New.
20301 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20302 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20303 extensions, shifts, BSWAP, CLZ.
20304 (mn10300_wide_const_load_uses_clr): Remove.
20305 (TARGET_REGISTER_MOVE_COST): New.
20306 (TARGET_MEMORY_MOVE_COST): New.
20307 * config/mn10300/mn10300-protos.h: Update.
20308 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20310 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20311 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20312 * config/mn10300/mn10300-protos.h: Update.
20313 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20314 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20315 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20316 (*test_int_bitfield, *test_byte_bitfield): Remove.
20317 (*bit_test, *subreg_bit_test): Remove.
20318 * config/mn10300/predicates.md (const_8bit_operand): Remove.
20320 * config/mn10300/constraints.md ("c"): Rename from "A".
20321 ("A", "D"): New constraint letters.
20322 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20323 (fmssf4, fnmasf4, fnmssf4): Likewise.
20325 * config/mn10300/mn10300.md (isa): New attribute.
20326 (enabled): New attribute.
20328 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20329 (abssf2, negsf2): Define only for hardware fp.
20330 (sqrtsf2): Reformat.
20331 (addsf3, subsf3, mulsf3): Merge expander and insn.
20333 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20334 (DEBUGGER_AUTO_OFFSET): Remove.
20335 (DEBUGGER_ARG_OFFSET): Remove.
20337 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20338 Emit register stores with the same offsets as the hardware.
20339 (mn10300_store_multiple_operation): Don't check that the register
20340 save offsets are monotonic.
20341 * config/mn10300/mn10300-protos.h: Update.
20343 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20345 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20346 in terms of the value on the stack, not the MDR register.
20348 2011-01-11 Jan Hubicka <jh@suse.cz>
20352 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20353 (symbol_alias_set_destroy, symbol_alias_set_contains,
20354 propagate_aliases_backward): Declare.
20355 * lto-streamer-out.c (struct sets): New sturcture.
20356 (trivally_defined_alias): New function.
20357 (output_alias_pair_p): Rewrite.
20358 (output_unreferenced_globals): Fix output of alias pairs.
20359 (produce_symtab): Likewise.
20360 * ipa.c (function_and_variable_visibility): Set weak alias destination
20362 * varasm.c (symbol_alias_set_t): Remove.
20363 (symbol_alias_set_destroy): Export.
20364 (propagate_aliases_forward, propagate_aliases_backward): New functions
20366 (compute_visible_aliases): ... this one; remove.
20367 (trivially_visible_alias): New
20368 (trivially_defined_alias): New.
20369 (remove_unreachable_alias_pairs): Rewrite.
20370 (finish_aliases_1): Reorganize code checking if alias is defined.
20371 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20374 2011-01-11 Richard Guenther <rguenther@suse.de>
20376 PR tree-optimization/46076
20377 * tree-ssa.c (useless_type_conversion_p): Conversions from
20378 unprototyped to empty argument list function types are useless.
20380 2011-01-11 Richard Guenther <rguenther@suse.de>
20382 PR middle-end/45235
20383 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20384 volatile MEMs as MEM_READONLY_P.
20386 2011-01-11 Richard Guenther <rguenther@suse.de>
20388 PR tree-optimization/47239
20389 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20391 2011-01-11 Jeff Law <law@redhat.com>
20393 PR tree-optimization/47086
20394 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20395 IVs from statements that might throw.
20397 2011-01-10 Jan Hubicka <jh@suse.cz>
20400 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20402 2011-01-10 Jan Hubicka <jh@suse.cz>
20405 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20406 when correcting profile.
20408 2011-01-10 Jan Hubicka <jh@suse.cz>
20411 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20412 DECL_FINI_PRIORITY.
20413 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20414 Restore DECL_FINI_PRIORITY.
20416 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20418 * doc/gimple.texi: Fix quoting of multi-word return values in
20419 @deftypefn statements. Ensure presence of return value. Wrap
20420 overlong @deftypefn lines.
20421 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20422 descriptions of removed functions.
20423 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20424 of multi-word return value in @deftypefn statement.
20426 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20428 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20429 (Conditional Expressions, Logical Operators)
20430 (Statement and operand traversals): Do not indent smallexample
20431 code. Fix duplicate function argument in example.
20433 2011-01-10 Jeff Law <law@redhat.com>
20435 PR tree-optimization/47141
20436 * ipa-split.c (split_function): Handle case where we are
20437 returning a value and the return block has a virtual operand phi.
20439 2011-01-10 Jan Hubicka <jh@suse.cz>
20441 PR tree-optimization/47234
20442 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20443 (pass_feedback_split_functions): Declare.
20444 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20446 * ipa-split.c (gate_split_functions): Update comments; disable
20447 split-functions for profile_arc_flag and branch_probabilities.
20448 (gate_feedback_split_functions): New function.
20449 (execute_feedback_split_functions): New function.
20450 (pass_feedback_split_functions): New global var.
20452 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20455 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20456 calling gimple_call_set_cannot_inline.
20458 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20460 * config/darwin-sections.def: Remove unused section.
20462 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20465 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20467 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20470 * c-parser.c (c_parser_declaration_or_fndef): Improved
20473 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
20475 * config/i386/winnt.c (i386_pe_start_function): Make sure
20476 to switch back to function's section.
20478 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20482 * plugin.c: Move include of dlfcn.h from here...
20483 * system.h: ... to here.
20485 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20487 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20489 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20490 two extra empty pages in PDF output.
20492 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20495 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20496 for error recovery purposes behave as if it was not specified so
20497 that the default type is usd.
20499 2011-01-07 Jan Hubicka <jh@suse.cz>
20501 PR tree-optmization/46469
20502 * ipa.c (function_and_variable_visibility): Clear needed flags on
20503 nodes with external decls; handle weakrefs merging correctly.
20505 2011-01-07 Joseph Myers <joseph@codesourcery.com>
20507 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20510 2011-01-07 Jan Hubicka <jh@suse.cz>
20512 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
20513 and no longer claim that gold is required for linker plugin.
20514 * configure: Regenerate.
20515 * gcc.c (PLUGIN_COND): New macro.
20516 (LINK_COMMAND_SPEC): Use it.
20517 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20518 * config.in (HAVE_LTO_PLUGIN): New.
20519 * configure.ac (--with-lto-plugin): New parameter; autodetect
20522 2011-01-07 Jan Hubicka <jh@suse.cz>
20524 PR tree-optimization/46367
20525 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20526 when we can update original.
20527 (cgraph_mark_inline_edge): Sanity check.
20528 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20530 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20532 * config/spu/spu.h (ASM_COMMENT_START): Define.
20534 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20537 * gcc.c (%>S): New.
20538 (SWITCH_KEEP_FOR_GCC): Likewise.
20539 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20540 (do_spec_1): Handle "%>".
20542 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20544 2011-01-07 Jakub Jelinek <jakub@redhat.com>
20547 * config/i386/i386.c (ix86_delegitimize_address): If
20548 simplify_gen_subreg fails, return orig_x.
20551 * value-prof.c (gimple_stringop_fixed_value): Handle
20552 lhs of the call properly.
20554 2011-01-07 Jan Hubicka <jh@suse.cz>
20557 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20559 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20561 * target.def (function_switched_text_sections): New hook.
20562 * doc/tm.texi: Regenerated.
20563 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20564 * final.c (default_function_switched_text_sections): New.
20565 (final_scan_insn): Call function_switched_text_sections when a
20566 mid-function section change occurs.
20567 * output.h (default_function_switched_text_sections): Declare.
20568 * config/darwin-protos.h (darwin_function_switched_text_sections):
20570 * config/darwin.c (darwin_function_switched_text_sections): New.
20571 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20573 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20575 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20576 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20577 the secondary code fragment when outputting for DWARF == 2.
20579 2011-01-07 Anatoly Sokolov <aesok@post.ru>
20581 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20582 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20584 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20585 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20587 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20590 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20591 when it is not empty.
20593 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
20596 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
20597 (case ${target}): Add btver1.
20598 * config/i386/driver-i386.c (host_detect_local_cpu): Let
20599 -march=native recognize btver1 processors.
20600 * config/i386/i386-c.c (ix86_target_macros_internal): Add
20601 btver1 def_and_undef
20602 * config/i386/i386.c (struct processor_costs btver1_cost): New
20604 (m_BTVER1): New definition.
20605 (m_AMD_MULTIPLE): Includes m_BTVER1.
20606 (initial_ix86_tune_features): Add btver1 tune.
20607 (processor_target_table): Add btver1 entry.
20608 (static const char *const cpu_names): Add btver1 entry.
20609 (software_prefetching_beneficial_p): Add btver1.
20610 (ix86_option_override_internal): Add btver1 instruction sets.
20611 (ix86_issue_rate): Add btver1.
20612 (ix86_adjust_cost): Add btver1.
20613 * config/i386/i386.h (TARGET_BTVER1): New definition.
20614 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20615 (enum processor_type): Add PROCESSOR_BTVER1.
20616 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20618 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20621 * config/i386/i386.c (legitimize_tls_address)
20622 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20623 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20624 (tls_initial_exec_64_sun): New pattern.
20626 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20628 * doc/invoke.texi (Overall Options): Improve wording and markup
20629 of the description of -wrapper.
20631 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20633 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20634 rdynamic, threads): New Driver options.
20636 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20639 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20640 if coming from .tdata.
20641 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20643 2011-01-06 Jan Hubicka <jh@suse.cz>
20646 * collect2.c (main): Do not enable LTOmode when plugin is active.
20648 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20651 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20652 --version output if supported.
20653 * configure: Regenerate.
20655 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20657 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20660 2011-01-06 Jakub Jelinek <jakub@redhat.com>
20663 * c-convert.c (convert): When converting a complex expression
20664 other than COMPLEX_EXPR to a different complex type, ensure
20665 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20666 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20667 when converting COMPLEX_TYPE.
20669 2011-01-06 Ira Rosen <irar@il.ibm.com>
20671 PR tree-optimization/47139
20672 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20673 only the last reduction value is used outside the loop. Update
20676 2011-01-05 Joseph Myers <joseph@codesourcery.com>
20678 * config/rtems.opt: New.
20679 * config.gcc (*-*-rtems*): Use rtems.opt.
20681 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20683 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20684 processors do not support 3DNow instructions.
20686 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20688 * config/spu/spu.c (spu_option_override): Set parameter
20689 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20691 2011-01-05 Jan Hubicka <jh@suse.cz>
20693 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20694 at the command line.
20696 2011-01-05 Martin Jambor <mjambor@suse.cz>
20699 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20700 deltas on streamed outgoing edges.
20701 (output_node_opt_summary): Output info for outgoing edges only when
20702 the node is in new parameter set.
20703 (output_cgraph_opt_summary): New parameter set, passed to the two
20704 aforementioned functions. Update its forward declaration and its
20707 2011-01-05 Tom Tromey <tromey@redhat.com>
20709 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20710 operator to c_finish_omp_atomic.
20711 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20712 (build_unary_op): Update.
20713 (build_modify_expr): Update.
20714 (build_asm_expr): Update.
20716 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20718 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20719 newly inserted insns.
20720 (pad_bb): Likewise.
20721 (spu_emit_branch_hint): Likewise.
20722 (insert_hbrp_for_ilb_runout): Likewise.
20723 (spu_machine_dependent_reorg): Call df_finish_pass after
20724 schedule_insns returns.
20726 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20728 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20730 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20732 PR tree-optimization/47005
20733 * tree-sra.c (struct access): Add 'non_addressable' bit.
20734 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20735 (decide_one_param_reduction): Return 0 if the parameter is passed by
20736 reference and one of the accesses in the group is non_addressable.
20738 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20740 PR tree-optimization/47056
20741 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20742 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20743 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20745 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20747 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20748 initializer. Skip view conversions from aggregate types.
20750 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
20753 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20755 2011-01-04 Philipp Thomas <pth@suse.de>
20757 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20760 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20762 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20763 on empty epilogue sequences.
20765 2011-01-04 Joseph Myers <joseph@codesourcery.com>
20767 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20768 non-static): New Driver options.
20770 2011-01-04 Jie Zhang <jie@codesourcery.com>
20773 * gcc.c (default_compilers[]): Set combinable field to 0
20774 for all assembly languages.
20776 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20778 * config/mips/loongson3a.md: New file.
20779 * config/mips/mips.md: Include loongson3a.md.
20780 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20783 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20785 PR middle-end/47017
20786 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20787 instead of convert_memory_address_addr_space on the base expression.
20789 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20791 * config/spu/spu.c (spu_option_override): Update error text
20792 for bad -march= / -mtune= values.
20794 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20796 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20797 if branch-hint optimization will be performed.
20799 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20801 PR tree-optimization/47148
20802 * ipa-split.c (split_function): Convert arguments to
20803 DECL_ARG_TYPE if possible.
20805 PR tree-optimization/47155
20806 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20807 when computing uns.
20809 PR rtl-optimization/47157
20810 * combine.c (try_combine): If undobuf.other_insn becomes
20811 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20812 and set *new_direct_jump_p too.
20814 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20816 PR tree-optimization/47021
20817 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20819 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20821 * gcc.c (process_command): Update copyright notice dates.
20822 * gcov.c (print_version): Likewise.
20823 * gcov-dump.c (print_version): Likewise.
20824 * mips-tfile.c (main): Likewise.
20825 * mips-tdump.c (main): Likewise.
20827 2011-01-03 Martin Jambor <mjambor@suse.cz>
20829 PR tree-optimization/46801
20830 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20831 aggregate fields start at byte boundary instead of the bit-field flag.
20833 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20836 * gcc.c (main): Revert revision 168407.
20838 2011-01-03 Martin Jambor <mjambor@suse.cz>
20840 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20842 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20844 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20845 vector optab to expand vector/scalar shift, update gimple to vector.
20847 2011-01-03 Martin Jambor <mjambor@suse.cz>
20849 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20852 2011-01-03 Martin Jambor <mjambor@suse.cz>
20854 PR tree-optimization/46984
20855 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20857 (cgraph_create_indirect_edge): Fixed line length.
20858 (cgraph_indirect_call_info): Declare.
20859 (cgraph_make_edge_direct) Update declaration.
20860 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20861 (cgraph_create_indirect_edge): Use it.
20862 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20864 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20865 the new thunk_delta representation.
20866 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20868 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20869 (ipa_read_indirect_edge_info): Likewise.
20870 * lto-cgraph.c (output_edge_opt_summary): New function.
20871 (output_node_opt_summary): Call it on all outgoing edges.
20872 (input_edge_opt_summary): New function.
20873 (input_node_opt_summary): Call it on all outgoing edges.
20875 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20878 * gcc.c (main): Don't check have_o when settting combine_inputs.
20880 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20882 * regrename.c: Add general comment describing the pass.
20883 (struct du_head): Remove 'length' field.
20884 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20885 (regrename_optimize): Do not sort chains. Rework comments, add others.
20886 Force renaming to the preferred class (if any) in the first pass and do
20887 not consider registers that belong to it in the second pass.
20888 (create_new_chain): Do not set 'length' field.
20889 (scan_rtx_reg): Likewise.
20891 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20893 PR tree-optimization/47140
20894 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20895 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20896 to bit_value_binop.
20898 PR rtl-optimization/47028
20899 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20900 parm_birth_insn instead of at the beginning of first bb.
20902 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20904 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20905 Remove the word "see" before "@pxref".
20906 * doc/rtl.texi: Remove the word "see" before "@pxref".
20908 2011-01-01 Jan Hubicka <jh@suse.cz>
20910 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20913 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20916 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20919 Copyright (C) 2011 Free Software Foundation, Inc.
20921 Copying and distribution of this file, with or without modification,
20922 are permitted in any medium without royalty provided the copyright
20923 notice and this notice are preserved.