1 2011-07-08 Richard Henderson <rth@redhat.com>
4 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
8 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11 2011-07-08 Jakub Jelinek <jakub@redhat.com>
14 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
15 CONST0_RTX (dest_mode) instead of const0_rtx as second operand
17 * config/rs6000/vector.md (vector_select_<mode>,
18 vector_select_<mode>_uns): Change second operand of NE to
19 CONST0_RTX (<MODE>mode) instead of const0_rtx.
20 * config/rs6000/altivec.md (*altivec_vsel<mode>,
21 *altivec_vsel<mode>_uns): Expect second operand of NE to be
22 zero_constant of the corresponding vector mode.
23 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
26 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
28 * graphite-dependences.c (build_alias_set_powerset): Remove
29 continue from loop, add one more assert.
31 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
34 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
35 In particular, allow 8-bit values in r28 and r29.
36 (avr_hard_regno_scratch_ok): Disallow any register that might be
37 part of the frame pointer.
38 (avr_hard_regno_rename_ok): Same.
39 (avr_legitimate_address_p): Don't allow SUBREGs.
41 2011-07-08 Julian Brown <julian@codesourcery.com>
43 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
45 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
46 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
47 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
48 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
49 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
50 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
51 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
52 registers in big-endian mode.
54 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
56 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
58 (write_attr_value): Write a cast if necessary.
60 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
61 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
62 (REG_WORDS_BIG_ENDIAN): Document.
63 * doc/tm.texi: Regenerate.
64 * reload.c (operands_match_p): Take it into account.
65 (reload_adjust_reg_for_mode): Likewise.
66 * rtlanal.c (subreg_get_info): Likewise.
68 2011-07-08 Richard Guenther <rguenther@suse.de>
70 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
73 2011-07-08 Kai Tietz <ktietz@redhat.com>
75 * fold-const.c (fold_truth_andor): Factored out truth_andor
76 label from fold_binary as function.
77 (fold_binary_loc): Replace truth_andor lable
78 by function fold_truth_andor.
80 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
83 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
84 check if address is stored in register. If so - give up.
85 (check_sibcall_argument_overlap_1): Do not perform check of
86 overlapping when it is call to address.
88 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
90 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
93 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
95 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
96 GET_MODE_BITSIZE where appropriate.
97 (widen_leading, expand_parity, expand_ctz, expand_ffs,
98 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
99 expand_float, expand_fix): Likewise.
100 * expr.c (convert_move, convert_modes, expand_expr_real_2,
101 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
102 * stor-layout.c (get_mode_bounds): Likewise.
103 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
105 * convert.c (convert_to_integer): Likewise.
106 * expmed.c (expand_shift_1): Likewise.
108 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
111 * optabs.c (expand_binop): Tighten conditions for doubleword
113 (widen_bswap): Assert that mode bitsize and precision are the
115 * stor-layout.c (get_best_mode): Skip modes that have lower
116 precision than bitsize.
117 * recog.c (simplify_while_replacing): Assert that bitsize and
118 precision are the same.
120 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
122 * Makefile.in (LIBGCOV): Remove.
123 (libgcc.mvars): Remove LIBGCOV.
124 * libgov.c: Move to ../libgcc.
126 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
128 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
130 2011-07-08 Martin Jambor <mjambor@suse.cz>
132 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
133 is too big for total scalarization.
135 2011-07-07 Richard Henderson <rth@redhat.com>
137 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
138 (DBX_DEBUGGING_INFO): Undef.
140 2011-07-07 Richard Henderson <rth@redhat.com>
142 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
143 Handle some opcodes specially for debugging.
144 * print-rtl.c: Include dwarf2out.h
145 (print_rtx): Handle NOTE_INSN_CFI.
146 * Makefile.in (print-rtl.o): Update.
148 2011-07-07 Richard Henderson <rth@redhat.com>
150 * tree-pass.h (pass_dwarf2_frame): Declare.
151 * passes.c (init_optimization_passes): Add it.
152 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
153 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
154 make static, do not call add_cfis_to_fde.
155 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
156 dwarf2out_frame_init): Merge into...
157 (execute_dwarf2_frame): ... here. New function.
158 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
159 saved_do_cfi_asm to a tri-state variable.
160 (gate_dwarf2_frame, pass_dwarf2_frame): New.
161 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
162 if it has yet to be done. Don't call dwarf2cfi_function_init.
163 * dwarf2out.h, debug.h: Update decls.
164 * final.c (final_start_function): Don't call
165 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
166 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
167 * toplev.c (lang_dependent_init): Likewise.
169 2011-07-07 Richard Henderson <rth@redhat.com>
171 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
172 FDE_TABLE_INCREMENT): Replace with...
173 (fde_vec): ... this, a new vector.
174 (current_fde): Remove. Replace all users with cfun->fde.
175 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
176 (size_of_aranges, dwarf2out_finish): Likewise.
177 (dwarf2out_alloc_current_fde): Break out from ...
178 (dwarf2out_begin_prologue): ... here.
179 (dwarf2out_frame_init): Remove.
180 * dwarf2cfi.c: Update all users of current_fde.
181 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
182 * dwarf2out.h: Update decls.
183 (dw_fde_node): Add fde_index member.
184 * function.h (struct function): Add fde member.
186 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
187 Richard Henderson <rth@redhat.com>
189 * dwarf2cfi.c (add_cfi): Remove.
190 (dwarf2out_cfi_label): Remove force argument. Only generate the
192 (add_fde_cfi): Simplify the different code paths.
194 (old_cfa, old_cfa_remember): New.
195 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
196 (last_reg_save_label): Remove.
197 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
198 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
199 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
200 dwarf2out_frame_debug_cfa_expression,
201 dwarf2out_frame_debug_cfa_restore,
202 dwarf2out_frame_debug_cfa_window_save,
203 dwarf2out_frame_debug_expr): Remove label parameter.
204 (cfi_label_required_p, add_cfis_to_fde): New.
205 (dwarf2out_frame_debug_after_prologue): New.
206 (dwarf2cfi_frame_init): Initialize old_cfa.
207 (dwarf2out_frame_debug_restore_state): Likewise.
208 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
209 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
210 * final.c (final_start_function): Call
211 dwarf2out_frame_debug_after_prologue.
213 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
214 Richard Henderson <rth@redhat.com>
216 * dwarf2cfi.c (cfi_insn): New.
217 (dwarf2out_cfi_label): Don't emit cfi label here.
218 (add_fde_cfi): Create a NOTE_INSN_CFI.
219 (dwarf2out_frame_debug): Setup cfi_insn.
220 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
221 (dwarf2out_cfi_begin_epilogue): Make static.
222 (dwarf2out_frame_debug_restore_state): Make static.
223 * dwarf2out.c (output_cfi_directive): Make static.
224 (dwarf2out_emit_cfi): New.
225 * dwarf2out.h: Update.
226 * final.c (final): Remove CFI notes.
227 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
228 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
229 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
230 * insn-notes.def (NOTE_INSN_CFI): New.
231 (NOTE_INSN_CFI_LABEL): New.
232 * rtl.h (union rtunion_def): Add rt_cfi member.
233 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
235 2011-07-07 Richard Henderson <rth@redhat.com>
237 * dwarf2cfi.c: New file.
238 * Makefile.in (OBJS): Add it.
239 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
240 * gengtype.c (open_base_files): Include dwarf2out.h.
241 * coretypes.h (enum var_init_status): Move from ...
243 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
244 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
245 expand_builtin_dwarf_sp_column, init_return_column_size,
246 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
247 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
248 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
249 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
250 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
251 compute_barrier_args_size, dwarf2out_args_size,
252 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
253 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
254 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
255 queue_reg_save, dwarf2out_flush_queued_reg_saves,
256 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
257 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
258 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
259 dwarf2out_frame_debug_cfa_expression,
260 dwarf2out_frame_debug_cfa_restore,
261 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
262 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
263 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
264 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
265 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
266 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
267 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
268 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
269 dw_loc_descr_node): Move to dwarf2out.h.
270 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
271 mem_loc_descriptor): Export.
272 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
273 (dwarf2out_frame_init): Extract CIE generation code to
274 dwarf2cfi_frame_init.
276 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
279 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
280 MASK_V8PLUS, remove commented out flag and reorder.
282 2011-07-07 Jakub Jelinek <jakub@redhat.com>
285 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
286 one non-complex and one complex argument, call c_save_expr on both
289 2011-07-07 Martin Jambor <mjambor@suse.cz>
292 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
293 (verify_cgraph_node): Some functinality moved to
294 verify_edge_corresponds_to_fndecl, call it.
296 2011-07-07 Joseph Myers <joseph@codesourcery.com>
298 * config.gcc (*local*): Remove.
299 * doc/install-old.texi: Don't mention local configurations.
301 2011-07-07 Jakub Jelinek <jakub@redhat.com>
304 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
305 referencing debug insns that have been reset.
306 (dead_debug_insert_before): Don't assert reg is non-NULL,
307 instead return immediately if it is NULL.
309 2011-07-07 Joseph Myers <joseph@codesourcery.com>
311 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
314 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
316 * hw-doloop.c: New file.
317 * hw-doloop.h: New file.
318 * Makefile.in (OBJS): Add hw-doloop.o.
319 (hw-doloop.o): New rule.
320 ($(obj_out_file)): Add hw-doloop.h dependency.
321 * config/bfin/bfin.c: Include "hw-doloop.h".
322 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
323 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
324 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
325 type changed to hwloop_info. Return bool, true if the loop was
326 successfully optimized. Remove code that was moved to
327 hw-doloop.c, and adjust other parts.
328 (hwloop_fail): New static function, containing parts that used
329 to be in bfin_optimize_loop.
330 (bfin_discover_loop, bfin_discover_loops, free_loops,
331 bfin_reorder_loops): Remove.
332 (hwloop_pattern_reg): New static function.
333 (bfin_doloop_hooks): New variable.
334 (bfin_reorg_loops): Remove most code, call reorg_loops.
335 * config/bfin/bfin.md (doloop_end splitter): Also enable if
336 loop counter is a memory_operand.
338 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
340 * config.gcc: Support --with-multilib-list for x86 Linux
343 * configure.ac: Mention x86-64 for --with-multilib-list.
344 * configure: Regenerated.
346 * config/i386/gnu-user64.h (SPEC_64): Support x32.
348 (ASM_SPEC): Likewise.
349 (LINK_SPEC): Likewise.
350 (TARGET_THREAD_SSP_OFFSET): Likewise.
351 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
354 * config/i386/i386.h (TARGET_X32): New.
356 (LONG_TYPE_SIZE): Likewise.
357 (POINTER_SIZE): Likewise.
358 (POINTERS_EXTEND_UNSIGNED): Likewise.
359 (OPT_ARCH64): Support x32.
360 (OPT_ARCH32): Likewise.
362 * config/i386/i386.opt (mx32): New.
364 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
365 (GLIBC_DYNAMIC_LINKERX32): Likewise.
366 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
367 (GLIBC_DYNAMIC_LINKERX32): Likewise.
369 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
370 (BIONIC_DYNAMIC_LINKERX32): Likewise.
371 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
373 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
375 * doc/install.texi: Document --with-multilib-list for
378 * doc/invoke.texi: Document -mx32.
380 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
382 * doc/invoke.texi (mwords-little-endian): Deprecate.
383 * config/arm/arm.opt (mwords-little-endian): Likewise.
384 * config/arm/arm.c (arm_option_override): Warn about the deprecation
385 of -mwords-little-endian.
387 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
389 * reload1.c (choose_reload_regs): Use mode sizes to check whether
390 an old reload register completely defines the required value.
392 2011-07-07 Richard Guenther <rguenther@suse.de>
394 * fold-const.c (fold_unary_loc): Do not strip sign-changes
397 2011-07-07 Richard Guenther <rguenther@suse.de>
399 * tree-vrp.c (simplify_conversion_using_ranges): New function.
400 (simplify_stmt_using_ranges): Call it.
402 2011-07-07 Kai Tietz <ktietz@redhat.com>
404 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
405 (lookup_logical_inverted_value): Likewise.
406 (simplify_bitwise_binary_1): Likewise.
407 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
409 2011-07-07 Joseph Myers <joseph@codesourcery.com>
411 * gcc.c (%[Spec]): Don't document.
412 (struct spec_list): Update comment.
413 (do_spec_1): Don't handle %[Spec].
414 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
416 2011-07-07 Joseph Myers <joseph@codesourcery.com>
418 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
419 default based on TARGET_ASM_NAMED_SECTION.
420 * common/common-target.def (have_named_sections): Default to true.
421 * common/config/default-common.c: Don't include tm.h.
422 * common/config/picochip/picochip-common.c
423 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
424 * common/config/m32c/m32c-common.c: Remove.
425 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
426 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
428 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
430 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
432 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
433 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
435 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
438 2011-07-07 Jakub Jelinek <jakub@redhat.com>
441 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
442 operands and last COMPONENT_REF operand call gimplify_expr on it
445 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
448 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
450 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
453 * configure.ac (gcc_cv_as_hidden): Also accept
454 x86_64-*-solaris2.1[0-9]*.
455 (gcc_cv_as_cfi_directive): Likewise.
456 (gcc_cv_as_comdat_group_group): Likewise.
457 (set_have_as_tls): Likewise.
458 * configure: Regenerate.
459 * config.gcc (i[34567]86-*-solaris2*): Also handle
460 x86_64-*-solaris2.1[0-9]*.
461 * config.host (i[34567]86-*-solaris2*): Likewise.
462 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
463 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
464 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
465 (TARGET_LD_EMULATION): Use it.
466 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
467 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
468 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
469 (ASM_CPU64_DEFAULT_SPEC): Define.
470 (ASM_CPU_SPEC): Use %(asm_cpu_default).
471 (ASM_SPEC): Redefine.
472 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
473 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
474 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
476 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
478 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
480 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482 * config/sol2.h (ASM_SPEC): Split into ...
483 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
484 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
485 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
486 (ASM_SPEC): Use ASM_SPEC_BASE.
487 * config/sparc/sol2.h (ASM_SPEC): Redefine.
489 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
491 * config/avr/avr.md (*reload_insi): Change predicate #1 to
492 const_int_operand. Ditto for peep2 producing this insn.
493 Add argument to output_reload_insisf call.
494 (*movsi,*movsf): Add argument to output_movsisf call.
495 (*reload_insf): New insn and new peep2 to produce it.
496 * config/avr/avr-protos.h (output_movsisf): Change prototype.
497 (output_reload_insisf): Change prototype.
498 * config/avr/avr.c (avr_asm_len): New function.
499 (output_reload_insisf): Rewrite.
500 (output_movsisf): Change prototype. output_reload_insisf for
501 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
502 (adjust_insn_length): Add argument to output_movsisf and
503 output_reload_insisf call.
505 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
507 * emit-rtl.c (paradoxical_subreg_p): New function.
508 * rtl.h (paradoxical_subreg_p): Declare.
509 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
510 apply_distributive_law, simplify_comparison, simplify_set): Use it.
511 * cse.c (record_jump_cond, cse_insn): Likewise.
512 * expr.c (force_operand): Likewise.
513 * rtlanal.c (num_sign_bit_copies1): Likewise.
514 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
515 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
516 (push_reload): Use precision to check for paradoxical subregs.
517 * expmed.c (extract_bit_field_1): Likewise.
519 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
520 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
521 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
522 simplify_set, simplify_logical, expand_compound_operation,
523 make_extraction, force_to_mode, if_then_else_cond, extended_count,
524 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
525 record_value_for_reg): Likewise.
526 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
527 * simplify-rtx. c (simplify_unary_operation_1,
528 simplify_binary_operation_1, simplify_const_relational_operation):
531 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
532 instead of GET_MODE_BITSIZE where appropriate.
533 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
534 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
535 init_num_sign_bit_copies_in_rep): Likewise.
536 * cse.c (fold_rtx, cse_insn): Likewise.
537 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
538 * simplify-rtx.c (simplify_unary_operation_1,
539 simplify_const_unary_operation, simplify_binary_operation_1,
540 simplify_const_binary_operation, simplify_ternary_operation,
541 simplify_const_relational_operation, simplify_subreg): Likewise.
542 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
543 simplify_if_then_else, simplify_set, expand_compound_operation,
544 expand_field_assignment, make_extraction, if_then_else_cond,
545 make_compound_operation, force_to_mode, make_field_assignment,
546 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
547 extended_count, try_widen_shift_mode, simplify_shift_const_1,
548 simplify_comparison, record_promoted_value, simplify_compare_const,
549 record_dead_and_set_regs_1): Likewise.
552 * simplify-rtx.c (simplify_const_binary_operation): Use the
553 shift_truncation_mask hook instead of performing modulo by
554 width. Compare against mode precision, not bitsize.
555 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
556 Use shift_truncation_mask instead of constructing the value
559 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
561 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
563 (rs6000_save_toc_in_prologue_p): Ditto.
565 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
566 up the static chain (r11) during indirect function calls.
567 (-msave-toc-indirect): New undocumented debug switch.
569 * config/rs6000/rs6000.c (struct machine_function): Add
570 save_toc_in_prologue field to note whether the prologue needs to
571 save the TOC value in the reserved stack location.
572 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
573 to save the TOC in the prologue, do so.
574 (rs6000_trampoline_init): Don't allow creating AIX style
575 trampolines if -mno-r11 is in effect.
576 (rs6000_call_indirect_aix): New function to create AIX style
577 indirect calls, adding support for -mno-r11 to suppress loading
578 the static chain, and saving the TOC in the prologue instead of
580 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
583 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
586 (STATIC_CHAIN_REGNUM): Ditto.
587 (ARG_POINTER_REGNUM): Ditto.
588 (SFP_REGNO): Delete, unused.
589 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
590 function descriptor offsets.
591 (TOC_SAVE_OFFSET_64BIT): Ditto.
592 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
593 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
594 (AIX_FUNC_DESC_SC_32BIT): Ditto.
595 (AIX_FUNC_DESC_SC_64BIT): Ditto.
596 (ptrload): New mode attribute for the appropriate load of a
598 (call_indirect_aix32): Delete, rewrite AIX indirect function
600 (call_indirect_aix64): Ditto.
601 (call_value_indirect_aix32): Ditto.
602 (call_value_indirect_aix64): Ditto.
603 (call_indirect_nonlocal_aix32_internal): Ditto.
604 (call_indirect_nonlocal_aix32): Ditto.
605 (call_indirect_nonlocal_aix64_internal): Ditto.
606 (call_indirect_nonlocal_aix64): Ditto.
607 (call): Rewrite AIX indirect function calls. Add support for
608 eliminating the static chain, and for moving the save of the TOC
609 to the function prologue.
611 (call_indirect_aix<ptrsize>): Ditto.
612 (call_indirect_aix<ptrsize>_internal): Ditto.
613 (call_indirect_aix<ptrsize>_internal2): Ditto.
614 (call_indirect_aix<ptrsize>_nor11): Ditto.
615 (call_value_indirect_aix<ptrsize>): Ditto.
616 (call_value_indirect_aix<ptrsize>_internal): Ditto.
617 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
618 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
619 (call_nonlocal_aix32): Relocate in the rs6000.md file.
620 (call_nonlocal_aix64): Ditto.
622 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
623 -mno-r11 documentation.
625 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
628 * doc/extend.texi (Compound Literals): Fix typo.
630 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
632 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
635 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
637 * configure.ac (plugin-version.h): Generate
638 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
639 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
642 * configure: Regenerate.
644 * doc/plugins.texi (Building GCC plugins): Mention
645 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
647 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
649 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
650 * combine.c (make_extraction, gen_lowpart_or_truncate,
651 apply_distributive_law, simplify_comparison,
652 reg_truncated_to_mode, record_truncated_value): Use it.
653 * cse.c (notreg_cost): Likewise.
654 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
655 * expr.c (convert_move, convert_modes): Likewise.
656 * optabs.c (expand_binop, expand_unop): Likewise.
657 * postreload.c (move2add_last_label): Likewise.
658 * regmove.c (optimize_reg_copy_3): Likewise.
659 * rtlhooks.c (gen_lowpart_general): Likewise.
660 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
662 2011-07-06 Joseph Myers <joseph@codesourcery.com>
664 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
666 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
668 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
669 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
670 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
671 (simplify_const_unary_operation, simplify_binary_operation_1,
672 simplify_const_binary_operation,
673 simplify_const_relational_operation): Use them. Use
674 GET_MODE_MASK for masking and sign-extensions.
675 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
676 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
677 simplify_shift_const_1, simplify_comparison): Likewise.
678 * expr.c (convert_modes): Likewise.
679 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
680 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
682 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
684 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
686 2011-07-06 Richard Guenther <rguenther@suse.de>
688 PR tree-optimization/49645
689 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
691 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
692 in type qualification here ...
693 (copy_reference_ops_from_ref): ... not here.
694 (vn_reference_lookup_3): ... or here.
695 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
696 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
698 2011-07-06 Ian Lance Taylor <iant@google.com>
700 * doc/install.texi (Configuration): It's
701 --enable-gnu-indirect-function, not --enable-indirect-function.
703 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
705 * simplify-rtx.c (simplify_const_binary_operation): Use the
706 shift_truncation_mask hook instead of performing modulo by
707 width. Compare against mode precision, not bitsize.
708 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
709 Use shift_truncation_mask instead of constructing the value
712 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
715 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
716 address computation and convert to address_mode if needed.
718 2011-07-06 Richard Guenther <rguenther@suse.de>
720 * tree.c (build_common_tree_nodes_2): Merge with
721 build_common_tree_nodes.
722 * tree.h (build_common_tree_nodes): Adjust prototype.
723 (build_common_tree_nodes_2): Remove.
724 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
725 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
727 2011-07-05 Jakub Jelinek <jakub@redhat.com>
729 PR tree-optimization/49618
730 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
731 t recurse on the decl.
732 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
733 return true if expr isn't known to be defined in current
734 TU or some other LTO partition.
736 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
738 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
739 override CASE_VALUES_THRESHOLD.
741 * stmt.c (toplevel): Include params.h.
742 (case_values_threshold): Use the --param case-values-threshold
743 value if non-zero, otherwise use machine dependent value.
744 (expand_case): Use case_values_threshold.
746 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
748 * doc/invoke.texi (--param case-values-threshold): Document.
750 2011-07-05 Richard Henderson <rth@redhat.com>
752 * dwarf2out.c (dwarf2out_cfi_label): Make static.
753 (dwarf2out_flush_queued_reg_saves): Make static.
754 (dwarf2out_reg_save): Remove.
755 (dwarf2out_return_save): Remove.
756 (dwarf2out_return_reg): Remove.
757 (dwarf2out_reg_save_reg): Remove.
758 (dwarf2out_def_cfa): Merge into ...
759 (dwarf2out_frame_init): ... here.
760 * dwarf2out.h, tree.h: Remove declarations as necessary.
762 2011-07-05 Richard Henderson <rth@redhat.com>
764 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
765 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
766 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
769 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
770 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
771 (process_epilogue): Don't call dwarf2out_def_cfa.
773 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
774 indicate the return address save.
775 (process_cfa_register): Likewise.
777 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
778 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
780 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
781 for ar.pfs save at alloc insn.
783 2011-07-05 Richard Henderson <rth@redhat.com>
785 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
786 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
787 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
789 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
790 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
791 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
792 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
794 2011-07-05 Richard Henderson <rth@redhat.com>
796 * config/vax/vax.md (define_c_enum unspecv): New. Define the
797 VUNSPEC_* constants here instead of via define_constants.
798 (VUNSPEC_PEM): New constant.
799 (procedure_entry_mask): New insn.
800 (prologue): New expander.
801 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
802 (vax_expand_prologue): Rename from vax_output_function_prologue;
803 emit rtl instead of text.
804 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
805 (print_operand): Add 'x' prefix.
807 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
810 * calls.c (precompute_register_parameters): Promote the function
811 argument before checking non-legitimate constant.
813 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
815 PR tree-optimization/47654
816 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
817 (lst_do_strip_mine_loop): Return an int.
818 (lst_do_strip_mine): Same.
819 (scop_do_strip_mine): Same.
820 (scop_do_block): Loop blocking should strip-mine at least two loops.
821 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
822 (scop_do_interchange): Same.
823 * graphite-poly.h (scop_do_interchange): Update declaration.
824 (scop_do_strip_mine): Same.
826 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
828 * graphite-clast-to-gimple.c (precision_for_value): Removed.
829 (precision_for_interval): Removed.
830 (gcc_type_for_interval): Use mpz_sizeinbase.
832 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
834 * graphite-ppl.h (value_max): Correct computation of max.
836 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
838 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
840 2011-07-05 Richard Guenther <rguenther@suse.de>
842 * c-decl.c (c_init_decl_processing): Defer building common
843 tree nodes to c_common_nodes_and_builtins.
845 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
847 PR tree-optimization/49580
848 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
849 the loop's number of iterations.
850 * tree-parloops.c (transform_to_exit_first_loop): Add the
851 handling of the loop's number of iterations before the call
852 to gimple_duplicate_sese_tail.
853 Insert the stmt caclculating the new rhs of the loop's
854 condition stmt to the preheader instead of iters_bb.
856 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
858 PR rtl-optimization/47449
859 * fwprop.c (forward_propagate_subreg): Don't propagate hard
860 register nor zero/sign extended hard register.
862 2011-07-05 Richard Guenther <rguenther@suse.de>
864 PR tree-optimization/49518
865 PR tree-optimization/49628
866 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
867 irrelevant and invariant data-references.
868 (vect_analyze_data_ref_access): For invariant loads clear the
871 2011-07-04 Jakub Jelinek <jakub@redhat.com>
873 PR rtl-optimization/49619
874 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
875 pass VOIDmode as op0_mode to recursive call, and return temp even
876 when different from tor, just if it is not IOR of the original
879 PR rtl-optimization/49472
880 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
881 negating MULT, negate the second operand instead of first.
882 (simplify_binary_operation_1) <case MULT>: If one operand is
883 a NEG and the other is MULT, don't attempt to optimize by
884 negation of the MULT operand if it only moves the NEG operation
888 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
889 get_current_def return value if it can't be trusted to be
890 the current value of the variable in the current bb.
892 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
895 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
896 general register to memory for !TARGET_INTER_UNIT_MOVES.
898 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
901 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
902 instead of TREE_READONLY.
904 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
906 * doc/extend.texi (AVR Built-in Functions): Update documentation
907 of __builtin_avr_fmul*.
908 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
909 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
910 * config/avr/avr.md (fmul): Rename to fmul_insn.
911 (fmuls): Rename to fmuls_insn.
912 (fmulsu): Rename to fmulsu_insn.
913 (fmul,fmuls,fmulsu): New expander.
914 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
915 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
916 * config/avr/libgcc.S (__fmul): New function.
917 (__fmuls): New function.
918 (__fmulsu,__fmulsu_exit): New function.
920 2011-07-04 Richard Guenther <rguenther@suse.de>
922 PR tree-optimization/49615
923 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
924 basic-block index check.
926 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
928 * longlong.h (count_leading_zeros, count_trailing_zeros,
929 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
932 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
934 PR tree-optimization/49610
935 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
938 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
939 Olivier Hainque <hainque@adacore.com>
940 Nicolas Setton <setton@adacore.com>
942 * tree.h (TYPE_ARTIFICIAL): New flag.
943 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
944 the DIE of the type if it is artificial.
945 (gen_array_type_die): Likewise.
946 (gen_enumeration_type_die): Likewise.
947 (gen_struct_or_union_type_die): Likewise.
948 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
949 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
951 2011-07-01 Jakub Jelinek <jakub@redhat.com>
953 * tree-object-size.c (pass_through_call): Handle
954 BUILT_IN_ASSUME_ALIGNED.
956 2011-07-01 Martin Jambor <mjambor@suse.cz>
958 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
960 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
963 * explow.c (update_nonlocal_goto_save_area): Use proper mode
965 * function.c (expand_function_start): Likewise.
967 2011-07-01 Richard Guenther <rguenther@suse.de>
970 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
971 may have unknown refs.
973 2011-07-01 Kai Tietz <ktietz@redhat.com>
975 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
977 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
979 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
980 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
981 (Specific, mips-sgi-irix6): Likewise.
983 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
986 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
988 2011-07-01 Jakub Jelinek <jakub@redhat.com>
990 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
991 [idx]= and [idx1 ... idx2]= before initializers if needed for
994 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
996 * config.gcc (score-*-elf): Remove score7.o.
997 * config/score/t-score-elf: Likewise.
998 * config/score/score.c: Merge score7 to score.c and
999 remove forwarding functions.
1000 * config/score/score7.c: Deleted.
1001 * config/score/score7.h: Deleted.
1003 2011-07-01 Richard Guenther <rguenther@suse.de>
1005 PR tree-optimization/49603
1006 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
1008 2011-06-30 Martin Jambor <mjambor@suse.cz>
1010 * tree-sra.c (struct access): Rename total_scalarization to
1011 grp_total_scalarization
1012 (completely_scalarize_var): New function.
1013 (sort_and_splice_var_accesses): Set total_scalarization in the
1014 representative access.
1015 (analyze_access_subtree): Propagate total scalarization accross the
1016 tree, no holes in totally scalarized trees, simplify coverage
1018 (analyze_all_variable_accesses): Call completely_scalarize_var instead
1019 of completely_scalarize_record.
1021 2011-06-30 Richard Henderson <rth@redhat.com>
1023 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
1024 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
1025 * config/i386/i386.c: Don't include dwarf2out.h.
1026 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
1027 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
1028 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
1029 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
1030 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
1032 2011-06-30 Richard Henderson <rth@redhat.com>
1034 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
1035 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1036 * final.c (final_scan_insn): Look for it, and invoke
1037 dwarf2out_frame_debug before the insn if found.
1039 2011-06-30 Richard Henderson <rth@redhat.com>
1041 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
1042 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
1044 2011-06-30 Richard Henderson <rth@redhat.com>
1046 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
1047 Define a vector of this type.
1048 (regs_saved_in_regs): Use a VEC.
1049 (num_regs_saved_in_regs): Remove.
1050 (compare_reg_or_pc): New.
1051 (record_reg_saved_in_reg): Split out from...
1052 (dwarf2out_flush_queued_reg_saves): ... here.
1053 (clobbers_queued_reg_save): Update for VEC.
1054 (reg_saved_in): Likewise.
1055 (dwarf2out_frame_debug_init): Likewise.
1056 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
1057 (dwarf2out_frame_debug_cfa_register): Likewise.
1059 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1061 PR tree-optimization/49572
1062 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1063 type of the RHS instead of that of the LHS for the expression type.
1065 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1067 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
1070 2011-06-30 Richard Guenther <rguenther@suse.de>
1072 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
1073 * tree-ssa-structalias.c (create_variable_info_for): Do not
1074 add initial constraints for non-var-decls. Properly handle
1075 globals in other ltrans partitions.
1076 (intra_create_variable_infos): Manually create constraints for
1077 the fake no-alias parameter.
1078 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
1079 and assert there are no clones.
1081 2011-06-30 Richard Guenther <rguenther@suse.de>
1083 PR tree-optimization/46787
1084 * tree-data-ref.c (dr_address_invariant_p): Remove.
1085 (find_data_references_in_stmt): Invariant accesses are ok now.
1086 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
1087 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1090 2011-06-30 Martin Jambor <mjambor@suse.cz>
1092 PR tree-optimization/49094
1093 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1094 (build_accesses_from_assign): Use it.
1096 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1098 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1099 handling of BUILT_IN_ASSUME_ALIGNED.
1102 * dwarf2out.c (output_abbrev_section): Don't return early
1103 if abbrev_die_table_in_use is 1.
1104 (dwarf2out_finish): Instead don't call output_abbrev_section
1105 nor emit abbrev_section_label in that case.
1107 2011-06-30 Nick Clifton <nickc@redhat.com>
1109 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
1112 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1114 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1115 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
1117 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
1119 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1120 both pattern and original statements if necessary.
1121 (vect_transform_loop): Likewise.
1122 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
1123 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
1124 Mark the pattern statement only if the original statement doesn't
1126 (process_use): Call vect_mark_relevant with additional parameter.
1127 (vect_mark_stmts_to_be_vectorized): Likewise.
1128 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
1129 (vect_analyze_stmt): Handle both pattern and original statements
1131 (vect_transform_stmt): Don't store vectorized pattern statement
1132 in the original statement.
1133 (vect_is_simple_use_1): Use related pattern statement only if the
1134 original statement is irrelevant.
1135 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1137 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1139 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1141 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1143 (TARGET_AVX128_OPTIMAL): New definition.
1144 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1145 X86_TUNE_AVX128_OPTIMAL entry.
1146 (ix86_option_override_internal): Enable the generation
1147 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1148 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1149 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1151 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1153 PR tree-optimization/49539
1154 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1155 names by means of stmt_references_abnormal_ssa_name.
1156 (associate_plusminus): Call can_propagate_from before propagating
1157 from definition statements.
1158 (ssa_forward_propagate_and_combine): Remove superfluous newline.
1160 2011-06-29 Richard Guenther <rguenther@suse.de>
1162 * doc/invoke.texi: Document -scev dump modifier.
1163 * tree-pass.h (TDF_SCEV): New dump flag.
1164 * tree-dump.c (dump_option_value_in): Add scev.
1165 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
1166 * tree-scalar-evolution.c: Likewise.
1168 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
1170 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
1171 (cxa_type_match): Correct declaration.
1172 (__gnu_unwind_pr_common): Reconstruct additional indirection
1173 when __cxa_type_match returns succeeded_with_ptr_to_base.
1175 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1177 PR rtl-optimization/49114
1178 * reload.c (struct replacement): Remove SUBREG_LOC member.
1179 (push_reload): Do not set it.
1180 (push_replacement): Likewise.
1181 (subst_reload): Remove dead code.
1182 (copy_replacements): Remove assertion.
1183 (copy_replacements_1): Do not handle SUBREG_LOC.
1184 (move_replacements): Likewise.
1185 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
1186 Detect subregs via recursive descent instead of via SUBREG_LOC.
1188 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1190 * config/avr/avr.c (avr_encode_section_info): Dispatch to
1191 default_encode_section_info.
1193 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
1195 PR tree-optimization/49545
1196 * builtins.c (get_object_alignment_1): Update function comment.
1197 Do not use DECL_ALIGN for functions, but test
1198 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
1199 * fold-const.c (get_pointer_modulus_and_residue): Don't check
1201 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1203 2011-06-29 Jakub Jelinek <jakub@redhat.com>
1206 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
1207 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
1209 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1212 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1213 about uninitialized data attributed 'progmem' from here...
1214 (avr_encode_section_info): ...to this new function.
1215 (TARGET_ENCODE_SECTION_INFO): New define.
1216 (avr_section_type_flags): For data in ".progmem.data", remove
1217 section flag SECTION_WRITE.
1219 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1221 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
1223 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
1224 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
1225 (__umulhisi3): Ditto.
1226 * config/avr/avr.md (mulhisi3): New insn expender.
1227 (umulhisi3): New insn expender.
1228 (*mulhisi3_call): New insn.
1229 (*umulhisi3_call): New insn.
1231 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1233 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1235 2011-06-28 Richard Henderson <rth@redhat.com>
1237 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
1238 all code and arguments that handled pushes. Update all callers.
1240 2011-06-28 Richard Henderson <rth@redhat.com>
1242 * config/arm/arm.c (arm_output_function_prologue): Don't call
1243 thumb1_output_function_prologue.
1244 (arm_expand_prologue): Avoid dead store.
1245 (number_of_first_bit_set): Use ctz_hwi.
1246 (thumb1_emit_multi_reg_push): New.
1247 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1248 to emit the entire prologue as rtl.
1249 (thumb1_output_interwork): Split out from
1250 thumb1_output_function_prologue.
1251 (thumb1_output_function_prologue): Remove.
1252 (arm_attr_length_push_multi): Handle thumb1.
1253 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1254 (prologue_thumb1_interwork): New.
1255 (*push_multi): Allow thumb1; use push_mult_memory_operand.
1256 * config/arm/predicates.md (push_mult_memory_operand): New.
1258 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1260 * config/sparc/sync.md (*stbar): Delete.
1261 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1263 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1265 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1267 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1269 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1270 (TARGET_64BIT_DEFAULT): Define.
1271 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1273 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1275 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1277 * common.opt (in_lto_p): New Variable entry.
1278 * flags.h (in_lto_p): Move to common.opt.
1279 * gcc.c: Include params.h.
1280 (set_option_handlers): Also use common_handle_option and
1281 target_handle_option.
1282 (main): Call global_init_params, finish_params and init_options_struct.
1283 * opts.c (debug_type_names): Move from toplev.c.
1284 (print_filtered_help): Access quiet_flag through opts pointer.
1285 (common_handle_option): Return early in the driver for some options.
1286 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1288 * toplev.c (in_lto_p): Move to common.opt.
1289 (debug_type_names): Move to opts.c.
1290 * Makefile.in (OBJS): Remove opts.o.
1291 (OBJS-libcommon-target): Add opts.o.
1292 (gcc.o): Update dependencies.
1294 2011-06-28 Kai Tietz <ktietz@redhat.com>
1296 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
1298 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1300 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1301 with '=' constraint modifier.
1302 (*divdf3_vfp): Likewise.
1303 ("*mulsf3_vfp"): Likewise.
1304 ("*muldf3_vfp"): Likewise.
1305 ("*mulsf3negsf_vfp"): Likewise.
1306 ("*muldf3negdf_vfp"): Likewise.
1308 2011-06-28 Nick Clifton <nickc@redhat.com>
1310 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1311 relaxation when performing an incremental link.
1313 2011-06-28 Kai Tietz <ktietz@redhat.com>
1315 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1316 within BB from last to first.
1318 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1320 * genattr-common.c: New. Based on genattr.c.
1321 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1322 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1323 (opts.o): Update dependencies.
1324 (.PRECIOUS): Add insn-attr-common.h.
1325 (simple_rtl_generated_h): Add insn-attr-common.h.
1326 (build/genattr-common.o): New.
1327 (genprogrtl): Add attr-common.
1328 * genattr.c (main): Include insn-attr-common.h. Don't generate
1329 definitions of DELAY_SLOTS or INSN_SCHEDULING.
1330 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1332 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
1334 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1335 avr-*-* and avr-*-rtems* targets.
1337 * config/avr/elf.h: New file.
1338 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1339 (TARGET_ASM_SELECT_SECTION): Define.
1340 (INIT_SECTION_ASM_OP): Undefine.
1341 (FINI_SECTION_ASM_OP): Undefine.
1342 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1343 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1344 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1346 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1347 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1348 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1349 (STRING_LIMIT): Move to elf.h.
1350 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1351 (ASM_DECLARE_OBJECT_NAME): Remove.
1353 (ASM_OUTPUT_SKIP): Remove.
1354 (DWARF2_DEBUGGING_INFO): Remove.
1355 (OBJECT_FORMAT_ELF): Remove.
1356 (USER_LABEL_PREFIX): Remove.
1357 (ASM_OUTPUT_EXTERNAL): Remove.
1358 (ASM_OUTPUT_ASCII): Remove.
1359 (TYPE_ASM_OP): Remove.
1360 (SIZE_ASM_OP): Remove.
1361 (WEAK_ASM_OP): Remove.
1362 (STRING_ASM_OP): Remove.
1363 (SET_ASM_OP): Remove.
1364 (ASM_WEAKEN_LABEL): Remove.
1365 (TYPE_OPERAND_FMT): Remove.
1366 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1367 (ASM_FINISH_DECLARE_OBJECT): Remove.
1368 (NO_DOLLAR_IN_LABEL): Remove.
1369 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1370 (ASM_OUTPUT_CASE_LABEL): Remove.
1371 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1372 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1373 (gas_output_ascii): Remove.
1374 (gas_output_limited_string): Remove.
1375 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1376 * config/avr/avr-protos.h
1377 (gas_output_ascii): Remove prototye.
1378 (gas_output_limited_string): Remove prototype.
1380 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
1383 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1386 2011-06-27 Jan Hubicka <jh@suse.cz>
1388 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1389 node instead of references in node.
1391 2011-06-27 Richard Henderson <rth@redhat.com>
1393 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1394 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1397 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1399 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1401 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1402 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1403 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1404 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1405 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1406 (evaluate_stmt, execute_fold_all_builtins): Handle
1407 BUILT_IN_ASSUME_ALIGNED.
1408 * tree-ssa-dce.c (propagate_necessity): Likewise.
1409 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1410 call_may_clobber_ref_p_1): Likewise.
1411 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1412 (expand_builtin_assume_aligned): New function.
1413 * doc/extend.texi (__builtin_assume_aligned): Document.
1416 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1417 and l has two DEBUG_INSN owned locs instead of just one, adjust
1418 the second location's setting_insn too.
1420 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1423 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1425 2011-06-27 Nick Clifton <nickc@redhat.com>
1427 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1428 bit position of highest bit set into a count of the high zero bits.
1430 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1432 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1434 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1437 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1440 2011-06-27 Richard Guenther <rguenther@suse.de>
1442 PR tree-optimization/49394
1443 * passes.c (execute_one_pass): Restore current_pass after
1444 applying IPA transforms.
1446 2011-06-27 Kai Tietz <ktietz@redhat.com>
1448 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1449 out of type precision after operation.
1450 (find_bswap): Take for limit value the integer auto-promotion
1453 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1455 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1456 forward scan as well.
1458 2011-06-27 Tristan Gingold <gingold@adacore.com>
1461 * config/vms/vms-protos.h: New file.
1462 * config/vms/vms-crtlmap.map: New file.
1463 * config/vms/vms.c: New file.
1464 * config/vms/make-crtlmap.awk: New file.
1465 * config/vms/vms-crtl.h: File removed.
1466 * config/vms/vms-crtl-64.h: File removed.
1467 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1468 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1469 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1470 clear some builtins on VMS. Calls vms_patch_builtins.
1471 (avms_asm_output_external): Remove.
1472 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1473 (struct crtl_name_spec): Remove
1474 (DO_CTRL_NAMES): Remove.
1475 * config/ia64/vms.h (struct crtl_name_spec): Remove
1476 (DO_CTRL_NAMES): Remove.
1477 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1478 clear some builtins on VMS. Calls vms_patch_builtins.
1479 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1480 * config/ia64/vms64.h: Do not include vms-crtl-64.h
1481 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1483 2011-06-27 Tristan Gingold <gingold@adacore.com>
1485 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1488 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1490 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1491 the function receives nonlocal gotos.
1493 2011-06-27 Richard Guenther <rguenther@suse.de>
1495 PR tree-optimization/49536
1496 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1497 For non-scalar inner types use a scalar type according to
1498 the scalar inner mode.
1500 2011-06-27 Richard Guenther <rguenther@suse.de>
1502 PR tree-optimization/49365
1503 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1505 2011-06-27 Richard Guenther <rguenther@suse.de>
1507 PR tree-optimization/49169
1508 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1509 the alignment of function decls.
1511 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
1514 * config/darwin.c (darwin_mergeable_string_section): Place string
1515 constants in '.cstring' rather than '.const' when CF/NSStrings are
1518 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1520 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1521 (emit_save_register_window): Likewise.
1522 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1523 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1524 Swap back %o7/%i7 in register naming.
1526 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1529 * config/darwin.c (darwin_override_options): Improve warning when
1530 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1531 is given with fpie/fPIE.
1532 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1533 * config/darwin9.h (PIE_SPEC): New.
1535 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1537 * timevar.c (timevar_print): Increase width for display of timevar
1540 2011-06-24 Jakub Jelinek <jakub@redhat.com>
1543 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1544 instead of TYPE_CHAIN for chain_next for types.
1546 2011-06-24 Richard Henderson <rth@redhat.com>
1548 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1549 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1550 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1551 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1552 (sparc_flat_expand_prologue): Emit individual instructions
1553 instead of one of the above.
1555 2011-06-24 Easwaran Raman <eraman@google.com>
1557 PR rtl-optimization/49429
1559 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1560 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1561 used to copy y into x.
1562 * calls.c (initialize_argument_information): Mark
1563 an argument addressable if it is passed by invisible reference.
1564 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1565 if it is passed by reference.
1567 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1569 PR rtl-optimization/49504
1570 * rtlanal.c (nonzero_bits1): Properly handle addition or
1571 subtraction of a pointer in Pmode if pointers extend unsigned.
1572 (num_sign_bit_copies1): Likewise.
1574 2011-06-24 Martin Jambor <mjambor@suse.cz>
1576 PR tree-optimizations/49516
1577 * tree-sra.c (sra_modify_assign): Choose the safe path for
1578 aggregate copies if we also did scalar replacements.
1580 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1583 * config/arm/predicates.md (add_operator): New.
1584 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
1586 2011-06-24 Andi Kleen <ak@linux.intel.com>
1588 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1589 parameter. Split up ifs and report reason in *msg.
1591 (find_var_candiate): Add msg variable.
1592 Split up ifs and report reason to reject.
1593 (find_param_candidates): Add msg variable.
1594 Pass msg to type_internals_preclude_sra_p.
1596 2011-06-23 Jeff Law <law@redhat.com>
1599 * reload.h (reload): Change to return a bool.
1600 * ira.c (ira): If requested by reload, run a fast DCE pass after
1601 reload has completed. Fix comment typo.
1602 * reload1.c (need_dce): New file scoped static.
1603 (reload): Set reload_completed here. Return whether or not a DCE
1604 pass after reload is needed.
1605 (delete_dead_insn): Set need_dce as needed.
1608 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1609 to detect threading through joiner block. If there was already
1610 an edge to the new target, then do not change the PHI nodes.
1612 2011-06-23 Jakub Jelinek <jakub@redhat.com>
1614 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1615 get_pointer_alignment to see if base isn't sufficiently aligned.
1617 2011-06-23 Jan Hubicka <jh@suse.cz>
1619 PR tree-optimize/49373
1620 * tree-pass.h (all_late_ipa_passes): Declare.
1621 * cgraphunit.c (init_lowered_empty_function): Fix properties.
1622 (cgraph_optimize): Execute late passes; remove unreachable funcions
1623 after materialization.
1624 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1626 * passes.c (all_late_ipa_passes): Declare.
1627 (dump_passes, register_pass): Handle late ipa passes.
1628 (init_optimization_passes): Move ipa_pta to late passes; schedule
1629 fixup_cfg at beggining of all_passes.
1630 (apply_ipa_transforms): New function.
1631 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1633 2011-06-23 Joseph Myers <joseph@codesourcery.com>
1635 * params.c: Include common/common-target.h. Don't include tm.h.
1636 (lang_independent_params): Move from toplev.c.
1637 (global_init_params): New.
1638 * params.h (global_init_params): Declare.
1639 * target.def (default_params): Move to common-target.def.
1640 * toplev.c (lang_independent_options): Remove.
1641 (lang_independent_params): Move to params.c.
1642 (general_init): Use global_init_params.
1643 * common/common-target.def (option_default_params): Move from
1645 * common/config/ia64/ia64-common.c: Include params.h.
1646 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1648 * common/config/rs6000/rs6000-common.c: Include params.h.
1649 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1651 * common/config/sh/sh-common.c: Include params.h.
1652 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1654 * common/config/spu/spu-common.c: Include params.h.
1655 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1657 * config/ia64/ia64.c (ia64_option_default_params,
1658 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1659 * config/rs6000/rs6000.c (rs6000_option_default_params,
1660 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1661 * config/sh/sh.c (sh_option_default_params,
1662 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1663 * config/spu/spu.c (spu_option_default_params,
1664 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1665 * Makefile.in (OBJS): Remove params.o.
1666 (OBJS-libcommon-target): Add params.o.
1667 (params.o, $(common_out_object_file)): Update dependencies.
1668 * doc/tm.texi: Regenerate.
1670 2011-06-23 Alan Modra <amodra@gmail.com>
1673 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1674 invocation for 2011-06-09 changes.
1676 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1679 * omp-low.c (expand_omp_for_static_nochunk): Only
1680 use n ceil/ nthreads size for the first n % nthreads threads in the
1681 team instead of all threads except for the last few ones which
1682 get less work or none at all.
1685 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1688 2011-06-22 Richard Guenther <rguenther@suse.de>
1690 PR tree-optimization/49493
1691 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1692 Refer to the alias target of variables.
1693 (associate_varinfo_to_alias_1): Remove.
1694 (ipa_pta_execute): Do not associate aliases with anything.
1695 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1696 (cgraph_function_node): Likewise.
1697 (cgraph_function_or_thunk_node): Likewise.
1698 (varpool_variable_node): Likewise.
1700 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1702 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
1703 * config.gcc (arm*-*-linux*): Default to gnu tls.
1704 (arm*-*-*): Add --with-tls option.
1705 (all_defaults): Add 'tls'.
1707 2011-06-22 Richard Henderson <rth@redhat.com>
1709 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1710 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1711 (dwarf2out_frame_debug_cfa_window_save): Rename from
1712 dwarf2out_window_save; make static.
1713 * tree.h (dwarf2out_window_save): Don't declare.
1715 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1716 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1717 (emit_save_register_window): Rename from gen_save_register_window;
1718 emit the insn and add REG_CFA_* notes.
1719 (sparc_expand_prologue): Update to match.
1720 * config/sparc/sparc.md (save_register_window_1): Simplify from
1721 save_register_window<P:mode>.
1723 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1726 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1727 (*lea_general_2_zext): Likewise.
1728 (imul to lea peepholes): Use const359_operand and check
1729 TARGET_PARTIAL_REG_STALL.
1731 * config/i386/predicates.md (const359_operand): New.
1733 2011-06-22 Michael Matz <matz@suse.de>
1735 * cgraphunit.c (assemble_thunk): Use correct return type.
1737 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
1738 Dmitry Melnik <dm@ispras.ru>
1740 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1741 (neon_output_shift_immediate): Ditto.
1742 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1744 (neon_output_shift_immediate): Ditto.
1745 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1746 (vashr<mode>3_imm): New insn pattern.
1747 (vlshr<mode>3_imm): Ditto.
1748 (vashr<mode>3): Modified constraint.
1749 (vlshr<mode>3): Ditto.
1750 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1752 (imm_for_neon_rshift_operand): Ditto.
1753 (imm_lshift_or_reg_neon): Ditto.
1754 (imm_rshift_or_reg_neon): Ditto.
1756 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1758 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1760 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1761 builtin calls even if likelyvalue is not CONSTANT.
1762 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1763 Return get_value_for_expr of first operand
1764 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1765 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1766 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1767 their non-checking counterparts.
1768 (call_may_clobber_ref_p_1): Likewise.
1769 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1770 like their non-checking counterparts.
1771 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1772 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1773 like their non-checking counterparts.
1774 (find_func_clobbers): Likewise.
1775 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1776 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1778 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1779 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1780 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1781 of base type reference as argument.
1782 (resolve_addr_in_expr): Likewise. Fix keep computation.
1783 (convert_descriptor_to_signed): Renamed to...
1784 (convert_descriptor_to_mode): ... this. For wider types convert to
1785 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1786 (typed_binop): New function.
1787 (scompare_loc_descriptor, ucompare_loc_descriptor,
1788 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1789 default to unsigned type instead of signed.
1792 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1793 (gimple_build_debug_source_bind_stat): New prototype.
1794 (gimple_build_debug_source_bind): Define.
1795 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1796 gimple_debug_source_bind_get_value,
1797 gimple_debug_source_bind_get_value_ptr,
1798 gimple_debug_source_bind_set_var,
1799 gimple_debug_source_bind_set_value): New inlines.
1800 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1801 * gimple-pretty-print.c (dump_gimple_debug): Handle
1802 GIMPLE_DEBUG_SOURCE_BIND.
1803 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1804 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1805 * tree-parloops.c (eliminate_local_variables,
1806 separate_decls_in_region): Likewise.
1807 (separate_decls_in_region_debug): Renamed from
1808 separate_decls_in_region_debug_bind. Handle
1809 gimple_debug_source_bind_p.
1810 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1812 (DECL_HAS_DEBUG_ARGS_P): Define.
1813 (struct tree_function_decl): Add has_debug_args_flag field.
1814 * tree.c (debug_args_for_decl): New variable.
1815 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1816 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1817 (rewrite_debug_stmt_uses): New function.
1818 (rewrite_stmt): Use it to rewrite debug stmt uses.
1819 * rtl.def (DEBUG_PARAMETER_REF): New.
1820 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1821 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1822 DEBUG_PARAMETER_REF.
1823 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1824 * print-rtl.c (print_rtx): Likewise.
1825 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1826 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1827 debug stmts in the first bb.
1828 * tree-inline.c (remap_ssa_name): If remapping default def
1829 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1830 a source bind debug stmt.
1831 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1832 (maybe_move_debug_stmts_to_successors): Likewise.
1833 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1834 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1835 debug args vector from old_decl to new_decl.
1836 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1837 or modified parameters, add debug bind stmts before call
1838 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1839 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1840 on DECL_DEBUG_EXPRs from debug args vector.
1841 (expand_debug_source_expr): New function.
1842 (expand_debug_locations): Use it for source bind insns.
1843 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1844 * var-tracking.c (prepare_call_arguments): Add debug args
1845 to call_arguments if any.
1846 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1847 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1848 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1849 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1850 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1851 (gen_subprogram_die): Handle parameters identified by
1852 DEBUG_PARAMETER_REF.
1854 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1856 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1857 * doc/install.texi (Configuration): Document --with-tls.
1858 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1859 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1860 (arm_tls_descseq_addr): New.
1861 (legitimize_tls_address): Add tlsdesc support.
1862 (arm_cannot_copy_insn_p): Check for tlscall.
1863 (arm_emit_tls_decoration): Likewise.
1864 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1865 (OPTION_DEFAULT_SPECS): Add with-tls support.
1866 * config/arm/arm.md (R1_REGNUM): Define.
1868 * config/arm/arm.opt (tls_type): New enumeration type and values.
1869 (mtls-dialect): New switch.
1870 * config/arm/arm-opts.h (enum tls_type): New.
1872 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1874 * attribs.c (register_attribute): Added assert to check that all
1875 attribute specs are registered with a name that is not empty and
1876 does not start with '_'.
1877 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1878 if the function has no attributes.
1879 * tree.c (is_attribute_with_length_p): Removed.
1880 (is_attribute_p): Removed.
1881 (private_is_attribute_p): New.
1882 (private_lookup_attribute): New.
1883 (lookup_attribute): Removed.
1884 (lookup_ident_attribute): New.
1885 (remove_attribute): Require the first argument to be in the form
1886 'text', not '__text__'. Updated asserts.
1887 (merge_attributes): Use lookup_ident_attributes instead of
1889 (merge_dllimport_decl_attributes): Use remove_attribute.
1890 (attribute_list_contained): Likewise.
1891 (attribute_list_equal): Immediately return 1 if the arguments are
1893 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1894 'int'. Require the first argument to be in the form 'text', not
1895 '__text__'. Require the second argument to be an identifier.
1896 (lookup_attribute): Made inline. Require the first argument to be
1897 in the form 'text', not '__text__'.
1898 (private_is_attribute_p, private_lookup_attribute): New.
1901 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1903 * builtins.c: Add sync_ or SYNC__ to builtin names.
1904 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1905 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1907 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1910 * config/avr/avr.md (extzv): New expander.
1912 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1913 * config/avr/constraints.md (C04): New constraint.
1914 * doc/md.texi (Machine Constraints): Document it.
1916 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1919 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1920 unsignedp argument instead of 1 for clrsb_optab.
1921 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1922 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1923 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1924 * optabs.c (widen_leading): Call widen_operand and expand_unop
1925 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1926 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1928 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1930 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1932 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1934 * gensupport.c (add_define_attr): New static function.
1935 (is_predicable): Allow multi-alternative lists for the "predicable"
1937 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1938 (process_one_cond_exec): Call alter_attrs_for_insn.
1939 * doc/md.texi (Defining Attributes): Mention some standard names.
1940 (Conditional Execution): Update documentation for "predicable".
1942 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1943 __builtin_clrsbll): Document.
1944 * doc/rtl.texi (clrsb): New entry.
1945 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1946 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1947 (expand_unop): Handle clrsb_optab.
1948 (init_optabs): Initialize it.
1949 * optabs.h (enum optab_index): New entry OTI_clrsb.
1950 (clrsb_optab): Define.
1951 * genopinit.c (optabs): Add an entry for it.
1952 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1953 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1954 BUILT_IN_CLRSBLL): New.
1955 * rtl.def (CLRSB): New code.
1956 * dwarf2out.c (mem_loc_descriptor): Handle it.
1957 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1958 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1960 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1961 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1962 (__ctzDI2): Move declaration.
1963 * config/bfin/bfin.md (clrsbsi2): New expander.
1964 (signbitssi2): Use the CLRSB rtx.
1965 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1966 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1968 2011-06-21 Richard Guenther <rguenther@suse.de>
1970 * ipa-inline-transform.c (inline_transform): Fix previous change.
1972 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1974 PR tree-optimization/49478
1975 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1976 with constant operand.
1978 2011-06-21 Richard Guenther <rguenther@suse.de>
1980 * ipa-inline-transform.c (inline_transform): Fix typo.
1982 2011-06-21 Richard Guenther <rguenther@suse.de>
1984 PR tree-optimization/49483
1985 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1986 VIEW_CONVERT_EXPR conversions.
1988 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1990 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1991 * config/avr/avr-tables.opt: New file (generated).
1992 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1993 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1995 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1996 (avr_option_override): Don't process -mmcu= argument here. Set
1997 avr_current_device using avr_mcu_index.
1998 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1999 * config/avr/avr.opt (mmcu=): Use Enum.
2000 * config/avr/t-avr (avr-devices.o): Update dependencies.
2001 ($(srcdir)/config/avr/avr-tables.opt): New.
2002 * target.def (help): Remove.
2003 * doc/tm.texi.in (TARGET_HELP): Remove.
2004 * doc/tm.texi: Regenerate.
2005 * opts.c: Don't include target.h.
2006 (common_handle_option): Don't call targetm.help.
2007 * system.h (TARGET_HELP): Poison.
2008 * Makefile.in (opts.o): Update dependencies.
2010 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2012 * config/usegld.h: New file.
2013 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
2014 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
2015 (LIB_SPEC): Likewise. Search /lib.
2016 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
2017 (RDYNAMIC_SPEC): Handle GNU ld.
2018 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
2020 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
2021 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
2022 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
2023 (STACK_CHECK_STATIC_BUILTIN): Define.
2024 * config/sol2.opt (compat-bsd): Remove.
2025 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
2026 * config/sol2-bi.h: New file.
2027 * config/sol2-gld.h: Remove.
2028 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
2029 (NO_DBX_BNSYM_ENSYM): Remove.
2030 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2031 (STACK_CHECK_STATIC_BUILTIN): Remove.
2032 Test USE_GLD instead of TARGET_GNU_LD.
2033 * config/i386/sol2-10.h: Rename to ...
2034 * config/i386/sol2-bi.h .. this.
2035 (SUBTARGET_EXTRA_SPECS): Redefine.
2036 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
2037 (MULTILIB_DEFAULTS): Remove.
2038 (DEFAULT_ARCH32_P): Define.
2039 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
2040 (ARCH64_SUBDIR): Define.
2041 Test USE_GLD instead of TARGET_GNU_LD.
2042 (I386_EMULATION): Rename to ...
2043 (ARCH32_EMULATION): ... this.
2044 (X86_64_EMULATION): Rename to ...
2045 (ARCH64_EMULATION): ... this.
2046 (TARGET_LD_EMULATION): Remove.
2047 (LINK_ARCH_SPEC): Remove.
2048 * config/i386/sol2-gas.h: Remove.
2049 * config/i386/t-sol2-10: Rename to ...
2050 * config/i386/t-sol2-64: ... this.
2051 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
2052 (AS_SPARC64_FLAG): Define.
2053 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
2054 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
2055 depending on TARGET_CPU_DEFAULT.
2056 (CPP_CPU_SPEC): Redefine.
2057 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
2058 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
2059 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
2060 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
2061 ASM_ARCH_DEFAULT_SPEC): Redefine.
2062 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2063 LINK_ARCH_DEFAULT_SPEC.
2064 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
2065 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
2066 (ARCH64_SUBDIR): Define.
2067 (LINK_ARCH64_SPEC): Redefine.
2068 (CC1_SPEC): Redefine.
2069 (OPTION_DEFAULT_SPECS): Redefine.
2070 (MULTILIB_DEFAULTS): Define.
2071 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
2072 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
2073 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
2074 (NO_DBX_BNSYM_ENSYM): Remove.
2075 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2076 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
2077 (TARGET_ASM_NAMED_SECTION): Likewise.
2078 (STACK_CHECK_STATIC_BUILTIN): Remove.
2079 * config/sparc/sol2-bi.h: Remove.
2080 * config/sparc/sol2-gas-bi.h: Remove.
2081 * config/sparc/sol2-gas.h: Remove.
2082 * config/sparc/sol2-gld-bi.h: Remove.
2083 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
2085 (*-*-solaris2*): ... here.
2087 2011-06-21 Christian Bruel <christian.bruel@st.com>
2090 * ipa-inline.c (can_inline_edge_p): Check
2091 !DECL_DISREGARD_INLINE_LIMITS.
2093 2011-06-21 Christian Bruel <christian.bruel@st.com>
2096 * cgraphunit.c (process_function_and_variable_attributes): warn when
2097 always_inline functions that are not inline.
2098 * ipa-inline-transform.c (inline_transform): Always call
2100 * tree-inline.c (tree_inlinable_function_p): Use error instead
2102 (expand_call_inline): Likewise.
2104 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2106 * Makefile.in (dg_target_exps): Set.
2107 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
2108 instead of 7, try to divide it more evenly.
2110 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
2113 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
2114 (avx256_split_unaligned_store): New definition.
2115 (ix86_option_override_internal): Enable avx256 unaligned load/store
2116 splitting only when avx256_split_unaligned_load/store is set.
2118 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2120 * regrename.c (scan_rtx_reg): Handle the case where we write to an
2121 open chain in a smaller mode without failing the entire block.
2123 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2126 * combine.c (cant_combine_insn_p): Don't check zero/sign
2127 extended hard registers.
2129 2011-06-21 Alan Modra <amodra@gmail.com>
2131 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
2132 CONST high part large-toc address.
2133 (rs6000_tls_referenced_p): Make static.
2134 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
2136 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2139 * combine.c (cant_combine_insn_p): Check zero/sign extended
2142 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2145 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
2146 one of the operands is a register.
2148 2011-06-20 Kai Tietz <ktietz@redhat.com>
2150 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
2151 operations in combination with binary and.
2153 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2155 * regrename.c (do_replace): Don't update notes.
2157 2011-06-20 Alan Modra <amodra@gmail.com>
2159 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
2160 of toc-relative address in CONST.
2161 (rs6000_delegitimize_address): Recognize changed address.
2162 (rs6000_legitimize_reload_address): Likewise.
2163 (rs6000_emit_move): Don't force these constants to memory.
2164 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
2165 toc-relative address in CONST.
2166 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2167 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2169 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2171 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
2172 (count_trailing_zeros): Likewise.
2174 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2177 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
2178 .init_array can be used with .ctors on targets.
2179 * configure: Regenerated.
2181 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2183 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
2184 if the element type is volatile.
2186 2011-06-18 Jan Hubicka <jh@suse.cz>
2188 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
2190 (lto_symtab_resolve_can_prevail_p): Likewise.
2191 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
2192 * cgraphbuild.c (record_reference): Remove extra body alias code.
2193 (mark_load): Likewise.
2194 (mark_store): Likewise.
2195 * cgraph.h (varpool_node): Remove extra_name filed;
2196 add alias_of and extraname_alias.
2197 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
2198 (varpool_alias_aliased_node): New inline function.
2199 (varpool_variable_node): New function.
2200 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
2201 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
2202 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
2203 (input_varpool_node): Likewise.
2204 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
2205 (varpool_externally_visible_p): Remove extra body alias code.
2206 (function_and_variable_visibility): Likewise.
2207 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
2208 (ipa_pta_execute): Use it.
2209 * varpool.c (varpool_remove_node): Remove extra name alias code.
2210 (varpool_mark_needed_node): Likewise.
2211 (varpool_analyze_pending_decls): Analyze aliases.
2212 (assemble_aliases): New functoin.
2213 (varpool_assemble_decl): Use it.
2214 (varpool_create_variable_alias): New function.
2215 (varpool_extra_name_alias): Rewrite.
2216 (varpool_for_node_and_aliases): New function.
2218 2011-06-18 Jakub Jelinek <jakub@redhat.com>
2221 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
2222 last_arg_constant and last argument doesn't match its predicate,
2223 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
2224 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
2225 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
2226 spelling of error message.
2227 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
2228 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
2229 const_0_to_255_operand instead of const_int_operand.
2232 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2234 * config/i386/sse.md (blendbits): Remove mode attribute.
2235 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2236 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2237 Check integer value of operand 3 in insn constraint.
2239 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
2241 PR rtl-optimization/48542
2242 * reload.c (find_equiv_reg): Stop looking when finding a
2244 * reload1.c (reload_as_needed): Invalidate all reload
2245 registers when crossing a setjmp-type call.
2247 2011-06-16 Jeff Law <law@redhat.com>
2249 * tree-ssa-threadupdate.c (struct redirection_data): New field
2251 (THREAD_TARGET2): Define.
2252 (redirection_data_eq): Also check that the intermediate edge is equal.
2253 (lookup_redirection_data): Drop useless argument. Extract the
2254 outgoing_edge and intermediate edge from E. Callers updated.
2255 (copy_phi_args, update_destination_phis): New functions.
2256 (fix_duplicate_block_edges): Likewise.
2257 (create_edge_and_update_destination_phis): Duplicate all the edges
2258 hung off e->aux. Use copy_phi_args.
2259 (create_duplicates): Use fix_duplicate_block_edges.
2260 (fixup_template_block): Likewise.
2261 (redirect_edges): If necessary, redirect the joiner block's incoming
2262 edge to the duplicate of the joiner block.
2263 (thread_block): Don't muck up loops when threading through a joiner
2265 (thread_through_loop_header): Handle threading through a joiner block.
2266 (mark_threaded_blocks, register_jump_thread): Likewise.
2267 * tree-flow.h (register_jump_thread): Add new argument. Callers
2269 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2270 (thread_across_edge): Handle threading through a joiner block.
2272 2011-06-16 Martin Jambor <mjambor@suse.cz>
2274 PR tree-optimization/49343
2275 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2276 calculate offset, provide 2nd operand for the new COMPONENT_REF.
2278 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2280 * config/darwin-protos.h (machopic_select_rtx_section): Move to
2281 inside RTX_CODE ifdef.
2283 2011-06-16 Tom de Vries <tom@codesourcery.com>
2286 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2287 Disallow NULL pointer for pointer arithmetic.
2289 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2293 2011-06-10 Wei Guozhi <carrot@google.com>
2296 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2297 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2298 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2300 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2302 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2303 (arm_legitimate_ldrd_p): New prototype.
2304 (arm_output_ldrd): New prototype.
2305 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2306 (arm_legitimate_ldrd_p): New function.
2307 (arm_output_ldrd): New function.
2309 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2312 * doc/tm.texi.in: Update Copyright date.
2313 * doc/tm.texi: Regenerate.
2314 * targhooks.c (default_setup_incoming_varargs): Replace
2315 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2316 (default_pretend_outgoing_varargs_named): Likewise.
2317 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2318 (hook_callee_copies_named): Likewise.
2319 (default_function_arg_advance): Likewise.
2320 (default_function_arg): Likewise.
2321 (default_function_incoming_arg): Likewise.
2322 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2323 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2324 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2325 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2326 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2327 * targhooks.h (default_setup_incoming_varargs): Likewise.
2328 (default_pretend_outgoing_varargs_named): Likewise.
2329 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2330 (hook_callee_copies_named): Likewise.
2331 (default_function_arg_advance): Likewise.
2332 (default_function_arg): Likewise.
2333 (default_function_incoming_arg): Likewise.
2334 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2335 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2336 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2337 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2338 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2339 * target.def (pass_by_reference): Likewise.
2340 (setup_incoming_varargs, strict_argument_naming): Likewise.
2341 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2342 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2343 (function_incoming_arg): Likewise.
2344 * target.h: Don't include "tm.h" .
2345 (cumulative_args_t): New typedef.
2346 [GCC_TM_H] (get_cumulative_args): New static inline function.
2347 [GCC_TM_H] (pack_cumulative_args): Likewise.
2348 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2349 argument type with cumulative_args_t.
2350 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2351 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2352 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2353 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2354 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2355 (frv_function_arg_1): Likewise.
2356 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2357 (s390_function_arg_advance, s390_function_arg): Likewise.
2358 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2359 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2360 (m32c_strict_argument_naming): Likewise.
2361 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2362 (spu_function_arg_advance): Likewise.
2363 (spu_setup_incoming_varargs): Likewise. Make static.
2364 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2366 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2367 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2368 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2369 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2370 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2371 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2372 (mep_pass_by_reference, mep_function_arg): Likewise.
2373 (mep_function_arg_advance): Likewise.
2374 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2375 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2376 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2377 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2378 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2379 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2380 (ix86_setup_incoming_varargs): Likewise.
2381 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2382 (sh_strict_argument_naming): Likewise.
2383 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2384 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2385 (sh_function_arg_advance, sh_function_arg): Likewise.
2386 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2387 (pdp11_function_arg_advance): Likewise.
2388 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2390 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2391 * config/avr/avr.c (avr_function_arg): Likewise.
2392 (avr_function_arg_advance): Likewise.
2393 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2394 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2395 (xtensa_function_arg_1): Likewise.
2396 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2398 (xstormy16_function_arg): Likewise.
2399 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2400 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2401 (fr30_function_arg_advance): Likewise.
2402 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2403 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2404 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2405 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2406 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2407 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2408 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2409 (cris_function_arg, cris_function_incoming_arg): Likewise.
2410 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2411 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2412 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2413 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2414 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2415 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2416 (mn10300_arg_partial_bytes): Likewise.
2417 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2418 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2419 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2420 (ia64_function_arg_1): Likewise.
2421 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2422 (m68k_function_arg): Likewise.
2423 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2424 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2425 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2426 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2427 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2428 (picochip_arg_advance): Likewise.
2429 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2430 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2431 (mcore_function_arg_advance): Likewise.
2432 * config/score/score.c (score_pass_by_reference): Likewise.
2433 (score_function_arg_advance): Likewise.
2434 (score_arg_partial_bytes): Likewise. Make static.
2435 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2436 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2437 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2438 (arm_function_arg, arm_function_arg_advance): Likewise.
2439 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2440 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2441 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2442 (pa_function_arg): Likewise.
2443 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2444 (mips_function_arg, mips_function_arg_advance): Likewise.
2445 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2446 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2447 * config/vax/vax.c (vax_function_arg): Likewise.
2448 (vax_function_arg_advance): Likewise.
2449 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2450 (h8300_function_arg_advance): Likewise.
2451 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2452 (v850_strict_argument_naming, v850_function_arg): Likewise.
2453 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2454 (v850_setup_incoming_varargs): Likewise.
2455 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2456 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2457 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2458 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2460 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2461 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2462 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2463 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2464 * calls.c (emit_call_1): Change type of args_so_far to
2465 cumulative_args_t. Changed all callers.
2466 (initialize_argument_information): Likewise.
2467 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2468 * dse.c (get_call_args): Likewise.
2469 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2470 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2471 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2472 New member args_so_far_v. Changed all users.
2473 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2474 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2475 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2476 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2477 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2478 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2480 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2481 m32r_pass_by_reference.
2483 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
2485 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2486 argument to be a VEC of statements.
2487 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2488 assert that pattern statements have to have their vector type set.
2489 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2490 Change the first argument to be a VEC of statements. Update
2492 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2493 (vect_handle_widen_mult_by_const): New function.
2494 (vect_recog_widen_mult_pattern): Change the first argument to be a
2495 VEC of statements. Update documentation. Check that the constant is
2496 INTEGER_CST. Support multiplication by a constant that fits an
2497 intermediate type - call vect_handle_widen_mult_by_const.
2498 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2499 call. Handle additional pattern statements if necessary.
2501 2011-06-16 Nick Clifton <nickc@redhat.com>
2504 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2505 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2506 md_file, extra_modes, out_file and extra_options are these are all
2507 deduced from cpu_type.
2509 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2511 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2512 truncation mask to 63.
2514 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2518 * longlong.h: Add AVR support:
2519 (count_leading_zeros): New macro.
2520 (count_trailing_zeros): New macro.
2521 (COUNT_LEADING_ZEROS_0): New macro.
2522 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2523 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2524 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2525 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2526 (LIB2FUNCS_EXCLUDE): Add _clz.
2527 * config/avr/libgcc.S (XCALL): Move up in file.
2528 (XJMP): New C Macro.
2529 (DEFUN): New asm macro.
2530 (ENDF): New asm macro.
2531 (__ffssi2): New function.
2532 (__ffshi2): New function.
2533 (__loop_ffsqi2): New function.
2534 (__ctzsi2): New function.
2535 (__ctzhi2): New function.
2536 (__clzdi2): New function.
2537 (__clzsi2): New function.
2538 (__clzhi2): New function.
2539 (__paritydi2): New function.
2540 (__paritysi2): New function.
2541 (__parityhi2): New function.
2542 (__parityqi2): New function.
2543 (__popcounthi2): New function.
2544 (__popcountsi2): New function.
2545 (__popcountdi2): New function.
2546 (__popcountqi2): New function.
2547 (__bswapsi2): New function.
2548 (__bswapdi2): New function.
2549 (__ashldi3): New function.
2550 (__ashrdi3): New function.
2551 (__lshrdi3): New function.
2552 Fix suspicous lines.
2554 2011-06-16 Richard Guenther <rguenther@suse.de>
2556 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2558 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2560 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2561 equality compares against zero for the lower bit.
2563 2011-06-16 Jakub Jelinek <jakub@redhat.com>
2565 PR tree-optimization/49419
2566 * tree-vrp.c (execute_vrp): Call init_range_assertions
2567 before estimate_numbers_of_iterations, call
2568 free_number_of_iterations_estimates before calling
2569 remove_range_assertions.
2571 2011-06-16 Revital Eres <revital.eres@linaro.org>
2573 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2574 (struct partial_schedule): Add rows_length field.
2575 (verify_partial_schedule): Check rows_length.
2576 (ps_insert_empty_row): Handle rows_length.
2577 (create_partial_schedule): Likewise.
2578 (free_partial_schedule): Likewise.
2579 (reset_partial_schedule): Likewise.
2580 (create_ps_insn): Remove rest_count argument.
2581 (remove_node_from_ps): Update rows_length.
2582 (add_node_to_ps): Update rows_length and call create_ps_insn
2583 without passing row_rest_count.
2584 (rotate_partial_schedule): Update rows_length.
2586 2011-06-16 Revital Eres <revital.eres@linaro.org>
2588 * ddg.c (add_intra_loop_mem_dep): New function.
2589 (build_intra_loop_deps): Call it.
2591 2011-06-13 Jeff Law <law@redhat.com>
2593 * df-problems.c (df_lr_local_compute): Manually CSE
2594 PIC_OFFSET_TABLE_REGNUM.
2595 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2596 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2598 2011-06-13 Jan Hubicka <jh@suse.cz>
2600 * cgraphunit.c (handle_alias_pairs): New function.
2601 (cgraph_finalize_compilation_unit): Use it.
2602 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2603 as externally visible.
2605 2011-06-15 Richard Guenther <rguenther@suse.de>
2607 * expr.c (expand_expr_real_2): Reduce all integral types to
2609 (expand_expr_real_1): Likewise.
2611 2011-06-15 Martin Jambor <mjambor@suse.cz>
2613 PR tree-optimization/48613
2614 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2615 ipa_node_params_vector is NULL.
2617 2011-06-15 Jakub Jelinek <jakub@redhat.com>
2620 * dwarf2out.c (dw_loc_list_node): Add force field.
2621 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2622 location in the list, even if it is modified before first real insn.
2623 (output_loc_list): Emit empty ranges with force flag set.
2624 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
2626 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
2629 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2630 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2631 above a fence. Update comments.
2632 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2633 placed just above it. Do not allow NULL place_to_insert.
2635 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
2637 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2638 (slpeel_tree_peel_loop_to_edge): Don't call
2639 remove_dead_stmts_from_loop.
2640 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2641 remove irrelevant pattern statements. For irrelevant statements
2642 check if it is the last statement of a detected pattern, use
2643 corresponding pattern statement instead.
2644 (destroy_loop_vec_info): No need to remove pattern statements,
2645 only free stmt_vec_info.
2646 (vect_transform_loop): For irrelevant statements check if it is
2647 the last statement of a detected pattern, use corresponding
2648 pattern statement instead.
2649 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2650 pattern statements. Set basic block for the new statement.
2651 (vect_pattern_recog): Update documentation.
2652 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2653 operands of pattern statements.
2654 (vectorizable_call): Fix printing. In case of a pattern statement
2655 use the lhs of the original statement when creating a dummy
2656 statement to replace the original call.
2657 (vect_analyze_stmt): For irrelevant statements check if it is
2658 the last statement of a detected pattern, use corresponding
2659 pattern statement instead.
2660 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2661 statements use gsi of the original statement.
2663 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2665 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2666 common/common-target-def.h.
2667 * target.def (default_target_flags, handle_option,
2668 supports_split_stack, optimization_table, init_struct,
2669 except_unwind_info, unwind_tables_default, have_named_sections):
2670 Move to common/common-target.def.
2671 * target.h (enum opt_levels, struct default_options): Move to
2672 common/common-target.h.
2673 * targhooks.c (default_except_unwind_info,
2674 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2675 default_target_handle_option, empty_optimization_table): Move to
2676 common/common-targhooks.c.
2677 * targhooks.h (default_except_unwind_info,
2678 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2679 default_target_handle_option, empty_optimization_table): Move to
2680 common/common-targhooks.h.
2681 * common/common-target-def.h: Include common/common-targhooks.h.
2682 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2684 * common/common-target.def (handle_option, option_init_struct,
2685 option_optimization_table, default_target_flags,
2686 except_unwind_info, supports_split_stack, unwind_tables_default,
2687 have_named_sections): Move from target.def.
2688 (HOOK_PREFIX): Undefine at end of file.
2689 * common/common-target.h: Include input.h.
2690 (enum opt_levels, struct default_options): Move from target.h.
2691 * common/common-targhooks.c, common/common-targhooks.h: New.
2692 * config.gcc (target_has_targetm_common): Default to yes.
2693 (moxie*): Set target_has_targetm_common=no.
2694 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2695 * doc/tm.texi: Regenerate.
2696 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2697 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2698 (GCC_OBJS): Remove vec.o.
2699 (OBJS): Remove hooks.o and vec.o.
2700 (OBJS-libcommon-target): Add vec.o, hooks.o and
2701 common/common-targhooks.o.
2702 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2703 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2704 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2705 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2706 Update dependencies.
2707 (common/common-targhooks.o): New.
2708 * common/config/default-common.c: Include tm.h. Add FIXME comment.
2709 * common/config/pa/pa-common.c: Include more headers. Take
2710 copyright dates from pa.c.
2711 (pa_option_optimization_table, pa_handle_option,
2712 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2713 TARGET_HANDLE_OPTION): Move from pa.c.
2714 * common/config/alpha/alpha-common.c,
2715 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2716 common/config/bfin/bfin-common.c,
2717 common/config/cris/cris-common.c,
2718 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2719 common/config/h8300/h8300-common.c,
2720 common/config/i386/i386-common.c,
2721 common/config/ia64/ia64-common.c,
2722 common/config/iq2000/iq2000-common.c,
2723 common/config/lm32/lm32-common.c,
2724 common/config/m32c/m32c-common.c,
2725 common/config/m32r/m32r-common.c,
2726 common/config/m68k/m68k-common.c,
2727 common/config/mcore/mcore-common.c,
2728 common/config/mep/mep-common.c,
2729 common/config/microblaze/microblaze-common.c,
2730 common/config/mips/mips-common.c,
2731 common/config/mmix/mmix-common.c,
2732 common/config/mn10300/mn10300-common.c,
2733 common/config/pdp11/pdp11-common.c,
2734 common/config/picochip/picochip-common.c,
2735 common/config/rs6000/rs6000-common.c,
2736 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2737 common/config/score/score-common.c, common/config/sh/sh-common.c,
2738 common/config/sparc/sparc-common.c,
2739 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2740 common/config/vax/vax-common.c,
2741 common/config/xstormy16/xstormy16-common.c,
2742 common/config/xtensa/xtensa-common.c: New.
2743 * config/alpha/alpha.c: Include common/common-target.h.
2744 (alpha_option_optimization_table, alpha_handle_option,
2745 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2746 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2747 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2748 * config/arm/arm.c (arm_option_optimization_table,
2749 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2750 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2752 * config/avr/avr.c (avr_option_optimization_table,
2753 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2755 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2756 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2757 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2758 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2759 * config/cris/cris.c (cris_option_optimization_table,
2760 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2761 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2763 * config/fr30/fr30.c (fr30_option_optimization_table,
2764 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2766 * config/frv/frv.c (frv_option_optimization_table,
2767 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2768 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2769 * config/h8300/h8300.c (h8300_option_optimization_table,
2770 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2771 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2772 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2773 * config/i386/i386.c: Include common/common-target.h.
2774 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2775 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2776 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2777 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2778 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2779 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2780 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2781 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2782 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2783 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2784 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2785 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2786 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2787 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2788 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2789 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2790 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2791 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2792 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2793 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2794 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2795 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2796 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2797 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2798 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2799 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2800 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2801 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2802 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2803 ix86_option_optimization_table, ix86_option_init_struct,
2804 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2805 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2806 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2808 * config/i386/t-i386 (i386.o): Update dependencies.
2809 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2810 * config/ia64/ia64.c (ia64_option_optimization_table,
2811 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2812 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2813 ia64_handle_option): Move to ia64-common.c.
2814 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2815 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2816 * config/lm32/lm32.c (lm32_option_optimization_table,
2817 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2819 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2821 * config/m32r/m32r.c (m32r_option_optimization_table,
2822 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2823 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2824 m32r_handle_option): Move to m32r-common.c.
2825 (m32r_memory_move_cost): Remove comment referring to
2826 TARGET_HANDLE_OPTION.
2827 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2828 Move to m68k-common.c.
2829 * config/mcore/mcore.c (mcore_option_optimization_table,
2830 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2831 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2832 * config/mep/mep.c (mep_option_optimization_table,
2833 mep_handle_option, TARGET_HANDLE_OPTION,
2834 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2835 Move to mep-common.c.
2836 * config/microblaze/microblaze.c
2837 (microblaze_option_optimization_table,
2838 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2839 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2840 * config/mips/mips.c (mips_handle_option,
2841 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2842 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2844 * config/mmix/mmix.c (mmix_option_optimization_table,
2845 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2846 Move to mmix-common.c.
2847 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2848 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2849 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2850 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2851 * config/pa/pa.c: Include common/common-target.h.
2852 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2853 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2854 pa_handle_option): Move to pa-common.c.
2855 (pa_option_override): Use targetm_common.except_unwind_info.
2856 (pa_asm_output_mi_thunk, pa_function_section): Use
2857 targetm_common.have_named_sections.
2858 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2859 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2860 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2861 pdp11_handle_option, pdp11_option_init_struct): Move to
2863 * config/picochip/picochip.c (picochip_option_optimization_table,
2864 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2865 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2866 * config/rs6000/rs6000.c: Include common/common-target.h.
2867 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2868 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2869 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2870 rs6000_handle_option): Move to rs6000-common.c.
2871 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2872 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2873 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2874 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2875 * config/s390/s390.c (processor_flags_table,
2876 s390_option_optimization_table, s390_option_init_struct,
2877 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2878 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2879 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2880 * config/s390/s390.h (processor_flags_table): Declare.
2881 * config/score/score.c (score_option_optimization_table,
2882 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2883 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2884 score_handle_option): Move to score-common.c.
2885 * config/sh/sh.c (sh_option_optimization_table,
2886 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2887 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2888 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2889 * config/sparc/sparc.c: Include common/common-target.h.
2890 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2891 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2892 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2893 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2894 spu_option_init_struct): Move to spu-common.c.
2895 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2896 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2897 * config/v850/v850.c (small_memory_physical_max,
2898 v850_handle_memory_optionn v850_handle_option,
2899 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2900 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2902 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2903 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2904 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2905 Move to xtensa-common.c.
2906 * cfglayout.c: Include common/common-target.h.
2907 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2908 * cfgrtl.c: Include common/common-target.h.
2909 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2910 targetm_common.have_named_sections.
2911 * dbxout.c: Include common/common-target.h.
2912 (dbxout_function_end): Use targetm_common.have_named_sections.
2913 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2914 targetm_common.except_unwind_info.
2915 * dwarf2out.c: Include common/common-target.h.
2916 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2917 dwarf2out_begin_prologue, dwarf2out_frame_init,
2918 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2919 targetm_common.except_unwind_info.
2920 * except.c: Include common/common-target.h.
2921 (init_eh, finish_eh_generation,
2922 output_one_function_exception_table): Use
2923 targetm_common.except_unwind_info.
2924 (switch_to_exception_section): Use targetm_common.have_named_sections.
2925 * explow.c: Include common/common-target.h.
2926 * expr.c: Include common/common-target.h.
2927 (build_personality_function): Use targetm_common.except_unwind_info.
2928 * function.c: Include common/common-target.h.
2929 (expand_function_end): Use targetm_common.except_unwind_info.
2930 * haifa-sched.c: Include common/common-target.h.
2931 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2932 * lto-opts.c: Include common/common-target.h instead of target.h.
2933 (lto_reissue_options): Use targetm_common.handle_option.
2934 * opts.c: Include common/common-target.h.
2935 (target_handle_option): Use targetm_common.handle_option.
2936 (init_options_struct): Update comment referring to
2937 targetm.target_option.optimization. Use
2938 targetm_common.default_target_flags,
2939 targetm_common.unwind_tables_default and
2940 targetm_common.option_init_struct.
2941 (default_options_optimization): Use
2942 targetm_common.option_optimization_table.
2943 (finish_options): Use targetm_common.except_unwind_info,
2944 targetm_common.unwind_tables_default,
2945 targetm_common.have_named_sections and
2946 targetm_common.supports_split_stack.
2947 * toplev.c: Include common/common-target.h.
2948 (process_options): Use targetm_common.have_named_sections.
2949 * tree-tailcall.c: Include common/common-target.h.
2950 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2951 * tree.c: Include common/common-target.h.
2952 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2953 * varasm.c: Include common/common-target.h.
2954 (resolve_unique_section, hot_function_section,
2955 default_function_section): Use targetm_common.have_named_sections.
2957 2011-06-14 Easwaran Raman <eraman@google.com>
2959 PR rtl-optimization/44194
2960 * dse.c: Include tree-flow.h
2961 (insn_info): Add new field non_frame_wild_read.
2962 (group_info): Add new fields escaped_n and escaped_p.
2963 (kill_on_calls): New variable.
2964 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2965 (dse_step0): Initialize kill_on_calls.
2966 (can_escape): New function.
2967 (set_usage_bits): Add additional parameter; record information
2968 about escaped locations.
2969 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2970 (dse_step2_nospill): Set kill_on_calls based on
2971 group->escaped_n and group->escaped_n.
2972 (add_wild_read): Refactor into...
2973 (reset_active_stores): ... New function, and
2974 (free_read_records): ... New function.
2975 (add_non_frame_wild_read): New function.
2976 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2977 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2978 (dse_step5_nospill): Call scan_reads_nospill for instructions
2979 marked as non_frame_wild_read.
2980 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2982 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2984 * common/common-target-def.h, common/common-target.def,
2985 common/common-target.h, common/config/default-common.c,
2986 common/config/pa/pa-common.c: New files.
2987 * Makefile.in (common_out_file, common_out_object_file,
2988 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2989 (OBJS-libcommon-target): Include $(common_out_object_file).
2990 (prefix.o): Update dependencies.
2991 ($(common_out_object_file), common/common-target-hooks-def.h,
2992 s-common-target-hooks-def-h): New.
2993 (s-tm-texi): Also check timestamp on common-target.def.
2994 (build/genhooks.o): Update dependencies.
2995 * config.gcc (common_out_file, target_has_targetm_common): Define.
2996 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2997 TARGET_ALWAYS_STRIP_DOTDOT.
2998 * configure.ac (common_out_object_file): Define.
2999 (common_out_file, common_out_object_file): Substitute.
3000 (common): Create directory.
3001 * configure: Regenerate.
3002 * doc/tm.texi.in (targetm_common): Document.
3003 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
3004 * doc/tm.texi: Regenerate.
3005 * genhooks.c (hook_array): Also include common/common-target.def.
3006 * prefix.c (tm.h): Don't include.
3007 (common/common-target.h): Include.
3008 (ALWAYS_STRIP_DOTDOT): Don't define.
3009 (update_path): Use targetm_common.always_strip_dotdot instead of
3010 ALWAYS_STRIP_DOTDOT.
3011 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
3013 2011-06-14 David Li <davidxl@google.com>
3015 * passes.c (execute_function_todo): Remove TODO_dump_func.
3016 (execute_one_pass): Remove TODO_dump_func.
3017 (execute_function_dump): New function.
3018 * tree-vrp.c: Remove TODO_dump_func.
3019 * regrename.c: Remove TODO_dump_func.
3020 * fwprop.c: Remove TODO_dump_func.
3021 * tree-into-ssa.c: Remove TODO_dump_func.
3022 * tree-complex.c: Remove TODO_dump_func.
3023 * tracer.c: Remove TODO_dump_func.
3024 * tree-loop-distribution.c: Remove TODO_dump_func.
3025 * postreload-gcse.c: Remove TODO_dump_func.
3026 * postreload.c: Remove TODO_dump_func.
3027 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
3028 * tree-tailcall.c: Remove TODO_dump_func.
3029 * ipa-cp.c: Remove TODO_dump_func.
3030 * final.c: Remove TODO_dump_func.
3031 * tree-emutls.c: Remove TODO_dump_func.
3032 * omp-low.c: Remove TODO_dump_func.
3033 * tree-ssa-dse.c: Remove TODO_dump_func.
3034 * tree-ssa-uncprop.c: Remove TODO_dump_func.
3035 * auto-inc-dec.c: Remove TODO_dump_func.
3036 * reorg.c: Remove TODO_dump_func.
3037 * tree-ssa-copyrename.c: Remove TODO_dump_func.
3038 * tree-ssa-ccp.c: Remove TODO_dump_func.
3039 * compare-elim.c: Remove TODO_dump_func.
3040 * mode-switching.c: Remove TODO_dump_func.
3041 * modulo-sched.c: Remove TODO_dump_func.
3042 * tree-call-cdce.c: Remove TODO_dump_func.
3043 * cse.c: Remove TODO_dump_func.
3044 * web.c: Remove TODO_dump_func.
3045 * tree-stdarg.c: Remove TODO_dump_func.
3046 * lto-streamer-out.c: Remove TODO_dump_func.
3047 * tree-ssa-math-opts.c: Remove TODO_dump_func.
3048 * tree-ssa-dom.c: Remove TODO_dump_func.
3049 * tree-nrv.c: Remove TODO_dump_func.
3050 * loop-init.c: Remove TODO_dump_func.
3051 * gimple-low.c: Remove TODO_dump_func.
3052 * ipa-inline.c: Remove TODO_dump_func.
3053 * tree-ssa-sink.c: Remove TODO_dump_func.
3054 * jump.c: Remove TODO_dump_func.
3055 * ifcvt.c: Remove TODO_dump_func.
3056 * tree-ssa-loop.c: Remove TODO_dump_func.
3057 * recog.c: Remove TODO_dump_func.
3058 * dse.c: Remove TODO_dump_func.
3059 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
3060 * matrix-reorg.c: Remove TODO_dump_func.
3061 * tree-eh.c: Remove TODO_dump_func.
3062 * regmove.c: Remove TODO_dump_func.
3063 * function.c: Remove TODO_dump_func.
3064 * tree-vectorizer.c: Remove TODO_dump_func.
3065 * ipa-split.c: Remove TODO_dump_func.
3066 * gcse.c: Remove TODO_dump_func.
3067 * tree-if-conv.c: Remove TODO_dump_func.
3068 * init-regs.c: Remove TODO_dump_func.
3069 * tree-ssa-phiopt.c: Remove TODO_dump_func.
3070 * implicit-zee.c: Remove TODO_dump_func.
3071 * lower-subreg.c: Remove TODO_dump_func.
3072 * bt-load.c: Remove TODO_dump_func.
3073 * tree-dfa.c: Remove TODO_dump_func.
3074 * except.c: Remove TODO_dump_func.
3075 * emit-rtl.c: Remove TODO_dump_func.
3076 * store-motion.c: Remove TODO_dump_func.
3077 * cfgexpand.c: Remove TODO_dump_func.
3078 * tree-cfgcleanup.c: Remove TODO_dump_func.
3079 * cfgcleanup.c: Remove TODO_dump_func.
3080 * tree-ssa-pre.c: Remove TODO_dump_func.
3081 * tree-sra.c: Remove TODO_dump_func.
3082 * tree-mudflap.c: Remove TODO_dump_func.
3083 * tree-ssa-copy.c: Remove TODO_dump_func.
3084 * cfglayout.c: Remove TODO_dump_func.
3085 * tree-ssa-forwprop.c: Remove TODO_dump_func.
3086 * tree-ssa-dce.c: Remove TODO_dump_func.
3087 * ira.c: Remove TODO_dump_func.
3088 * tree-ssa.c: Remove TODO_dump_func.
3089 * integrate.c: Remove TODO_dump_func.
3090 * tree-optimize.c: Remove TODO_dump_func.
3091 * tree-ssa-phiprop.c: Remove TODO_dump_func.
3092 * tree-object-size.c: Remove TODO_dump_func.
3093 * combine.c: Remove TODO_dump_func.
3094 * bb-reorder.c: Remove TODO_dump_func.
3095 * cprop.c: Remove TODO_dump_func.
3096 * var-tracking.c: Remove TODO_dump_func.
3097 * tree-profile.c: Remove TODO_dump_func.
3098 * tree-vect-generic.c: Remove TODO_dump_func.
3099 * reg-stack.c: Remove TODO_dump_func.
3100 * sched-rgn.c: Remove TODO_dump_func.
3101 * tree-ssa-structalias.c: Remove TODO_dump_func.
3102 * tree-switch-conversion.c: Remove TODO_dump_func.
3103 * tree-cfg.c: Remove TODO_dump_func.
3104 * tree-ssa-reassoc.c: Remove TODO_dump_func.
3105 * combine-stack-adj.c: Remove TODO_dump_func.
3106 * dce.c: Remove TODO_dump_func.
3107 * tree-ssanames.c: Remove TODO_dump_func.
3108 * regcprop.c: Remove TODO_dump_func.
3110 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
3113 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
3114 and properly handle result not in Pmode.
3116 2011-06-14 Robert Millan <rmh@gnu.org>
3118 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
3119 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
3122 * config/i386/kfreebsd-gnu64.h: New file.
3123 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
3124 with `i386/kfreebsd-gnu64.h'.
3126 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
3127 (GNU_USER_LINK_EMULATION64): New macros.
3128 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
3129 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
3130 of hardcoding `elf_i386' and `elf_x86_64'.
3132 2011-06-14 Nick Clifton <nickc@redhat.com>
3135 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
3138 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
3140 2011-06-14 Jakub Jelinek <jakub@redhat.com>
3143 * tree.h (DECL_NONSHAREABLE): Define.
3144 (struct tree_decl_common): Change decl_common_unused to
3145 decl_nonshareable_flag.
3146 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
3147 Ignore vars with DECL_NONSHAREABLE bit set.
3148 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
3149 on stores to automatic aggregate vars.
3151 PR rtl-optimization/49390
3153 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3155 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3158 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
3159 Tom de Vries <tom@codesourcery.com>
3162 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
3163 Document changed semantics.
3164 (max_stmt_executions, max_stmt_executions_int): Declare.
3165 * tree-data-ref.c (estimated_loop_iterations)
3166 (estimated_loop_iterations_int): Move functions...
3167 * tree-ssa-loop-niter.c (estimated_loop_iterations)
3168 (estimated_loop_iterations_int): here.
3169 (record_estimate): Change nb_iterations_upper_bound and
3170 nb_iterations_estimate semantics.
3171 (max_stmt_executions, max_stmt_executions_int): New function.
3172 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
3173 (max_stmt_executions_tree): this.
3174 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
3175 estimated_loop_iterations_tree.
3176 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
3177 max_stmt_executions_int instead of estimated_loop_iterations_int.
3178 * predict.c (predict_loops): Idem.
3179 * tree-parloops.c (parallelize_loops): Idem.
3180 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
3181 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
3182 (init_omega_for_ddr_1): Idem.
3183 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
3184 (loop_prefetch_arrays): Idem
3185 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
3186 max_stmt_executions instead of estimated_loop_iterations.
3187 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
3188 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
3189 instead of nb_iterations_upper_bound.
3191 2011-06-13 Jan Hubicka <jh@suse.cz>
3193 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
3195 2011-06-14 Richard Henderson <rth@redhat.com>
3198 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
3199 (based_loc_descr): Assert it's true.
3200 (compute_frame_pointer_to_fb_displacement): Set it, rather than
3201 aborting immediately.
3203 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
3204 Mingfeng Wu <mingfeng@faraday-tech.com>
3206 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
3208 2011-06-13 Jan Hubicka <jh@suse.cz>
3210 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
3212 2011-06-13 Jan Hubicka <jh@suse.cz>
3214 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
3215 similarly to DECL_COMDAT.
3216 * cgraphunit.c (cgraph_analyze_function): Likewise.
3217 * ipa.c (function_and_variable_visibility): Likewise.
3219 2011-06-13 Jan Hubicka <jh@suse.cz>
3221 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
3222 BINFO_VIRTUALS when streaming for ltrans unit.
3224 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
3226 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
3227 (movdi_internal64): Same.
3229 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
3232 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
3233 a set of similar patterns, where the MATCH_OPERAND for the function
3234 argument is replaced with individual references to hardware registers.
3235 (save_fpregs_<mode>): Ditto
3236 (restore_gpregs_<mode>): Ditto
3237 (return_and_restore_gpregs_<mode>): Ditto
3238 (return_and_restore_fpregs_<mode>): Ditto
3239 (return_and_restore_fpregs_aix_<mode>): Ditto
3241 2011-06-13 Jan Hubicka <jh@suse.cz>
3243 * ipa-utils.c (postorder_stack): New structure.
3244 (ipa_reverse_postorder): Handle aliases.
3246 2011-06-13 Jan Hubicka <jh@suse.cz>
3248 * ipa-inline.c (reset_edge_caches): Walk aliases.
3249 (update_caller_keys): Do not test inlinability of aliases.
3250 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3251 (do_estimate_growth): Fix typo.
3253 2011-06-13 Jan Hubicka <jh@suse.cz>
3255 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3256 (can_remove_node_now_p): ... here; handle same comdat groups.
3257 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3258 (inline_call): Update use of can_remove_node_now_p.
3260 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3262 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
3263 condition to disallow non-identical memory locations.
3264 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3265 preference to bit manipulation instructions.
3267 2011-06-13 Jan Hubicka <jh@suse.cz>
3269 * cgraph.c (cgraph_for_node_thunks_and_aliases,
3270 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3271 (nonremovable_p): New function.
3272 (cgraph_can_remove_if_no_direct_calls_p): New function.
3273 (used_from_object_file_p): New functoin.
3274 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3275 references from aliases.
3276 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3277 * ipa-inline.c (check_caller_edge): New function.
3278 (want_inline_function_called_once_p): Use it; accept aliases called
3280 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3282 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3285 * config/arm/neon.md (vec_pack_trunc): Set the lengths
3286 correctly for the case with Quad vectors.
3288 2011-06-13 Jakub Jelinek <jakub@redhat.com>
3289 Ira Rosen <ira.rosen@linaro.org>
3291 PR tree-optimization/49352
3292 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3293 all, make sure loop_use_stmt after the loop is a def stmt of a used
3294 SSA_NAME that is the only one defined inside of the loop. Don't
3295 check for COND_EXPR and GIMPLE_BINARY_RHS.
3296 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3297 check_reduction is true.
3299 2011-06-11 Jan Hubicka <jh@suse.cz>
3302 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3304 2011-06-11 Jan Hubicka <jh@suse.cz>
3307 * ipa-inline-transform.c: Include tree-pass.h
3308 (inline_transform): Set TODO_update_ssa_only_virtuals.
3309 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3311 2011-06-11 Jan Hubicka <jh@suse.cz>
3314 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3317 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
3319 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3320 Take number of iterations to peel into account for equally frequent
3321 misalignment values.
3323 2011-06-11 Jan Hubicka <jh@suse.cz>
3325 * lto-streamer-out.c (produce_symtab): Stream out the newly
3326 represented aliases.
3328 2011-06-11 Jan Hubicka <jh@suse.cz>
3330 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3332 (ipa_update_after_lto_read): Likewise.
3333 (ipa_write_node_info): Do not sream call_with_var_arguments.
3334 (ipa_read_node_info): Likewise.
3336 2011-06-11 Jan Hubicka <jh@suse.cz>
3338 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3340 2011-06-11 Jan Hubicka <jh@suse.cz>
3342 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3343 (lto_symtab_resolve_can_prevail_p): Likewise.
3344 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3345 * cgraph.c (same_body_aliases_done): New global var.
3346 (cgraph_same_body_alias_1): Rename to ...
3347 (cgraph_create_function_alias): ... this one; reorg to new
3349 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3350 record references when asked to.
3351 (cgraph_add_thunk): Fix formating.
3352 (cgraph_get_node): Kill same body alias code.
3353 (cgraph_node_for_asm): Likewise.
3354 (cgraph_remove_same_body_alias): Remove.
3355 (cgraph_remove_node): Kill same body alias code.
3356 (cgraph_mark_address_taken_node): Mark also the aliased function
3357 as having address taken.
3358 (dump_cgraph_node): Dump same body aliases.
3359 (cgraph_for_node_thunks_and_aliases): Update for new alias
3361 (cgraph_for_node_and_aliases): Likewise.
3362 * cgraph.h (same_body): Kll pointer.
3363 (same_body_alias): Update comment.
3364 (same_body_aliases_done): Declare.
3365 (cgraph_remove_same_body_alias): Remove declaration.
3366 (cgraph_create_function_alias): Declare.
3367 (cgraph_process_same_body_aliases): Declare.
3368 (cgraph_function_with_gimple_body_p): Check for alias.
3369 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3370 (cgraph_alias_aliased_node): New function.
3371 (cgraph_function_node): Update for new aliases.
3372 (cgraph_function_or_thunk_node): Likewise.
3373 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3374 (inline_call): Remove dead aliases.
3375 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3376 name hack for same body aliases.
3377 (clone_of_p): Look through aliases.
3378 (verify_cgraph_node): Verify aliases.
3379 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3380 (cgraph_process_same_body_aliases): New function.
3381 (process_function_and_variable_attributes): Disable weakref warning on
3383 (cgraph_analyze_functions): Handle aliases.
3384 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3385 (assemble_thunks): Rename to ...
3386 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3387 (cgraph_expand_function): Remove alias output code.
3388 (cgraph_output_in_order): Skip aliases.
3389 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3390 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3391 (ipa_record_reference): Do not assert on alias references.
3392 (ipa_ref_has_aliases_p): New function.
3393 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3394 (ipa_ref_has_aliases_p): Declare.
3395 * lto-cgraph.c (lto_output_node): Handle aliases.
3396 (input_node): Likewise.
3397 * lto-streamer-out.c (lto_output): Skip aliases.
3398 (produce_symtab): Kill same_body_alias code.
3399 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3400 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3401 * ipa-inline.c (update_caller_keys): Walk aliases.
3402 (inline_small_functions): Fix thinko in previous patch.
3403 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3404 (function_and_variable_visibility): Do not walk same body aliases.
3405 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3406 (ipa_pta_execute): Use it.
3408 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3410 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3411 (*vec_dupv2df): Rename from vec_dupv2df.
3412 (vec_dupv2df): New expander.
3414 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3416 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3418 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3420 * config/i386/i386.md: Use default value in "isa" attribute.
3421 * config/i386/sse.md: Ditto.
3422 * config/i386/mmx.md: Ditto.
3424 2011-06-10 Wei Guozhi <carrot@google.com>
3427 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3428 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3429 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3431 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3433 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3434 (arm_legitimate_ldrd_p): New prototype.
3435 (arm_output_ldrd): New prototype.
3436 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3437 (arm_legitimate_ldrd_p): New function.
3438 (arm_output_ldrd): New function.
3440 2011-06-10 David Li <davidxl@google.com>
3442 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3443 * passes.c (passr_eq): New function.
3444 (create_pass_tab): New function.
3445 (pass_traverse): New function.
3446 (dump_one_pass): New function.
3447 (dump_pass_list): New function.
3448 (dump_passes): New function.
3450 2011-06-10 Jan Hubicka <jh@suse.cz>
3452 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3453 setting the nothrow flag.
3454 * ipa-reference.c (propagate): Skip aliases.
3455 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3456 (propagate_nothrow): Skip aliases; do not update cgraph.
3457 (local_pure_const): Do not update cgraph.
3458 * tree-profile.c (tree_profiling): Do fixup_cfg.
3460 2011-06-10 Jan Hubicka <jh@suse.cz>
3462 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3463 (cgraph_local_node_p): ... here; handle aliases.
3464 (has_addr_references_p): Break out from ...;
3465 (cgraph_remove_unreachable_nodes) ... here.
3467 2011-06-10 Jan Hubicka <jh@suse.cz>
3469 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3470 * common.opt (flag_inline_functions_called_once): Do not
3473 2011-06-10 Jan Hubicka <jh@suse.cz>
3475 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3476 (ipcp_initialize_node_lattices): Do not deal with aliases;
3477 Do not try to propagate through thunks.
3478 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3480 2011-06-10 Jan Hubicka <jh@suse.cz>
3482 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3484 (ipa_read_node_info): Likewise.
3486 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3489 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3490 (build_and_insert_call): Likewise.
3491 (build_and_insert_ref): New.
3492 (gimple_expand_builtin_pow): Minor cleanup.
3493 (gimple_expand_builtin_cabs): New.
3494 (execute_cse_sincos): Add case for BUILT_IN_CABS.
3496 2011-06-10 Jan Hubicka <jh@suse.cz>
3498 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3499 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3500 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3501 (ipcp_propagate_stage): Skip aliases when propagating.
3502 (ipcp_need_redirect_p): Skip aliases.
3503 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3504 collect_callers_of_node.
3505 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3507 (ipa_compute_jump_functions): Look through aliases.
3509 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3511 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3513 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3515 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3517 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3519 2011-06-10 Jan Hubicka <jh@suse.cz>
3521 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3522 Update call of gimple_get_virt_method_for_binfo.
3523 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3524 refuse_thunks parameter.
3525 (gimple_fold_call): Update.
3526 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3528 2011-06-10 Jan Hubicka <jh@suse.cz>
3530 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3531 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3532 worker for cgraph_for_node_and_aliases.
3533 (convert_callers_for_node): Break out from ...
3534 (convert_callers): ... here.
3535 (modify_function): Use collect_callers_of_node.
3536 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3538 2011-06-10 Richard Guenther <rguenther@suse.de>
3540 PR tree-optimization/49361
3541 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3542 when not already in gimple form.
3544 2011-06-10 Richard Guenther <rguenther@suse.de>
3547 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3548 FOR_EACH_PHI_OR_STMT_USE.
3550 2011-06-10 Jan Hubicka <jh@suse.cz>
3552 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3553 (clone_inlined_nodes): ... here.
3554 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3555 to real destination prior inlining.
3556 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3557 can_early_inline_edge_p, want_early_inline_function_p,
3558 want_early_inline_function_p, want_inline_small_function_p,
3559 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3560 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3561 add_new_edges_to_heap, inline_small_functions, flatten_function,
3562 inline_always_inline_functions, early_inline_small_functions): Use
3563 cgraph_function_or_thunk_node.
3564 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3565 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3566 (do_estimate_edge_growth_1): Break out from ...
3567 (do_estimate_growth) ... here; walk aliases.
3568 (inline_generate_summary): Skip aliases.
3570 2011-06-10 Richard Guenther <rguenther@suse.de>
3572 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3573 forward when combining, visit inserted stmts when a stmt was changed.
3575 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3577 * tree.h (error_operand_p): Add.
3578 * dbxout.c (dbxout_type_fields): Use the latter.
3579 * c-decl.c (add_stmt): Likewise.
3580 * gimplify.c (omp_add_variable, omp_notice_variable,
3581 gimplify_scan_omp_clauses): Likewise.
3583 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
3585 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3586 when a value is actually passed in regs.
3588 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
3589 Laurent Rougé <laurent.rouge@menta.fr>
3591 * doc/invoke.texi (SPARC options): Add -mflat.
3592 * config/sparc/sparc.opt: Likewise.
3593 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3594 (sparc_flat_expand_prologue): Declare.
3595 (sparc_flat_expand_epilogue): Likewise.
3596 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3597 (CPP_ENDIAN_SPEC): Replace with...
3598 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3599 (CPP_SPEC): Adjust to above change.
3600 (EXTRA_SPECS): Likewise.
3601 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3602 (INCOMING_REGNO): Likewise.
3603 (OUTGOING_REGNO): Likewise.
3604 (LOCAL_REGNO): Likewise.
3605 (SETUP_FRAME_ADDRESSES): Likewise.
3606 (FIXED_REGISTERS): Set 0 for %fp.
3607 (CALL_USED_REGISTERS): Likewise.
3608 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3609 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3610 (RETURN_ADDR_REGNUM): Define.
3611 (RETURN_ADDR_RTX): Use it.
3612 (INCOMING_RETURN_ADDR_REGNUM): Define.
3613 (INCOMING_RETURN_ADDR_RTX): Use it.
3614 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3615 (EH_RETURN_REGNUM): Define.
3616 (EH_RETURN_STACKADJ_RTX): Use it.
3617 (EH_RETURN_HANDLER_RTX): Delete.
3618 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3619 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3621 (struct machine_function): Add frame_size, apparent_frame_size,
3622 frame_base_reg, frame_base_offset, n_global_fp_regs and
3623 save_local_in_regs_p fields.
3624 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3625 sparc_frame_base_offset, sparc_n_global_fp_regs,
3626 sparc_save_local_in_regs_p): New macros.
3627 (sparc_option_override): Error out if -fcall-saved-REG is specified
3629 (eligible_for_restore_insn): Fix formatting.
3630 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3631 (eligible_for_sibcall_delay): Likewise.
3632 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3633 (sparc_legitimate_address_p): Adjust to above change.
3634 (save_global_or_fp_reg_p): New predicate.
3635 (return_addr_reg_needed_p): Likewise.
3636 (save_local_or_in_reg_p): Likewise.
3637 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3638 (SORR_SAVE, SORR_RESTORE): Delete.
3639 (sorr_pred_t): New typedef.
3640 (sorr_act_t): New enum.
3641 (save_or_restore_regs): Rename to...
3642 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3643 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3644 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3645 mechanism. Add CFI information for double-word saves in 32-bit mode.
3646 (emit_adjust_base_to_offset): New function extracted from...
3647 (emit_save_or_restore_regs): ...this. Rename the rest to...
3648 (emit_save_or_restore_regs_global_fp_regs): ...this.
3649 (emit_save_or_restore_regs_local_in_regs): New function.
3650 (gen_create_flat_frame_[123]): New functions.
3651 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3652 (sparc_flat_expand_prologue): New function.
3653 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3654 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3655 (sparc_flat_expand_epilogue): New function.
3656 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3657 (output_return): Likewise.
3658 (output_sibcall): Likewise.
3659 (sparc_output_mi_thunk): Likewise.
3660 (sparc_frame_pointer_required): Likewise.
3661 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3662 function optimization.
3663 * config/sparc/sparc.md (flat): New attribute.
3664 (prologue): Add TARGET_FLAT handling.
3665 (save_register_window): Disable if TARGET_FLAT.
3666 (create_flat_frame_[123]): New patterns.
3667 (epilogue): Add TARGET_FLAT handling.
3668 (sibcall_epilogue): Likewise.
3669 (eh_return): New expander.
3670 (eh_return_internal): New insn and splitter.
3671 (return_internal): Add TARGET_FLAT handling.
3672 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3673 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3674 (nonlocal_goto): Add TARGET_FLAT handling.
3675 * config/sparc/t-elf: Add -mflat multilib.
3676 * config/sparc/t-leon: Likewise.
3678 2011-06-10 Jan Hubicka <jh@suse.cz>
3680 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3681 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3682 (self_recursive_p): Use cgraph_function_node.
3683 (propagate_pure_const): Likewise.
3684 (propagate_nothrow): Likewise.
3685 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3686 cgraph_function_node.
3687 (propagate_bits): Likewise.
3688 (propagate): Likewise.
3690 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3691 Richard Earnshaw <rearnsha@arm.com>
3693 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
3694 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3695 (*thumb2_movdi_vfp): Delete.
3696 (*arm_movdi_vfp_cortexa8): Delete.
3697 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3698 (*movdi_vfp_cortexa8): Likewise.
3700 2011-06-10 Richard Guenther <rguenther@suse.de>
3702 * stor-layout.c (initialize_sizetypes): Give names to all
3705 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
3707 PR tree-optimization/49318
3708 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3709 irrelevant pattern statements.
3711 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3713 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3716 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3719 2011-06-09 Jan Hubicka <jh@suse.cz>
3721 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3722 do not recompute reachable flag.
3723 (cgraph_finalize_function, cgraph_analyze_functions): Set
3724 redefined_extern_inline here.
3726 2011-06-09 Jan Hubicka <jh@suse.cz>
3728 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3729 (cgraph_only_called_directly_p): ... this one; bring offline.
3730 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3731 varpool_used_from_object_file_p): Drop names from the declaratoin.
3732 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3733 collect_callers_of_node): New.
3734 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3735 (cgraph_edge_recursive_p): Use cgraph_function_node.
3736 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3737 (cgraph_node_cannot_be_local_p_1): Break out from ...
3738 (cgraph_node_can_be_local_p): ... here; walk aliases.
3739 (cgraph_for_node_thunks_and_aliases): New function.
3740 (cgraph_for_node_and_aliases): New function.
3741 (cgraph_make_node_local_1): Break out from ...
3742 (cgraph_make_node_local) ... here; use
3743 cgraph_for_node_thunks_and_aliases.
3744 (cgraph_set_nothrow_flag_1): Break out from ...
3745 (cgraph_set_nothrow_flag) ... here;
3746 use cgraph_for_node_thunks_and_aliases.
3747 (cgraph_set_const_flag_1): Break out from ...
3748 (cgraph_set_const_flag) ... here;
3749 use cgraph_for_node_thunks_and_aliases.
3750 (cgraph_set_pure_flag_1): Break out from ...
3751 (cgraph_set_pure_flag) ... here;
3752 use cgraph_for_node_thunks_and_aliases.
3753 (cgraph_propagate_frequency_1): Break out from ...
3754 (cgraph_propagate_frequency) ... here; use
3755 cgraph_for_node_thunks_and_aliases.
3756 (cgraph_used_from_object_file_p): Do not care about aliases.
3757 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3759 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3761 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3763 PR rtl-optimization/49154
3764 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3765 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3766 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3767 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3768 * config/cris/cris.h (cris_register_move_cost): Remove
3769 !TARGET_V32 code. Tweak comments.
3771 2011-06-09 Jan Hubicka <jh@suse.cz>
3773 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3776 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3778 PR rtl-optimization/49154
3779 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3780 is a matching slot in the hashtable, assign it to classes_ptr.
3782 PR rtl-optimization/49154
3783 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3785 * doc/tm.texi: Regenerate.
3787 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3790 * config/sh/sh.md (UNSPEC_CHKADD): New.
3791 (chk_guard_add): New define_insn_and_split.
3792 (symGOT_load): Use chk_guard_add instead of blockage.
3794 2011-06-09 Kai Tietz <ktietz@redhat.com>
3796 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3798 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3800 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3802 2011-06-09 Wei Guozhi <carrot@google.com>
3805 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3806 (peephole2 for conditional move): Generate 16 bit instructions.
3808 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
3810 * config/i386/i386.md (*movdi_internal_rex64): Merge
3811 alternatives 6 and 8.
3813 2011-06-09 David Li <davidxl@google.com>
3815 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3816 * passes.c (passr_eq): New function.
3817 (create_pass_tab): New function.
3818 (pass_traverse): New function.
3819 (dump_one_pass): New function.
3820 (dump_pass_list): New function.
3821 (dump_passes): New function.
3823 2011-06-09 David Li <davidxl@google.com>
3825 * tree-complex.c (tree_lower_complex): Gate cleanup.
3826 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3827 (execute_optimize_stdarg): Ditto.
3828 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3829 (execute_cleanup_eh_1): Ditto.
3830 (execute_cleanup_eh): Ditto.
3831 * gcse.c (gate_rtl_pre): Ditto.
3832 (execute_rtl_pre): Ditto.
3833 * except.c (finish_eh_generation): Ditto.
3834 (convert_to_eh_region_ranges): Ditto.
3835 * cprop.c (one_cprop_pass): Ditto.
3837 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3840 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3841 in all basic blocks.
3843 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3845 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3846 (HAVE_ENABLE_EXECUTE_STACK): Define.
3847 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3848 (HAVE_ENABLE_EXECUTE_STACK): Define.
3849 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3850 (HAVE_ENABLE_EXECUTE_STACK): Define.
3851 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3852 (ENABLE_EXECUTE_STACK): Remove.
3853 (HAVE_ENABLE_EXECUTE_STACK): Define.
3854 [IN_LIBGCC2]: Don't include <windows.h>.
3855 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3856 (HAVE_ENABLE_EXECUTE_STACK): Define.
3857 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3858 (HAVE_ENABLE_EXECUTE_STACK): Define.
3859 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3860 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3861 (HAVE_ENABLE_EXECUTE_STACK): Define.
3862 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3863 (HAVE_ENABLE_EXECUTE_STACK): Define.
3864 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3865 (HAVE_ENABLE_EXECUTE_STACK): Define.
3866 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3867 (HAVE_ENABLE_EXECUTE_STACK): Define.
3868 * config/alpha/alpha.c (alpha_trampoline_init): Test
3869 HAVE_ENABLE_EXECUTE_STACK.
3870 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3871 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3872 (sparc64_initialize_trampoline): Likewise.
3873 * libgcc2.c [L_enable_execute_stack]: Remove.
3874 * system.h (ENABLE_EXECUTE_STACK): Poison.
3875 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3876 * doc/tm.texi: Regenerate.
3877 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3879 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3882 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3883 variable. After resetting and rescanning insn continue with previous
3886 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3888 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3889 (gcc_cv_ld_hidden): Likewise.
3890 * configure: Regenerate.
3891 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3892 (ix86_stack_protect_fail): Mark unused.
3893 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3894 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3895 [TARGET_MACHO]: Don't define.
3896 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3897 (TARGET_STACK_PROTECT_FAIL): Likewise.
3898 (rs6000_stack_protect_fail): Mark unused.
3899 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3900 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3902 2011-06-08 Andi Kleen <ak@linux.intel.com>
3904 * varasm.c (get_section): Print location of other conflict
3905 for section conflicts.
3907 2011-06-08 Andi Kleen <ak@linux.intel.com>
3909 * config/i386/driver-i386.c (host_detect_local_cpu):
3910 Add model 0x2d Intel CPU.
3912 2011-06-08 Andi Kleen <ak@linux.intel.com>
3914 * reginfo.c (global_regs_decl): Add.
3915 (globalize_reg): Add decl parameter. Compute location. Pass location
3916 to warnings and add inform. Store decl in global_regs_decl.
3917 * rtl.h (globalize_reg): Update prototype.
3918 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3920 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3922 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3924 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3927 * config/sh/predicates.md (general_movsrc_operand): Check
3928 mode for memory with indexed address for QI and HImode.
3929 (general_movdst_operand): Likewise.
3931 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3933 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3935 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3937 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3938 (num_ssa_operands): Likewise.
3939 (op_iter_init_phiuse): Forward-declare.
3940 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3942 2011-06-08 Nick Clifton <nickc@redhat.com>
3944 * doc/invoke.texi (ARM Options): Update description of
3947 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3949 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3950 unknown Intel family 0x6 CPUs.
3952 2011-06-08 Martin Jambor <mjambor@suse.cz>
3954 * tree-sra.c (mark_rw_status): Removed.
3955 (analyze_access_subtree): New parameter parent instead of
3956 mark_read and mark_write, propagate from that.
3958 2011-06-08 Julian Brown <julian@codesourcery.com>
3960 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3961 for double-precision helper functions in hard-float mode if only
3962 single-precision arithmetic is supported in hardware.
3964 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3966 PR rtl-optimization/49303
3967 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3968 code_motion_path_driver returned 0 or 1.
3969 (sel_region_finish): Clear h_d_i_d.
3971 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3973 * config/sh/sh.c (prepare_move_operands): Set pic register
3974 appropriately for global and local dynamic tls models even
3975 if flag_pic is unset.
3977 2011-06-07 Jason Merrill <jason@redhat.com>
3979 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3981 2011-06-07 Xinliang David Li <davidxl@google.com>
3982 * passes.c (enable_disable_pass): Handle assembler name.
3983 (is_pass_explicitly_enabled_or_disabled): Ditto.
3985 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3987 PR tree-optimization/48497
3988 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3990 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3992 PR tree-optimization/46728
3993 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3994 to use gimple_val_nonnegative_real_p.
3995 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3996 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3998 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
4000 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
4002 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
4004 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
4007 2011-06-07 Richard Guenther <rguenther@suse.de>
4009 * stor-layout.c (initialize_sizetypes): Initialize all
4010 sizetypes based on target definitions.
4011 (set_sizetype): Remove.
4012 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
4013 * tree.h (set_sizetype): Remove.
4015 2011-06-07 Nick Clifton <nickc@redhat.com>
4017 * config.gcc: Unify V850 architecture options and add support for
4018 newer V850 architectures.
4019 * config/v850/t-v850e: Delete.
4021 2011-06-07 Richard Guenther <rguenther@suse.de>
4023 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
4024 Call set_sizetype from here.
4026 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
4028 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
4029 (*maddhisi4tb, *maddhisi4tt): New define_insns.
4031 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
4032 Andrew Stubbs <ams@codesourcery.com>
4034 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
4036 * doc/md.texi (Canonicalization of Instructions): Document widening
4037 multiply canonicalization.
4039 2011-06-07 Jakub Jelinek <jakub@redhat.com>
4041 PR gcov-profile/49299
4042 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
4044 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
4046 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
4048 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
4049 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
4050 vect_recog_pow_pattern): Likewise.
4051 (vect_pattern_recog_1): Remove declaration.
4052 (widened_name_p): Remove declaration. Add new argument to specify
4053 whether to check that both types are either signed or unsigned.
4054 (vect_recog_widen_mult_pattern): Update documentation. Handle
4055 unsigned patterns and multiplication by constants.
4056 (vect_pattern_recog_1): Update vect_recog_func references. Use
4057 statement information from the statement returned from pattern
4058 detection functions.
4059 (vect_pattern_recog): Update vect_recog_func reference.
4060 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
4061 multiplication by a constant use the type of the other operand.
4063 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
4065 PR rtl-optimization/49145
4066 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
4068 2011-06-06 Jakub Jelinek <jakub@redhat.com>
4071 * dwarf2out.c (native_encode_initializer): Decrement count in each
4075 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
4079 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
4080 if stmt folded into nothing.
4081 * tree-inline.c (fold_marked_statements): If a builtin at the end of
4082 a bb folded into nothing, just update cgraph edges and move to next bb.
4083 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
4084 to be NULL. Don't compute count and frequency if new_call is NULL.
4086 2011-06-04 Diego Novillo <dnovillo@google.com>
4088 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4089 (cgraph.o): Likewise.
4090 (cgraphunit.o): Likewise.
4091 * cgraphunit.c: Include lto-streamer.h
4092 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
4094 * lto-streamer-in.c (unpack_value_fields): Call
4095 streamer_hooks.unpack_value_fields if set.
4096 (lto_materialize_tree): For unhandled nodes, first try to
4097 call lto_streamer_hooks.alloc_tree, if it exists.
4098 (lto_input_ts_decl_common_tree_pointers): Move reading of
4099 DECL_INITIAL to lto_streamer_read_tree.
4100 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
4101 (lto_streamer_read_tree): New.
4102 (lto_reader_init): Rename from lto_init_reader.
4103 Move initialization code to lto/lto.c.
4104 * lto-streamer-out.c (pack_value_fields): Call
4105 streamer_hooks.pack_value_fields if set.
4106 (lto_output_tree_ref): For tree nodes that are not normally indexable,
4107 call streamer_hooks.indexable_with_decls_p before giving up.
4108 (lto_output_ts_decl_common_tree_pointers): Move handling
4109 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
4110 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
4111 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
4112 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
4113 (lto_streamer_write_tree): New.
4114 (lto_output): Call lto_streamer_init directly.
4115 (lto_writer_init): Remove.
4116 * lto-streamer.c (streamer_hooks): New.
4117 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
4118 instead of lto_preload_common_nodes.
4119 (lto_is_streamable): Move from lto-streamer.h
4120 (lto_streamer_hooks_init): New.
4121 (streamer_hooks): New.
4122 (streamer_hooks_init): New.
4123 * lto-streamer.h (struct output_block): Forward declare.
4124 (struct lto_input_block): Likewise.
4125 (struct data_in): Likewise.
4126 (struct bitpack_d): Likewise.
4127 (struct streamer_hooks): Declare.
4128 (streamer_hooks): Declare.
4129 (lto_streamer_hooks_init): Declare.
4130 (lto_streamer_write_tree): Declare.
4131 (lto_streamer_read_tree): Declare.
4132 (streamer_hooks_init): Declare.
4133 (lto_is_streamable): Move to lto-streamer.c
4135 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4137 * longlong.h (smul_ppmm): The resulting register pair contains the
4138 higher order word first.
4140 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4142 PR tree-optimization/46728
4143 * builtins.c (powi_table): Remove.
4144 (powi_lookup_cost): Remove.
4145 (powi_cost): Remove.
4146 (expand_powi_1): Remove.
4147 (expand_powi): Remove.
4148 (expand_builtin_pow_root): Remove.
4149 (expand_builtin_pow): Remove.
4150 (expand_builtin_powi): Eliminate handling of constant exponent.
4151 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
4153 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4155 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
4157 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4159 * dce.c (reset_unmarked_insns_debug_uses): New.
4160 (delete_unmarked_insns): Skip debug insns.
4161 (prescan_insns_for_dce): Likewise.
4162 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
4163 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
4164 active reg can be found.
4165 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
4166 (convert_regs_1): Use it.
4168 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4170 * tree-pretty-print.c (dump_function_header): Add flags.
4171 Don't dump decl_uid with nouid.
4172 * tree-pretty-print.h (dump_function_header): Adjust.
4173 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
4174 * passes.c (pass_init_dump_file): Pass dump_flags on.
4175 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
4177 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4180 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
4182 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
4184 PR tree-optimization/49243
4185 * calls.c (setjmp_call_p): Also check if fndecl has the
4186 returns_twice attribute.
4188 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4190 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
4193 2011-06-06 Richard Henderson <rth@redhat.com>
4194 Georg-Johann Lay <avr@gjlay.de>
4197 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
4199 * config/avr/avr.md ("insv"): New insn expander.
4200 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
4201 "*insv.not.io", "*insv.reg"): New insns.
4203 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
4206 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
4207 to nonimmediate_operand from memory_operand for the operand that is to
4208 be forced to memory by the expander. Lose the constraints.
4210 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
4212 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
4213 EH return when delayed branches are disabled.
4215 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
4217 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
4218 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
4220 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
4221 Simplify MODE_V1DF and MODE_V2SF handling.
4222 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
4223 Simplify MODE_SF handling.
4225 2011-06-04 Jan Hubicka <jh@suse.cz>
4227 PR tree-optimization/48893
4228 PR tree-optimization/49091
4229 PR tree-optimization/49179
4230 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
4233 2011-06-04 Jan Hubicka <jh@suse.cz>
4236 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4239 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4241 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4243 2011-06-04 Jakub Jelinek <jakub@redhat.com>
4246 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4247 to be strictly smaller than 1 << shiftcount.
4249 2011-06-04 Jan Hubicka <jh@suse.cz>
4251 PR tree-optimize/48929
4252 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4255 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
4258 * calls.c (emit_call_1): Prefer the __builtin declaration of
4261 2011-06-03 Diego Novillo <dnovillo@google.com>
4263 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4264 (lto_input_tree_pointers): Likewise.
4265 * lto-streamer-out.c (pack_value_fields): Likewise.
4266 (lto_output_tree_pointers): Likewise.
4267 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4268 and OPTIMIZATION_NODE.
4270 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4272 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4273 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4274 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4275 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4276 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4277 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4278 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4279 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4280 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4281 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4282 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4283 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4284 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4285 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4286 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4287 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4288 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4289 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4290 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4291 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4292 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4293 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4294 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4295 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4296 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4297 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4298 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4299 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4300 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4301 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4302 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4303 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4304 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4305 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4306 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4307 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4308 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4309 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4310 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4311 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4312 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4313 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4314 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4315 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4316 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4317 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4318 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4319 * system.h (MD_UNWIND_SUPPORT): Poison.
4320 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4321 * doc/tm.texi: Regenerate.
4322 * unwind-dw2.c: Include md-unwind-support.h instead of
4324 * config/ia64/unwind-ia64.c: Likewise.
4325 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4327 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
4329 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4331 2011-06-03 Richard Henderson <rth@redhat.com>
4332 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4334 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4335 (sigill_hdlr): Correct insn, insn size.
4336 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4338 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4340 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4342 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4343 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4344 * config/mips/t-iris: Remove.
4345 * config/mips/t-irix6: New file.
4346 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4348 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4350 * Makefile.in (LIB2ADDEHDEP): Remove.
4351 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4352 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4353 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4354 * config/t-darwin (LIB2ADDEHDEP): Remove.
4355 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4356 * config/t-linux (LIB2ADDEHDEP): Remove.
4358 2011-06-03 Diego Novillo <dnovillo@google.com>
4360 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4361 (lto_register_var_decl_in_symtab): Likewise.
4362 (lto_register_function_decl_in_symtab): Likewise.
4363 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4364 logic to uniquify_nodes.
4366 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4368 * config/alpha/t-osf5: Remove.
4369 * config/alpha/t-osf-pthread: Remove.
4370 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4371 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4373 2011-06-03 Julian Brown <julian@codesourcery.com>
4375 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4376 (strongarm1110): Use strongarm tuning.
4377 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4378 * config/arm/arm.c (arm_strongarm_tune): New.
4379 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4380 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4381 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4382 setting, using previous defaults or 1 for Cortex-A5.
4383 (arm_option_override): Set max_insns_skipped from current tuning.
4385 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4387 * doc/install.texi (Options specification): Document --with-specs.
4389 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4391 * config/arm/neon.md (orndi3_neon): Actually split it.
4393 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4395 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4396 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4398 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4401 * target.def (delay_sched2, delay_vartrack): New.
4402 * doc/tm.texi.in: Update.
4403 * doc/tm.texi: Rebuild.
4404 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4405 * var-tracking.c (gate_handle_var_tracking): Likewise.
4406 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4407 (bfin_flag_var_tracking): Drop.
4408 (output_file_start): Don't save and override flag_var_tracking.
4409 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4410 (bfin_reorg): Test original variables.
4411 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4412 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4413 (ia64_flag_var_tracking): Drop.
4414 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4415 (ia64_file_start): Don't save and override flag_var_tracking.
4416 (ia64_override_options_after_change): Ditto
4417 flag_schedule_insns_after_reload.
4418 (ia64_reorg): Test original variables.
4419 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4420 (picochip_flag_var_tracking): Drop.
4421 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4422 (picochip_option_override): Don't save and override
4423 flag_schedule_insns_after_reload.
4424 (picochip_asm_file_start): Ditto flag_var_tracking.
4425 (picochip_reorg): Test original variables.
4426 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4427 (TARGET_DELAY_VARTRACK): Define.
4428 (spu_var_tracking): New.
4429 (spu_machine_dependent_reorg): Call it.
4430 (asm_file_start): Don't save and override flag_var_tracking.
4432 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4435 * config/sh/predicates.md (general_movsrc_operand): Return 0
4436 for memory and memory subreg of which address is an invalid
4437 indexed address for QI and HImode.
4438 (general_movdst_operand): Likewise.
4440 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4442 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4443 edges only, when there is a non-local label in the function.
4444 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4446 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4448 * config/i386/constraints.md (Y3): New register constraint.
4449 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4450 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4451 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4452 *sse2_interleave_lowv2df.
4454 2011-06-02 Julian Brown <julian@codesourcery.com>
4456 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4457 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4458 (arm_cortex_a5_tune): New.
4460 2011-06-02 Julian Brown <julian@codesourcery.com>
4462 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4463 * config/arm/arm.c (arm_default_branch_cost): New.
4464 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4465 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4466 (arm_fa726_tune): Set branch_cost field using
4467 arm_default_branch_cost.
4468 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4469 current_tune structure.
4470 * dojump.c (tm_p.h): Include file.
4472 2011-06-02 Julian Brown <julian@codesourcery.com>
4474 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4476 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4477 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4478 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4480 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4481 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4482 (arm_fa726te_tune): Add prefer_constant_pool setting.
4483 (arm_v6t2_tune, arm_cortex_tune): New.
4484 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4485 prefer_constant_pool setting.
4487 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4489 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4491 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4492 (*movdf_internal) <case 6,7,8>: Ditto.
4494 * config/i386/constraints.md (Y4): New register constraint.
4495 * config/i386/sse.md (vec_set<mode>_0): Merge with
4496 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4497 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4498 *vec_extractv2di_1_sse.
4499 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4500 and *vec_concatv2di_rex64_sse.
4502 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4505 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4506 of cgraph_local_info for null before attempting to use it.
4508 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4510 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4511 (current_function_dynamic_alloc_count): Delete.
4512 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4513 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4514 (expand_builtin_update_setjmp_buf): Remove dead code.
4515 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4516 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4518 * function.c (instantiate_virtual_regs): Likewise.
4519 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4520 for a block with a single abnormal incoming edge.
4521 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4522 (SETJMP_VIA_SAVE_AREA): Delete.
4523 * config/sparc/sparc-protos.h (load_got_register): Declare.
4524 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4525 (load_got_register): Make global.
4526 (sparc_frame_pointer_required): Add 'static'.
4527 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4528 (sparc_builtin_setjmp_frame_value): New function.
4529 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4530 (save_stack_nonlocal): New expander.
4531 (restore_stack_nonlocal): Likewise.
4532 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4533 (nonlocal_goto_internal): New insn.
4534 (goto_handler_and_restore): Delete.
4535 (builtin_setjmp_setup): Likewise.
4536 (do_builtin_setjmp_setup): Likewise.
4538 (builtin_setjmp_receiver): New expander.
4540 2011-06-01 David Li <davidxl@google.com>
4543 * tree-pretty-print.c (dump_function_header): Format cleanup.
4545 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4548 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4549 needed when original operands are used for msw_skip comparison.
4551 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4554 * var-tracking.c (add_uses, add_stores): Don't call
4555 cselib_subst_to_values on ENTRY_VALUE.
4557 2011-06-01 Diego Novillo <dnovillo@google.com>
4559 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4560 output_record_start with LTO_null instead of output_zero.
4561 (lto_output_ts_binfo_tree_pointers): Likewise.
4562 (lto_output_tree): Likewise.
4563 (output_eh_try_list): Likewise.
4564 (output_eh_region): Likewise.
4565 (output_eh_lp): Likewise.
4566 (output_eh_regions): Likewise.
4567 (output_bb): Likewise.
4568 (output_function): Likewise.
4569 (output_unreferenced_globals): Likewise.
4570 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4571 instead of NUM_TREE_CODES.
4572 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4573 (lto_output_int_in_range): Change << to >> when shifting VAL.
4575 2011-06-01 Diego Novillo <dnovillo@google.com>
4577 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4578 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4580 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4583 * optabs.h (valid_multiword_target_p): Declare.
4584 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4585 doing multi-word operations.
4586 * optabs.c (expand_binop): Likewise.
4587 (expand_doubleword_bswap): Likewise.
4588 (expand_absneg_bit): Likewise.
4589 (expand_unop): Likewise.
4590 (expand_copysign_bit): Likewise.
4591 (multiword_target_p): New function.
4593 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4595 PR rtl-optimization/48830
4596 PR rtl-optimization/48808
4597 PR rtl-optimization/48792
4598 * reload.c (push_reload): Check contains_reg_of_mode.
4599 * reload1.c (strip_paradoxical_subreg): New function.
4600 (gen_reload_chain_without_interm_reg_p): Use it to handle
4601 paradoxical subregs.
4602 (emit_output_reload_insns, gen_reload): Likewise.
4604 2011-06-01 David Li <davidxl@google.com>
4606 * predict.c : Change pass name
4609 * tree-profile.c: Ditto.
4612 2011-06-01 David Li <davidxl@google.com>
4614 * tree-pretty-print.c (dump_function_header): New function.
4615 * final.c (rest_of_clean_state): Use header dumper.
4616 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4617 * passes.c (pass_init_dump_file): Use header dumper.
4619 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4621 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4622 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4623 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4625 (mem_loc_descriptor): Use them.
4627 * var-tracking.c (create_entry_value): New function.
4628 (vt_add_function_parameter): Use it.
4630 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4632 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4633 Include <signal.h>, <ucontext.h>.
4634 (sigill_caught): Define.
4635 (sigill_hdlr): New function.
4636 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4637 insns can be executed.
4638 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
4639 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4641 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4643 * config/t-slibgcc-darwin: Move to ...
4644 * config/t-slibgcc-dummy: ... this. Clarify comments.
4645 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4646 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4647 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
4648 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
4649 Remove i386/t-crtstuff from tmake_file.
4650 (i[34567]86-*-solaris2*): Remove t-svr4,
4651 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4653 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4654 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4655 sparc/t-crtfm from tmake_file.
4656 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4657 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4659 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4660 * config/i386/t-nwld (SHLIB_LINK): Remove.
4661 * config/i386/t-rtems-i386: Rename to ...
4662 * config/i386/t-rtems: ... this.
4663 ($(T)crti.o, $(T)crtn.o): Remove.
4664 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4665 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4666 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4667 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4668 EXTRA_MULTILIB_PARTS): Remove.
4669 * config/sparc/t-sol2-64: Likewise.
4670 * config/sparc/t-sol2: Remove.
4671 * config/sparc/t-crtin: Remove.
4672 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4673 * config/i386/gmon-sol2.c: Remove.
4674 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4675 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4676 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4677 * config/i386/sol2-gc1.asm: Remove.
4678 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4679 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4680 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4681 * config/t-slibgcc-sld: Remove.
4683 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4685 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4686 base_type_for_mode with op_mode instead of mode.
4688 2011-06-01 Paul Brook <paul@cpodesourcery.com>
4690 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4692 * config/arm/arm-tune.md: Regenerate.
4693 * config/arm/arm-tables.opt: Regenerate.
4694 * config/arm/arm.c (FL_DIV): Rename...
4695 (FL_THUMB_DIV): ... to this.
4696 (FL_ARM_DIV): Define.
4697 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4698 (arm_arch_hwdiv): Remove.
4699 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4700 (arm_issue_rate): Add cortexr5.
4701 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4702 __ARM_ARCH_EXT_IDIV__.
4703 (TARGET_IDIV): Define.
4704 (arm_arch_hwdiv): Remove.
4705 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4706 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4707 (divsi3, udivsi3): New patterns.
4708 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4709 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4711 2011-06-01 Martin Jambor <mjambor@suse.cz>
4713 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4714 * ipa-utils.c (searchc): Set scc_no.
4716 2011-06-01 Martin Jambor <mjambor@suse.cz>
4718 * ipa-utils.c (searchc_env): New field allow_overwritable.
4719 (searchc): do not ignore edges to overwritable nodes if indicated
4720 by env->allow_overwritable.
4721 (ipa_reduced_postorder): Set env.allow_overwritable.
4723 2011-06-01 Richard Guenther <rguenther@suse.de>
4725 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4727 * lto-streamer.c (lto_record_common_node): Take node pointer,
4728 do not register types.
4729 (lto_preload_common_nodes): Explicitly skip preloading nodes
4730 that differ between frontends.
4732 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4734 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4737 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4739 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4740 parameter value for dump. Dump cost on outermost call only.
4741 (rs6000_memory_move_cost): Dump cost on outermost call only.
4743 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4745 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4746 DW_OP_GNU_convert ops.
4748 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4749 cselib_preserve_constants.
4750 (cselib_lookup_1): If cselib_preserve_constants,
4751 a new VALUE is being created for REG and there is a VALUE for the
4752 same register in wider mode, add another loc with lowpart SUBREG of
4754 (cselib_subst_to_values): Handle ENTRY_VALUE.
4755 * var-tracking.c (replace_expr_with_values): Return NULL for
4757 * dwarf2out.c (convert_descriptor_to_signed): New function.
4758 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4759 instead of two shifts.
4760 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4761 the right mode if needed.
4762 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4763 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4764 convert_descriptor_to_signed.
4765 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4766 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4769 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4771 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4773 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4774 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4775 (SWI248x): New mode iterator, rename from X87MODEI.
4776 (X87MODEI): Remove mode iterator.
4777 (X87MODEI12): Ditto.
4778 (SSEMODEI24): Ditto.
4780 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4782 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4783 * doc/invoke.texi: Document max-vartrack-expr-depth.
4784 * var-tracking.c (EXPR_DEPTH): New.
4785 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4787 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4789 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4790 * config/i386/sse.md: Add n to negated FMA pattern names.
4792 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4794 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4796 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4798 * gengtype-state.c (read_state_params_structs): Initialize previous.
4800 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4802 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4803 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4805 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4807 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4808 registers. Penalize F*r->o alternative to prevent partial memory
4809 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4810 CONST_DOUBLE immediates when optimizing function for size. Do not move
4811 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4812 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4813 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4814 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4816 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4818 (fp_register_operand splitters): Use fp_register_operand
4819 constraint. Do not use FP_REG_P in insn condition.
4820 (any_fp_register_operand splitters): Use any_fp_register_operand
4821 constraint. Do not use ANY_FP_REG_P in insn condition.
4823 2011-05-31 Jan Hubicka <jh@suse.cz>
4825 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4826 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4827 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4828 (lto_output_edge): Use output_enum and var_len_unsigned.
4829 (lto_output_varpool_node): Likewise.
4830 (input_overwrite_node): Do not take resolution parameter;
4831 extract it from a bitpack.
4832 (input_node): Do not read resolution; use input_enum and
4834 (input_varpool_node): Likewise.
4835 (input_edge): Likewise.
4836 (input_cgraph_1): Likewise.
4838 2011-05-31 Richard Guenther <rguenther@suse.de>
4840 * gimple.c (gimple_register_canonical_type): Do not register
4841 any types via gimple_register_type.
4843 2011-05-31 Jan Hubicka <jh@suse.cz>
4845 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4848 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4850 PR rtl-optimization/49235
4851 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4852 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4854 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
4856 PR tree-optimization/49093
4857 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4860 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4863 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4864 for concrete functions containing the code of cloned functions.
4866 2011-05-31 Richard Guenther <rguenther@suse.de>
4868 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4870 (forward_propagate_into_comparison_1): ... this.
4871 (forward_propagate_comparison): Rename to ...
4872 (forward_propagate_into_comparison): ... this. Split out
4873 real forward propagation code to ...
4874 (forward_propagate_comparison): ... this.
4875 (forward_propagate_into_gimple_cond): Remove looping.
4876 (forward_propagate_into_cond): Likewise.
4877 (simplify_not_neg_expr): Return whether we have done something.
4878 (simplify_gimple_switch): Likewise.
4879 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4880 (ssa_forward_propagate_and_combine): ... this. Re-structure
4881 to do a forward forward-propagation walk on BBs and a backward
4882 stmt combining walk on BBs. Consistently re-scan changed statements.
4883 (pass_forwprop): Adjust.
4885 2011-05-30 Ian Lance Taylor <iant@google.com>
4887 * godump.c (go_format_type): Correct length of name added to
4888 obstack for anonymous field.
4890 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4893 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4894 part of the second operand is 0.
4896 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4898 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4899 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4900 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4901 (*movdf_internal_rex64): Do not penalize F->r alternative.
4902 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4903 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4904 when optimizing function for size. Do not move CONST_DOUBLEs
4905 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4906 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4907 SUBREGs. Do not check for MEM_P operands in the insn condition,
4908 check for ANY_FP_REGNO_P instead.
4909 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4910 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4912 * config/i386/i386.c (ix86_option_override_internal): Do not
4913 set TARGET_INTEGER_DFMODE_MOVES here.
4915 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4918 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4920 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4922 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4923 DW_TAG_rvalue_reference_type even for
4924 -gdwarf-4 -fno-debug-types-section.
4926 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4928 PR tree-optimization/46728
4929 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4930 (build_and_insert_binop): New.
4931 (gimple_expand_builtin_pow): Reorder args for
4932 build_and_insert_call; use build_and_insert_binop; add more
4933 optimizations for fractional exponents.
4935 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4940 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4942 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4944 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4945 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4946 TS_BASE instead of TS_COMMON.
4947 * varasm.c (assemble_name): Remove assert.
4949 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4951 * config.gcc: Keep obselete list sorted.
4953 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4954 Eric Botcazou <ebotcazou@adacore.com>
4956 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4957 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4958 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4959 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4960 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4962 2011-05-30 Richard Guenther <rguenther@suse.de>
4964 * gimple.c (gimple_types_compatible_p_1): Compare record
4965 and union type members properly.
4967 2011-05-30 Richard Guenther <rguenther@suse.de>
4969 PR tree-optimization/49210
4970 * ipa-split.c (split_function): Care for the case where the call
4971 result is not trivially convertible to the result holding variable.
4973 2011-05-30 Richard Guenther <rguenther@suse.de>
4975 PR tree-optimization/49218
4976 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4979 2011-05-30 Richard Guenther <rguenther@suse.de>
4981 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4982 New function split out from ...
4983 (forward_propagate_into_gimple_cond): ... here. Adjust.
4984 (forward_propagate_into_cond): Likewise.
4985 (forward_propagate_comparison): Also propagate into
4986 comparisons on assignment RHS. Change return value to
4987 behave similar to forward_propagate_into_cond.
4988 (tree_ssa_forward_propagate_single_use_vars): Handle
4989 strict-overflow warnings properly for forward_propagate_comparison.
4991 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4993 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4995 * configure: Regenerate.
4997 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4999 PR tree-optimization/49199
5000 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
5001 non-reduction operands are either defined in the loop or by induction.
5003 2011-05-29 Xinliang David Li <davidxl@google.com>
5005 * opts-global.c (handle_common_deferred_options): Handle new options.
5006 * passes.c (register_one_dump_file): Call register_pass_name.
5007 (execute_one_pass): Check explicit enable/disable flag.
5008 (passr_hash): New function.
5010 (register_pass_name): Ditto.
5011 (get_pass_by_name): Ditto.
5014 (enable_pass): Ditto.
5015 (disable_pass): Ditto.
5016 (is_pass_explicitly_enabled_or_disabled): Ditto.
5018 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
5020 * config/i386/i386.md (*movoi_internal_avx): Use
5021 standard_sse_constant_opcode for alternative 0.
5022 (*movti_internal_sse): Ditto.
5023 (*movti_internal_rex64): Use standard_sse_constant_opcode for
5025 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
5027 (*movsi_internal): Ditto.
5028 (*movdi_internal): Ditto. Add ssecvt type moves.
5030 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
5033 * rtlanal.c (simplify_subreg_regno): Adjust comment.
5035 2011-05-29 Jakub Jelinek <jakub@redhat.com>
5037 PR rtl-optimization/49095
5038 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
5039 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
5041 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5044 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
5045 recurse_p argument. Only follow register copies if it is set,
5046 and prevent mips_find_pic_call_symbol from recursing.
5047 (mips_find_pic_call_symbol): Add a recurse_p argument.
5048 Pass it to mips_pic_call_symbol_from_set.
5049 (mips_annotate_pic_calls): Update accordingly.
5051 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5053 * emit-rtl.c (try_split): Use a loop to search for
5054 NOTE_INSN_CALL_ARG_LOCATIONs.
5056 2011-05-29 Richard Guenther <rguenther@suse.de>
5058 PR tree-optimization/49217
5059 * ipa-pure-const.c (propagate_pure_const): Fix typos.
5061 2011-05-28 Jan Hubicka <jh@suse.cz>
5063 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
5065 (string_slot_free): Remove
5066 (create_output_block): Initialize obstack.
5067 (destroy_output_block): Free obstack.
5068 (lto_string_index): Add PERSISTENT parameter; do not duplicate
5069 the string unless it needs to be added into the hash.
5070 (lto_output_string_with_length): Add persistent attribute;
5071 handle NULL strings.
5072 (lto_output_string): Add PERSISTENT parameter.
5073 (output_string_cst, output_identifier): Simplify.
5074 (lto_output_location_bitpack): Update.
5075 (lto_output_builtin_tree): Update.
5076 * lto-streamer.h (struct output_block): Add obstack.
5077 (lto_output_string, lto_output_string_with_length): Remove
5078 declarations; functions are static now.
5080 2011-05-28 Jan Hubicka <jh@suse.cz>
5082 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
5083 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
5084 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
5085 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
5086 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
5087 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
5088 unpack_ts_decl_with_vis_value_fields,
5089 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
5090 lto_get_builtin_tree): Use enum and variable length i/o.
5091 * basic-block.h (profile_status_d): Add PROFILE_LAST.
5092 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
5094 (bp_pack_enum, bp_unpack_enum): New macros.
5096 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5098 * genrecog.c: Remove redundant forward declarations.
5100 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5102 * config.gcc: Deprecate mips*-*-openbsd*.
5104 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5107 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
5110 2011-05-27 Andrew Pinski <pinskia@gmail.com>
5113 * gengtype.c (vec_prefix_type): New function.
5114 (note_def_vec): Use vec_prefix_type and change the length
5115 attribute to be based on the prefix.
5116 * vec.c: Include coretypes.h before vec.h.
5117 (struct vec_prefix): Remove.
5118 (vec_gc_p_reserve): Change the offsetof to sizeof.
5119 (vec_gc_p_reserve_exact): Likewise.
5120 (vec_heap_p_reserve): Likewise.
5121 (vec_heap_p_reserve_exact): Likewise.
5122 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
5123 (vec_stack_p_reserve): Change the offsetof to sizeof.
5124 (vec_stack_p_reserve_exact): Likewise.
5125 * vec.h (struct vec_prefix): New struct definition.
5126 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
5127 (VEC_T_GTY(T,B)): Likewise.
5128 (DEF_VEC_FUNC_P(T)): Use prefix field.
5129 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
5130 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
5132 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5134 PR tree-optimization/46728
5135 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5136 (powi_as_mults): Add gimple_set_location.
5137 (build_and_insert_call): New.
5138 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
5139 0.5, 0.25, 0.75, 1./3., or 1./6.
5141 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
5143 * doc/contrib.texi: Update copyright years.
5144 (Contributors): Add Zdenek Sojka.
5146 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5148 * c-decl.c (c_push_function_context): Copy the current statement
5150 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
5151 (finish_struct): Call building_stmt_list_p instead of checking
5153 * c-parser.c (c_parser_postfix_expression): Likewise.
5154 * c-typeck.c (c_end_compound_stmt): Likewise.
5155 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
5156 * tree-iterator.c (stmt_list_cache): Change to a VEC.
5157 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
5158 (free_stmt_list): Likewise.
5159 * tree.h (struct tree_statement_list): Include typed_tree instead
5161 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
5162 as TS_TYPED instead of TS_COMMON.
5164 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5165 Uros Bizjak <ubizjak@gmail.com>
5167 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5168 (HAVE_AS_IX86_TLSGDPTL): Define.
5169 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
5170 (HAVE_AS_IX86_TLSLDMPLT): Define.
5171 * configure: Regenerate.
5172 * config.in: Regenerate.
5173 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
5174 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
5175 TARGET_SUN_TLS, use @tlsgdplt or @plt.
5176 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
5177 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
5179 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
5181 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5183 * sched-int.h (struct _haifa_deps_insn_data): New members cond
5185 (INSN_COND, INSN_REVERSE_COND): New macros.
5186 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
5188 (sched_get_condition_with_rev): Cache the results, and look them up
5190 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
5191 are clobbered by the current insn.
5192 * target.def (exposed_pipline): New sched data hook.
5193 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
5194 * doc/tm.texi: Regenerate.
5196 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5198 PR tree-optimization/49170
5199 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
5202 2011-05-27 Richard Guenther <rguenther@suse.de>
5205 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
5208 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5210 * haifa-sched.c (sched_scan_info): Remove.
5211 (schedule_block): Call sched_extend_luids rather than sched_init_luids
5213 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
5215 (sched_scan): Remove.
5216 (sched_extend_luids): Renamed from luids_extend_insn and no longer
5217 static. All callers changed.
5218 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
5219 static. All callers changed.
5220 (sched_init_luids): Remove all arguments except the first. All
5221 callers changed. Don't use sched_scan.
5222 (haifa_init_h_i_d): Likewise.
5223 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
5224 manually rather than using sched_init_luids. Likewise with
5225 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
5226 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
5227 rather than sched_init_luids with NULL args.
5228 * sel-sched-ir.c (new_insns): Remove variable.
5229 (sched_scan): New static function, previously in haifa-sched.c. Remove
5230 all arguments but the first two; all callers changed.
5231 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
5232 rather than sched_init_luids.
5233 (sel_init_bbs): Remove second argument. All callers changed.
5234 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5235 with NULL arguments.
5236 (create_insn_rtx_from_pattern): Likewise.
5237 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5238 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5239 (sched_init_insn_luid, sched_extend_luids): Declare.
5240 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5243 2011-05-27 Richard Guenther <rguenther@suse.de>
5246 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5247 A CMP B ? (T) true : (T) false for non-integral types T again.
5249 2011-05-27 Jan Hubicka <jh@suse.cz>
5251 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5252 so 0 means NULL string.
5253 (lto_output_string_with_length): ... here.
5254 (lto_output_string, output_string_cst, output_identifier): Update
5255 handling of NULL strings.
5256 (lto_output_location_bitpack): New function.
5257 (lto_output_location): Use it.
5258 (lto_output_tree_ref): Use output_record_start.
5259 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5261 * lto-streamer-in.c (string_for_index): Break out from ...; offset
5263 (input_string_internal): ... here;
5264 (input_string_cst, input_identifier, lto_input_string): Update handling
5266 (lto_input_location_bitpack): New function
5267 (lto_input_location): Use it.
5268 (unpack_ts_type_common_value_fields): Pack align & alias in var len
5270 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5271 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5272 (bp_pack_value): Sanity check the value range.
5273 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5275 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5278 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
5280 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5281 call_arg_location instructions down the floor.
5283 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
5285 PR rtl-optimization/49154
5286 * ira.c (setup_pressure_classes): Process class without sublcasses
5287 as a candidate for pressure classes.
5289 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
5291 PR rtl-optimization/48575
5292 * genrecog.c (position_type): New enum.
5293 (position): New structure.
5294 (decision): Use position structure instead of a string.
5295 (root_pos, peep2_insn_pos_list): New variables.
5296 (next_position, compare_positions): New functions.
5297 (new_decision): Use position structures instead of strings.
5298 (maybe_both_true): Likewise.
5299 (change_state): Likewise.
5300 (write_tree): Likewise.
5301 (make_insn_sequence): Likewise.
5303 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5305 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5306 TS_BASE instead of TS_COMMON.
5307 (find_decls_types_r): Check for TS_TYPED structure before looking at
5309 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5311 (BLOCK_CHAIN): Use new chain field.
5313 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
5315 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5316 moves expensive on Power7 also.
5318 2011-05-26 Richard Guenther <rguenther@suse.de>
5320 * fold-const.c (fold_unary_loc): Remove bogus code.
5322 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5324 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5326 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5327 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5328 TS_BASE instead of TS_COMMON.
5329 * varasm.c (assemble_name): Remove assert.
5331 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5333 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5335 * libgcc-std.ver: Delete file.
5337 2011-05-26 Richard Guenther <rguenther@suse.de>
5339 PR tree-optimization/48702
5340 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5341 only when we know the base address is within bounds.
5342 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5343 assume the base address of TARGET_MEM_REFs is in bounds.
5345 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5348 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5349 declaration in TARGET_SOLARIS.
5351 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
5353 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5354 The instruction is then expanded explicitly.
5355 (supported_compare): Callable instruction.
5356 (compare): Likewise.
5358 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5361 * gimplify.c (shortcut_cond_r): Don't special case
5362 COND_EXPRs if they have void type on one of their arms.
5364 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5366 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5367 to reduce duplication, and to achieve a slightly more logical order
5370 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5372 PR tree-optimization/49161
5373 * tree-vrp.c (struct case_info): New type.
5374 (compare_case_labels): Sort case_info structs instead of
5375 trees, and not primarily by CASE_LABEL uids but by
5376 label_for_block indexes.
5377 (find_switch_asserts): Put case labels into struct case_info
5378 array instead of TREE_VEC, adjust sorting, compare label_for_block
5379 values instead of CASE_LABELs.
5381 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5383 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5384 ("orndi3_neon"): Likewise.
5385 ("bic<mode>3_neon"): Likewise.
5387 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
5389 PR tree-optimization/49038
5390 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5391 Ensure at least one epilogue iteration if required by data
5393 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5394 to mark loops that require peeling for gaps.
5395 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5396 (vect_get_known_peeling_cost): Take peeling for gaps into
5398 (vect_transform_loop): Generate epilogue if required by data
5400 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5401 loop as requiring an epilogue if there are gaps in the end of
5404 2011-05-25 Ian Lance Taylor <iant@google.com>
5406 * godump.c (go_format_type): Output the first field with a usable
5409 2011-05-25 Ian Lance Taylor <iant@google.com>
5411 * godump.c (go_format_type): Check for invalid type names, pointer
5412 target types, and struct field types.
5414 2011-05-25 Jason Merrill <jason@redhat.com>
5416 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5418 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
5420 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5422 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5424 * config/i386/i386.md (*movqi_extv_1)): Put back
5425 "register_operand" check in "type" calculation.
5426 (*movqi_extzv_2): Likewise.
5428 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5430 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5432 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5435 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5436 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5437 __divxc3, __divtc3): Wrap definitions in #ifndef.
5439 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5442 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5443 "register_operand" check and replace q_regs_operand with
5444 QIreg_operand in "type" calculation.
5445 (*movqi_extv_1): Likewise.
5446 (*movqi_extzv_2_rex64): Likewise.
5447 (*movqi_extzv_2): Likewise.
5449 * config/i386/predicates.md (QIreg_operand): New.
5451 2011-05-25 Richard Guenther <rguenther@suse.de>
5453 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5454 type-based offset disambiguation, streamline MEM_REF and
5455 TARGET_MEM_REF handling.
5457 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5459 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5460 (bdesc_special_args): Add pause intrinsic.
5462 * config/i386/i386.md (UNSPEC_PAUSE): New.
5465 * config/i386/ia32intrin.h (__pause): Likewise.
5467 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5470 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5472 PR tree-optimization/46728
5473 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5474 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5476 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5478 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5479 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5480 instead of TS_COMMON.
5482 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5484 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5485 LIBGCC2_GNU_PREFIX is defined.
5487 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5488 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5489 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5490 __clz_tab): Define using __N.
5491 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5492 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5493 * target.def (libfunc_gnu_prefix): New hook.
5494 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5495 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5496 * doc/tm.texi: Regenerate.
5497 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5498 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5500 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5501 (init_optabs): Likewise for the bswap libfuncs.
5502 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5504 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5505 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5506 * libgcc-std.ver: Remove.
5507 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5508 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5510 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5511 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5512 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5513 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5514 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5515 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5516 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5517 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5518 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5519 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5521 2011-05-25 Jan Hubicka <jh@suse.cz>
5523 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5524 (lto_output_tree): Use output_record_start.
5525 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5526 (lto_get_pickled_tree): Use input_record_start.
5527 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5528 (lto_value_range_error): New function.
5529 * lto-streamer.h (lto_value_range_error): Declare.
5530 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5531 (lto_output_enum, lto_input_enum): New macros.
5533 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5535 * common.opt (flag_stack_usage_info): New variable.
5536 (-Wstack-usage): New option.
5537 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5538 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5539 <OPT_fstack_usage>: Likewise.
5540 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5541 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5542 of flag_stack_usage.
5543 (emit_library_call_value_1): Likewise.
5544 * explow.c (allocate_dynamic_stack_space): Likewise.
5545 * function.c (instantiate_virtual_regs ): Likewise.
5546 (prepare_function_start): Likewise.
5547 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5548 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5549 * config/arm/arm.c (arm_expand_prologue): Likewise.
5550 (thumb1_expand_prologue): Likewise.
5551 * config/avr/avr.c (expand_prologue): Likewise.
5552 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5553 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5554 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5555 * config/mips/mips.c (mips_expand_prologue): Likewise.
5556 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5557 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5558 * config/s390/s390.c (s390_emit_prologue): Likewise.
5559 * config/sh/sh.c (sh_expand_prologue): Likewise.
5560 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5561 * config/spu/spu.c (spu_expand_prologue): Likewise.
5563 2011-05-25 Richard Guenther <rguenther@suse.de>
5565 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5566 (gimple_canonical_types_compatible_p): Likewise.
5568 2011-05-25 Jan Hubicka <jh@suse.cz>
5571 * ipa.c (function_and_variable_visibility): Only add to same
5572 comdat group list if DECL_ONE_ONLY.
5574 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
5576 PR rtl-optimization/49014
5577 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5579 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5582 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5584 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5586 PR rtl-optimization/48757
5587 * ira-build.c (loop_with_eh_edge_p): Rename to
5588 loop_with_complex_edge_p, check edges on complexity, make function
5590 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5593 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5595 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5596 force flag_ira_share_save_slots to 0.
5598 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5600 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5601 (vt_initialize): Set PROLOGUE_BB unconditionally.
5602 Add block comment about CFA_BASE_RTX machinery.
5603 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5604 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5606 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5609 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5610 parsing of syntax error in ObjC instance variable lists. In
5611 particular, avoid an infinite loop if there is a stray ']'.
5612 Updated error message.
5614 2011-05-24 Ian Lance Taylor <iant@google.com>
5616 * godump.c (go_define): Don't accept a string immediately after
5619 2011-05-24 Ian Lance Taylor <iant@google.com>
5621 * godump.c (struct godump_container): Add invalid_hash field.
5622 (go_format_type): Return false if type is found in invalid_hash.
5623 (go_output_typedef): Add invalid type to invalid_hash.
5624 (go_finish): Create and delete invalid_hash.
5626 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5628 PR tree-optimization/46728
5629 * tree-ssa-math-opts.c (powi_table): New.
5630 (powi_lookup_cost): New.
5632 (powi_as_mults_1): New.
5633 (powi_as_mults): New.
5634 (gimple_expand_builtin_powi): New.
5635 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5636 (gate_cse_sincos): Remove sincos/cexp restriction.
5638 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5641 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5643 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5644 * mips-tdump.c: Likewise.
5646 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5649 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5650 add -mno-XXX. Handle FMA.
5652 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5654 PR rtl-optimization/48633
5655 * ira-build.c (loop_with_eh_edge_p): New function.
5656 (mark_loops_for_removal): Use it.
5658 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5660 PR rtl-optimization/48971
5661 * ira.c (setup_pressure_classes): Don't check register move cost
5662 for classes with one registers. Don't add pressure class if there
5663 is a pressure class with the same available hard registers.
5664 Check contains_reg_of_mode. Fix a typo in collecting
5665 temp_hard_regset. Ignore hard registers not belonging to a class.
5667 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
5670 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5672 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5673 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5675 PR gcov-profile/48845
5676 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5678 2011-05-24 Richard Guenther <rguenther@suse.de>
5680 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5681 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5682 (gimple_types_compatible_p_1): Adjust.
5683 (iterative_hash_canonical_type): Do not bother about complete vs.
5685 (gimple_canonical_types_compatible_p): Likewise.
5687 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5689 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5691 2011-05-24 Richard Guenther <rguenther@suse.de>
5694 * gimple.c (gimple_register_canonical_type): Revert
5696 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5697 does not for a tree for the case where it matters. Cache
5698 pointer-type alias-sets.
5700 2011-05-24 Joseph Myers <joseph@codesourcery.com>
5702 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5703 (OBJS): Remove options.o, opts-common.o and prefix.o.
5704 (OBJS-libcommon-target): New.
5705 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5706 (BACKEND): Include libcommon-target.a.
5707 (MOSTLYCLEANFILES): Include libcommon-target.a.
5708 (libcommon-target.a): New.
5709 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5712 2011-05-23 Joseph Myers <joseph@codesourcery.com>
5714 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5715 parts of output shared with the driver.
5716 * optc-gen.awk: Don't generate parts of output not shared with the
5718 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5719 * doc/options.texi (SourcerInclude): Mention options-save.c.
5720 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5721 (OBJS): Add options-save.o.
5722 (options-save.c, options-save.o): New.
5723 (options.o): Update dependencies.
5724 (gcc-options.o): Remove.
5725 (mostlyclean): Remove options-save.c.
5727 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5730 * dbxout.c: Include cgraph.h.
5731 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5732 and without value expr, return NULL if no varpool node exists for
5733 it or if it is not needed.
5734 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5737 * c-decl.c (start_decl): Convert expr to void_type_node.
5739 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5741 PR rtl-optimization/48826
5742 * emit-rtl.c (try_split): When splitting a call that is followed
5743 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5745 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5747 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5748 parameters passed in memory prefer using DECL_INCOMING_RTL over
5749 the pseudos it will be copied into.
5751 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5754 * config/i386/i386.c (ix86_option_override_internal): Save the
5755 initial options after checking vzeroupper.
5757 2011-05-23 David Li <davidxl@google.com>
5759 PR tree-optimization/48988
5760 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5761 Initialize has_valid_pred for each pred chain.
5763 2011-05-23 Richard Guenther <rguenther@suse.de>
5765 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5766 (iterative_hash_gimple_type): Always hash type names.
5768 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5770 * c-typeck.c (build_function_call_vec): Tweak call to
5771 check_function_arguments.
5773 2011-05-23 Richard Guenther <rguenther@suse.de>
5775 PR tree-optimization/49115
5776 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5777 is not necessarily carried out, do not claim it kills the ref.
5778 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5780 2011-05-23 Richard Guenther <rguenther@suse.de>
5783 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5784 what pointer types we accept for folding.
5786 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5788 * gthr-gnat.c: Remove.
5789 * gthr-gnat.h: Remove.
5790 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5791 * config/t-freebsd (LIB2ADDEH): Likewise.
5792 * config/t-linux (LIB2ADDEH): Likewise.
5793 * config/t-sol2 (LIB2ADDEH): Likewise.
5794 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5795 * configure.ac (target_thread_file): Remove gnat handling.
5796 * configure: Regenerate.
5797 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5799 2011-05-23 Tristan Gingold <gingold@adacore.com>
5800 Eric Botcazou <ebotcazou@adacore.com>
5802 * gcov.c (create_file_names): If no object directory is specified,
5803 keep the directory of the file.
5805 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5807 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5808 * configure: Regenerate.
5810 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5813 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5814 failed and the comparison has a single bit signed type, use
5815 constm1_rtx instead of const1_rtx for true value.
5816 (do_store_flag): If ops->type is single bit signed type, disable
5817 signel bit test optimization and pass -1 instead of 1 as last
5818 parameter to emit_store_flag_force.
5820 2011-05-23 Tom de Vries <tom@codesourcery.com>
5823 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5825 (infer_loop_bounds_from_undefined): Use new function.
5827 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5829 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5830 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5831 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5833 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5835 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5837 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5838 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5841 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5843 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5845 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5847 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5848 UNSPEC_MOVE_PIC pattern.
5850 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5852 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5853 (sparc-*-rtems*): Likewise.
5854 (sparc64-*-elf*): Likewise.
5855 (sparc64-*-rtems*): Likewise.
5856 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5857 * config/sparc/t-crtin: New file.
5858 * config/sparc/t-sol2 (crti.o): Delete rule.
5860 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5861 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5862 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5863 (ENDFILE_SPEC): Add crtn.o.
5865 2011-05-22 Tom de Vries <tom@codesourcery.com>
5868 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5869 CODE_CONTAINS_STRUCT (TS_COMMON).
5871 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5874 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5875 only after deciding which mode to use.
5877 2011-05-22 Tom de Vries <tom@codesourcery.com>
5880 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5881 for call to get_shiftadd_cost.
5883 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5886 * config/i386/cpuid.h (bit_MMXEXT): New define.
5888 2011-05-22 Nick Clifton <nickc@redhat.com>
5890 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5891 initialisation of non-existant args[2] element. Use args[] array
5892 not arg[] array to pass arguments to build_function_type_list.
5894 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5896 PR tree-optimization/49087
5897 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5899 2011-05-21 Jason Merrill <jason@redhat.com>
5902 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5903 static storage duration.
5905 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5907 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5910 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5912 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5913 false if there are call-saved registers here...
5914 (sparc_can_use_return_insn_p): ...but here instead.
5915 (save_or_restore_regs): Fix thinko.
5916 (sparc_expand_prologue): Use current_function_is_leaf.
5917 (sparc_frame_pointer_required): Likewise.
5919 2011-05-21 Nick Clifton <nickc@redhat.com>
5922 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5924 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5926 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5927 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5929 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5931 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5932 * optc-gen.awk: Move common code to opt-read.awk.
5933 * opth-gen.awk: Likewise.
5934 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5936 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5938 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5940 2011-05-20 Tom de Vries <tom@codesourcery.com>
5943 * tree-ssa-loop-ivopts.c: Include expmed.h.
5944 (get_shiftadd_cost): New function.
5945 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5947 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5950 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5951 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5953 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5955 * Makefile.in: Update comment referring to $(OBJS-common).
5957 2011-05-20 Ian Lance Taylor <iant@google.com>
5959 * godump.c (go_output_typedef): Put enum constants in the macro
5960 hash table to avoid duplicate Go const definitions.
5962 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5964 * Makefile.in (LIBDEPS): Add libcommon.a.
5966 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5967 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5968 pretty-print.o and version.o.
5969 (OBJS-libcommon): New.
5970 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5971 (BACKEND): Add libcommon.a.
5972 (MOSTLYCLEANFILES): Likewise.
5974 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5975 (cpp$(exeext)): Likewise.
5976 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5977 pretty-print.o and input.o.
5978 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5979 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5981 (mips-tfile): Don't explicitly use version.o.
5982 (mips-tdump): Likewise.
5983 (gcov.o): Depend on $(DIAGNOSTIC_H).
5984 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5985 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5986 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5987 * gcov-dump.c: Include intl.h and diagnostic.h.
5988 (main): Initialize diagnostics.
5989 * gcov.c: Include diagnostic.h.
5991 (main): Initialize diagnostics.
5992 * lto-wrapper.c: Include diagnostic.h.
5993 (main): Initialize diagnostics.
5995 2011-05-20 Michael Matz <matz@suse.de>
5997 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5999 2011-05-20 Michael Matz <matz@suse.de>
6000 Richard Guenther <rguenther@suse.de>
6002 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
6003 use lto_streamer_cache_append directly instead of returning a VEC.
6004 (preload_common_node): Remove.
6005 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
6007 (lto_streamer_cache_create): Call lto_preload_common_nodes.
6009 2011-05-20 Richard Guenther <rguenther@suse.de>
6011 PR tree-optimization/49079
6012 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
6013 MEM_REFs correctly for the trailing array access detection.
6014 Special case constants the same way as decls for overall size
6017 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
6019 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
6022 2011-05-20 Jakub Jelinek <jakub@redhat.com>
6024 PR tree-optimization/49073
6025 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
6026 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6027 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
6029 2011-05-20 Richard Guenther <rguenther@suse.de>
6032 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
6033 of pointer types the same way the middle-end does.
6035 2011-05-20 Richard Guenther <rguenther@suse.de>
6037 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
6038 or pointer-to chains. Delay all fixup to uniquify_nodes.
6040 2011-05-19 Quentin Neill <quentin.neill@amd.com>
6042 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
6043 (fma4_fmaddsub): Likewise
6045 2011-05-19 Jan Hubicka <jh@suse.cz>
6047 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
6048 (GIMPLE_TYPE_PAIR_SIZE): New macro.
6049 (type_pair_cache): New static var.
6050 (lookup_type_pair): Use fixed sized custom hash; make inline.
6051 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
6052 calls of lookup_type_pair.
6053 (print_gimple_types_stats): Remove cache stats.
6054 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
6057 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
6059 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
6060 when TARGET_RDRND is active.
6061 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
6062 Generate dummy SImode target register when target is NULL.
6064 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6066 * config/arm/arm-fpus.def: New.
6067 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
6069 * config/arm/arm-tables.opt: Regenerate.
6070 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
6071 (arm_option_override): Don't decode FPU name to string here.
6072 * config/arm/arm.opt (mfpu=): Use Enum.
6073 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
6074 Update dependencies.
6076 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6078 * collect2.c: Include diagnostic.h.
6079 (fatal_perror, fatal, error, fancy_abort): Remove.
6080 (main): Set progname. Call xmalloc_set_program_name and
6081 diagnostic_initialize.
6082 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
6083 scan_libraries, resolve_lib_name): Call fatal_error instead of
6084 fatal and fatal_perror.
6085 * collect2.h (error, fatal, fatal_perror): Don't declare.
6086 * tlink.c: Include diagnostic-core.h.
6087 (recompile_files): Call fatal_error instead of fatal_perror.
6088 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
6089 pretty-print.o and input.o.
6090 (collect2.o, tlink.o): Update dependencies.
6092 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6094 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
6096 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6099 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
6100 COMDAT group syntax, both SPARC and x86 variants.
6101 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
6102 * configure: Regenerate.
6103 * config/sol2.h (TARGET_SOLARIS): Define.
6104 (PUSHSECTION_FORMAT): Remove.
6105 (SECTION_NAME_FORMAT): Define.
6106 * config/sol2.c: Include hashtab.h.
6107 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
6108 expansion, using SECTION_NAME_FORMAT.
6109 (solaris_comdat_htab): New variable.
6110 (struct comdat_entry): Define.
6111 (comdat_hash): New function.
6112 (comdat_eq): New function.
6113 (solaris_elf_asm_comdat_section): New function.
6114 (solaris_define_comdat_signature): New function.
6115 (solaris_code_end): New function.
6116 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
6117 (solaris_code_end): Declare.
6118 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
6119 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
6121 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
6122 Remove ATTRIBUTE_UNUSED.
6123 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
6124 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
6125 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
6126 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
6127 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
6128 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
6129 (PUSHSECTION_FORMAT): Remove.
6130 (SECTION_NAME_FORMAT): Redefine.
6132 2011-05-19 Kai Tietz <ktietz@redhat.com>
6134 * tree-cfg.c (verify_gimple_assign_binary): Barf on
6135 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
6136 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
6138 2011-05-19 Anatoly Sokolov <aesok@post.ru>
6139 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6141 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
6143 2011-05-19 Richard Guenther <rguenther@suse.de>
6146 * tree-object-size.c (addr_object_size): If the pointed-to
6147 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
6149 2011-05-19 Richard Guenther <rguenther@suse.de>
6151 * gimple.c (gimple_types_compatible_p_1): Compare names of
6152 the types themselves.
6153 (iterative_hash_gimple_type): And hash them that way.
6154 (gimple_register_type_1): If we register a main variant properly
6155 initialize the leader to ourselves.
6157 2011-05-19 Tom de Vries <tom@codesourcery.com>
6160 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
6161 get_loop_invariant_expr_id.
6162 (get_loop_invariant_expr_id): Use get_expr_id.
6163 (parm_decl_cost): New function.
6164 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
6165 Improve bound cost estimation. Use different inv_expr_id for elim and
6168 2011-05-19 Tom de Vries <tom@codesourcery.com>
6171 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
6172 cost_base.cost == 0.
6174 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
6177 * config/i386/sse.md
6178 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
6181 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6183 PR tree-optimization/49039
6184 * tree-vrp.c (extract_range_from_binary_expr): For
6185 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
6186 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
6188 2011-05-18 Tom de Vries <tom@codesourcery.com>
6191 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
6193 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
6195 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
6196 (*tls_global_dynamic_64): Ditto.
6197 (*tls_local_dynamic_base_32_gnu): Ditto.
6198 (*tls_local_dynamic_base_64): Ditto.
6199 (tls_initial_exec_64_sun): Ditto.
6201 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
6203 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
6204 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6206 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6207 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6208 * config/bfin/bfin.c (bfin_cpus): Add bf592.
6209 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6210 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
6211 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
6212 * config/bfin/elf.h (LIB_SPEC): Add bf592.
6214 2011-05-18 Joseph Myers <joseph@codesourcery.com>
6216 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
6217 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
6218 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
6219 target_thread_pointer, arm_structure_size_boundary, struct
6220 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
6221 struct abi_name, arm_all_abis): Remove.
6222 (arm_option_override) Don't process most enumerated option values here.
6223 Don't process target_fpe_name here. Work with integer not string for
6224 structure size boundary; use separate diagnostics for each case.
6225 * config/arm/arm.h (enum float_abi_type, enum
6226 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
6228 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
6229 arm_structure_size_boundary): Remove.
6230 * config/arm/arm.opt (mabi=): Use Enum and Init.
6231 (arm_abi_type): New Enum and EnumValue entries.
6232 (mfloat-abi=): Use Enum and Init.
6233 (float_abi_type): New Enum and EnumValue entries.
6234 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
6235 (mfp16-format=): Use Enum and Init.
6236 (arm_fp16_format_type): New Enum and EnumValue entries.
6237 (mstructure-size-boundary=): Use UInteger and Init.
6238 (mtp=): Use Enum and Init.
6239 (arm_tp_type): New Enum and EnumValue entries.
6241 2011-05-18 Richard Guenther <rguenther@suse.de>
6243 PR tree-optimization/49018
6244 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6245 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6246 gimple_has_side_effects.
6248 2011-05-18 Richard Guenther <rguenther@suse.de>
6250 * gimple.c (gimple_register_type_1): New function, split out from ...
6251 (gimple_register_type): ... here. Avoid infinite recursion.
6253 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6255 PR tree-optimization/41881
6256 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6257 reduction_chains along with a macro for its access.
6258 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6259 (destroy_loop_vec_info): Free reduction chains.
6260 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6261 (vect_is_slp_reduction): New function.
6262 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6263 (vect_create_epilog_for_reduction): Support SLP reduction chains.
6264 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6265 definition types for reduction chains.
6266 (vect_supported_load_permutation_p): Don't allow permutations for
6268 (vect_analyze_slp_instance): Support reduction chains.
6269 (vect_analyze_slp): Try to build SLP instance from reduction chains.
6270 (vect_get_constant_vectors): Handle reduction chains.
6271 (vect_schedule_slp_instance): Mark the first statement of the
6272 reduction chain as reduction.
6274 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6276 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6277 names for group elements access.
6278 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6279 reduction chains as well. Remove data reference and interleaving
6280 related words from the fields names.
6281 * tree-vect-loop.c (vect_transform_loop): Use new names for group
6283 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6284 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6285 vect_update_interleaving_chain, vect_same_range_drs,
6286 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6287 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6288 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6289 vect_analyze_group_access, vect_analyze_data_ref_access,
6290 vect_create_data_ref_ptr, vect_transform_strided_load,
6291 vect_record_strided_load_vectors): Likewise.
6292 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6293 vect_model_load_cost, vectorizable_store, vectorizable_load,
6294 vect_remove_stores, new_stmt_vec_info): Likewise.
6295 * tree-vect-slp.c (vect_build_slp_tree,
6296 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6298 2011-05-18 Richard Guenther <rguenther@suse.de>
6301 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6302 operand verification.
6303 (verify_gimple_assign_binary): Likewise.
6304 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6305 to non-1-precision BOOLEAN_TYPEs.
6307 2011-05-18 Tom de Vries <tom@codesourcery.com>
6310 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6312 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6314 PR tree-optimization/49000
6315 * tree-ssa.c (execute_update_addresses_taken): Call
6316 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6317 be rewritten and decl has been marked for renaming, reset
6320 2011-05-17 Joseph Myers <joseph@codesourcery.com>
6322 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6323 enum_opts_set when testing if attributes have set -mfpmath=.
6325 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6327 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6329 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6331 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6333 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6334 id.transform_lang_insert_block with NULL.
6336 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6338 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6339 (output_fp_compare): Change args 3 and 4 to bool.
6340 (ix86_expand_call): Change arg 6 to bool.
6341 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6342 (ix86_attr_length_vex_default): Change arg 3 to bool.
6343 * config/i386/i386.md: Update all uses.
6344 * config/i386/i386.c: Ditto.
6345 (ix86_flags_dependent): Change return type to bool.
6347 2011-05-17 Richard Guenther <rguenther@suse.de>
6349 * gimple.c (type_hash_pair_compare): Fix comparison.
6351 2011-05-17 Richard Guenther <rguenther@suse.de>
6353 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6354 case some more, fix final hash value of the non-singleton case.
6356 2011-05-17 Richard Guenther <rguenther@suse.de>
6360 2011-05-16 Richard Guenther <rguenther@suse.de>
6362 * gimple.c (gimple_types_compatible_p_1): Use names of the
6363 type itself, not its main variant.
6364 (iterative_hash_gimple_type): Likewise.
6366 2011-05-17 Richard Guenther <rguenther@suse.de>
6368 * gimple.c (gimple_register_canonical_type): Use the main-variant
6369 leader for computing the canonical type.
6371 2011-05-17 Nick Clifton <nickc@redhat.com>
6373 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6376 * config/rx/rx.md: Add peephole to remove redundant extensions
6378 (bitset_in_memory): Use rx_restricted_mem_operand.
6379 (bitinvert_in_memory): Likewise.
6380 (bitclr_in_memory): Likewise.
6382 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6383 Nick Clifton <nickc@redhat.com>
6385 * config/rx/rx.md: Add peepholes to match a register move followed
6386 by a comparison of the moved register. Replace these with an
6387 addition of zero that does both actions in one instruction.
6389 2011-05-17 Jakub Jelinek <jakub@redhat.com>
6392 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6393 predicate to allow CONST_INT.
6394 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6396 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6398 * opts-common.c (opt_enum_arg_to_value): New.
6399 * opts.h (opt_enum_arg_to_value): Declare.
6400 * config/i386/i386.opt (fpmath): Remove.
6401 (mfpmath=): Use Enum, Init and Save.
6402 (fpmath_unit): New Enum and EnumValue entries.
6403 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6404 name for function fpmath state.
6405 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6406 * config/i386/i386.c: Include diagnostic.h.
6407 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6408 (ix86_target_string): Take enum fpmath_unit value instead of string.
6409 (ix86_debug_options): Update call to ix86_target_string.
6410 (ix86_option_override_internal): Don't process fpmath strings here.
6411 (x86_function_specific_save, ix86_function_specific_restore):
6412 Don't handle fpmath state specially.
6413 (ix86_function_specific_print): Pass fpmath state to
6414 ix86_target_string instead of printing in this function.
6415 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6416 Handle enum attributes.
6417 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6418 (ix86_valid_target_attribute_tree): Update option_strings
6419 handling. Handle fpmath as enum option.
6420 (ix86_can_inline_p): Update field names for function fpmath state.
6421 (ix86_expand_builtin): Update call to ix86_target_string.
6422 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6423 (ix86_fpmath): Remove.
6424 * config/i386/t-i386 (i386.o): Update dependencies.
6426 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6428 PR preprocessor/48677
6429 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6430 from decoded_options[0], not from itself.
6432 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
6434 * config/i386/constraints.md (z): New constraint.
6435 * config/i386/i386.c (c): New mode attribute.
6436 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6437 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6438 constraint for operand 0.
6439 (*call_vzeroupper): Ditto.
6440 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6441 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6442 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6443 Use "lzm" constraint for operand 0.
6444 (*call_pop_vzeroupper): Ditto.
6445 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6446 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6447 constraint for operand 0.
6448 (*sibcall_vzeroupper): Ditto.
6449 (*sibcall_rex64_ms_sysv): Ditto.
6450 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6451 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6452 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6453 (*sibcall_pop_vzeroupper): Ditto.
6454 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6455 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6456 mode iterator. Use "<c>zm" constraint for operand 1.
6457 (*call_value_vzeroupper): Ditto.
6458 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
6460 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6461 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6462 *call_value_pop_1. Use "lzm" constraint for operand 1.
6463 (*call_value_pop_vzeroupper): Ditto.
6464 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6465 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6466 mode iterator. Use "Uz" constraint for operand 1.
6467 (*sibcall_value_vzeroupper): Ditto.
6468 (*sibcall_value_rex64_ms_sysv): Ditto.
6469 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6470 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6471 constraint for operand 1.
6472 (*sibcall_value_pop_vzeroupper): Ditto.
6473 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6474 and "z" constraint for operand 2.
6475 (*tls_global_dynamic_32_gnu): Ditto.
6476 (*tls_local_dynamic_base_32_gnu): Ditto.
6477 (*tls_local_dynamic_base_64): Ditto.
6478 (*tls_local_dynamic_32_once): Ditto.
6479 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6481 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6483 2011-05-16 Richard Guenther <rguenther@suse.de>
6485 * gimple.c (gimple_types_compatible_p_1): Use names of the
6486 type itself, not its main variant.
6487 (iterative_hash_gimple_type): Likewise.
6489 2011-05-16 Richard Guenther <rguenther@suse.de>
6491 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6492 always visit pointer target and function result and argument types.
6494 2011-05-16 Jason Merrill <jason@redhat.com>
6497 * tree-inline.c (copy_statement_list): Put back recursion.
6499 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6503 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6504 * config/avr/avr.md ("*ior<mode>qi.byte0",
6505 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6507 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6510 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6511 register is needed for a function argument.
6513 2011-05-16 Richard Guenther <rguenther@suse.de>
6515 * gimple.c (struct type_hash_pair): New type.
6516 (type_hash_pair_compare): New function.
6517 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6519 2011-05-16 Revital Eres <revital.eres@linaro.org>
6521 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6523 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6525 * config/i386/i386.md (floating point move splitters): Fix
6526 usage of standard_80387_constant_p.
6527 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6529 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6531 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6533 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6535 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6536 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6537 (tree_ssa_lim_finalize): Likewise.
6539 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
6541 * config/i386/constraint.md (Yd, Yx): New register constraints.
6542 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6543 Yd conditional register constraint.
6544 (*movtf_internal): Use standard_sse_constant_opcode.
6545 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6546 Yx conditional register constraint.
6547 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6548 Yd conditional register constraint. Use standard_sse_constant_p to
6549 check for valid SSE constants and call standard_sse_constant_opcode to
6551 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6552 constants and call standard_sse_constant_opcode to output SSE insn.
6553 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6554 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6555 optimize_size is set.
6556 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6558 2011-05-14 Tobias Burnus <burnus@net-b.de>
6560 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6562 2011-05-13 Martin Jambor <mjambor@suse.cz>
6564 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6565 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6566 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6567 (evaluate_conditions_for_ipcp_clone): Removed.
6568 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6569 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6570 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6572 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6574 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6575 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6576 lieu of MAY_HAVE_DEBUG_STMTS.
6577 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6578 debug statements if !MAY_HAVE_DEBUG_STMTS.
6580 2011-05-13 Martin Thuresson <martint@google.com>
6582 PR gcov-profile/47793
6583 * libgcov.c (gcov_exit): Support relative profile paths.
6584 * doc/invoke.texi (-fprofile-dir): Update for above change.
6586 2011-05-13 Richard Guenther <rguenther@suse.de>
6588 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6589 type-pair caching, do not compare hashes.
6591 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6594 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6595 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6597 2011-05-13 Kai Tietz <ktietz@redhat.com>
6599 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6600 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6601 compatible type for TRUTH_NOT_EXPR.
6603 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6605 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
6606 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6607 can_create_pseudo_p ().
6609 2011-05-13 Richard Guenther <rguenther@suse.de>
6612 * gimple.c (iterative_hash_gimple_type): Revert change in
6613 pointer target and function result and argument hashing.
6615 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
6617 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6618 (*movxf_internal_nointeger): Ditto.
6619 (*movdf_internal_rex64): Ditto.
6620 (*movdf_internal): Ditto.
6621 (*movdf_internal_nointeger): Ditto.
6622 (*movsf_internal): Ditto.
6623 (sincos splitters): Use can_create_pseudo ().
6625 2011-05-13 Joseph Myers <joseph@codesourcery.com>
6627 * config/i386/i386-opts.h: New.
6628 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6629 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6630 ix86_section_threshold): Remove.
6631 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6632 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6634 (ix86_option_override_internal): Don't decode strings for options
6635 other than -march=, -mtune= and -mfpmath=. Don't allow for
6636 __attribute__ uses in remaining diagnostics for options with
6637 string arguments. Don't check for integer arguments being negative.
6638 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6639 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
6640 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6641 ix86_branch_cost, ix86_section_threshold): Remove.
6642 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6644 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6646 (masm=): Use Enum and Init.
6647 (asm_dialect): New Enum and EnumValue entries.
6648 (mbranch-cost=): Use UInteger.
6649 (mlarge-data-threshold=): Use UInteger and Init.
6650 (mcmodel=): Use Enum and Init.
6651 (cmodel): New Enum and EnumValue entries.
6652 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6653 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6654 mregparm=): Use UInteger.
6655 (mstringop-strategy=): Use Enum and Init.
6656 (stringop_alg): New Enum and EnumValue entries.
6657 (mtls-dialect=): Use Enum and Init.
6658 (tls_dialect): New Enum and EnumValue entries.
6659 (mabi=): Use Enum and Init.
6660 (calling_abi): New Enum and EnumValue entries.
6661 (mveclibabi=): Use Enum and Init.
6662 (ix86_veclibabi): New Enum and EnumValue entries.
6664 2011-05-13 Nick Clifton <nickc@redhat.com>
6666 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6667 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
6669 2011-05-13 Kai Tietz <ktietz@redhat.com>
6672 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6673 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6674 (gimple_boolify): Check for cast for boolean_type_node instead for
6677 2011-05-13 Richard Guenther <rguenther@suse.de>
6679 PR tree-optimization/48172
6680 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6681 multiplying by number of iterations for equal step.
6682 (vect_create_cond_for_alias_checks): Likewise.
6684 2011-05-13 Andreas Schwab <schwab@redhat.com>
6686 * configure.ac: Use AS_HELP_STRING throughout.
6687 * configure: Regenerate.
6689 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6691 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
6692 (ix86_emit_restore_regs_using_mov): Likewise.
6693 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6695 2011-05-12 Anatoly Sokolov <aesok@post.ru>
6697 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6698 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6699 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6700 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6701 RTX_OK_FOR_OLO10_P): ...here.
6702 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6705 2011-05-12 Kai Tietz <ktietz@redhat.com>
6707 * gimplify.c (gimple_boolify): Re-boolify expression
6708 arguments even if expression type is of kind BOOLEAN_TYPE.
6709 (gimplify_boolean_expr): Removed.
6710 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6711 and XOR. Additional take care that we keep expression's type.
6712 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6713 of TRUTH_AND|OR|XOR_EXPR.
6715 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6717 PR tree-optimization/48975
6718 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6719 on all bbs here and free and clear ifc_bbs at the end.
6721 2011-05-12 Richard Guenther <rguenther@suse.de>
6723 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6724 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6725 until after simple checks.
6726 (gimple_types_compatible_p): Likewise.
6727 (iterative_hash_gimple_type): Always hash pointer targets
6728 and function return and argument types.
6729 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6730 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6731 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6732 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6733 completely in the simple compare section.
6734 (gimple_register_canonical_type): Query the cache again after
6737 2011-05-12 Richard Guenther <rguenther@suse.de>
6739 PR tree-optimization/48172
6740 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6741 the number of iterations from the segment size calculation.
6742 (vect_create_cond_for_alias_checks): Adjust.
6744 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6747 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6748 if validate_subreg fails.
6750 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
6752 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6753 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6756 2011-05-12 DJ Delorie <dj@redhat.com>
6758 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6759 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6760 created builtin into rx_builtins array.
6761 (rx_builtin_decl): New function.
6762 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
6764 2011-05-12 DJ Delorie <dj@redhat.com>
6765 Nick Clifton <nickc@redhat.com>
6767 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6768 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6769 (rx_is_legitimate_address): Add pre-decrement and post-increment
6770 addressing in HImode and QImode. Fix test for out of range
6772 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6773 (rx_align_for_label): Test label before extracting its usage count.
6774 (rx_adjust_insn_lengths): Fix selection of insn codes.
6775 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6777 2011-05-11 Jason Merrill <jason@redhat.com>
6779 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6781 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6783 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6784 reindent the subsequent block.
6786 2011-05-11 Satoru Takabayashi <satorux@google.com>
6787 Paul Pluzhnikov <ppluzhnikov@google.com>
6789 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6790 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6791 * config.in: Add LINKER_HASH_STYLE.
6792 * configure.ac: Add --with-linker-hash-style.
6793 * configure: Regenerate.
6795 2011-05-11 Richard Guenther <rguenther@suse.de>
6798 * gimple.c (iterative_hash_canonical_type): Fix typo.
6800 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6802 * config/i386/i386.c (legitimize_tls_address)
6803 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6804 expanders directly for TARGET_GNU2_TLS. Determine pic and
6805 __tls_get_addr symbol reference here. Update call to
6806 gen_tls_global_dynamic_{32,64} for added arguments.
6807 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6808 expanders directly for TARGET_GNU2_TLS. Determine
6809 __tls_get_addr symbol reference here. Update call to
6810 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6811 unique UNSPEC REG_EQUIV to libcall block.
6812 (ix86_tls_get_addr): Declare static.
6813 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6814 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6815 Do not determine pic and __tls_get_addr symbol reference here. Do not
6816 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6817 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6818 (tls_global_dynamic_64): Add operand 2. Do not determine
6819 __tls_get_addr symbol reference here. Do not call
6820 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6821 (tls_local_dynamic_base64): Ditto for operand 1.
6823 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6825 * function.c (expand_function_start): Initialize stack_check_probe_note
6826 only if the generic stack checking mechanism is used.
6828 2011-05-11 Richard Guenther <rguenther@suse.de>
6830 PR tree-optimization/15256
6831 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6832 (A & B) | C, combine (A op CST1) op CST2.
6833 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6834 visit assigns that have uses.
6836 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6838 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6839 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6840 (unpack_ts_type_common_value_fields): ...this. Update comment.
6841 (unpack_value_fields): Adjust for renaming.
6842 (lto_input_ts_type_tree_pointers): Split into...
6843 (lto_input_ts_type_common_tree_pointer): ...this and...
6844 (lto_input_ts_type_non_common_tree_pointers): ...this.
6845 (lto_input_tree_pointers): Adjust for above split.
6846 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6847 (pack_ts_type_common_value_fields): ...this. Update comment.
6848 (lto_output_ts_type_tree_pointers): Split into...
6849 (lto_output_ts_type_common_tree_pointers): ...this and...
6850 (lto_output_ts_type_non_common_tree_pointers): ...this.
6851 (lto_output_tree_pointers): Adjust for above split.
6852 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6853 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6854 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6855 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6857 (struct tree_type): Split into...
6858 (struct tree_type_common: ...this and...
6859 (struct tree_type_with_lang_specific): ...this and...
6860 (struct tree_type_non_common): ...this. Adjust accessor macros
6862 (TYPE_VALUES_RAW): Define.
6863 (union tree_node): Update for above changes.
6864 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6866 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6867 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6868 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6869 * treestructu.def (TS_TYPE): Remove.
6870 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6873 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6876 * tree-ssa.c (reset_debug_uses): New function.
6877 * tree-flow.h (reset_debug_uses): New prototype.
6878 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6879 * tree-loop-distribution.c (generate_loops_for_partition): Call
6880 reset_debug_uses on the stmts that will be removed. Keep around
6881 all debug stmts, don't count them as bits in partition bitmap.
6882 (generate_builtin): Don't count debug stmts or labels as bits in
6885 2011-05-11 Richard Guenther <rguenther@suse.de>
6887 * gimple.c (gimple_type_hash_1): Merge with ...
6888 (gimple_type_hash): ... this.
6889 (gtc_visit): Remove mode parameter and simplify accordingly.
6890 (gimple_types_compatible_p_1): Likewise.
6891 (gimple_types_compatible_p): Likewise.
6892 (iterative_hash_gimple_type): Likewise.
6894 (gimple_type_eq): Adjust.
6896 2011-05-11 Revital Eres <revital.eres@linaro.org>
6898 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6899 enters the branch create an anti edge in the opposite direction
6900 to prevent the creation of reg-moves.
6901 * modulo-sched.c: Adjust comment to reflect the fact we are
6902 scheduling closing branch.
6903 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6904 (stage_count): New field in struct partial_schedule.
6905 (calculate_stage_count): New function.
6906 (normalize_sched_times): Rename to reset_sched_times and handle
6907 incrementing the sched time of the nodes by a constant value
6908 passed as parameter.
6909 (duplicate_insns_of_cycles): Skip closing branch.
6910 (sms_schedule_by_order): Schedule closing branch.
6911 (ps_insn_find_column): Handle closing branch.
6912 (sms_schedule): Call reset_sched_times and adjust the code to
6913 support scheduling of the closing branch.
6914 (ps_insert_empty_row): Update calls to normalize_sched_times
6915 and rotate_partial_schedule functions.
6917 2011-05-11 Richard Guenther <rguenther@suse.de>
6920 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6922 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6924 * opts.c (finish_options): Move warning settings from process_options.
6925 * toplev.c (process_options): Move warning settings to finish_options.
6927 2011-05-11 Richard Guenther <rguenther@suse.de>
6929 PR tree-optimization/18041
6930 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6931 (simplify_bitwise_binary): ... this. Handle operand conversions
6932 by applying them to the result instead.
6933 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6935 2011-05-11 Richard Guenther <rguenther@suse.de>
6937 * gimple.c (gimple_canonical_types_compatible_p): Split out
6938 from gimple_types_compatible_p and friends. Do not recurse
6939 to pointed-to types.
6940 (gimple_canonical_type_eq): Use it.
6941 (iterative_hash_canonical_type): Split out from
6942 iterative_hash_gimple_type and friends. Do not recurse
6943 to pointed-to types.
6944 (gimple_canonical_type_hash): Use it, allocate the hash here.
6946 2011-05-11 Revital Eres <revital.eres@linaro.org>
6948 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6951 2011-05-11 Revital Eres <revital.eres@linaro.org>
6953 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6954 instead of PREV_INSN.
6956 2011-05-11 Revital Eres <revital.eres@linaro.org>
6958 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6959 * loop-doloop.c (doloop_condition_get): Likewise.
6960 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6962 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6964 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6966 * tree.def (CASE_LABEL_EXPR): Add an operand.
6967 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6969 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6971 * c-decl.c (c_override_global_bindings_to_false): Remove.
6972 (global_bindings_p): Don't check
6973 c_override_global_bindings_to_false.
6974 * c-tree.h (c_override_global_bindings_to_false): Remove.
6975 * c-typeck.c (composite_type): Don't set
6976 c_override_global_bindings_to_false.
6978 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6980 PR target/48857, 48495
6981 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6983 (VSX_MOVE_MODE): Ditto.
6984 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6985 VSX vector types. Add V2DImode.
6986 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6987 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6988 (MODES_TIEABLE_P): Ditto.
6990 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6991 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6993 (init_cumulative_args): Ditto.
6994 (rs6000_function_arg_boundary): Ditto.
6995 (rs6000_function_arg_advance_1): Ditto.
6996 (rs6000_function_arg): Ditto.
6997 (rs6000_function_ok_for_sibcall): Ditto.
6998 (emit_frame_save): Ditto.
6999 (rs6000_function_value): Ditto.
7000 (rs6000_libcall_value): Ditto.
7002 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7004 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7005 i386/darwin-lib.h to $libgcc_tm_file.
7006 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
7008 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7010 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
7012 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7014 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
7015 * config/rs6000/rs6000-tables.opt: New file (generated).
7016 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
7017 rs6000/rs6000-tables.opt to extra_options.
7018 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
7019 * config/rs6000/rs6000.c (rs6000_select): Remove.
7020 (processor_target_table): Move contents to rs6000-cpus.def.
7021 (darwin_rs6000_override_options): Check
7022 global_options_set.x_rs6000_cpu_index instead of
7023 rs6000_select[1].string.
7024 (rs6000_option_override_internal): Likewise.
7025 (rs6000_handle_option): Don't assert that global structures are in
7026 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
7027 (rs6000_default_cpu): New variable.
7028 (rs6000_file_start): Set it instead of local default_cpu. Check
7029 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
7030 global_options_set.x_rs6000_tune_index instead of rs6000_select.
7031 (rs6000_darwin_file_start): Check rs6000_default_cpu and
7032 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
7033 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
7034 rs6000_select): Remove.
7035 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
7037 (mcpu=, mtune=): Use Var, Init, Enum and Save.
7038 * config/rs6000/t-rs6000
7039 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
7040 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7041 global_options_set.x_rs6000_cpu_index instead of
7042 rs6000_select[1].string.
7043 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7044 global_options_set.x_rs6000_cpu_index instead of
7045 rs6000_select[1].string.
7047 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7049 * config.gcc (libgcc_tm_file): Define instead of including files
7050 from ../../libgcc/config/ in tm_file.
7051 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
7052 * configure: Regenerate.
7053 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
7054 libgcc_tm.h, cs-libgcc_tm.h): New.
7055 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
7056 (clean): Remove libgcc_tm.h.
7057 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
7058 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
7059 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
7061 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
7064 * config/avr/avr.c (avr_ret_register): Return unsigned int
7066 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
7067 it to avr_libcall_value.
7068 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
7070 (avr_expand_binop_builtin): Ditto.
7071 (avr_expand_unop_builtin): Ditto.
7073 2011-05-10 DJ Delorie <dj@redhat.com>
7075 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
7076 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
7077 * config/rx/rx.c (rx_align_for_label): Add label and
7078 uses_threshold parameters. Do not align when the label is not
7080 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
7082 2011-05-10 Richard Guenther <rguenther@suse.de>
7084 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
7085 a series of conversions and apply foldings similar to what
7087 (tree_ssa_forward_propagate_single_use_vars): Call it.
7089 2011-05-10 Jakub Jelinek <jakub@redhat.com>
7091 PR tree-optimization/48611
7092 PR tree-optimization/48794
7093 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
7094 referenced from RESX or EH_DISPATCH arguments.
7097 * dfp.c (decimal_to_decnumber): Handle conversion from
7098 dconst{1,2,m1,half}.
7100 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7102 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
7103 for !flag_prefer_avx128.
7104 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7106 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7108 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
7109 (fold_ternary_loc): Use expr_location_or.
7111 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
7114 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
7115 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
7116 Pmode and mem_mode is not VOIDmode.
7118 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
7120 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
7121 TYPE_QUAL_RESTRICT): Convert to enum.
7123 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7125 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
7126 (const_pow2_1_to_8_operand): Ditto.
7127 (const_pow2_1_to_128_operand): Ditto.
7128 (const_pow2_1_to_32768_operand): Ditto.
7129 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
7130 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
7131 in insn constraint to check integer value of operand 3.
7132 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
7134 (PINSR_MODE): New mode iterator.
7135 (sse2p4_1): New mode attribute.
7136 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
7137 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
7138 iterator. Use const_int_operand instead of
7139 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
7140 exact_log2 in insn constraint to check integer value of operand 3.
7142 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7144 * config/i386/sse.md (blendbits): Remove mode attribute.
7145 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7146 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7147 Check integer value of operand 3 in insn constraint.
7149 2011-05-09 Richard Guenther <rguenther@suse.de>
7151 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
7153 (lto_symtab_merge): Likewise. Do not register types here.
7154 (lto_symtab_merge_decls_2): Likewise.
7155 (lto_symtab_merge_decls_1): Likewise.
7156 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
7157 * gimple.c (enum gtc_mode): Declare.
7158 (gimple_types_compatible_p): Make static.
7160 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7162 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
7163 temporary register to match Pmode.
7165 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7167 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
7168 and *vec_concatv4si_1_avx.
7170 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7172 PR rtl-optimization/48927
7173 * ira-conflicts.c (commutative_constraint_p): Use
7174 recog_data.alternative_enabled_p to disable alternatives where
7175 "enabled" attribute is false.
7176 (get_dup_num): Ditto.
7177 * ira-lives.c (single_reg_class): Ditto.
7178 (ira_implicitly_set_insn_hard_regs): Ditto.
7180 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7182 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
7183 (dataflow_set_preserve_mem_locs): Likewise.
7185 2011-05-09 Philipp Thomas <pth@suse.de>
7187 * config/mep/mep.c (mep_validate_vliw): Syntax description
7188 should not be translated.
7190 2011-05-09 Joseph Myers <joseph@codesourcery.com>
7192 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
7193 * config/mips/mips-tables.opt: New file (generated).
7194 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
7195 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
7196 MIPS_ARCH_OPTION_NATIVE): Define.
7197 * config/mips/mips.c (mips_cpu_info_table): Move contents to
7199 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
7200 mips_parse_cpu): Remove.
7201 (mips_cpu_info_from_opt, mips_default_arch): New.
7202 (mips_handle_option): Don't assert that global structures are in
7203 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
7204 (mips_option_override): Use new variables and functions to set
7205 state of these options. Use strcmp to check for individual CPU names.
7206 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
7208 * config/mips/mips.opt (march=): Use ToLower and Enum.
7209 (mips): Use ToLower, Enum and Var.
7210 (mtune=): Use ToLower and Enum.
7211 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
7213 2011-05-08 Jan Hubicka <jh@suse.cz>
7215 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
7216 Arrange type pairs to be UID ordered.
7217 (gimple_lookup_type_leader): Make inline.
7219 2011-05-09 Nick Clifton <nickc@redhat.com>
7222 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
7226 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
7229 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
7231 * combine.c (simplify_comparison): Abstract out parts into...
7232 (simplify_compare_const): ... new function.
7233 (try_combine): Generalize parallel arithmetic/compare combining
7234 to call simplify_compare_const() and CANONICALIZE_COMPARE().
7236 2011-05-08 Jan Hubicka <jh@suse.cz>
7238 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
7239 (cgraph_create_virtual_clone): Call hooks once virtual clone
7241 * cgraph.h (cgraph_clone_node): Update prototype.
7242 * ipa-cp.c (ipcp_estimate_growth): Use
7243 estimate_ipcp_clone_size_and_time.
7244 * ipa-inline-transform.c (clone_inlined_nodes): Update.
7245 * lto-cgraph.c (input_node): Update.
7246 * ipa-inline.c (recursive_inlining): Update.
7247 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7248 (evaluate_conditions_for_known_args): Break out from ...
7249 (evaluate_conditions_for_edge): ... here.
7250 (evaluate_conditions_for_ipcp_clone): New function.
7251 (inline_node_duplication_hook): Update clone summary based
7253 (estimate_callee_size_and_time): Rename to ...
7254 (estimate_node_size_and_time): take NODE instead of EDGE;
7255 take POSSIBLE_TRUTHS as argument.
7256 (estimate_callee_size_and_time): Update.
7257 (estimate_ipcp_clone_size_and_time): New function.
7258 (do_estimate_edge_time): Update.
7260 2011-05-08 Richard Guenther <rguenther@suse.de>
7264 * expmed.c (expand_shift_1): Compute adjusted constant shift
7267 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7269 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7271 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7273 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7275 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7277 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7279 2011-05-07 Jan Hubicka <jh@suse.cz>
7281 * ipa-inline-transform.c (inline_call): Account when program size
7283 * ipa-inline.c (relative_time_benefit): New function.
7284 (edge_badness): Reorganize to be power 2 based; fix thinko when
7285 computing badness for negative growth; update comments to match
7286 reality; better dumps.
7288 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7290 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7291 type to bool and adjust comment.
7292 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7293 (fold_mathfn_compare): Remove calls to global_bindings_p.
7294 (fold_inf_compare): Likewise.
7295 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7296 * c-tree.h (global_bindings_p): Adjust prototype.
7297 * c-decl.c (global_bindings_p): Return bool and simplify.
7299 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
7301 PR tree-optimization/48837
7302 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7303 when accumulator transformation is performed.
7305 2011-05-06 Jan Hubicka <jh@suse.cz>
7307 * i386.h (ix86_tune_indices): Add
7308 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7309 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7310 * i386.c (initial_ix86_tune_features): Add
7311 X86_SOFTARE_PREFETCHING_BENEFICIAL.
7312 (software_prefetching_beneficial_p): Remove predicate.
7313 (ix86_option_override_internal): Use new macro.
7315 2011-05-06 Jan Hubicka <jh@suse.cz>
7317 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7319 2011-05-06 Jan Hubicka <jh@suse.cz>
7321 * cgraph.c (cgraph_add_thunk): Create real function node instead
7322 of alias node; finalize it and mark needed/reachale; arrange visibility
7323 to be right and add it into the corresponding same comdat group list.
7324 (dump_cgraph_node): Dump thunks.
7325 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7326 cgraph_function_with_gimple_body_p,
7327 cgraph_first_function_with_gimple_body,
7328 cgraph_next_function_with_gimple_body): New functions.
7329 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7331 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7332 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7333 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7334 devirtualization when optimizing.
7335 (verify_cgraph_node): Verify thunks.
7336 (cgraph_analyze_function): Analyze thunks.
7337 (cgraph_mark_functions_to_output): Output thunks only in combination
7338 with function they are assigned to.
7339 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7340 alias into normal node.
7341 (assemble_thunks): New functoin.
7342 (cgraph_expand_function): Use it.
7343 * lto-cgraph.c (lto_output_node): Stream thunks.
7344 (input_overwrite_node): Stream in thunks.
7345 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7346 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7347 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7348 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7349 (inline_analyze_function): Do not care about thunk jump functions.
7350 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7351 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7352 cgraph_function_with_gimple_body_p.
7353 * passes.c (do_per_function_toporder): Use
7354 cgraph_function_with_gimple_body_p.
7355 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7356 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7357 (function_called_by_processed_nodes_p): Likewise.
7359 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7361 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7362 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7364 (mabi=): Replace with separate entries for mabi=altivec,
7365 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7366 mabi=ieeelongdouble and mabi=ibmlongdouble.
7367 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7368 check for -mabi=spe without SPE ABI support here.
7369 (rs6000_handle_option): Replace OPT_mabi_ handling with
7370 OPT_mabi_altivec and OPT_mabi_spe handling.
7372 2011-05-06 Cary Coutant <ccoutant@google.com>
7374 * dwarf2out.c (contains_subprogram_definition): New function.
7375 (should_move_die_to_comdat): Call it.
7377 2011-05-06 Jeff Law <law@redhat.com>
7379 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7380 remove_ctrl_stmt_and_useless_edges.
7381 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7382 (fixup_template_block, thread_single_edge): Likewise.
7383 (mark_threaded_blocks): Use THREAD_TARGET.
7385 2011-05-06 Alan Modra <amodra@gmail.com>
7388 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7389 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7391 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7393 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7394 constraint modifier to "r".
7396 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7398 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7399 fall through for OPT_mcmodel_.
7401 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7403 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7405 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7407 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7410 * config/arm/arm.opt (marm): Document it.
7411 (mthumb): Reject negative variant.
7413 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7416 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7417 Fix typo in "ccvt" variable name.
7419 2011-05-06 Tristan Gingold <gingold@adacore.com>
7422 * config/vms/vms-ar.c (main): Remove cwd variable.
7424 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7427 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7429 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7431 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7432 * gimplify.c (gimplify_switch_expr): Likewise.
7433 * omp-low.c (expand_omp_sections): Likewise.
7434 * tree-eh.c (lower_try_finally_switch): Likewise.
7435 (lower_eh_dispatch): Likewise.
7436 * tree.h (build_case_label): Declare.
7437 * tree.c (build_case_label): Define.
7439 2011-05-05 Jason Merrill <jason@redhat.com>
7442 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7443 (copy_statement_list): Don't recurse.
7444 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7447 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7449 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7450 through from -mfpu= handling.
7451 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7453 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7455 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7458 2011-05-05 Steve Ellcey <sje@cup.hp.com>
7460 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7462 (hppa[12]*-*-hpux11*): Ditto.
7463 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7464 * config/ia64/hpux-unix2003.h: New.
7465 * config/pa/pa-hpux1131.opt: New.
7466 * config/pa/pa-hpux1131.h: New.
7467 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7468 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7469 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7471 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7474 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7475 instead of mode as 3rd argument to recursive call.
7476 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7477 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7479 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7480 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7481 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7482 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7484 2011-05-05 Julian Brown <julian@codesourcery.com>
7486 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7487 parenthesis in D-register case.
7489 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7491 * opt-functions.awk (var_type_struct): Handle Enum options.
7492 * optc-gen.awk: Don't check range of variables of character type.
7493 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7494 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7495 rs6000_sdata_name, rs6000_explicit_options): Remove.
7496 (rs6000_option_override_internal): Check for -malign-power here.
7497 Use global_options_set instead of rs6000_explicit_options.
7498 (rs6000_parse_fpu_option): Remove.
7499 (rs6000_handle_option): Access variables via opts and opts_set
7500 pointers. Use error_at and warning_at. Add fall-through
7501 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7502 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7503 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7504 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7505 here. Don't use rs6000_parse_fpu_option.
7506 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7507 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7508 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7510 (mspe): Use Var and Save.
7511 (mtraceback=): Use Enum and Var.
7512 (rs6000_traceback_type): New Enum and EnumValue entries.
7513 (mfloat-gprs=): Use Enum, Var and Save.
7514 (rs6000_float_gprs): New Enum and EnumValue entries.
7515 (mlong-double-): use Var and Save.
7516 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7517 (malign-): Use Enum and Var.
7518 (rs6000_alignment_flags): New Enum and EnumValue entries.
7520 (fpu_type_t): New Enum and EnumValue entries.
7521 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7522 global_options_set instead of rs6000_explicit_options.
7523 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7524 global_options_set instead of rs6000_explicit_options.
7525 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7526 global_options_set instead of rs6000_explicit_options.
7527 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7528 global_options_set instead of rs6000_explicit_options.
7529 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7530 global_options_set instead of rs6000_explicit_options.
7531 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7532 global_options_set instead of rs6000_explicit_options.
7533 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7535 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7536 global_options_set instead of rs6000_explicit_options.
7537 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7538 (rs6000_cmodel): New Enum and EnumValue entries.
7539 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7540 global_options_set instead of rs6000_explicit_options.
7541 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7542 (mtls-size=): Use Enum and Var.
7543 (rs6000_tls_size): New Enum and EnumValue entries.
7545 2011-05-05 Michael Matz <matz@suse.de>
7547 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7548 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7549 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7550 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7551 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7552 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7553 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7554 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7555 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7556 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7557 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7558 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7559 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7560 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7561 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7562 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7564 2011-05-05 Richard Guenther <rguenther@suse.de>
7566 * expmed.c (expand_variable_shift): Rename to ...
7567 (expand_shift_1): ... this. Take an expanded shift amount.
7568 For rotates recurse directly not building trees for the shift amount.
7569 (expand_variable_shift): Wrap around expand_shift_1.
7570 (expand_shift): Adjust.
7572 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7574 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7576 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7578 * tree.h (get_pending_sizes): Remove prototype.
7579 (put_pending_size): Likewise.
7580 (put_pending_sizes): Likewise.
7581 * stor-layout.c (pending_sizes): Delete.
7582 (get_pending_sizes): Likewise.
7583 (put_pending_size): Likewise.
7584 (put_pending_sizes): Likewise.
7585 (variable_size): Do not call put_pending_size and tidy up.
7586 * function.h (struct function): Remove dont_save_pending_sizes_p.
7587 * lto-streamer-in.c (input_function): Do not stream it.
7588 * lto-streamer-out.c (output_function): Likewise.
7589 * tree-inline.c (initialize_cfun): Do not copy it.
7590 * c-decl.c (store_parm_decls): Do not set it.
7591 * omp-low.c (create_task_copyfn): Likewise.
7592 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7594 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
7596 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7598 (*movdf_internal): Ditto.
7599 (*movdf_internal_nointeger): Ditto.
7600 (*movsf_internal): Ditto.
7602 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7604 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7605 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7606 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7607 (c_variable_size): Remove.
7608 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7609 call put_pending_sizes.
7610 (get_parm_info): Add parameter expr. Use it to set
7611 arg_info->pending_sizes.
7612 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7614 * c-parser.c (c_parser_parms_declarator): Update call to
7615 c_parser_parms_list_declarator.
7616 (c_parser_parms_list_declarator): Take parameter expr. Update
7617 call to push_parm_decl. Update recursive call. Don't call
7618 get_pending_sizes. Update calls to get_parm_info.
7619 (c_parser_objc_method_definition): Update calls to
7620 c_parser_objc_method_decl and objc_start_method_definition.
7621 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
7622 (c_parser_objc_method_decl): Add parameter expr. Update call to
7624 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
7625 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7626 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7628 2011-05-05 Michael Hope <michael.hope@linaro.org>
7631 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7634 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7636 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7637 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7638 (spu_output_mi_thunk): New function.
7640 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7642 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7643 targetm.asm_out.print_operand.
7644 * config/sol2.c: Include target.h.
7646 2011-05-04 Jan Hubicka <jh@suse.cz>
7648 * ipa-inline.c (reset_edge_caches): New function.
7649 (update_caller_keys): Add check_inlinablity_for; do not
7650 reset edge caches; remove now unnecesary loop.
7651 (update_callee_keys): Add comments; reset node_growth_cache of callee.
7652 (update_all_callee_keys): Likewise.
7653 (inline_small_functions): Sanity check cache; update code
7656 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7658 PR rtl-optimization/47612
7659 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7660 as the last insn of the sequence to be moved.
7662 2011-05-04 Tobias Burnus <burnus@net-b.de>
7665 * doc/invoke.texi (Ofast): Document that it
7666 enables Fortran's -fno-protect-parens.
7668 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7670 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7672 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7674 * stor-layout.c (variable_size): Do not issue errors.
7676 2011-05-04 Richard Guenther <rguenther@suse.de>
7678 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7679 for array-ref indices.
7680 (tree_coverage_counter_addr): Likewise.
7681 (build_fn_info_type): Use size_int for index types.
7682 (build_gcov_info): Likewise.
7684 2011-05-04 Richard Guenther <rguenther@suse.de>
7686 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7688 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7689 for constructor indices.
7690 (push_init_level): Likewise.
7692 2011-05-04 Richard Guenther <rguenther@suse.de>
7694 * explow.c (promote_mode): Move variable declarations before code.
7696 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7698 * tree.h (build_function_type_array): Declare.
7699 (build_varargs_function_type_array): Declare.
7700 (build_function_type_vec, build_varargs_function_type_vec): Define.
7701 * tree.c (build_function_type_array_1): New function.
7702 (build_function_type_array): New function.
7703 (build_varargs_function_type_array): New function.
7705 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7707 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7708 before setting STMT_VINFO_TYPE.
7710 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7712 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7713 instead of spu_pass_by_reference.
7715 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7717 * calls.c (emit_library_call_value_1): Invoke
7718 promote_function_mode hook on libcall arguments.
7719 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7720 argument being NULL.
7721 * targhooks.c (default_promote_function_mode): Lisewise.
7722 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7723 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7725 * doc/tm.texi: Document that TYPE argument might be NULL.
7727 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7729 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7731 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7734 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7736 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7738 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7739 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7741 * mips-tfile.c: ... here.
7742 Don't include coretypes.h, tm.h, filenames.h.
7743 (saber_stop): Remove definition and all calls.
7744 [__SABER__]: Remove.
7745 (__LINE__): Remove default.
7746 (Size_t, Ptrdiff_t): Remove definitions.
7747 Replace by size_t, ptrdiff_t.
7748 [!MIPS_DEBUGGING_INFO]: Remove.
7749 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7750 (progname): Add const.
7752 Replace all uses by static.
7753 (ALIGN_SYMTABLE_OFFSET): Remove default.
7754 * mips-tdump.c: Don't include coretypes.h, tm.h.
7755 Remove !MIPS_IS_STAB guard.
7756 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7757 $(TM_H), filenames.h dependencies.
7758 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7760 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7763 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7764 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7766 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7769 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7770 account and save/restore RETS.
7771 (PROFILE_BEFORE_PROLOGUE): Define.
7772 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7773 the push insn to use predecrement.
7775 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7778 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7780 2011-05-04 Nick Clifton <nickc@redhat.com>
7782 * config/mn10300/mn10300.c: Include cfgloop.h.
7784 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7785 Lcc or a FLcc insn into the instruction stream.
7786 (mn10300_block_contains_call): New function. Returns true if the
7787 given basic block contains a CALL insn.
7788 (mn10300_loop_contains_call_insn): New function. Returns true if
7789 the given loop contains a CALL insn.
7790 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7791 to use the SETLB and Lcc or FLcc insns.
7792 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7793 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7794 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7795 disable the SETLB optimization.
7796 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7797 __SETLB__ or __NO_SETLB__.
7798 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7799 (movsf_internal): Handle MDR register.
7800 (cmpsi): Make visible.
7801 (setlb): New pattern.
7803 (FLcc): New pattern.
7805 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7808 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7809 for reg<->xmm moves.
7810 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7811 (vec_concatv2di_rex64_sse): Ditto.
7812 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7813 (*vec_extractv2di_1_rex64): Ditto.
7816 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7818 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7820 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7822 2011-05-04 Richard Guenther <rguenther@suse.de>
7824 * tree.h (int_const_binop): Remove notrunc argument.
7825 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7826 create integer constants that are properly truncated.
7827 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7828 (const_binop): Remove zero notrunc argument to int_const_binop.
7829 (size_binop_loc): Likewise.
7830 (fold_div_compare): Likewise.
7831 (maybe_canonicalize_comparison_1): Likewise.
7832 (fold_comparison): Likewise.
7833 (fold_binary_loc): Likewise.
7834 (multiple_of_p): Likewise.
7835 * expr.c (store_constructor): Likewise.
7836 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7837 (maybe_fold_stmt_addition): Likewise.
7838 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7839 * stor-layout.c (layout_type): Likewise.
7840 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7841 * tree-sra.c (build_ref_for_offset): Likewise.
7842 (build_user_friendly_ref_for_offset): Likewise.
7843 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7844 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7845 * tree-ssa-loop-niter.c (inverse): Likewise.
7846 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7847 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7848 * tree-switch-conversion.c (check_range): Likewise.
7849 (build_constructors): Likewise.
7850 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7851 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7852 (extract_range_from_assert): Likewise.
7853 (vrp_int_const_binop): Likewise.
7854 (extract_range_from_binary_expr): Likewise.
7855 (extract_range_from_unary_expr): Likewise.
7856 (check_array_ref): Likewise.
7857 (find_case_label_range): Likewise.
7858 (simplify_div_or_mod_using_ranges): Likewise.
7859 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7860 comparing case labels for merging.
7862 2011-05-03 Mark Wielaard <mjw@redhat.com>
7864 * dwarf2out.c (debug_str_hash_forced): Removed.
7865 (gen_label_for_indirect_string): Removed.
7866 (get_debug_string_label): Removed.
7867 (AT_string_form): Generate label directly.
7868 (output_indirect_string): Test indirect_string_node for
7869 DW_FORM_strp instead of checking label and refcount.
7870 (prune_indirect_string): Removed.
7871 (prune_unused_types): Don't check debug_str_hash_forced or
7872 call prune_indirect_string.
7874 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7877 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7879 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7883 * combine.c (try_combine): Skip debug insns at m_split tests.
7885 2011-04-26 Mark Wielaard <mjw@redhat.com>
7888 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7889 when info_section_emitted.
7891 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7893 * config/mips/mips-opts.h: New.
7894 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7896 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7897 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7898 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7900 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7902 (mips_abi, mips_code_readable): Don't declare.
7903 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7904 (mabi=): Use Enum and Var.
7905 (mips_abi): New Enum and EnumValue entries.
7906 (mcode-readable=): Use Enum and Var.
7907 (mips_code_readable_setting): New Enum and EnumValue entries.
7908 (mr10k-cache-barrier=): Use Enum and Var.
7909 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7911 2011-05-03 Jan Hubicka <jh@suse.cz>
7913 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7914 replace hash by pointer map.
7915 (cgraph_node_set_element_def, cgraph_node_set_element,
7916 const_cgraph_node_set_element, varpool_node_set_element_def,
7917 varpool_node_set_element, const_varpool_node_set_element): Remove.
7918 (free_cgraph_node_set, free_varpool_node_set): New function.
7919 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7920 * tree-emutls.c: Free varpool node set.
7921 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7922 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7923 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7924 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7925 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7926 Move here from ipa.c; implement using pointer_map
7927 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7928 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7929 debug_cgraph_node_set, varpool_node_set_new,
7930 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7931 dump_varpool_node_set, debug_varpool_node_set):
7932 Move to ipa-uitls.c.
7933 * passes.c (ipa_write_summaries): Update.
7935 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7937 From Mike Frysinger:
7938 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7939 bf542/bf544/bf547/bf548/bf549.
7941 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7943 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7945 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7948 * config/bfin/bfin.md (MOVCC): New mode_macro.
7949 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7950 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7951 comments from generated assembly.
7953 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7956 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7957 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7958 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7959 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7960 * config/bfin/lib1funcs.asm (___muldi3): New function.
7962 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7964 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7965 build_function_type_list instead of build_function_type.
7966 Rearrange initialization of `args' to do so.
7968 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7970 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7971 instead of build_function_type.
7973 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7975 * config/rs6000/rs6000.c (spe_init_builtins): Call
7976 build_function_type_list instead of build_function_type.
7977 (paired_init_builtins, altivec_init_builtins): Likewise.
7978 (builtin_function_type): Likewise.
7980 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7982 * config/sh/sh.c (sh_media_init_builtins): Call
7983 build_function_type_list instead of build_function_type.
7985 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7987 * config/sparc/sparc.c (sparc_file_end): Call
7988 build_function_type_list instead of build_function_type.
7990 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7992 * config/alpha/alpha.c (alpha_init_builtins): Call
7993 build_function_type_list instead of build_function_type.
7995 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7997 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7998 build_function_type_list instead of build_function_type.
8000 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8002 * config/iq2000/i2000.c (iq2000_init_builtins): Call
8003 build_function_type_list instead of build_function_type.
8004 Delete `endlink' variable.
8006 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8008 * config/avr/avr.c (avr_init_builtins): Call
8009 build_function_type_list instead of build_function_type.
8011 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8013 * config/picochip/picochip.c (picochip_init_builtins): Call
8014 build_function_type_list instead of build_function_type.
8015 Delete `endlink' variable.
8017 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8019 * config/bfin/bfin.c (bfin_init_builtins): Call
8020 build_function_type_list instead of build_function_type.
8022 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8025 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
8026 that's not CONST_INT. Seemingly redundant check is due to PR39768.
8028 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8031 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
8032 libbffastfp overrides libgcc when -mfast-fp.
8034 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8036 Originally from Bernd Schmidt
8037 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
8038 * config/bfin/bfin.c (override_options): Test it and error if
8041 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8043 Originally From Bernd Schmidt
8044 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
8047 2011-05-03 Jeff Law <law@redhat.com>
8049 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
8050 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
8051 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
8052 than accessing AUX field directly. Free the AUX field before
8054 (thread_block, thread_through_loop_header): Likewise.
8055 (thread_single_edge, mark_threaded_blocks): Likewise.
8056 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
8057 (register_jump_thread): Do not attempt to thread to a NULL edge.
8059 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8061 * function.c (init_function_start): Call decide_function_section.
8062 * varasm.c (decide_function_section): New function.
8063 (assemble_start_function): When not using
8064 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
8065 or first_function_block_is_cold.
8066 * rtl.h (decide_function_section): Declare.
8068 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
8069 Jakub Jelinek <jakub@redhat.com>
8072 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
8073 only succeed if req_mode is the same as set_mode.
8075 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8077 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
8078 * genemit.c (gen_exp): Handle RETURN.
8079 * emit-rtl.c (verify_rtx_sharing): Likewise.
8080 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
8081 * rtl.c (copy_rtx): RETURN is shared.
8082 * rtl.h (enum global_rtl_index): Add GR_RETURN.
8084 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
8085 * config/s390/s390.c (s390_emit_epilogue): Likewise.
8086 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
8087 * config/cris/cris.c (cris_expand_return): Likewise.
8088 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
8089 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
8090 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
8091 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
8092 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
8094 * config/v850/v850.c (expand_epilogue): Likewise.
8095 * config/bfin/bfin.c (bfin_expand_call): Likewise.
8096 * config/arm/arm.md (epilogue): Likewise.
8097 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
8098 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
8099 variable to ret_reg.
8101 2011-05-03 Richard Guenther <rguenther@suse.de>
8104 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
8105 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
8106 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8108 2011-05-03 Richard Guenther <rguenther@suse.de>
8110 * c-decl.c (grokdeclarator): Instead of looking at
8111 TREE_OVERFLOW check if the constant fits in the index type.
8113 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8115 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
8116 (vec_store_lanes<mode><mode>): Likewise.
8118 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8120 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
8121 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
8122 convert_optab_index values.
8123 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
8124 * genopinit.c (optabs): Initialize the new optabs.
8125 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
8126 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
8127 (expand_STORE_LANES): New functions.
8128 * tree.h (build_array_type_nelts): Declare.
8129 * tree.c (build_array_type_nelts): New function.
8130 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
8131 (vect_model_load_cost): Likewise.
8132 (vect_store_lanes_supported, vect_load_lanes_supported)
8133 (vect_record_strided_load_vectors): Declare.
8134 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
8135 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
8136 (vect_transform_strided_load): Split out statement recording into...
8137 (vect_record_strided_load_vectors): ...this new function.
8138 * tree-vect-stmts.c (create_vector_array, read_vector_array)
8139 (write_vector_array, create_array_ref): New functions.
8140 (vect_model_store_cost): Add store_lanes_p argument.
8141 (vect_model_load_cost): Add load_lanes_p argument.
8142 (vectorizable_store): Try to use store-lanes functions for
8144 (vectorizable_load): Likewise load-lanes and loads.
8145 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
8146 to vect_model_store_cost.
8147 (vect_build_slp_tree): Likewise vect_model_load_cost.
8149 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8151 * hooks.h (hook_bool_mode_uhwi_false): Declare.
8152 * hooks.c (hook_bool_mode_uhwi_false): New function.
8153 * target.def (array_mode_supported_p): New hook.
8154 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
8155 * doc/tm.texi: Regenerate.
8156 * stor-layout.c (mode_for_array): New function.
8157 (layout_type): Use it.
8158 * config/arm/arm.c (arm_array_mode_supported_p): New function.
8159 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
8161 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
8164 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
8165 for -fstack-check if the size to allocate is negative.
8167 2011-05-02 Lawrence Crowl <crowl@google.com>
8169 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
8170 (timevar_cond_start): New for starting a timer only when it is not
8172 (timevar_cond_stop): New for stopping a timer when it was not already
8175 * timevar.c (timevar_stop): Enable start/stop timers to start again.
8176 (timevar_cond_start): New as above.
8177 (timevar_cond_stop): New as above.
8179 * timevar.def: Add start/stop timers for compiler phases,
8180 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
8181 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
8182 and TV_PHASE_FINALIZE.
8183 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
8184 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
8185 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
8186 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
8187 Make unused TV_OVERLOAD into a start/stop timer.
8189 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
8190 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
8191 to indicate that they are start/stop timers.
8193 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
8194 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
8195 Move initialization to do_compile.
8196 (do_compile): Add initialization from above.
8197 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
8199 * c-decl.c (c_write_global_declarations): Add start/stop of
8200 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
8202 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
8203 or TV_PARSE_INLINE, as appropriate.
8204 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
8205 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
8207 2011-05-02 Jason Merrill <jason@redhat.com>
8210 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
8212 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
8215 * c-decl.c (finish_decl): Only create a composite if the types are
8218 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8220 * config/fr30/fr30-protos.h (Mmode): Don't define.
8221 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
8222 definition where used.
8223 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
8224 define. Expand definitions where used.
8225 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
8226 Expand definitions where used.
8227 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
8228 rx_function_arg, rx_function_arg_advance,
8229 rx_function_arg_boundary): Expand definitions of those macros.
8230 * config/v850/v850-protos.h (Mmode): Don't define. Expand
8231 definition where used.
8233 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8235 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8237 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8238 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
8239 with *movv2sf_internal_rex64_avx.
8240 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8241 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8242 Use %v prefix in insn mnemonic to handle TARGET_AVX.
8243 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
8244 "vex" in "prefix" attribute calculation.
8245 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
8247 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
8250 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8251 inputs match the output.
8253 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
8256 * config/m68k/m68k.c (m68k_expand_prologue): Set
8257 current_function_static_stack_size.
8259 2011-05-02 Jan Hubicka <jh@suse.cz>
8261 * lto-streamer.c (lto_streamer_cache_insert_1,
8262 lto_streamer_cache_lookup, lto_streamer_cache_create,
8263 lto_streamer_cache_delete): Use pointer map instead of hashtable.
8264 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8266 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8268 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8269 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8270 config/m68k/t-opts: New files.
8271 * config/m68k/m68k-tables.opt: New file (generated).
8272 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8273 extra_options and m68k/t-opts to tmake_file.
8274 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8275 (all_isas): Initialize using m68k-isas.def.
8276 (all_microarchs): Initialize using m68k-microarchs.def.
8277 (m68k_find_selection): Remove.
8278 (m68k_handle_option): Don't assert that global structures are in
8279 use. Use error_at. Access variables via opts pointer. Don't
8280 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
8281 directly for -m68020-40 and -m68020-60.
8282 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8283 m68k_tune_entry here.
8284 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8286 (m68k_library_id_string): Remove declaration.
8287 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
8288 (m68k_library_id_string): New Variable.
8289 (march=, mcpu=, mtune=): Use Enum and Var.
8291 2011-05-02 Richard Guenther <rguenther@suse.de>
8293 * varasm.c (output_constructor_regular_field): Compute zero-based
8294 index with double-ints. Make sure to ICE instead of producing
8296 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8297 in asserts. Properly use a signed type.
8299 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8301 * config/i386/sse.md (V): New mode iterator.
8302 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8304 (V_256): Rename from AVX256MODE.
8305 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8306 condition to all users.
8308 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8309 condition to all users.
8310 (VF_128): Make V4SF mode unconditional.
8311 (VF_256): Rename from AVX256MODEF2P.
8312 (VI4F_128): Rename from SSEMODE4S.
8313 (VI8F_128): Rename from SSEMODE2D.
8314 (VI4F_256): Rename from AVX256MODE8P.
8315 (VI8F_256): Rename from AVX256MODE4P.
8316 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8317 (ssescalarmodesuffix): Remove SF and DF modes.
8318 (SSEMODE124): Remove.
8319 (SSEMODE1248): Ditto.
8320 (SSEMODEF2P): Ditto.
8321 (AVXMODEF2P): Ditto.
8322 (AVXMODEFDP): Ditto.
8323 (AVXMODEFSP): Ditto.
8324 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8326 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8328 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8329 xop_pcmov_<mode>256. Use V mode iterator.
8331 Adjust RTX patterns globally for renamed mode attributes.
8333 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8335 * haifa-sched.c (sched_emit_insn): Emit insn before first
8336 non-scheduled insn. Inform back-end about new insn. Add
8337 new insn to scheduled_insns list.
8339 2011-05-02 Richard Guenther <rguenther@suse.de>
8341 PR tree-optimization/48822
8342 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8343 (process_scc): Indicate which iteration we start.
8345 2011-05-02 Jan Hubicka <jh@suse.cz>
8347 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8348 (lto_section_overrun): New.
8349 * lto-section-out.c (append_block): Rename to ...
8350 (lto_append_block): ... this one; export.
8351 (lto_output_1_stream): Move lto lto-streamer.h
8352 (lto_output_data_stream): Update.
8353 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8354 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8357 2011-05-02 Richard Guenther <rguenther@suse.de>
8359 * tree.c (tree_code_counts): New global array.
8360 (record_node_allocation_statistics): Count individual tree codes.
8361 (dump_tree_statistics): Dump individual code stats.
8363 2011-05-01 Jan Hubicka <jh@suse.cz>
8365 * ipa-inline.c (caller_growth_limits): Fix thinko when
8366 looking for largest stack frame.
8367 * ipa-inline.h (dump_inline_summary): Declare.
8368 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8370 (dump_inline_summary): Export.
8371 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8373 2011-05-01 Anatoly Sokolov <aesok@post.ru>
8375 * reginfo.c (memory_move_cost): Change rclass argument type form
8376 'enum reg_class' to reg_class_t.
8377 * reload.h (memory_move_cost): Update prototype.
8378 * postreload.c reload_cse_simplify_set): Change type dclass var to
8380 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8382 (ira_allocate_and_set_costs): Change aclass argument type form
8383 'enum reg_class' to reg_class_t.
8384 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8385 Change aclass argument type to reg_class_t.
8386 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8388 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8389 memory_move_cost call.
8391 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8392 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8393 Change type tmp var to reg_class_t.
8395 2011-04-30 Jan Hubicka <jh@suse.cz>
8397 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8398 inlining into function with flatten attribute.
8399 (want_inline_small_function_p): Be more realistic about inlining
8400 cold calls where callee size grows.
8402 2011-04-30 Jan Hubicka <jh@suse.cz>
8404 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8407 2011-04-30 Anatoly Sokolov <aesok@post.ru>
8409 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8410 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8411 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8412 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8413 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8414 (print_operand): Rename to...
8415 (sparc_print_operand): ...this. Make static. Adjust
8416 sparc_print_operand function call.
8417 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8420 2011-04-30 Jan Hubicka <jh@suse.cz>
8423 * ipa-inline.c (early_inliner): Disable when doing late
8424 addition of function.
8426 2011-04-30 Jakub Jelinek <jakub@redhat.com>
8428 * dwarf2out.c (get_address_mode): New inline.
8429 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8430 if not dwarf_strict emit
8431 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8432 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8433 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8434 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8435 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8436 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8437 mem_loc_descriptor callers.
8438 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8439 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8440 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8441 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8442 (base_types): New variable.
8443 (get_base_type_offset, calc_base_type_die_sizes,
8444 base_type_for_mode, mark_base_types, base_type_cmp,
8445 move_marked_base_types): New functions.
8446 (calc_die_sizes): Assert that die_offset is 0 or equal to
8448 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8449 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8450 callers. If not dwarf_strict, call mem_loc_descriptor even for
8451 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8452 (gen_subprogram_die): Don't give up on call site parameters
8453 with non-integral or large integral modes. Adjust
8454 mem_loc_descriptor callers.
8455 (prune_unused_types): Call prune_unused_types_mark on base_types
8457 (resolve_addr): Call mark_base_types.
8458 (dwarf2out_finish): Call move_marked_base_types.
8460 PR tree-optimization/48809
8461 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8463 (gen_inbound_check): Don't compute index_expr - range_min in utype
8464 again, instead reuse SSA_NAME initialized in build_arrays.
8465 Remove two useless gsi_for_stmt calls.
8467 2011-04-29 Jeff Law <law@redhat.com>
8469 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8471 2011-04-29 Martin Jambor <mjambor@suse.cz>
8473 * cgraph.h (cgraph_postorder): Remove declaration.
8474 * ipa-utils.h (ipa_free_postorder_info): Declare.
8475 (ipa_reverse_postorder): Likewise.
8476 * cgraphunit.c: Include ipa-utils.h.
8477 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8478 * ipa-inline.c: Include ipa-utils.h.
8479 (ipa_inline): Update call to ipa_reverse_postorder.
8480 * ipa-pure-const.c (propagate_pure_const): Update call to
8481 ipa_reduced_postorder and ipa_print_order. Call
8482 ipa_free_postorder_info to clean up.
8483 (propagate_nothrow): Likewise.
8484 * ipa-reference.c (propagate): Removed a useless call to
8485 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8486 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8487 * ipa.c: Include ipa-utils.h.
8488 (ipa_profile): Update call to ipa_reverse_postorder.
8489 (cgraph_postorder): Moved to...
8490 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8491 (ipa_utils_print_order): Renamed to ipa_print_order.
8492 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8494 (ipa_free_postorder_info): New function.
8495 * passes.c: Include ipa-utils.h.
8496 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8497 (ipa_write_summaries): Likewise.
8498 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8499 (cgraphunit.o): Likewise.
8501 (ipa-inline.o): Likewise.
8503 2011-04-29 Jan Hubicka <jh@suse.cz>
8505 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8506 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8507 * ipa-inline.h (clause_t): Turn into unsigned int.
8508 * ipa-inline-analysis.c (add_clause): Do more simplification.
8509 (and_predicates): Shortcut more cases.
8510 (predicates_equal_p): Move forward; check that clauses are properly
8512 (or_predicates): Shortcut more cases.
8513 (edge_execution_predicate): Rewrite as...
8514 (set_cond_stmt_execution_predicate): ... this function; handle
8515 __builtin_constant_p.
8516 (set_switch_stmt_execution_predicate): New .
8517 (compute_bb_predicates): New.
8518 (will_be_nonconstant_predicate): Update TODO.
8519 (estimate_function_body_sizes): Use compute_bb_predicates
8520 and free them later, always try to estimate if stmt is constant.
8521 (estimate_time_after_inlining, estimate_size_after_inlining):
8522 Gracefully handle optimized out edges.
8523 (read_predicate): Fix off by one error.
8525 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8527 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8529 2011-04-27 Xinliang David Li <davidxl@google.com>
8531 * tree-profile.c (init_ic_make_global_vars): Set
8532 tls attribute on ic vars.
8533 * coverage.c (coverage_end_function): Initialize
8534 function_list with zero.
8536 2011-04-29 Richard Guenther <rguenther@suse.de>
8538 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8539 for the type of the result.
8540 (fold_builtin_isascii): Likewise.
8541 (fold_builtin_toascii): Use integer_type_node where appropriate.
8542 (fold_builtin_logb): Likewise.
8543 (fold_builtin_frexp): Likewise.
8544 (fold_builtin_strstr): Likewise.
8545 (fold_builtin_strpbrk): Likewise.
8546 (fold_builtin_fputs): Likewise.
8547 (fold_builtin_sprintf): Likewise.
8548 (fold_builtin_snprintf): Likewise.
8549 (fold_builtin_printf): Likewise.
8550 (do_mpfr_remquo): Use a proper type for the assigned constant.
8551 (do_mpfr_lgamma_r): Likewise.
8552 * dwarf2out.c (resolve_one_addr): Use size_int.
8553 * except.c (init_eh): Likewise.
8554 (assign_filter_values): Use integer_type_node for filter values.
8555 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8557 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8558 for EH region numbers.
8559 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8560 for the shift amount.
8562 2011-04-29 Richard Guenther <rguenther@suse.de>
8564 * expr.h (expand_shift): Rename to ...
8565 (expand_variable_shift): ... this.
8566 (expand_shift): Take a constant shift amount.
8567 * expmed.c (expand_shift): Rename to ...
8568 (expand_variable_shift): ... this.
8569 (expand_shift): New wrapper around expand_variable_shift.
8570 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8571 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8572 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8573 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8574 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8575 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8576 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8577 emit_store_flag_1, emit_store_flag): Likewise.
8578 * builtins.c (expand_builtin_signbit): Likewise.
8579 * calls.c (load_register_parameters): Likewise.
8580 * function.c (assign_parm_setup_block): Likewise.
8581 * lower-subreg.c (resolve_shift_zext): Likewise.
8582 * optabs.c (widen_bswap, expand_abs_nojump,
8583 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8584 * spu/spu.c (spu_expand_extv): Likewise.
8585 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8587 2011-04-29 Richard Guenther <rguenther@suse.de>
8589 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8590 for the remapped region number.
8591 * predict.c (build_predict_expr): Use integer_type_node for the
8593 * fold-const.c (fold_binary_loc): Use integer_type_node for
8594 the shift amount. Use a proper type for the PLUS_EXPR operand.
8596 2011-04-29 Michael Matz <matz@suse.de>
8598 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8599 other trees that just builtins.
8600 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8602 2011-04-29 Richard Guenther <rguenther@suse.de>
8604 * tree-nested.c (get_trampoline_type): Use size_int.
8605 (get_nl_goto_field): Likewise.
8606 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8608 (lower_eh_constructs_2): Likewise.
8609 (lower_resx): Likewise.
8610 (lower_eh_dispatch): Likewise.
8611 * tree-mudflap.c (mf_build_string): Use size_int.
8612 (mudflap_register_call): Use integer_type_node for the flag.
8613 (mudflap_enqueue_constant): Use size_int.
8614 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8615 instead of rebuilding it.
8617 2011-04-29 Richard Guenther <rguenther@suse.de>
8619 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8620 Handle OBJ_TYPE_REF.
8621 (find_func_aliases_for_call): Use it more consistently.
8623 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
8625 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8626 (rank_for_schedule): Use it.
8627 (schedule_block): Set it.
8629 2011-04-28 David Li <davidxl@google.com>
8631 * tree.c (crc32_string): Use crc32_byte.
8632 (crc32_byte): New function.
8633 * tree.h (crc32_byte): New function.
8634 * gcov.c (read_graph_file): Handle new cfg_cksum.
8635 (read_count_file): Ditto.
8636 * profile.c (instrument_values): Ditto.
8637 (get_exec_counts): Ditto.
8638 (read_profile_edge_counts): Ditto.
8639 (compute_branch_probabilities): Ditto.
8640 (compute_value_histograms): Ditto.
8641 (branch_prob): Ditto.
8642 (end_branch_prob): Ditto.
8643 * coverage.c (read_counts_file): Ditto.
8644 (get_coverage_counts): Ditto.
8645 (tree_coverage_counter_addr): Ditto.
8646 (coverage_checksum_string): Ditto.
8647 (coverage_begin_output): Ditto.
8648 (coverage_end_function): Ditto.
8649 (build_fn_info_type): Ditto.
8650 (build_fn_info_value): Ditto.
8651 * libgcov.c (gcov_exit): Ditto.
8652 * gcov-dump.c (tag_function): Ditto.
8653 (compute_checksum): Remove.
8655 2011-04-29 Alan Modra <amodra@gmail.com>
8657 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8658 unspec plus offset. Tidy macho code.
8660 2011-04-29 Martin Jambor <mjambor@suse.cz>
8662 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8663 node instead of a decl. Update all callers.
8664 * cgraph.h: Update declaration.
8666 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
8668 PR tree-optimization/48765
8669 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8670 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8671 to indicate if loop aware SLP is being used. Scan the statements
8672 and update the vectorization factor according to the type of
8673 vectorization before statement analysis.
8674 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8675 pass it to vect_analyze_loop_operations.
8676 (vectorizable_reduction): Set number of copies to 1 in case of pure
8678 * tree-vect-stmts.c (vectorizable_conversion,
8679 vectorizable_assignment, vectorizable_shift,
8680 vectorizable_operation, vectorizable_type_demotion,
8681 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8683 (vectorizable_condition): Move the check that it is not SLP
8684 vectorization before the number of copies check.
8685 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8686 to vectorize the loop using SLP.
8688 2011-04-28 Jakub Jelinek <jakub@redhat.com>
8691 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8694 2011-04-28 Joseph Myers <joseph@codesourcery.com>
8696 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8697 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8698 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8699 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8700 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8702 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
8703 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8704 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8705 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8706 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8707 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8709 * config/i386/linux.h (REG_NAME): Don't define.
8710 * config/i386/linux64.h (REG_NAME): Don't define.
8711 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8712 Undefine before defining.
8714 2011-04-28 Jan Hubicka <jh@suse.cz>
8716 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8717 nonconstant_names array.
8718 (estimate_function_body_sizes): Build nonconstant_names array; handle
8719 BUILT_IN_CONSTANT_P.
8721 2011-04-28 Richard Guenther <rguenther@suse.de>
8725 2011-04-28 Richard Guenther <rguenther@suse.de>
8727 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8728 as late as possible.
8730 2011-04-28 Richard Guenther <rguenther@suse.de>
8732 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8733 (debug_constraint): Do it here.
8734 (dump_constraints): And here.
8735 (rewrite_constraints): And here.
8736 (dump_constraint_edge): Remove.
8737 (dump_constraint_graph): Rewrite to produce DOT output.
8738 (solve_constraints): Build succ graph as late as possible.
8739 Dump constraint graphs before and after solving.
8741 2011-04-28 Richard Guenther <rguenther@suse.de>
8743 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8744 New function split out from ...
8745 (find_func_aliases): ... here. Call it.
8746 (find_func_aliases_for_call): Likewise.
8748 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8750 * internal-fn.h (internal_fn_name_array): Declare.
8751 (internal_fn_flags_array): Likewise.
8753 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8755 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8756 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8758 (ssemodefsuffix): Remove.
8759 (ssevecmodesuffix): New mode attribute.
8760 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8761 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8762 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8763 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8764 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8765 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8766 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8767 ssemodesuffix mode attribute.
8768 (float splitters): Use ssevecmodesuffix mode attribute.
8769 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8770 (sseinsmode): Rename from avxvecmode.
8771 (avxsizesuffix): Rename from avxmodesuffix.
8772 (sseintvecmode): Rename from avxpermvecmode.
8773 (ssedoublevecmode): Rename from ssedoublesizemode.
8774 (ssehalfvecmode): Rename from avxhalfvecmode.
8775 (ssescalarmode): Rename from avxscalarmode.
8776 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8777 templates for ssemodesuffix mode attribute.
8778 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8781 Adjust RTX patterns globally for renamed mode attributes.
8783 2011-04-27 Jan Hubcika <jh@suse.cz>
8785 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8786 * ipa-inline-analysis.c: Include alloc-pool.h.
8787 (edge_predicate_pool): New.
8788 (trye_predicate_p): New function
8789 (false_predicate_p): New function.
8790 (add_clause): Sanity check that false clauses are "optimized";
8791 never add clauses to predicate that is already known to be false.
8792 (and_predicate): Use flase_predicate_p.
8793 (evaulate_predicate): Rename to ...
8794 (evaluate_predicate): ... this one; update all callers; assert
8795 that false is not listed among possible truths.
8796 (dump_predicate): Use true_predicate_p.
8797 (account_size_time): Use false_predicate_p.
8798 (evaulate_conditions_for_edge): Rename to ...
8799 (evaluate_conditions_for_edge) ... this one.
8800 (edge_set_predicate): New function.
8801 (inline_edge_duplication_hook): Duplicate edge predicates.
8802 (inline_edge_removal_hook): Free edge predicates.
8803 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8804 (dump_inline_summary): Update.
8805 (estimate_function_body_sizes): Set edge predicates.
8806 (estimate_calls_size_and_time): Handle predicates.
8807 (estimate_callee_size_and_time): Update.
8808 (remap_predicate): Add toplev_predicate; update comment.
8809 (remap_edge_predicates): New function.
8810 (inline_merge_summary): Compute toplev predicate; update.
8811 (read_predicate): New function.
8812 (read_inline_edge_summary): Use it.
8813 (inline_read_section): Likewise.
8814 (write_predicate): New function.
8815 (write_inline_edge_summary): Use it.
8816 (inline_write_summary): Likewise.
8817 (inline_free_summary): Free alloc pool and edge summary vec.
8819 2011-04-27 Richard Guenther <rguenther@suse.de>
8821 * tree-ssa-structalias.c (changed_count): Remove.
8822 (changed): Use a bitmap.
8823 (unify_nodes): Adjust.
8824 (do_sd_constraint): Likewise.
8825 (do_ds_constraint): Likewise.
8826 (do_complex_constraint): Likewise.
8827 (solve_graph): Likewise.
8829 2011-04-27 Jan Hubicka <jh@suse.cz>
8831 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8833 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8835 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8836 (avx_vperm2f128_*_operand): Ditto.
8837 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8838 Use avx_vpermilp_parallel in insn condition.
8839 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8840 Use avx_vperm2f128_parallel in insn condition.
8842 2011-04-27 Richard Guenther <rguenther@suse.de>
8844 * Makefile.in (tree-ssa-structalias.o): Remove
8845 gt-tree-ssa-structalias.h dependency.
8846 (GTFILES): Remove tree-ssa-structalias.c.
8847 * tree.c (allocate_decl_uid): New function.
8848 (make_node_stat): Use it.
8849 (copy_node_stat): Likewise.
8850 * tree.h (allocate_decl_uid): Declare.
8851 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8852 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8853 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8854 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8855 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8856 (struct heapvar_map): Likewise.
8857 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8858 heapvar_insert): Likewise.
8859 (make_heapvar_for): Rename to ...
8860 (make_heapvar): ... this. Simplify.
8861 (fake_var_decl_obstack): New global var.
8862 (build_fake_var_decl): New function.
8863 (make_constraint_from_heapvar): Adjust.
8864 (handle_lhs_call): Likewise.
8865 (create_function_info_for): Likewise.
8866 (intra_create_variable_infos): Likewise.
8867 (init_alias_vars): Allocate fake_var_decl_obstack.
8868 (init_alias_heapvars, delete_alias_heapvars): Remove.
8869 (compute_points_to_sets): Do not call init_alias_heapvars.
8870 (ipa_pta_execute): Likewise.
8871 (delete_points_to_sets): Free fake_var_decl_obstack.
8873 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8875 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8876 (si_from_UTItype, si_to_UTItype): New functions.
8877 (__udivmodti4): Use them to implement type-punning.
8878 * config/spu/multi3.c (union qword_TItype): New data type.
8879 (si_from_TItype, si_to_TItype): New functions.
8880 (__multi3): Use them to implement type-punning.
8882 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8884 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8886 2011-04-27 Jan Hubicka <jh@suse.cz>
8888 * ipa-prop.c (function_insertion_hook_holder): New holder.
8889 (ipa_add_new_function): New function.
8890 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8891 Register/deregister holder.
8893 2011-04-27 Richard Guenther <rguenther@suse.de>
8895 PR tree-optimization/48772
8896 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8898 2011-04-27 Richard Guenther <rguenther@suse.de>
8900 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8901 TARGET_MEM_REF handling.
8903 2011-04-27 Nick Clifton <nickc@redhat.com>
8905 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8906 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8907 (REG_CLASS_NAMES): Likewise.
8908 (REG_CLASS_CONTENTS): Likewise.
8909 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8910 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8911 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8912 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8913 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8914 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8915 duplicate register classes.
8916 (frv_class_likely_spilled_p): Likewise.
8917 (frv_register_move_cost): Likewise.
8919 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8920 end of the regno_reg_class array.
8922 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8925 * c-typeck.c (build_binary_op): Don't wrap arguments if
8926 int_operands is true.
8928 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8931 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8932 targetm.calls.must_pass_in_stack for void type.
8934 2011-04-26 Jan Hubicka <jh@suse.cz>
8936 * cgraphbuild.c (build_cgraph_edges): Update call
8937 of cgraph_create_edge and cgraph_create_indirect_edge.
8938 * cgraph.c (cgraph_create_edge_including_clones,
8939 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8940 cgraph_update_edges_for_call_stmt_node): Do not take nest
8941 argument; do not initialize call_stmt_size/time.
8942 (dump_cgraph_node): Do not dump nest.
8943 (cgraph_clone_edge): Do not take loop_nest argument;
8944 do not propagate it; do not clone call_stmt_size/time.
8945 (cgraph_clone_node): Likewise.
8946 (cgraph_create_virtual_clone): Update.
8947 * cgraph.h (struct cgraph_edge): Remove
8948 call_stmt_size/call_stmt_time/loop_nest.
8949 (cgraph_create_edge, cgraph_create_indirect_edge,
8950 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8952 * tree-emutls.c (gen_emutls_addr): Update.
8953 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8954 loop_nest; handle indirect calls, too.
8955 (clone_inlined_nodes): Do not care about updating inline summaries.
8956 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8957 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8958 stream call_stmt_size/call_stmt_time/loop_nest.
8959 * ipa-inline.c (edge_badness): Update.
8960 (ipa_inline): dump summaries after inlining.
8961 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8963 (inline_edge_summary): New function.
8964 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8965 (inline_edge_removal_hook): Handle edge summaries.
8966 (inline_edge_duplication_hook): New hook.
8967 (inline_summary_alloc): Alloc hooks.
8968 (initialize_growth_caches): Do not register removal hooks.
8969 (free_growth_caches); Do not free removal hook.
8970 (dump_inline_edge_summary): New function.
8971 (dump_inline_summary): Use it.
8972 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8973 (inline_update_callee_summaries): New function.
8974 (inline_merge_summary): Use it.
8975 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8976 (read_inline_edge_summary): New function.
8977 (inline_read_section): Use it.
8978 (write_inline_edge_summary): New function.
8979 (inline_write_summary): Use it.
8980 (inline_free_summary): Free edge new holders.
8981 * tree-inline.c (copy_bb): Update.
8983 2011-04-26 Jason Merrill <jason@redhat.com>
8985 * tree-eh.c (lower_try_finally_switch): Create the label along with
8986 the CASE_LABEL_EXPR.
8988 2011-04-26 David S. Miller <davem@davemloft.net>
8989 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8991 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8992 * configure: Regenerate.
8994 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8997 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8999 (VEC_reduc): New code iterator and splitters for vector reduction.
9000 (VEC_reduc_name): Ditto.
9001 (VEC_reduc_rtx): Ditto.
9002 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
9003 (reduc_<VEC_reduc_name>_v4sf): Ditto.
9005 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9006 support for extracting SF on VSX.
9008 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
9009 generating xscvspdp.
9010 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
9011 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
9012 double add, minimum, maximum vector reduction.
9013 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
9014 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
9015 optimize double vector reduction.
9016 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
9018 2011-04-26 Joseph Myers <joseph@codesourcery.com>
9020 * config/fr30/fr30.h (inhibit_libc): Don't define.
9021 * config/m32r/m32r-protos.h: Correct comment.
9022 * config/v850/v850.h (GHS_default_section_names,
9023 GHS_current_section_names): Use tree, not union tree_node *.
9025 2011-04-26 Xinliang David Li <davidxl@google.com>
9027 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
9028 * c-family/c-opts.c (c_common_handle_option): Set
9029 warn_maybe_uninitialized.
9030 * opts.c (common_handle_option): Ditto.
9031 * common.opt: New option.
9032 * tree-ssa.c (warn_uninit): Add one more parameter.
9033 (warn_uninitialized_var): Pass warning code.
9034 * tree-flow.h: Interface change.
9036 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9038 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9039 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
9040 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
9042 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9044 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
9045 * config/mips/mips.opt (mmips-tfile): Remove.
9047 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
9048 mips-tdump reference to ...
9049 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
9050 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
9051 reference by Tru64 UNIX.
9053 2011-04-26 Jakub Jelinek <jakub@redhat.com>
9056 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
9057 is error_mark_node, set value to NULL.
9059 PR tree-optimization/48734
9060 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
9061 if return value from maybe_fold_*_comparsions isn't something
9062 the code is prepared to handle.
9064 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
9066 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
9068 (ext_QIreg_nomode_operands): Remove.
9069 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
9073 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
9075 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
9077 2011-04-26 Richard Guenther <rguenther@suse.de>
9079 * c-typeck.c (build_unary_op): Do not expand array-refs via
9080 pointer arithmetic. Only adjust qualifiers for function types.
9082 2011-04-26 Richard Guenther <rguenther@suse.de>
9085 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
9086 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
9087 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
9088 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
9090 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9092 * doc/extend.texi: Document __underlying_type.
9094 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
9096 * config/rs6000/titan.md (automata_option "progress"): Remove.
9098 2011-04-25 Jeff Law <law@redhat.com>
9100 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
9102 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9104 * system.h (ENUM_BITFIELD): Remove.
9106 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
9107 Eric Botcazou <ebotcazou@adacore.com>
9109 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
9110 for STORE_FLAG_VALUE==-1 case.
9112 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
9115 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
9116 LEGITIMATE_PIC_OPERAND_P.
9118 2011-04-24 Jan Hubicka <jh@suse.cz>
9120 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
9122 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
9123 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
9124 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
9125 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
9126 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
9127 Sanity check predicate length.
9128 (remap_predicate): Likewise; sanity check jump functions.
9129 (inline_read_section, inline_write_summary): Sanity check
9132 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9135 * doc/extend.texi (Type Traits): Document __is_standard_layout,
9136 __is_literal_type, and __is_trivial; update throughout about
9137 possibly cv-qualified void types.
9139 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9141 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
9142 testsuite and make it version agnostic.
9144 2011-04-22 Jan Hubicka <jh@suse.cz>
9146 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
9148 2011-04-23 Jakub Jelinek <jakub@redhat.com>
9151 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9152 to VOID_TYPE even around MODIFY_EXPR.
9154 2011-04-22 Mike Stump <mikestump@comcast.net>
9156 * gensupport.c (read_md_rtx): Fix typo in comment.
9157 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
9160 2011-04-22 Jan Hubicka <jh@suse.cz>
9162 * gengtype.c (open_base_files): Add ipa-inline.h include.
9163 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
9164 ipa-prop.c; update all uses.
9165 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
9166 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
9167 merge summary of inlined function into former caller.
9168 * ipa-inline.c (max_benefit): Remove.
9169 (edge_badness): Compensate for removal of benefits.
9170 (update_caller_keys): Use
9171 reset_node_growth_cache/reset_edge_growth_cache.
9172 (update_callee_keys): Likewise.
9173 (update_all_callee_keys): Likewise.
9174 (inline_small_functions): Do not collect max_benefit; do not reset
9175 estimated_growth; call free_growth_caches and initialize_growth_caches.
9176 * ipa-inline.h (struct condition, type clause_t, struct predicate,
9177 struct size_time_entry): New structures.
9178 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
9179 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
9180 and estimated_growth.
9181 (edge_growth_cache_entry): New structure.
9182 (node_growth_cache, edge_growth_cache): New global vars.
9183 (estimate_growth): Turn into inline.
9184 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
9185 initialize_growth_caches, free_growth_caches): Declare.
9186 (estimate_edge_growth): Rewrite.
9187 (estimate_edge_time): Implement as inline cache lookup.
9188 (reset_node_growth_cache, reset_edge_growth_cache): New inline
9190 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
9191 (NUM_CONDITIONS): New constant.
9192 (predicate_conditions): New enum.
9193 (IS_NOT_CONSTANT): New constant.
9194 (edge_removal_hook_holder): New var.
9195 (node_growth_cache, edge_growth_cache): New global vars.
9196 (true_predicate, single_cond_predicate, false_predicate,
9197 not_inlined_predicate, add_condition, add_clause, and_predicates,
9198 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
9199 dump_clause, dump_predicate, account_size_time,
9200 evaulate_conditions_for_edge): New functions.
9201 (inline_summary_alloc): Move to heap.
9202 (inline_node_removal_hook): Clear condition and entry vectors.
9203 (inline_edge_removal_hook): New function.
9204 (initialize_growth_caches, free_growth_caches): New function.
9205 (dump_inline_summary): Update.
9206 (edge_execution_predicate): New function.
9207 (will_be_nonconstant_predicate): New function.
9208 (estimate_function_body_sizes): Compute BB and constantness predicates.
9209 (compute_inline_parameters): Do not clear estimated_growth.
9210 (estimate_edge_size_and_time): New function.
9211 (estimate_calls_size_and_time): New function.
9212 (estimate_callee_size_and_time): New function.
9213 (remap_predicate): New function.
9214 (inline_merge_summary): New function.
9215 (do_estimate_edge_time): New function based on...
9216 (estimate_edge_time): ... this one.
9217 (do_estimate_edge_growth): New function.
9218 (do_estimate_growth): New function based on....
9219 (estimate_growth): ... this one.
9220 (inline_analyze_function): Analyze after deciding on jump functions.
9221 (inline_read_section): New function.
9222 (inline_read_summary): Use it.
9223 (inline_write_summary): Write all the new data.
9224 * ipa-prop.c (ipa_get_param_decl_index): Export.
9225 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
9226 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
9228 (ipa_get_lattice): Move here from ipa-cp.c
9229 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
9230 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
9231 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
9232 cgraph_edge_inlinable_p): Remove.
9233 * cgraphunit.c: Include ipainline.h
9234 (cgraph_process_new_functions): Update call of
9235 compute_inline_parameters.
9237 2011-04-22 Richard Guenther <rguenther@suse.de>
9239 * tree.c (build_int_cst): Properly create canonicalized integer
9241 (build_int_cst_type): Remove scary comments.
9243 2011-04-22 Xinliang David Li <davidxl@google.com>
9245 * toplev.c (process_options): Enable -Werror=coverage-mismatch
9246 by default when -Wno-error is not specified.
9247 * opts-global.c (decode_options): Remove call to
9248 control_warning_options.
9250 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9252 PR tree-optimization/48717
9253 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9254 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9256 2011-04-22 Joseph Myers <joseph@codesourcery.com>
9258 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
9259 definition where used.
9261 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9264 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9265 TREE_STATIC variables declared inside of some OpenMP construct.
9267 2011-04-22 Martin Jambor <mjambor@suse.cz>
9270 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
9272 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
9275 * c-typeck.c (pop_init_level): Do not warn about initializing
9278 2011-04-22 Alan Modra <amodra@gmail.com>
9280 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9281 when returning call_cookie.
9282 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9283 pointers, to functions with no more vector args than the current
9284 function, and some non-local calls for ABI_V4.
9285 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9286 sibcall_nonlocal_aix64): Combine to ..
9287 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
9288 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9289 (sibcall_value_nonlocal_aix<mode>): ..likewise.
9290 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9291 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
9293 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9294 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9295 sibcall_value_symbolic_64): Delete.
9297 2011-04-21 Xinliang David Li <davidxl@google.com>
9299 * cgraph.h: Remove pid.
9300 * cgraph.c: Remove pid.
9301 * value-prof.c (init_node_map): New function.
9302 (del_node_map): New function.
9303 (find_func_by_funcdef_no): New function.
9304 (gimple_ic_transform): Call new function.
9305 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9306 * function.c (get_last_funcdef_no): New function.
9307 * function.h (get_last_funcdef_no): New function.
9308 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9309 to libgcov function.
9310 (tree-profiling): Call node map init and delete function.
9312 2011-04-21 Ian Lance Taylor <iant@google.com>
9314 * godump.c (go_format_type): Use exported Go name for anonymous
9317 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9319 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9320 Call builtin_function_type_list instead of builtin_function_type.
9321 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9323 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9325 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9326 build_function_type_list instead of build_function_type.
9327 Delete variable `endlink'.
9329 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9331 * config/s390/s390.c (s390_init_builtins): Call
9332 build_function_type_list instead of build_function_type.
9334 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9336 * config/ia64/ia64.c (ia64_init_builtins): Call
9337 build_function_type_list instead of builtin_function_type.
9339 2011-04-21 Easwaran Raman <eraman@google.com>
9341 * cfgexpand.c (stack_var): Remove OFFSET...
9342 (add_stack_var): ...and its reference here...
9343 (expand_stack_vars): ...and here.
9344 (stack_var_cmp): Sort by descending order of size.
9345 (partition_stack_vars): Change heuristic.
9346 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9347 (dump_stack_var_partition): Add newline after each partition.
9349 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9350 Jeff Law <law@redhat.com>
9352 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9353 * gengtype.c (matching_file_name_substitute): Likewise.
9355 2011-04-21 Richard Guenther <rguenther@suse.de>
9358 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9360 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9362 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9364 2011-04-21 Richard Guenther <rguenther@suse.de>
9366 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9369 2011-04-21 Richard Guenther <rguenther@suse.de>
9371 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9372 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9373 Use DECL_P, not SSA_VAR_P.
9374 (ptr_derefs_may_alias_p): Likewise.
9375 (ptr_deref_may_alias_ref_p_1): Likewise.
9376 (decl_refs_may_alias_p): Likewise.
9377 (refs_may_alias_p_1): Likewise.
9378 (ref_maybe_used_by_call_p_1): Likewise.
9379 (call_may_clobber_ref_p_1): Likewise.
9380 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9381 are either MEM_REF or TARGET_MEM_REF.
9382 (indirect_refs_may_alias_p): Likewise.
9383 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9384 for MEM_EXPR of indirect calls.
9386 2011-04-21 Tristan Gingold <gingold@adacore.com>
9388 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9389 (dst_file_info_struct): Remove flen field.
9390 (lookup_filename): Remove code that set flen field.
9392 2011-04-21 Tristan Gingold <gingold@adacore.com>
9394 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9396 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
9399 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9400 vec_extract and vec_concat for non-SSE4_1 targets.
9402 2011-04-21 Richard Guenther <rguenther@suse.de>
9404 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9407 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9409 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9411 (FILE): Don't undefine.
9413 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9415 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9417 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9419 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9420 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9421 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9423 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9424 definitions where used.
9425 * config/microblaze/microblaze.h (struct microblaze_args): Use
9426 rtx, not struct rtx_def *.
9427 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9429 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9430 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9431 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9432 not struct rtx_def *.
9433 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9435 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9437 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9439 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9441 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9442 operand_equal_p to compare DR_BASE_ADDRESSes.
9443 (vect_check_interleaving): Likewise.
9445 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9448 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9449 for all Neon struct constants.
9451 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9453 * target.def (legitimate_constant_p): New hook.
9454 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9455 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9456 * doc/tm.texi: Regenerate.
9457 * hooks.h (hook_bool_mode_rtx_true): Declare.
9458 * hooks.c (hook_bool_mode_rtx_true): Define.
9459 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9460 * calls.c (precompute_register_parameters): Replace uses of
9461 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9462 (emit_library_call_value_1): Likewise.
9463 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9464 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9465 * ira-costs.c (scan_one_insn): Likewise.
9466 * recog.c (general_operand, immediate_operand): Likewise.
9467 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9468 * reload1.c (init_eliminable_invariants): Likewise.
9470 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9472 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9473 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9475 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9476 * config/alpha/predicates.md (input_operand): Update call to
9477 alpha_legitimate_constant_p.
9479 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9480 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9481 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9482 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9483 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9484 (arm_legitimate_constant_p): New functions.
9485 (arm_cannot_force_const_mem): Make static.
9487 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9489 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9490 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9491 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9492 instead of bfin_legitimate_constant_p.
9493 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9494 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9496 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9498 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9500 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9501 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9502 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9503 (frv_legitimate_constant_p): Make static. Add a mode argument.
9505 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9506 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9507 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9509 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9510 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9511 * config/i386/i386.c (legitimate_constant_p): Rename to...
9512 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9514 (ix86_cannot_force_const_mem): Update accordingly.
9515 (ix86_legitimate_address_p): Likewise.
9516 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9517 * config/i386/i386.md: Update commentary.
9519 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9520 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9521 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9522 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9524 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9526 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9527 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9528 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9529 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9531 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9532 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9533 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9535 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9536 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9537 (m32r_legitimate_constant_p): New function.
9539 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9540 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9541 LEGITIMATE_CONSTANT_P.
9542 (LEGITIMATE_CONSTANT_P): Delete.
9543 * config/m68k/m68k.c (m68k_expand_prologue): Call
9544 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9545 (m68k_legitimate_constant_p): New function.
9546 * config/m68k/m68k.md: Update comments.
9548 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9549 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9550 (mcore_legitimate_constant_p): New function.
9552 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9553 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9554 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9555 Add a mode argument.
9556 (mep_legitimate_address): Update accordingly.
9557 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9559 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9561 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9562 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9563 static. Check OP's mode for VOIDmode.
9564 (microblaze_legitimate_constant_p): New function.
9565 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9567 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9568 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9569 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9570 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9571 * config/mips/predicates.md: Update comments.
9573 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9574 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9575 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9576 (mmix_legitimate_constant_p): Make static, return a bool, and take
9578 (mmix_print_operand_address): Update accordingly.
9580 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9582 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
9583 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9584 static. Add a mode argument.
9585 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9587 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9589 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9590 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9591 (pa_legitimate_constant_p): New function.
9593 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9595 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9596 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9597 (pdp11_legitimate_constant_p): New function.
9599 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9600 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9601 (rs6000_legitimate_constant_p): New function.
9603 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9604 (rx_legitimate_constant_p): ...this.
9605 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9606 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9607 (rx_legitimate_constant_p): ...this.
9608 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9609 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9611 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9612 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9613 * config/s390/s390.c (legitimate_constant_p): Rename to...
9614 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9615 and add a mode argument.
9616 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9618 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9620 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9621 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9622 (sh_legitimate_constant_p): New function.
9624 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9625 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9626 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9627 (legitimate_constant_p): Rename to...
9628 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9630 (constant_address_p): Update accordingly.
9632 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9633 argument and return a bool.
9634 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9635 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9636 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9637 (spu_rtx_costs): Update accordingly.
9638 * config/spu/predicates.md (vec_imm_operand): Likewise.
9640 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9642 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9643 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9644 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9646 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9647 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9648 * config/vax/vax.c (legitimate_constant_p): Likewise.
9650 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9651 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9652 (xtensa_legitimate_constant_p): New function.
9654 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9656 * target.def (cannot_force_const_mem): Add a mode argument.
9657 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9658 * doc/tm.texi: Regenerate.
9659 * hooks.h (hook_bool_mode_rtx_false): Declare.
9660 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9661 (hook_bool_mode_const_rtx_true): Likewise.
9662 (hook_bool_mode_rtx_false): New function.
9663 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9664 to be non-VOID. Update call to cannot_force_const_mem.
9665 (find_reloads): Update accordingly.
9666 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9667 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9669 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9670 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9671 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9672 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9673 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9674 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9675 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9676 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9677 (m68k_cannot_force_const_mem): ...this new function.
9678 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9680 (mips_const_insns, mips_legitimize_const_move): Update calls.
9681 (mips_secondary_reload_class): Likewise.
9682 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9683 (pa_cannot_force_const_mem): ...this new function.
9684 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
9685 (rs6000_cannot_force_const_mem): ...this new function.
9686 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9688 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9689 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9691 (xtensa_cannot_force_const_mem): ...this new function.
9693 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9695 * config/mips/mips.c (mips16_build_function_stub): Call
9696 build_function_type_list instead of build_function_type.
9697 (mips16_build_call_stub): Likewise.
9699 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9701 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9702 instead of build_function_type.
9704 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9706 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9707 instead of build_function_type.
9709 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
9712 * config/i386/i386.md (insv): Change operand 0 constraint to
9713 "register_operand". Change operand 1 and 2 constraint to
9714 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9715 * config/i386/sse.md (sse4_1_pinsrb): Export.
9716 (sse2_pinsrw): Ditto.
9717 (sse4_1_pinsrd): Ditto.
9718 (sse4_1_pinsrq): Ditto.
9719 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9720 * config/i386/i386.c (ix86_expand_pinsr): New.
9722 2011-04-20 Easwaran Raman <eraman@google.com>
9724 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9725 containing union type only with -fstrict-aliasing.
9727 2011-04-20 Jim Meyering <meyering@redhat.com>
9729 Remove useless if-before-free tests.
9730 * calls.c (expand_call, save_area): Likewise.
9731 * cfgcleanup.c (try_forward_edges): Likewise.
9732 * collect2.c (collect_execute): Likewise.
9733 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9734 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9735 * coverage.c (coverage_checksum_string): Likewise.
9736 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9737 * cselib.c (cselib_init): Likewise.
9738 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9739 (df_set_clean_cfg): Likewise.
9740 * function.c (free_after_compilation): Likewise.
9741 * gcc.c (do_spec_1, main): Likewise.
9742 * gcov.c (create_file_names): Likewise.
9743 * gensupport.c (identify_predicable_attribute): Likewise.
9744 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9745 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9746 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9747 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9748 * ipa-pure-const.c (local_pure_const): Likewise.
9749 * ipa-reference.c (propagate): Likewise.
9750 * ira-costs.c (free_ira_costs): Likewise.
9751 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9752 * matrix-reorg.c (mat_free): Likewise.
9753 * prefix.c (get_key_value): Likewise.
9754 * profile.c (compute_value_histograms): Likewise.
9755 * reload1.c (free_reg_equiv): Likewise.
9756 * sched-deps.c (free_deps): Likewise.
9757 * sel-sched-ir.c (fence_clear): Likewise.
9758 * sese.c (set_rename, if_region_set_false_region): Likewise.
9759 * tree-data-ref.c (free_rdg): Likewise.
9760 * tree-eh.c (lower_try_finally): Likewise.
9761 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9762 * tree-ssa-live.c (delete_var_map): Likewise.
9763 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9764 * tree-ssa-pre.c (phi_trans_add): Likewise.
9766 2011-04-20 Jakub Jelinek <jakub@redhat.com>
9768 PR tree-optimization/48611
9769 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9770 beyond ERT_MUST_NOT_THROW region.
9772 2011-04-20 Catherine Moore <clm@codesourcery.com>
9774 * config/mips/mips.opt (mfix-24k): New.
9775 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9776 * config/mips/mips.md (length): Increase by 4 for stores if
9778 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9779 all noreorder if fixing 24K errata.
9780 * doc/invoke.texi: Document mfix-24k.
9782 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9784 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9785 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9787 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9789 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9790 (const_ok_for_op): ... to here.
9792 2011-04-20 Kai Tietz <ktietz@redhat.com>
9794 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9795 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9797 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9799 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9801 2011-04-20 Richard Guenther <rguenther@suse.de>
9803 PR tree-optimization/47892
9804 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9807 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9809 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9811 2011-04-20 Tristan Gingold <gingold@adacore.com>
9813 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9815 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
9819 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9820 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9821 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9822 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9823 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9825 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9828 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9829 (avr_asm_named_section, avr_asm_output_aligned_common,
9830 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9831 New functions to update...
9832 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9833 (avr_asm_init_sections): Overwrite section callbacks for
9834 data_section, bss_section.
9835 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9837 (avr_file_end): ...here.
9839 2011-04-20 Richard Guenther <rguenther@suse.de>
9842 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9843 objects and types here. Adjust for their offset before comparing.
9845 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9847 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9850 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9852 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9853 (GIMPLE_H): Include $(INTERNAL_FN_H).
9854 (OBJS-common): Add internal-fn.o.
9855 (internal-fn.o): New rule.
9856 * internal-fn.def: New file.
9857 * internal-fn.h: Likewise.
9858 * internal-fn.c: Likewise.
9859 * gimple.h: Include internal-fn.h.
9860 (GF_CALL_INTERNAL): New gf_mask.
9861 (gimple_statement_call): Put fntype into a union with a new
9863 (gimple_build_call_internal): Declare.
9864 (gimple_build_call_internal_vec): Likewise.
9865 (gimple_call_same_target_p): Likewise.
9866 (gimple_call_internal_p): New function.
9867 (gimple_call_internal_fn): Likewise.
9868 (gimple_call_fntype): Return null for internal calls.
9869 (gimple_call_set_fntype): Assert that the function is not internal.
9870 (gimple_call_set_fn): Likewise.
9871 (gimple_call_set_fndecl): Likewise.
9872 (gimple_call_set_internal_fn): New function.
9873 (gimple_call_addr_fndecl): Handle null functions.
9874 (gimple_call_return_type): Likewise null types.
9875 * gimple.c (gimple_build_call_internal_1): New function.
9876 (gimple_build_call_internal): Likewise.
9877 (gimple_build_call_internal_vec): Likewise.
9878 (gimple_call_same_target_p): Likewise.
9879 (gimple_call_flags): Handle calls to internal functions.
9880 (gimple_call_fnspec): New function.
9881 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9882 (gimple_has_side_effects): Handle null functions.
9883 (gimple_rhs_has_side_effects): Likewise.
9884 (gimple_call_copy_skip_args): Handle calls to internal functions.
9885 * cfgexpand.c (expand_call_stmt): Likewise.
9886 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9887 * gimple-fold.c (gimple_fold_call): Handle null functions.
9888 (gimple_fold_stmt_to_constant_1): Don't fold
9889 calls to internal functions.
9890 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9892 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9893 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9894 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9895 (do_warn_unused_result): Likewise.
9896 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9897 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9898 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9899 the target of a call.
9900 (initialize_hash_element): Update accordingly.
9901 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9902 (iterative_hash_hashable_expr): Handle calls to internal functions.
9903 (print_expr_hash_elt): Likewise.
9904 * tree-ssa-pre.c (can_value_number_call): Likewise.
9905 (eliminate): Handle null functions.
9906 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9907 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9908 (find_func_aliases): Likewise.
9909 * value-prof.c (gimple_ic_transform): Likewise.
9910 (gimple_indirect_call_to_profile): Likewise.
9911 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9912 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9914 2011-04-19 Jan Hubicka <jh@suse.cz>
9916 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9917 * ipa-inline.c (inline_small_functions): Compute summaries first,
9918 populate heap later.
9920 2011-04-19 Jan Hubicka <jh@suse.cz>
9922 * cgraph.h (save_inline_function_body): Remove.
9923 * ipa-inline-transform.c: New file, broke out of...
9924 * ipa-inline.c: ... this one; Update toplevel comment.
9925 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9927 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9928 (cgraph_mark_inline_edge): Rename to inline_call; move to
9929 ipa-inline-transform.c.
9930 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9931 move to ipa-inline-transform.c
9932 (recursive_inlining, inline_small_functions, flatten_function,
9933 ipa_inline, inline_always_inline_functions,
9934 early_inline_small_functions): Update.
9935 (inline_transform): Move to ipa-inline-transform.c.
9936 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9938 * Makefile.in (ipa-inline-transform.o): New file.
9939 * cgraphunit.c (save_inline_function_body): Move to
9940 ipa-inline-transform.c
9942 2011-04-19 DJ Delorie <dj@redhat.com>
9944 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9945 registers if we already know there aren't any.
9946 (m32c_emit_epilogue): Don't emit a barrier here.
9947 (m32c_emit_eh_epilogue): Likewise.
9948 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9949 operands at expand time.
9950 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9952 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9953 duplicates. Provide aliases instead.
9954 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9955 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9958 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9960 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9961 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9962 (general_or_i64_p, sparc_register_move_cost): New function.
9964 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9966 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9967 Add lynx, mipssde. Sort table.
9969 2011-04-19 Xinliang David Li <davidxl@google.com>
9971 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9974 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9977 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9978 is a SUBREG with non-MODE_INT mode inside of it.
9980 2011-04-19 Martin Jambor <mjambor@suse.cz>
9982 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9983 also according to actual contants.
9984 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9985 (gimple_fold_call): Use it.
9986 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9988 2011-04-19 Martin Jambor <mjambor@suse.cz>
9990 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9991 non-pointer assignments.
9993 2011-04-19 Martin Jambor <mjambor@suse.cz>
9995 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9996 account anc_offset and otr_type from the indirect edge info.
9997 * ipa-prop.c (get_ancestor_addr_info): New function.
9998 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9999 get_ancestor_addr_info, call it.
10000 (ipa_note_param_call): Do not initialize information about polymorphic
10001 calls, return the indirect call graph edge. Remove the last
10002 parameter, adjust all callers.
10003 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
10004 parameters. Initialize polymorphic information in the indirect edge.
10006 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10009 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
10010 the types if they have different enumeration identifiers.
10012 2011-04-19 Jan Hubicka <jh@suse.cz>
10014 * cgraph.h (cgraph_optimize_for_size_p): Declare.
10015 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
10016 * predict.c (cgraph_optimize_for_size_p): Break out from ...
10017 (optimize_function_for_size_p) ... here.
10019 2011-04-19 Richard Guenther <rguenther@suse.de>
10022 * tree.c (free_lang_data): Do not reset the decl-assembler-name
10025 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10027 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
10028 if DECL_NO_INLINE_WARNING_P is set on the function.
10030 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
10033 * reload1.c (inc_for_reload): Return void. All callers changed.
10034 (emit_input_reload_insns): Don't try to delete previous output
10035 reloads to a register, or record spill_reg_store for autoincs.
10037 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
10039 * gengtype.h: Updated copyright year.
10040 (struct input_file_st): Add inpisplugin field.
10041 (type_fileloc): New function.
10043 (write_typed_struct_alloc_def): Add gcc_assert.
10044 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
10045 (write_typed_alloc_defns): Don't output for plugin files.
10046 (input_file_by_name): Clear inpisplugin field.
10047 (main): Set inpisplugin field for plugin files.
10049 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
10051 * gengtype-state.c (string_eq): New.
10052 (read_state): Use string_eq instead of strcmp when creating the
10055 2011-04-19 Wei Guozhi <carrot@google.com>
10058 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
10059 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
10061 * config/arm/constraints.md (Uu): New constraint.
10062 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
10064 2011-04-19 Tristan Gingold <gingold@adacore.com>
10066 * config.gcc (-*-*-*vms): Added.
10067 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
10069 * config/vms/vms-ld.c: New file.
10070 * config/vms/vms-ar.c: New file.
10071 * config/vms/t-vmsnative: New file.
10073 2011-04-18 Xinliang David Li <davidxl@google.com>
10075 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
10077 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10079 PR middle-end/48661
10080 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
10081 if TREE_TYPE (v) is non-NULL.
10083 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
10084 gimple_get_virt_mehtod_for_binfo.
10085 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
10086 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
10088 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10090 2011-04-18 Michael Matz <matz@suse.de>
10091 Steve Ellcey <sje@cup.hp.com>
10093 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
10094 use its mode as source mode if it isn't VOIDmode.
10096 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
10098 * doc/passes.texi: Fill crossref nodes.
10100 2011-04-18 Jim Meyering <meyering@redhat.com>
10102 Fix doubled-word typos in comments and strings
10103 * config/alpha/vms-unwind.h: s/for for/for/
10104 * config/arm/unwind-arm.h: Likewise.
10105 * config/microblaze/microblaze.c: Likewise.
10106 * config/sh/constraints.md: s/in in/in/
10107 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
10109 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
10111 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
10112 (AVX_FLOAT_MODE_P): Ditto.
10113 (AVX128_VEC_FLOAT_MODE_P): Ditto.
10114 (AVX256_VEC_FLOAT_MODE_P): Ditto.
10115 (AVX_VEC_FLOAT_MODE_P): Ditto.
10116 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
10117 (UNSPEC_MASKSTORE): Ditto.
10118 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
10119 Merge from <sse>_movmsk<ssemodesuffix> and
10120 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
10121 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
10123 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
10124 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
10125 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
10127 2011-04-18 Jan Hubicka <jh@suse.cz>
10129 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
10131 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
10132 (want_inline_function_called_once_p): Break out the logic from
10134 (edge_badness): Ensure that profile is not misupdated.
10135 (lookup_recursive_calls): Prioritize by call frequencies.
10136 (inline_small_functions): Move program size estimates here;
10137 actually process whole queue even when unit growth has been
10138 met. (to properly compute inline_failed reasons and for the
10139 case unit size decrease.) Revisit comments on recursive inlining.
10140 (ipa_inline): Remove unit summary code; first inline hot calls
10141 of functions called once, cold calls next.
10142 (order, nnodes): Remove unused variables.
10143 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
10144 (GTFILES): Remove ipa-inline.c
10145 * sel-sched.c (fill_insns): Silence uninitialized var warning.
10147 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10149 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
10151 2011-04-18 Jie Zhang <jie@codesourcery.com>
10152 Richard Earnshaw <rearnsha@arm.com>
10154 * arm.c (neon_builtin_type_bits): Remove.
10155 (typedef enum neon_builtin_mode): New.
10156 (T_MAX): Don't define.
10157 (typedef enum neon_builtin_datum): Remove bits, codes[],
10158 num_vars and base_fcode. Add mode, code and fcode.
10159 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
10160 VAR10): Change accordingly.
10161 (neon_builtin_data[]): Change accordingly
10162 (arm_init_neon_builtins): Change accordingly.
10163 (neon_builtin_compare): Remove.
10164 (locate_neon_builtin_icode): Remove.
10165 (arm_expand_neon_builtin): Change accordingly.
10167 * arm.h (enum arm_builtins): Move to ...
10168 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
10170 * arm.c (arm_builtin_decl): Declare.
10171 (TARGET_BUILTIN_DECL): Define.
10172 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
10173 (arm_builtin_decls[]): New.
10174 (arm_init_neon_builtins): Store builtin declarations in
10175 arm_builtin_decls[].
10176 (arm_init_tls_builtins): Likewise.
10177 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
10178 (arm_builtin_decl): New.
10180 2011-04-18 Richard Guenther <rguenther@suse.de>
10182 * tree.c (upper_bound_in_type): Build properly canonicalized
10184 (lower_bound_in_type): Likewise.
10186 2011-04-18 Richard Guenther <rguenther@suse.de>
10188 * gimple.h (gimple_call_addr_fndecl): New function.
10189 (gimple_call_fndecl): Use it.
10190 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
10192 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
10193 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
10195 2011-04-18 Richard Guenther <rguenther@suse.de>
10197 PR middle-end/48650
10198 * tree.c (build_string): STRING_CST is now derived from tree_typed.
10200 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10203 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
10204 DECL_IN_CONSTANT_POOL without RTL.
10206 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
10207 Ira Rosen <ira.rosen@linaro.org>
10210 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
10211 to match neon_vzip/vuzp/vtrn_internal.
10212 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
10213 outputs explicitly dependent on both inputs.
10214 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
10216 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10218 PR tree-optimization/48616
10219 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
10220 whether the shift is by scalar or vector based on whether all SLP
10221 scalar stmts have the same rhs.
10223 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
10225 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
10228 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10231 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10234 2011-04-17 Jan Hubicka <jh@suse.cz>
10236 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
10237 * cgrpahunit.c (cgraph_finalize_function): Do not set
10238 finalized_by_frontend.
10239 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10240 finalized_by_frontend.
10242 2011-04-17 Jan Hubicka <jh@suse.cz>
10244 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10245 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10246 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
10247 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10249 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10251 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10253 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10256 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10257 is non-null before accessing it.
10258 (input_cgraph): Remove trailing spaces.
10260 2011-04-17 Revital Eres <revital.eres@linaro.org>
10262 * params.def (sms-min-sc): New param flag.
10263 * modulo-sched.c (sms_schedule): Use it.
10264 * doc/invoke.texi (sms-min-sc): Document it.
10266 2011-04-17 Jan Hubicka <jh@suse.cz>
10268 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10269 present, also set gimple_call_set_cannot_inline.
10270 * ipa-inline.c: Update toplevel comment.
10271 (MAX_TIME): Remove.
10272 (cgraph_clone_inlined_nodes): Fix linebreaks.
10273 (cgraph_check_inline_limits): Restructure to ...
10274 (caller_growth_limits): ... this one; be more tolerant
10275 on growth in nested inline chains; add explanatory comment;
10276 fix stack accounting thinko introduced by previous patch.
10277 (cgraph_default_inline_p): Remove.
10278 (report_inline_failed_reason): New function.
10279 (can_inline_edge_p): New function.
10280 (can_early_inline_edge_p): New function.
10281 (leaf_node_p): Move upwards in file.
10282 (want_early_inline_function_p): New function.
10283 (want_inline_small_function_p): New function.
10284 (want_inline_self_recursive_call_p): New function.
10285 (cgraph_edge_badness): Rename to ...
10286 (edge_badness) ... this one; fix linebreaks.
10287 (update_edge_key): Update call of edge_baddness; add
10288 detailed dump about queue updates.
10289 (update_caller_keys): Use can_inline_edge_p and
10290 want_inline_small_function_p.
10291 (cgraph_decide_recursive_inlining): Rename to...
10292 (recursive_inlining): Use can_inline_edge_p and
10293 want_inline_self_recursive_call_p; simplify and remove no longer
10295 (cgraph_set_inline_failed): Remove.
10296 (add_new_edges_to_heap): Use can_inline_edge_p and
10297 want_inline_small_function_p.
10298 (cgraph_decide_inlining_of_small_functions): Rename to ...
10299 (inline_small_functions): ... this one; cleanup; use
10300 can/want predicates; cleanup debug ouput; work edges till fibheap
10301 is exhausted and do not stop once unit growth is reached; remove
10302 later loop processing remaining edges.
10303 (cgraph_flatten): Rename to ...
10304 (flatten_function): ... this one; use can_inline_edge_p
10305 and can_early_inline_edge_p predicates.
10306 (cgraph_decide_inlining): Rename to ...
10307 (ipa_inline): ... this one; remove unreachable nodes before
10308 inlining functions called once; simplify the pass.
10309 (cgraph_perform_always_inlining): Rename to ...
10310 (inline_always_inline_functions): ... this one; use
10311 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10312 (cgraph_decide_inlining_incrementally): Rename to ...
10313 (early_inline_small_functions): ... this one; simplify
10314 using new predicates; cleanup; make dumps prettier.
10315 (cgraph_early_inlining): Rename to ...
10316 (early_inliner): newer inline regular functions into always-inlines;
10317 fix updating of call stmt summaries.
10318 (pass_early_inline): Update for new names.
10319 (inline_transform): Fix formating.
10320 (gate_cgraph_decide_inlining): Rename to ...
10321 (pass_ipa_inline): ... this one.
10322 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10323 * ipa-inline-analysis.c (dump_inline_summary): Update.
10324 (compute_inline_parameters): Do not compute disregard_inline_limits;
10325 look for mismatching arguments.
10326 (estimate_growth): Fix handlig of non-trivial self recursion.
10327 (inline_read_summary): Do not read info->disregard_inline_limits.
10328 (inline_write_summary): Do not write info->disregard_inline_limits.
10329 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10330 and move all checks into can_inline_edge_p predicate; re-enable code
10331 comparing optimization levels.
10332 (expand_call_inline): Do not test inline_forbidden_into_p.
10333 * Makefile.in (ipa-inline.o): Update arguments.
10335 2011-04-17 Revital Eres <revital.eres@linaro.org>
10337 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10339 2011-04-17 Revital Eres <revital.eres@linaro.org>
10341 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10343 2011-04-17 Michael Matz <matz@suse.de>
10345 PR tree-optimization/48622
10347 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10348 in same order as they're written.
10350 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10352 * config/pa/predicates.md: Reorganize and simplify predicates.
10353 Eliminate duplicate code checks.
10354 (arith_operand): Rename to arith14_operand
10355 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10356 * config/pa/pa.md: Use renamed operands.
10357 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10358 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10359 arith11_operand, adddi3_operand, indexed_memory_operand,
10360 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10361 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10362 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10363 move_dest_operand, move_src_operand, prefetch_cc_operand,
10364 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10365 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10366 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10367 div_operand, int5_operand, movb_comparison_operator,
10368 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10369 arith_double_operand, ireg_operand, lhs_lshift_operand,
10370 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10371 integer_store_memory_operand): Likewise.
10372 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10373 (integer_store_memory_operand, read_only_operand,
10374 function_label_operand, borx_reg_operand,
10375 non_hard_reg_operand): Likewise.
10376 (eq_neq_comparison_operator): Delete unused operator.
10377 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10378 function_label_operand.
10379 (emit_move_sequence): Likewise.
10381 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10383 * config/i386/sse.md (sseunpackmode): New mode attribute.
10384 (ssepackmode): Ditto.
10385 (vec_pack_trunc_<mode>): Macroize expander from
10386 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10387 (vec_unpacks_lo_<mode>): Macroize expander from
10388 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10389 (vec_unpacks_hi_<mode>): Macroize expander from
10390 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10391 (vec_unpacku_lo_<mode>): Macroize expander from
10392 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10393 (vec_unpacku_hi_<mode>): Macroize expander from
10394 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10395 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10396 ix86_expand_sse4_unpack.
10397 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10399 2011-04-16 Jan Hubicka <jh@suse.cz>
10401 * cgraphbuild.c: Include ipa-inline.h.
10402 (reset_inline_failed): Use initialize_inline_failed.
10403 * cgraph.c: Include ipa-inline.h.
10404 (cgraph_create_node_1): Do not initialize estimated_growth.
10405 (initialize_inline_failed): More to ipa-inline-analysis.c
10406 (dump_cgraph_node): Do not dump inline flags.
10407 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10408 and disregard_inline_limits flags.
10409 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10410 time, size, estimated_growth.
10411 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10413 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10414 DECL_DISREGARD_INLINE_LIMITS.
10415 (cgraph_analyze_function): Do not initialize
10416 node->local.disregard_inline_limits.
10417 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10418 inlinable, versionable and disregard_inline_limits.
10419 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10420 cgraph_check_inline_limits, cgraph_default_inline_p,
10421 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10422 add_new_edges_to_heap): Update.
10423 (cgraph_decide_inlining_of_small_function): Update; set
10424 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10425 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10426 cgraph_decide_inlining_incrementally): Update.
10427 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10428 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10429 time, size and estimated_growth parameters.
10430 (estimate_edge_growth): Update.
10431 (initialize_inline_failed): Declare.
10432 * ipa-split.c: Include ipa-inline.h
10433 (execute_split_functions): Update.
10434 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10435 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10436 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10437 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10438 estimated_growth to INT_MIN.
10439 (inline_node_duplication_hook): Likewise.
10440 (dump_inline_summary): Dump new fields.
10441 (compute_inline_parameters): Update.
10442 (estimate_edge_time, estimate_time_after_inlining,
10443 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10444 inline_write_summary):
10445 (initialize_inline_failed): Move here from cgraph.c.
10446 * tree-sra.c: Include ipa-inline.h.
10447 (ipa_sra_preliminary_function_checks): Update.
10448 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10451 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10453 * config/i386/sse.md (V16): New mode iterator.
10455 (AVXMODEQI, AVXMODEDI): Remove.
10456 (sse2, sse3): New mode attribute.
10457 (mov<mode>): Use V16 mode iterator.
10458 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10459 (push<mode>1): Use V16 mode iterator.
10460 (movmisalign<mode>): Ditto.
10461 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10462 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10463 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10464 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10465 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10466 avx_movdqu<avxmodesuffix>.
10467 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10468 *avx_movdqu<avxmodesuffix>.
10469 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10470 avx_lddqu<avxmodesuffix>.
10471 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10472 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10473 avx_movnt<AVXMODEDI:mode>.
10474 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10475 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10477 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10480 * haifa-sched.c (prune_ready_list, schedule_block): Use
10481 sched_pressure_p rather than flag_sched_pressure.
10483 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
10485 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10486 cgraph_get_node instead of cgraph_get_create_node.
10488 2011-04-15 Jakub Jelinek <jakub@redhat.com>
10490 * cfgexpand.c (expand_debug_expr): Use
10491 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10493 2011-04-15 Michael Matz <matz@suse.de>
10495 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10496 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10497 * function.c (gimplify_parameters): Ditto.
10498 * gimplify.c (gimplify_vla_decl): Ditto.
10500 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10501 (gimple_call_set_alloca_for_var): New inline function.
10502 (gimple_call_alloca_for_var_p): Ditto.
10503 * gimple.c (gimple_build_call_from_tree): Remember
10504 CALL_ALLOCA_FOR_VAR_P state.
10505 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10507 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10508 calls if they were for VLA objects.
10510 2011-04-15 Martin Jambor <mjambor@suse.cz>
10512 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10515 2011-04-15 Martin Jambor <mjambor@suse.cz>
10517 PR middle-end/48601
10518 * tree-emutls.c (lower_emutls_function_body): Call
10519 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10520 result is non-NULL.
10522 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10524 * c-decl.c (detect_field_duplicates): Call
10525 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10527 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10529 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10530 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10531 * ipa-pure-const.c (check_stmt): Call it.
10532 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10534 2011-04-15 Richard Guenther <rguenther@suse.de>
10536 PR tree-optimization/48290
10537 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10538 Properly decide inhibiting propagation based on the valueized
10539 operand. Do loop-closed SSA form preserving here ...
10540 (init_copy_prop): ... not here.
10542 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10545 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10546 (*ieee_smax<mode>3): Likewise.
10548 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10550 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10551 Replace match_operand with match_dup for the third operand in
10554 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10556 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10557 to track processing of conditionals. Update all callers.
10558 (try_combine, simplify_if_then_else): Update.
10560 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10562 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10565 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
10567 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10568 instead of match_operand for operand 3.
10570 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10572 * recog.h (insn_operand_data): Add an "allows_mem" field.
10573 * genoutput.c (output_operand_data): Initialize it.
10574 * optabs.c (maybe_legitimize_operand_same_code): New function.
10575 (maybe_legitimize_operand): Use it when matching the original
10578 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10580 * gimplify.c: Fix issues in comments throughout.
10581 (voidify_wrapper_expr): Fix long line.
10582 (build_stack_save_restore): Likewise.
10583 (gimplify_loop_expr): Likewise.
10584 (gimplify_compound_lval): Likewise.
10585 (gimplify_init_ctor_eval): Likewise.
10586 (gimplify_modify_expr_rhs): Likewise.
10587 (omp_notice_threadprivate_variable): Likewise.
10589 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10591 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10592 original one if this is not a builtin function.
10594 2011-04-14 Jakub Jelinek <jakub@redhat.com>
10597 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10598 offset it as needed based on top 2 bits in operands[3], change
10599 MEM mode to SFmode and mask those 2 bits away from operands[3].
10601 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10603 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10604 change from objc_declare_protocols() to objc_declare_protocol().
10606 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
10608 * config/i386/sse.md (sse4_1): New mode attribute.
10609 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10610 avx_blend<ssemodesuffix><avxmodesuffix> and
10611 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10612 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10613 avx_blendv<ssemodesuffix><avxmodesuffix> and
10614 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10615 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10616 avx_dp<ssemodesuffix><avxmodesuffix> and
10617 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10618 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10619 (sse4_1_packusdw): Merge with *avx_packusdw.
10620 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10621 (sse4_1_pblendw): Merge with *avx_pblendw.
10622 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10623 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10624 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10626 (sse4_1_round<ssescalarmodesuffix>): Merge with
10627 *avx_round<ssescalarmodesuffix>.
10628 (aesenc): Merge with *avx_aesenc.
10629 (aesenclast): Merge with *avx_aesenclast.
10630 (aesdec): Merge with *avx_aesdec.
10631 (aesdeclast): Merge with *avx_aesdeclast.
10632 (pclmulqdq): Merge with *pclmulqdq.
10633 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10635 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10637 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10639 PR middle-end/48608
10640 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10641 (align_local_variable): This. Update DECL_ALIGN.
10642 (add_stack_var): Updated.
10643 (expand_one_stack_var): Likewise.
10645 2011-04-14 Richard Guenther <rguenther@suse.de>
10647 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10649 (dse_initialize_block_local_data, dse_leave_block,
10650 record_voperand_set, get_stmt_uid): Likewise.
10651 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10652 (dse_optimize_stmt): Remove voperand set handling code.
10653 Simplify and improve to handle any kind of killing stmt.
10654 (dse_record_phi): Remove.
10655 (dse_enter_block): Simplify.
10656 (tree_ssa_dse): Likewise.
10657 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10659 2011-04-14 Jan Hubicka <jh@suse.cz>
10661 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10662 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10663 (cgraph_local_info): Remove inline_summary.
10664 * ipa-cp.c: Include ipa-inline.h.
10665 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10666 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10668 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10669 (input_overwrite_node): Do not set inline summary.
10670 (input_node): Do not stream inline summary.
10671 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10672 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10673 growth; we do not have inline parameters computed for that anyway.
10674 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10675 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10676 (inline_summary_t): New type and VECtor.
10677 (debug_inline_summary, dump_inline_summaries): Declare.
10678 (inline_summary): Use VOCtor.
10679 (estimate_edge_growth): Kill hack computing call stmt size directly.
10680 * lto-section-in.c (lto_section_name): Add inline section.
10681 * ipa-inline-analysis.c: Include lto-streamer.h
10682 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10683 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10684 (inline_summary_vec): Define.
10685 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10686 dump_inline_summaries): New functions.
10687 (estimate_function_body_sizes): Properly compute size/time of outgoing
10689 (compute_inline_parameters): Alloc inline_summary; do not compute
10690 size/time of incomming calls.
10691 (estimate_edge_time): Avoid missing time summary hack.
10692 (inline_read_summary): Read inline summary info.
10693 (inline_write_summary): Write inline summary info.
10694 (inline_free_summary): Free all hooks and inline summary vector.
10695 * lto-streamer.h: Add LTO_section_inline_summary section.
10696 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10697 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10699 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10701 * tree-vectorizer.h (vect_strided_store_supported): Add a
10702 HOST_WIDE_INT argument.
10703 (vect_strided_load_supported): Likewise.
10704 (vect_permute_store_chain): Return void.
10705 (vect_transform_strided_load): Likewise.
10706 (vect_permute_load_chain): Delete.
10707 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10708 count argument. Check that the count is a power of two.
10709 (vect_strided_load_supported): Likewise.
10710 (vect_permute_store_chain): Return void. Update after above changes.
10711 Assert that the access is supported.
10712 (vect_permute_load_chain): Likewise.
10713 (vect_transform_strided_load): Return void.
10714 * tree-vect-stmts.c (vectorizable_store): Update calls after
10715 above interface changes.
10716 (vectorizable_load): Likewise.
10717 (vect_analyze_stmt): Don't check for strided powers of two here.
10719 2011-04-14 Richard Guenther <rguenther@suse.de>
10721 PR tree-optimization/48590
10722 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10723 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10724 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10725 BUILT_IN_STACK_SAVE.
10726 * tree-ssa-dce.c (propagate_necessity): Handle
10727 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10729 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10731 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10732 objc_declare_class.
10734 2011-04-14 Richard Guenther <rguenther@suse.de>
10736 * tree.h (get_object_alignment_1): Declare.
10737 * builtins.c (get_object_alignment_1): Split out worker from ...
10738 (get_object_alignment): ... here.
10739 * fold-const.c (get_pointer_modulus_and_residue): Use
10740 get_object_alignment_1.
10742 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10744 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10746 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10747 parameter. Generalise code to handle arrays as well as vectors.
10748 (vect_setup_realignment): Update accordingly.
10749 * tree-vect-stmts.c (vectorizable_store): Likewise.
10750 (vectorizable_load): Likewise.
10752 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10754 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10755 within the per-copy loop.
10757 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10759 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10762 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10764 * doc/options.texi (Negative): Explicitly mention that the
10765 Negative chain must be circular.
10767 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10769 * function.h (block_chainon): Declare.
10770 * function.c (block_chainon): Define.
10772 2011-04-14 Anatoly Sokolov <aesok@post.ru>
10773 Eric Weddington <eric.weddington@atmel.com>
10774 Georg-Johann Lay <avr@gjlay.de>
10776 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10778 (avr_init_builtins, avr_expand_builtin,
10779 avr_expand_delay_cycles, avr_expand_unop_builtin,
10780 avr_expand_binop_builtin ): New functions.
10781 (avr_builtin_id): New enum
10782 (struct avr_builtin_description): New struct
10783 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10784 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10786 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10787 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10788 UNSPECV_DELAY_CYCLES): new enumeration values
10789 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10790 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10791 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10792 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10793 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10794 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10795 "fmulsu"): New insns
10797 * config/avr/avr-c.c: fix line endings
10798 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10799 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10800 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10801 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10802 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10804 * doc/extend.texi (AVR Built-in Functions): New node
10805 (Target Builtins): Add documentation of AVR
10806 built-in functions.
10808 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
10811 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10812 alone. Error if non-const data has attribute progmem.
10814 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10816 * tree.h (struct tree_constructor): Include tree_typed instead of
10818 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10819 TS_TYPED instead of TS_COMMON.
10821 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10823 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10824 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10825 (sse2_psadbw): Merge with *avx_psadbw.
10826 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10827 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10828 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10829 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10830 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10831 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10832 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10833 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10834 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10835 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10836 (ssse3_palignrti): Merge with *avx_palignrti.
10838 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10840 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10841 * tree-ssanames.c (fini_ssanames): VEC_free it.
10842 (make_ssa_name_fn): Update for VECness of free_ssanames.
10843 (release_ssa_name, release_dead_ssa_names): Likewise.
10844 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10846 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10847 TS_TYPED instead of TS_COMMON.
10849 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10851 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10852 statistics_counter_event.
10853 * tree-ssa-copyrename.c (stats): Define.
10854 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10855 statistics_counter_event.
10856 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10857 (bswap_stats, widen_mul_stats): Define.
10858 (insert_reciprocals): Increment rdivs_inserted.
10859 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10860 rfuncs_inserted. Add calls to statistics_counter_event.
10861 (execute_cse_sincos_1): Increment inserted.
10862 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10863 statistics_counter_event.
10864 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10865 of bswap_stats. Add calls to statistics_counter_event.
10866 (convert_mult_to_widen): Increment widen_mults_inserted.
10867 (convert_plusminus_to_widen): Increment maccs_inserted.
10868 (convert_mult_to_fma): Increment fmas_inserted.
10869 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10870 calls to statistics_counter_event.
10872 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10874 PR rtl-optimization/48455
10875 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10876 `temp_costs->mem_cost'.
10878 2011-04-13 Jan Hubicka <jh@suse.cz>
10880 * ipa-inline.h: New file.
10881 * ipa-inline-analysis.c: New file. Broken out of ...
10882 * ipa-inline.c: ... this file; update toplevel comment;
10883 include ipa-inline.h
10884 (inline_summary): Move to ipa-inline.h
10885 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10886 ipa-inline-analysis.c.
10887 (cgraph_estimate_time_after_inlining): Rename to
10888 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10889 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10890 to estimate_edge_growth.
10891 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10892 rename to estimate_size_after_inlining.
10893 (cgraph_mark_inline_edge): Update for new naming convention.
10894 (cgraph_check_inline_limits): Likewise.
10895 (cgraph_edge_badness): Likewise.
10896 (cgraph_decide_recursive_inlining): Likewise.
10897 (cgraph_decide_inlining_of_small_functions): Likewise.
10898 (cgraph_decide_inlining_incrementally): Likewise.
10899 (cgraph_estimate_growth): Rename to estimate_growth; move to
10900 ipa-inline-analysis.c.
10901 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10902 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10903 (compute_inline_parameters): Likewise.
10904 (compute_inline_parameters_for_current): Likewise.
10905 (pass_inline_parameters): Likewise.
10906 (inline_indirect_intraprocedural_analysis): Likewise.
10907 (analyze_function): Rename to inline_analyze_function; likewise.
10908 (add_new_function): Move to ipa-inline-analysis.c.
10909 (inline_generate_summary): Likewise.
10910 (inline_read_summary): Likewise.
10911 (inline_write_summary): Likewise.
10912 * Makefile.in (ipa-inline-analysis.c): New file.
10914 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10916 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10917 * configure: Regenerate.
10919 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10921 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10922 instead of tree_common.
10923 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10925 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10926 TS_TYPED rather than TS_COMMON.
10927 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10929 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10932 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10933 r20 around calls of __tablejump_elpm__
10935 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10937 PR middle-end/48591
10938 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10940 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10942 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10944 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10945 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10946 (cfi_vec): New typedef.
10947 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10948 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10949 (cie_cfi_vec): New static variable.
10950 (cie_cfi_head): Delete.
10951 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10952 declaration changed. Use vector rather than list operations.
10953 (new_cfi): Don't initialize the dw_cfi_next field.
10954 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10955 rather than list operations.
10956 (lookup_cfa): Use vector rather than list operations.
10957 (output_cfis): New argument upto. Accept a cfi_vec rather than
10958 a dw_cfi_ref list head as argument. All callers changed.
10959 Iterate over the vector using upto as a maximum index.
10960 (output_all_cfis): New static function.
10961 (output_fde): Use vector rather than list operations. Use the
10962 new upto argument for output_cfis rather than manipulating a
10964 (dwarf2out_begin_prologue): Change initializations to match
10965 new struct members.
10966 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10967 from the vector length rather than searching for the end of a list.
10968 Use output_all_cfis.
10969 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10971 2011-04-13 Nick Clifton <nickc@redhat.com>
10973 * config/rx/rx.md (movmemsi): Do not use this pattern when
10974 volatile pointers are involved.
10976 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10978 * config/i386/sse.md (pinsrbits): Remove.
10979 (sse2_packsswb): Merge with *avx_packsswb.
10980 (sse2_packssdw): Merge with *avx_packssdw.
10981 (sse2_packuswb): Merge with *avx_packuswb.
10982 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10983 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10984 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10985 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10986 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10987 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10988 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10989 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10990 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10991 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10992 (sse2_loadld): Merge with *avx_loadld.
10993 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10994 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10995 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10996 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10997 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10999 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11001 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
11002 calling TREE_CHAIN.
11003 * print-tree.c (print_node): Likewise.
11004 * tree-inline.c (copy_tree_r): Likewise.
11005 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
11006 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
11007 instead of TS_COMMON.
11008 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
11009 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
11010 (copy_node_stat): Zero TREE_CHAIN only if necessary.
11011 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
11012 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
11014 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
11016 (TREE_CHAIN): Check for a TS_COMMON structure.
11017 (TREE_TYPE): Check for a TS_TYPED structure.
11019 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
11021 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11022 cgraph_get_create_node instead of cgraph_node.
11024 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11026 * c-parser.c (c_parser_initelt): Updated call to
11027 objc_build_message_expr.
11028 (c_parser_postfix_expression): Likewise.
11030 2011-04-12 Kai Tietz <ktietz@redhat.com>
11032 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
11033 MASK_MS_BITFIELD_LAYOUT bit.
11035 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11037 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
11038 assert it is always true.
11039 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
11042 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11044 * c-parser.c (c_lex_one_token): Rewritten conditional used when
11045 compiling Objective-C to be more efficient.
11047 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
11049 * opts-common.c (decode_cmdline_options_to_array): Remove variable
11052 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11054 * recog.h, genoutput.c, optabs.c: Revert last patch.
11056 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11059 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
11061 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11063 * recog.h (insn_operand_data): Add an "allows_mem" field.
11064 * genoutput.c (output_operand_data): Initialize it.
11065 * optabs.c (maybe_legitimize_operand_same_code): New function.
11066 (maybe_legitimize_operand): Use it when matching the original
11069 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11071 * genpreds.c (process_define_predicate): Move most processing
11072 to gensupport.c. Continue to validate the expression.
11073 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
11074 (process_define_predicate): Move processing to gensupport.c.
11075 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
11076 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
11077 (compute_predicate_codes): Moved from genrecog.c. Add lineno
11079 (valid_predicate_name_p): New function, split out from old
11080 genpreds.c:process_define_predicate.
11081 (process_define_predicate): New function, combining code from
11082 old genpreds.c and genrecog.c functions.
11083 (process_rtx): Call it for DEFINE_PREDICATE and
11084 DEFINE_SPECIAL_PREDICATE.
11086 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11088 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
11089 size of a '%A' memory reference.
11090 (T_DREG, T_QREG): New neon_builtin_type_bits.
11091 (arm_init_neon_builtins): Assert that the load and store operands
11092 are neon_struct_operands.
11093 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
11094 (NEON_ARG_MEMORY): New builtin_arg.
11095 (neon_dereference_pointer): New function.
11096 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
11097 Handle NEON_ARG_MEMORY.
11098 (arm_expand_neon_builtin): Update after above interface changes.
11099 Use NEON_ARG_MEMORY for loads and stores.
11100 * config/arm/predicates.md (neon_struct_operand): New predicate.
11101 * config/arm/iterators.md (V_two_elem): Tweak formatting.
11102 (V_three_elem): Use BLKmode for accesses that have no associated mode.
11103 (V_four_elem): Tweak formatting.
11104 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
11105 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
11106 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
11107 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
11108 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
11109 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
11110 (neon_vst4<mode>): Replace pointer operand with a memory operand.
11111 Use %A in the output template.
11112 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
11113 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
11114 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
11115 the width of the memory access. Remove post-increment.
11116 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
11118 2011-04-12 Nick Clifton <nickc@redhat.com>
11120 * config/v850/v850.c (expand_prologue): Do not use the CALLT
11121 instruction for interrupt handlers if the target is the basic V850
11123 (expand_epilogue): Likewise.
11125 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11127 PR rtl-optimization/48549
11128 * combine.c (propagate_for_debug): Also stop after BB_END of
11129 this_basic_block. Process LAST and just stop processing after it.
11130 (combine_instructions): If last_combined_insn has been deleted,
11131 set last_combined_insn to its PREV_INSN.
11133 2011-04-12 Richard Guenther <rguenther@suse.de>
11135 PR tree-optimization/46076
11136 * gimple.h (struct gimple_statement_call): Add fntype field.
11137 (gimple_call_fntype): Adjust.
11138 (gimple_call_set_fntype): New function.
11139 * gimple.c (gimple_build_call_1): Set the call function type.
11140 * gimplify.c (gimplify_call_expr): Preserve the function
11141 type the frontend used for the call.
11142 (gimplify_modify_expr): Likewise.
11143 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
11145 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
11147 * tree-ssa.c (useless_type_conversion_p): Function pointer
11148 conversions are useless.
11150 2011-04-12 Martin Jambor <mjambor@suse.cz>
11152 * cgraph.h (cgraph_node): Remove function declaration.
11153 (cgraph_create_node): Declare.
11154 (cgraph_get_create_node): Likewise.
11155 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
11156 Updated all callers.
11157 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
11158 the decl does not already exist. Call cgraph_get_create_node instead
11160 (cgraph_get_create_node): New function.
11161 (cgraph_same_body_alias): Update comment.
11162 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
11163 assert it does not return NULL.
11164 (cgraph_update_edges_for_call_stmt): Likewise.
11165 (cgraph_clone_edge): Likewise.
11166 (cgraph_create_virtual_clone): Likewise.
11167 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
11168 instead of cgraph_node.
11169 (cgraph_add_new_function): Call cgraph_create_node or
11170 cgraph_get_create_node instead of cgraph_node.
11171 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
11172 instead of cgraph_node.
11173 (record_eh_tables): Likewise.
11174 (mark_address): Likewise.
11175 (mark_load): Likewise.
11176 (build_cgraph_edges): Call cgraph_get_create_node instead
11178 (rebuild_cgraph_edges): Likewise.
11179 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
11180 instead of cgraph_node.
11181 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
11183 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
11184 cgraph_create_node instead of cgraph_node.
11185 * c-decl.c (finish_function): Call cgraph_get_create_node instead
11187 * lto-cgraph.c (input_node): Likewise.
11188 * lto-streamer-in.c (input_function): Likewise.
11189 * varasm.c (mark_decl_referenced): Likewise.
11190 (assemble_alias): Likewise.
11192 2011-04-12 Martin Jambor <mjambor@suse.cz>
11194 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
11195 instead of cgraph_node and assert it does not return NULL.
11196 * lto-streamer-in.c (lto_read_body): Likewise.
11197 * omp-low.c (new_omp_context): Likewise.
11198 (create_task_copyfn): Likewise.
11199 * tree-emutls.c (lower_emutls_function_body): Likewise.
11200 * matrix-reorg.c (transform_allocation_sites): Likewise.
11202 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11205 * c-typeck.c (build_asm_expr): Error out on attempts to use
11206 void type outputs or inputs for constraints that allow reg or
11207 don't allow memory.
11209 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
11210 Richard Earnshaw <rearnsha@arm.com>
11213 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
11214 to use sign-magnitude offsets. Reject unsupported unaligned
11215 cases. Add detailed description in comments.
11216 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
11217 condition from TARGET_32BIT to TARGET_ARM.
11219 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
11221 * tree.h (struct typed_tree): New.
11222 (struct tree_common): Include it instead of tree_base.
11223 (TREE_TYPE): Update for new location of type field.
11224 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
11225 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
11226 (union tree_node): Add typed field.
11227 * treestruct.def (TS_TYPED): New.
11228 * lto-streamer.c (check_handled_ts_structures): Handle it.
11229 * tree.c (MARK_TS_TYPED): New macro.
11230 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
11232 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
11234 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11235 (force_nonfallthru): Do not alter the loop nest if no basic block
11238 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11240 * config/i386/sse.md (VI): New mode iterator.
11241 (SSEMODEI): Remove.
11242 (AVX256MODEI): Ditto.
11243 (AVXMODEF4P): Ditto.
11244 (avxvecpsmode): Ditto.
11245 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
11246 (sse2_andnot<mode>3): New expander.
11247 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11248 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
11249 (<any_logic:code><mode>3): Use VI mode iterator.
11250 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11251 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
11252 (*andnottf3): Handle AVX three-operand constraints.
11253 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11255 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11256 Robert Millan <rmh@gnu.org>
11258 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11259 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11260 GNU_USER_DYNAMIC_LINKER64): Define.
11261 (REG_NAME): Don't undefine.
11262 (MD_UNWIND_SUPPORT): Undefine.
11263 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11264 (REG_NAME): Don't undefine.
11265 (MD_UNWIND_SUPPORT): Undefine.
11266 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
11268 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11270 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11271 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11273 2011-04-11 Xinliang David Li <davidxl@google.com>
11275 * value-profile.c (check_ic_target): New function.
11276 (gimple_ic_transform): Sanity check indirect call target.
11277 * gimple-low.c (gimple_check_call_args): Interface change.
11278 (gimple_check_call_matching_types): New function.
11279 * tree-inline.c (tree_can_inline_p): Call new function.
11281 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
11283 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11284 tree-pretty-print.h & realmpfr.h.
11286 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
11288 PR middle-end/48464
11289 * ira.c (setup_pressure_classes): Fix typo in loop condition.
11290 (setup_allocno_and_important_classes): Ditto.
11292 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11294 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11295 GNU_USER_DYNAMIC_LINKER.
11296 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11298 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11299 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11300 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11301 GNU_USER_TARGET_OS_CPP_BUILTINS.
11302 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11304 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11306 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11307 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11308 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11309 GNU_USER_TARGET_OS_CPP_BUILTINS.
11310 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11311 GNU_USER_DYNAMIC_LINKER.
11312 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11313 GNU_USER_TARGET_OS_CPP_BUILTINS.
11314 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11315 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11316 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11317 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11318 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11319 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11320 GNU_USER_DYNAMIC_LINKER64): Remove.
11321 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11322 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11323 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11324 GNU_USER_DYNAMIC_LINKER.
11325 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11326 GNU_USER_TARGET_OS_CPP_BUILTINS.
11327 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11328 GNU_USER_TARGET_OS_CPP_BUILTINS.
11329 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11330 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11331 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11332 GNU_USER_TARGET_OS_CPP_BUILTINS.
11333 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11334 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11335 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11336 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11337 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11338 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11339 GNU_USER_DYNAMIC_LINKER.
11340 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11341 GNU_USER_TARGET_OS_CPP_BUILTINS.
11342 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11344 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11345 GNU_USER_DYNAMIC_LINKER.
11346 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11347 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11348 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11350 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11351 GNU_USER_DYNAMIC_LINKER.
11352 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11353 GNU_USER_DYNAMIC_LINKERN32.
11354 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11355 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11356 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11357 GNU_USER_DYNAMIC_LINKER32.
11358 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11360 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11361 GNU_USER_DYNAMIC_LINKER.
11362 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11364 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11366 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11367 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11368 GNU_USER_DYNAMIC_LINKER32.
11369 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11370 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11371 GNU_USER_DYNAMIC_LINKER.
11372 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11373 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11374 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11375 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11376 GNU_USER_DYNAMIC_LINKER64.
11377 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11378 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11379 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11380 GNU_USER_DYNAMIC_LINKER.
11381 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11383 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11384 GNU_USER_DYNAMIC_LINKER.
11385 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11386 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11387 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11388 GNU_USER_DYNAMIC_LINKER32.
11389 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11390 GNU_USER_DYNAMIC_LINKER64.
11391 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11392 GNU_USER_DYNAMIC_LINKER64.
11393 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11394 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11395 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11396 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11397 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11399 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11401 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11402 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11403 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11404 GNU_USER_DYNAMIC_LINKER.
11405 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11406 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11407 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11408 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11409 GNU_USER_DYNAMIC_LINKER64.
11410 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11411 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11412 GNU_USER_LINK_EMULATION.
11413 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11414 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11415 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11416 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11417 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11418 CPP_SPEC, CC1_SPEC): Remove.
11419 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11420 (GNU_USER_DYNAMIC_LINKER): Define.
11421 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11422 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11423 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11424 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11425 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11426 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11427 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11428 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11429 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11430 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11431 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11432 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11433 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11434 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11435 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11436 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11437 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11438 GNU_USER_DYNAMIC_LINKER.
11439 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11440 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11441 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11442 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11443 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11444 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11445 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11446 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11447 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11448 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11450 2011-04-11 Kai Tietz <ktietz@redhat.com>
11454 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11455 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11457 (ix86_is_msabi_thiscall): Removed.
11458 (ix86_is_type_thiscall): Likewise.
11459 (ix86_get_callcvt): New function.
11460 (ix86_comp_type_attributes): Simplify check.
11461 (ix86_function_regparm): Use ix86_get_callcvt for calling
11462 convention attribute checks.
11463 (ix86_return_pops_args): Likewise.
11464 (ix86_static_chain): Likewise.
11465 (x86_this_parameter): Likewise.
11466 (x86_output_mi_thunk): Likewise.
11467 (ix86_function_type_abi): Optimize check for types without attributes.
11468 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11469 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11470 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11472 (IX86_BASE_CALLCVT): Helper macro.
11473 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11474 Use ix86_get_callcvt for calling convention attribute checks and avoid
11475 symbol-decoration for stdcall in TARGET_RTD case.
11476 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11478 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11481 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11483 * config/i386/sse.md (VI_128): New mode iterator.
11484 (VI12_128): Rename from SSEMODE12.
11485 (VI14_128): Rename from SSEMODE14.
11486 (VI124_128): New mode iterator.
11487 (VI24_128): Rename from SSEMODE248.
11488 (VI248_128): Rename from SSEMODE248.
11489 (SSEMODE124C8): Remove.
11490 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11491 (*sse2_<plusminus_insn><mode>3): Merge with
11492 *avx_<plusminus_insn><mode>3.
11493 (*mulv8hi3): Merge with *avx_mulv8hi3.
11494 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11495 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11496 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11497 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11498 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11499 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11500 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11501 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11502 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11503 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11504 (*<smaxmin:code>v8hi3): Ditto.
11505 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11506 (*<smaxmin:code>v16qi3): Ditto.
11507 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11508 (*sse2_eq<mode>3): Ditto.
11509 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11510 (*sse2_gt<mode>3): Ditto.
11511 (vcondv2di): Split out of vcond<mode>.
11512 (vconduv2di): Split out of vcondu<mode>.
11514 2011-04-11 Richard Guenther <rguenther@suse.de>
11516 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11517 before calling tree_low_cst.
11519 2011-04-11 Richard Guenther <rguenther@suse.de>
11521 * stor-layout.c (layout_type): Compute all array index size operations
11522 in the original type.
11523 (initialize_sizetypes): Add comment.
11524 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11526 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11528 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11530 2011-04-11 Martin Jambor <mjambor@suse.cz>
11532 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11533 of cgraph_node, handle NULL return value.
11534 (cgraph_global_info): Likewise.
11535 (cgraph_rtl_info): Likewise.
11536 * tree-inline.c (estimate_num_insns): Likewise.
11537 * gimplify.c (unshare_body): Likewise.
11538 (unvisit_body): Likewise.
11539 (gimplify_body): Likewise.
11540 * predict.c (optimize_function_for_size_p): Likewise.
11541 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11542 (call_may_clobber_ref_p_1): Likewise.
11543 * varasm.c (function_section_1): Likewise.
11544 (assemble_start_function): Likewise.
11546 2011-04-11 Martin Jambor <mjambor@suse.cz>
11548 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11550 * final.c (rest_of_clean_state): Likewise.
11551 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11552 * passes.c (pass_init_dump_file): Likewise.
11553 (execute_all_ipa_transforms): Likewise.
11554 (function_called_by_processed_nodes_p): Likewise.
11555 * predict.c (maybe_hot_frequency_p): Likewise.
11556 (probably_never_executed_bb_p): Likewise.
11557 (compute_function_frequency): Likewise.
11558 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11559 (unnest_nesting_tree_1): Likewise.
11560 (lower_nested_functions): Likewise.
11561 * tree-optimize.c (execute_fixup_cfg): Likewise.
11562 (tree_rest_of_compilation): Likewise.
11563 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11564 * tree-sra.c (ipa_early_sra): Likewise.
11565 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11566 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11567 * ipa.c (record_cdtor_fn): Likewise.
11568 * ipa-inline.c (cgraph_early_inlining): Likewise.
11569 (compute_inline_parameters_for_current): Likewise.
11570 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11571 * ipa-pure-const.c (local_pure_const): Likewise.
11572 * ipa-split.c (split_function): Likewise.
11573 (execute_split_functions): Likewise.
11574 * cgraphbuild.c (build_cgraph_edges): Likewise.
11575 (rebuild_cgraph_edges): Likewise.
11576 (cgraph_rebuild_references): Likewise.
11577 (remove_cgraph_callee_edges): Likewise.
11578 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11579 (verify_cgraph_node): Likewise.
11580 (cgraph_analyze_functions): Likewise.
11581 (cgraph_preserve_function_body_p): Likewise.
11582 (save_inline_function_body): Likewise.
11583 (save_inline_function_body): Likewise.
11584 * tree-inline.c (copy_bb): Likewise.
11585 (optimize_inline_calls): Likewise.
11587 2011-04-11 Martin Jambor <mjambor@suse.cz>
11589 PR tree-optimization/48195
11590 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11591 ipa_check_create_edge_args.
11592 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11593 ipa_check_create_edge_args.
11594 * ipa-inline.c (inline_generate_summary): Do not call
11595 ipa_check_create_node_params and ipa_check_create_edge_args.
11596 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11597 ipa_check_create_edge_args.
11599 2011-04-09 Anatoly Sokolov <aesok@post.ru>
11601 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11603 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11604 * function.c (record_hard_reg_sets): Likewise.
11605 * ira.c (compute_regs_asm_clobbered): Likewise.
11606 * sched-deps.c (sched_analyze_1): Likewise.
11607 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11609 2011-04-09 Xinliang David Li <davidxl@google.com>
11611 PR tree-optimization/PR48484
11612 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11613 has_valid_pred lazily
11615 2011-04-09 Duncan Sands <baldrick@free.fr>
11617 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11619 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11621 * combine.c (combine_validate_cost): Adjust comments. Set registered
11622 cost of I0 to zero at the end, if any.
11624 2011-04-08 Xinliang David Li <davidxl@google.com>
11626 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11627 to insane profile data.
11629 2011-04-08 Xinliang David Li <davidxl@google.com>
11631 * ipa-cp.c (ipcp_update_profiling): Correct
11632 negative scale factor due to insane profile data.
11634 2011-04-08 Xinliang David Li <davidxl@google.com>
11636 * final.c (dump_basic_block_info): New function.
11637 (final): Dump basic block.
11638 (final_scan_insn): Remove old dump.
11640 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11643 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11646 2011-04-08 Michael Matz <matz@suse.de>
11648 PR middle-end/48389
11649 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11651 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11652 * rtl.h (rebuild_jump_labels_chain): Declare.
11653 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11654 insns inserted on edges.
11656 2011-04-08 Joseph Myers <joseph@codesourcery.com>
11658 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11659 * config/arm/arm-arches.def: New.
11660 * config/arm/arm-opts.h: New.
11661 * config/arm/genopt.sh: New.
11662 * config/arm/arm-tables.opt: New (generated).
11663 * config/arm/arm.c (arm_handle_option, arm_target_help,
11664 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11665 (all_architectures): Get most table contents from arm-arches.def.
11666 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11667 arm_selected_tune here.
11668 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11669 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11670 (march=, mcpu=, mtune=): Use Enum and Var.
11671 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11672 (arm.o): Update dependencies.
11674 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
11676 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11678 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11679 (write_typed_alloc_defns): Likewise.
11680 (main): Calls write_typed_alloc_defns with output_header.
11682 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11684 PR inline-asm/48435
11685 * ira-color.c (setup_profitable_hard_regs): Add comments.
11686 Don't take prohibited hard regs into account.
11687 (setup_conflict_profitable_regs): Rename to
11688 get_conflict_profitable_regs.
11689 (check_hard_reg_p): Check prohibited hard regs.
11691 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11693 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11694 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11695 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11697 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11700 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
11701 move from floating point to shift amount register.
11702 (emit_move_sequence): Remove secondary reload support for floating
11703 point to shift amount amount register copies.
11704 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11705 amount register copies.
11706 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11707 register, return false if mode isn't a scalar integer mode.
11708 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11710 2011-04-08 Richard Guenther <rguenther@suse.de>
11712 * gimple.c (gimple_call_flags): Remove kludge.
11714 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11716 * sel-sched.c (sel_region_init): Move call to
11717 sel_setup_region_sched_flags after setup_current_loop_nest.
11719 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
11721 PR rtl-optimization/48272
11722 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11723 init_insn_reg_pressure_info. Adjust a caller.
11724 * sched-int.h (init_insn_reg_pressure_info): Declare.
11725 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11726 when sched-pressure is enabled.
11728 2011-04-08 Richard Guenther <rguenther@suse.de>
11730 * gimple.c (gimple_set_modified): Do not queue calls to
11731 MODIFIED_NORETURN_CALLS here ...
11732 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11734 2011-04-08 Richard Guenther <rguenther@suse.de>
11737 * toplev.c (lang_dependent_init): Do not open asm_out_file
11738 in WPA mode, nor perform debug machinery initialization.
11739 (finalize): Do not unlink asm_out_file in WPA mode.
11741 2011-04-08 Richard Guenther <rguenther@suse.de>
11743 * gimple.h (gimple_call_fntype): New function.
11744 (gimple_call_return_type): Use it.
11745 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11746 * gimple-low.c (gimple_check_call_args): Likewise.
11747 * gimple.c (gimple_call_flags): Likewise.
11748 (gimple_call_arg_flags): Likewise.
11749 (gimple_call_return_flags): Likewise.
11750 * tree-cfg.c (verify_gimple_call): Likewise.
11751 (do_warn_unused_result): Likewise.
11752 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11753 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11755 2011-04-08 Dmitry Melnik <dm@ispras.ru>
11757 PR rtl-optimization/48235
11758 * sel-sched.c (code_motion_process_successors): Recompute the last
11759 insn in basic block if control flow changed.
11760 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11761 Update condition for ilist_remove.
11763 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11765 PR rtl-optimization/48302
11766 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11767 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11768 it to record added preheader blocks.
11769 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11770 on to sel_add_loop_preheaders.
11771 (sel_region_init): Move call to setup_current_loop_nest after
11774 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11777 * cfgloop.h (loop_has_exit_edges): New helper.
11778 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11780 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11781 that have no exit edges.
11783 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11785 PR rtl-optimization/48442
11786 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11787 all callers. Adjust assert.
11789 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11791 PR tree-optimization/48377
11792 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11793 is_packed to true even for types with smaller TYPE_ALIGN than
11796 2011-04-08 Richard Guenther <rguenther@suse.de>
11799 * doc/tm.texi: Re-generate.
11801 2011-04-08 Wei Guozhi <carrot@google.com>
11804 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11805 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11806 * config/arm/arm.md (*push_multi): Change the length computation to
11809 2011-04-08 Anatoly Sokolov <aesok@post.ru>
11811 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11812 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11813 * doc/tm.texi: Regenerate.
11814 * system.h (ASM_OUTPUT_BSS): Poison.
11815 * varasm.c (asm_output_bss): Remove function.
11816 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11818 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11819 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11820 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11821 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11823 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11825 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11827 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11829 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11831 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11834 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11836 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11837 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11838 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11840 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11841 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11842 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11843 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11844 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11845 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11846 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11847 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11848 options. Don't map other m68k options manually. Don't handle
11849 old-style options as canonical.
11850 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11851 * doc/install.texi (m68k-*-*): Document binutils version requirement.
11853 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11855 * basic-block.h (force_nonfallthru): Move to...
11856 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11857 (force_nonfallthru): ...here.
11858 * cfghooks.c (force_nonfallthru): New function.
11859 * cfgrtl.c (force_nonfallthru): Rename into...
11860 (rtl_force_nonfallthru): ...this.
11861 (commit_one_edge_insertion): Do not set AUX field.
11862 (commit_edge_insertions): Do not discover new basic blocks.
11863 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11864 (cfg_layout_rtl_cfg_hooks): Likewise.
11865 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11866 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11867 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11869 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11871 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11874 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11876 * config/i386/sse.md: Update copyright year.
11877 (avxcvtvecmode): Remove.
11878 (sse_movhlps): Merge with *avx_movhlps.
11879 (sse_movlhps): Merge with *avx_movlhps.
11880 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11881 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11882 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11883 (sse_loadhps): Merge with *avx_loadhps.
11884 (sse_storelps): Merge with *avx_storelps.
11885 (sse_loadlps): Merge with *avx_loadlps.
11886 (sse_movss): Merge with *avx_movss.
11887 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11888 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11889 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11890 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11891 (vec_set<mode>_0): Ditto.
11892 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11893 (sse4_1_insertps): Merge with *avx_insertps.
11894 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11895 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11896 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11897 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11898 (sse2_storehpd): Merge with *avx_storehpd.
11899 (sse2_loadhpd): Merge with *avx_loadhpd.
11900 (sse2_loadlpd): Merge with *avx_loadlpd.
11901 (sse2_movsd): Merge with *avx_movsd.
11902 (*vec_concatv2df): Merge with *vec_concatv2df.
11904 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11907 * combine.c (combine_instructions): Add last_combined_insn,
11908 update it if insn is after it, pass it to all try_combine calls.
11909 (try_combine): Add last_combined_insn parameter, pass it instead of
11910 i3 to propagate_for_debug.
11912 2011-04-07 Nick Clifton <nickc@redhat.com>
11914 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11915 to handle MDR <-> data register transfers.
11916 (movhi_internal): Likewise.
11918 2011-04-07 Alan Modra <amodra@gmail.com>
11920 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11921 previous stack info.
11923 2011-04-07 Tom de Vries <tom@codesourcery.com>
11926 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11927 flow_find_cross_jump. Swap variables to implement backward replacement.
11928 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11930 2011-04-07 Tom de Vries <tom@codesourcery.com>
11933 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11934 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11936 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11937 src1 or src2. Redirect edges to the last basic block. Update
11938 frequency and count on multiple basic blocks in case of fallthru.
11940 2011-04-07 Tom de Vries <tom@codesourcery.com>
11943 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11945 (old_insns_match_p): Change return type. Replace return false/true
11946 with return dir_none/dir_both. Use can_replace_by.
11947 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11948 direction from dir_p. Register replacement direction in dir, last_dir
11949 and afterlast_dir. Handle new return type of old_insns_match_p using
11950 merge_dir. Return replacement direction in dir_p.
11951 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11952 return type of old_insns_match_p.
11953 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11954 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11955 flow_find_cross_jump.
11956 * basic-block.h (enum replace_direction): New type.
11957 (flow_find_cross_jump): Add parameter to declaration.
11959 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11961 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11962 (AVXMODEDCVTPS2DQ): Ditto.
11963 (VEC_FLOAT_MODE): Ditto.
11964 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11965 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11966 (<any_logic:code><mode>3): Use VF mode iterator.
11967 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11968 Use VF mode iterator.
11969 (copysign<mode>3): Use VF mode iterator.
11970 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11971 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11972 (*<any_logic:code><MODEF:mode>3): Merge with
11973 *avx_<any_logic:code><MODEF:mode>3.
11974 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11975 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11976 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11977 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11978 (sse2_cvtdq2ps): Use %v modifier.
11979 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11980 (avx_cvtps2dq<avxmodesuffix>): Remove.
11981 (sse2_cvtps2dq): Use %v modifier.
11982 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11983 (avx_cvttps2dq<avxmodesuffix>): Remove.
11984 (sse2_cvttps2dq): Use %v modifier.
11985 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11986 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11987 (sse2_cvtsd2siq): Fix insn template.
11988 (sse2_cvtsd2siq_2): Ditto.
11989 (sse2_cvttsd2siq): Ditto.
11990 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11991 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11993 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11995 * gcov-io.c: Use GCC Runtime Library Exception.
11997 2011-04-06 Jakub Jelinek <jakub@redhat.com>
12000 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
12001 as base_reg whatever register reg has been eliminated to, instead
12002 of hardcoding STACK_POINTER_REGNUM.
12004 2011-04-06 Joseph Myers <joseph@codesourcery.com>
12006 * doc/tm.texi.in: Document C target hooks as separate from general
12008 * doc/tm.texi: Regenerate.
12009 * genhooks.c (struct hook_desc): Add docname field.
12010 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
12012 (hook_array): Include c-target.def.
12013 (emit_documentation): Use docname field in output.
12014 (emit_init_macros): Take docname argument. Only emit definitions
12015 for hooks matching docname.
12016 (main): Expect additional arguments in all cases. Pass argument
12017 to emit_init_macros.
12018 * target.def: Move initial macro definitions and comments to
12019 target-hooks-macros.h.
12020 (gcc_targetcm): Move to c-family/c-target.def.
12021 * target.h (targetcm): Move declaration to c-family/c-target.h.
12022 * targhooks.c (default_handle_c_option): Move to
12024 * targhooks.h (default_handle_c_option): Move declaration to
12025 c-family/c-common.h.
12026 * target-hooks-macros.h: New file.
12027 * config.gcc (target_has_targetcm): Define and use to add to
12028 c_target_objs and cxx_target_objs.
12029 * config/default-c.c: New file.
12030 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
12031 of target.h and target-def.h.
12032 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
12033 (darwin_objc_construct_string, darwin_cfstring_ref_p,
12034 darwin_check_cfstring_format_arg): Make static.
12035 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12036 TARGET_STRING_OBJECT_REF_TYPE_P,
12037 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
12038 * config/darwin-protos.h (darwin_objc_construct_string,
12039 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
12041 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12042 TARGET_STRING_OBJECT_REF_TYPE_P,
12043 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
12044 * config/t-darwin (darwin-c.o): Update dependencies.
12045 * system.h (TARGET_HAS_TARGETCM): Poison.
12046 * Makefile.in (TARGET_H): Update.
12047 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
12048 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
12049 (default-c.o): New target.
12050 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
12051 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
12052 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
12054 (build/genhooks.o): Update dependencies.
12056 2011-04-06 Richard Guenther <rguenther@suse.de>
12058 * ipa-inline.c (enum inlining_mode): Remove.
12059 (cgraph_flatten): Use some other token.
12060 (cgraph_edge_early_inlinable_p): New function, split out from ...
12061 (cgraph_perform_always_inlining): New function, split out from ...
12062 (cgraph_decide_inlining_incrementally): ... here.
12063 (cgraph_mark_inline_edge): Adjust.
12064 (cgraph_early_inlining): Re-structure.
12065 (pass_early_inline): Require SSA form.
12067 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
12068 Julian Brown <julian@codesourcery.com>
12069 Mark Shinwell <shinwell@codesourcery.com>
12071 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
12072 LO_REGS only for Thumb-1.
12073 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
12074 be used in short instructions when optimising for size on Thumb-2.
12076 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12078 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
12079 associated with user returns to be preserved.
12081 2011-04-06 Tristan Gingold <gingold@adacore.com>
12083 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
12084 symbol_queue_size, DBXOUT_DECR_NESTING,
12085 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
12086 if XCOFF_DEBUGGING_INFO.
12088 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
12090 * config/i386/i386.md (attribute isa): New.
12091 (attribute enabled): New.
12092 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
12093 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
12094 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
12095 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
12096 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
12097 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12098 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
12099 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
12101 * config/i386/sse.md (VF): New mode iterator.
12105 (SSEMODEF4): Remove.
12106 (attribute sse): Handle V8SF and V4DF modes.
12107 (<absneg:code><mode>2): Use VF mode iterator.
12108 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
12110 (<plusminus_insn><mode>3): Use VF mode iterator.
12111 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12112 Use VF mode iterator.
12113 (<sse>_vm<plusminus_insn><mode>3): Merge with
12114 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
12115 (mul<mode>3): Use VF mode iterator.
12116 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
12117 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
12119 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
12120 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
12121 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
12122 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
12124 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
12125 Use VF1 mode iterator.
12126 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
12127 (sqrt<VF2:mode>2): New expander.
12128 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
12129 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
12130 and sqrtv2df2. Use VF mode iterator.
12131 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
12133 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
12134 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
12135 Use VF1 mode iterator.
12136 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
12137 (<smaxmin:code><mode>3): Use VF mode iterator.
12138 (*<smaxmin:code><mode>3_finite): Merge with
12139 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
12140 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12141 (<sse>_vm<smaxmin:code><mode>2): Merge with
12142 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
12143 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
12145 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
12147 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
12148 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
12149 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
12150 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
12151 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
12153 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
12154 Use VF_128 mode iterator.
12155 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
12157 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
12158 VF_128 mode iterator.
12159 (vcond<mode>): Use VF mode iterator.
12160 * config/i386/predicates.md (sse_comparison_operator): Merge with
12161 avx_comparison_float_operator. Do not declare as special_predicate.
12162 * config/i386/i386.c (struct builtin_description): Update for renamed
12164 (ix86_expand_args_builtin): Ditto.
12165 (ix86_expand_sse_compare_mask): Ditto.
12167 2011-04-06 Richard Guenther <rguenther@suse.de>
12169 * tree-inline.c (estimate_num_insns): For calls simply account
12170 for all passed arguments and a used return value.
12172 2011-04-06 Richard Guenther <rguenther@suse.de>
12174 PR tree-optimization/47663
12175 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
12176 call_stmt_time fields.
12177 (cgraph_edge_inlinable_p): Declare.
12178 (cgraph_edge_recursive_p): New inline function.
12179 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
12180 (cgraph_clone_edge): Copy it.
12181 * ipa-inline.c (cgraph_estimate_edge_time): New function.
12182 Account for call stmt time.
12183 (cgraph_estimate_time_after_inlining): Take edge argument.
12184 (cgraph_estimate_edge_growth): Account call stmt size.
12185 (cgraph_estimate_size_after_inlining): Take edge argument.
12186 (cgraph_mark_inline_edge): Adjust.
12187 (cgraph_check_inline_limits): Likewise.
12188 (cgraph_recursive_inlining_p): Remove.
12189 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
12190 (cgraph_decide_recursive_inlining): Take edge argument and
12192 (cgraph_decide_inlining_of_small_functions): Do not avoid
12193 diags for recursive inlining here.
12194 (cgraph_flatten): Adjust.
12195 (cgraph_decide_inlining_incrementally): Likewise.
12196 (estimate_function_body_sizes): Remove call cost handling.
12197 (compute_inline_parameters): Initialize caller edge call costs.
12198 (cgraph_estimate_edge_growth): New function.
12199 (cgraph_estimate_growth): Use it.
12200 (cgraph_edge_badness): Likewise.
12201 (cgraph_check_inline_limits): Take an edge argument.
12202 (cgraph_decide_inlining_of_small_functions): Adjust.
12203 (cgraph_decide_inlining): Likewise.
12204 * tree-inline.c (estimate_num_insns): Only account for call
12205 return value if it is used.
12206 (expand_call_inline): Avoid diagnostics on recursive inline
12208 * lto-cgraph.c (lto_output_edge): Output edge call costs.
12209 (input_edge): Input edge call costs.
12211 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12213 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
12215 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12217 * doc/invoke.texi (Spec Files): Fix typo.
12219 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12221 * profile.c (branch_prob): Move declaration of local variable. Remove
12222 obsolete ??? comment. Expand the location explicitly instead of using
12223 the LOCATION_FILE and LOCATION_LINE macros.
12225 2011-04-06 Wei Guozhi <carrot@google.com>
12228 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
12229 (arm_cond_branch): Likewise.
12230 (arm_cond_branch_reversed): Likewise.
12231 (arm_jump): Likewise.
12232 (push_multi): Likewise.
12233 * config/arm/constraints.md (Py): New constraint.
12235 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12238 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12240 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12241 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12242 #ifdef DBX_DEBUGGING_INFO.
12244 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
12247 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12248 if old and new states differ.
12250 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12252 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12253 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12254 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12255 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12256 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12257 mcfv4e): Use Alias.
12258 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12259 ColdFire options to -mcpu= options.
12261 2011-04-05 Jeff Law <law@redhat.com>
12263 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12264 check if BB is a successor of LOOP->header and return
12265 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12267 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12269 * cprop.c (struct reg_use): Remove.
12270 (reg_use_table): Make an array of RTX.
12271 (find_used_regs, constprop_register, local_cprop_pass,
12272 bypass_block): Simplify users of reg_use_table.
12273 (cprop_insn): Likewise. Iterate if copy propagation succeeded
12274 on one of the uses found by find_used_regs.
12276 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12279 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12282 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12284 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12286 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12288 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12290 PR middle-end/48441
12291 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12293 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12295 * combine.c: Include obstack.h.
12296 (struct insn_link): Define.
12297 (uid_log_links): Adjust type.
12298 (FOR_EACH_LOG_LINK): New macro.
12299 (insn_link_obstack): Declare.
12300 (alloc_insn_link): Define.
12301 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12302 type of link variables.
12303 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12304 (try_combine, record_promoted_values, distribute_notes): Likewise.
12305 (distribute_links): Likewise. Tweak prototype.
12306 (clear_log_links): Delete.
12307 (adjust_for_new_dest): Call alloc_insn_link.
12308 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12310 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12312 * gcse.c (modify_mem_list): Convert to an array of VECs.
12313 (canon_modify_mem_list, compute_transp): Tweak formatting.
12314 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12315 (load_killed_in_block_p): Likewise.
12316 (record_last_mem_set_info): Likewise.
12317 (clear_modify_mem_tables): Likewise.
12319 2011-04-05 Tom de Vries <tom@codesourcery.com>
12321 PR middle-end/48461
12322 * function.c (emit_use_return_register_into_block): Only define if
12325 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12327 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12329 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12331 * config/rx/rx-opts.h: New.
12332 * config/rx/rx.c (rx_cpu_type): Remove.
12333 (rx_handle_option): Don't assert that global structures are in
12334 use. Access variables via opts pointer. Defer most handling of
12335 OPT_mint_register_. Use error_at.
12336 (rx_option_override): Handle deferred OPT_mint_register_ here.
12337 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12338 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12339 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12340 (rx_cpu_types): New Enum and EnumValue entries.
12341 (mint-register=): Use Defer and use Var accordingly.
12343 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12345 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12346 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12347 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12349 (debug_free_queue, debug_nesting, symbol_queue_index):
12351 * dbxout.c: ...to here. Make static.
12353 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12355 * gcse.c (modify_pair): Define. Define a VEC of it.
12356 (canon_modify_mem_list): Convert to an array of VECs.
12357 (free_insn_expr_list_list): Delete.
12358 (clear_modify_mem_tables): Call VEC_free instead.
12359 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12360 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12361 (canon_list_insert, compute_transp): Likewise.
12363 2011-04-05 Tom de Vries <tom@codesourcery.com>
12366 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12369 2011-04-05 Tom de Vries <tom@codesourcery.com>
12372 * function.c (emit_use_return_register_into_block): New function.
12373 (thread_prologue_and_epilogue_insns): Use
12374 emit_use_return_register_into_block.
12376 2011-04-05 Tom de Vries <tom@codesourcery.com>
12379 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12382 2011-04-05 Tom de Vries <tom@codesourcery.com>
12384 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12386 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12388 * config/arm/arm.md (define_constants for unspec): Replace with
12390 (define_constants for unspecv): Replace with define_c_enum.
12391 * config/arm/neon.md (define_constants for unspec): Replace with
12394 2011-04-04 Richard Henderson <rth@redhat.com>
12397 * dwarf2out.c (output_line_info): Always emit line info from
12398 at least one section.
12399 (dwarf2out_init): Create text_section_line_info here ...
12400 (set_cur_line_info_table): ... not here.
12402 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
12405 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12408 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12410 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12412 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12413 (expr_equiv_p): Remove.
12414 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12415 (hash_scan_set): Update call to insert_set_in_table.
12416 (dump_hash_table): Dump <dest, src> pair.
12417 (lookup_set): Simplify. Lookup <dest, src> pair.
12418 (compute_transp): Remove, fold heavily simplified code into...
12419 (compute_local_properties): ...here. Expect COMP and TRANSP
12421 (find_avail_set): Take set directly from struct expr.
12422 (find_bypass-set): Likewise.
12423 (bypass_block): Likewise.
12424 (cprop_insn): Likewise. Remove redundant INSN_P test.
12426 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12427 checks on form of COND from find_implicit_sets to here.
12428 (find_implicit_sets): Cleanup control flow. Split critical edges
12429 if it exposes implicit sets. Allocate/resize implicit_sets as
12431 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12432 changed something. Run df_analyze after find_implicit_sets if any
12433 edges were split. Do not allocate implicit_sets here.
12435 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12436 (gcse_obstack): Renamed to cprop_obstack.
12437 (GNEW, GNEWVEC, GNEWVAR): Remove.
12439 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12440 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12441 (gcse_alloc): Likewise, and rename to cprop_alloc.
12442 (alloc_gcse_men, free_gcse_mem): Remove.
12443 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12444 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12445 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12447 * cprop.c (oprs_not_set_p): Remove.
12448 (mark_set, mark_clobber): Remove.
12449 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12450 (reg_not_set_p): New function.
12451 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12452 (cprop_insn): Likewise.
12453 (cprop_jump): Use FOR_EACH_EDGE.
12455 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12458 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12459 (rank_for_schedule): Use scheduled_insns vector instead of
12460 last_scheduled_insn.
12461 (ok_for_early_queue_removal): Likewise.
12462 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12464 (choose_ready): Likewise.
12465 (commit_schedule): Use VEC_iterate.
12466 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12467 a dbg_cnt, use it and ensure the first insn is in the ready list.
12468 (haifa_sched_init): Allocate scheduled_insns.
12469 (sched_extend_ready_list): Don't allocate it; reserve space.
12470 (haifa_sched_finish): Free it.
12472 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12474 * optc-gen.awk: Always remove type from Variable entry before
12475 recording in var_seen.
12477 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12479 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12480 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12481 call to tidy_fallthru_edges.
12483 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12485 * doc/options.texi (ToLower): Document.
12486 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12487 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12488 * opts.h (cl_option): Add cl_tolower field.
12489 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12490 arguments with lowercase strings.
12491 * config/rx/rx.opt (mcpu=): Add ToLower.
12492 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12495 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12497 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12499 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12501 * config/vax/vax.c: Include reload.h.
12503 2011-04-04 Anatoly Sokolov <aesok@post.ru>
12505 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12506 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12507 (sparc_preferred_reload_class): New function.
12509 2011-04-04 Jakub Jelinek <jakub@redhat.com>
12512 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12513 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12515 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12517 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12518 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12520 2011-04-03 Anatoly Sokolov <aesok@post.ru>
12522 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12523 (ASM_OUTPUT_ALIGNED_BSS): Define.
12525 2011-04-03 Michael Matz <matz@suse.de>
12527 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12528 and next_slot members.
12529 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12530 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12531 (lto_streamer_cache_append): Declare.
12532 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12533 unsigned index, remove offset parameter, ensure that we append
12534 or update existing entries.
12535 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12536 parameter, update next_slot for append.
12537 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12539 (lto_streamer_cache_insert_at): Likewise.
12540 (lto_streamer_cache_append): New function.
12541 (lto_streamer_cache_lookup): Use unsigned index.
12542 (lto_streamer_cache_get): Likewise.
12543 (lto_record_common_node): Don't test tree_node_can_be_shared.
12544 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12545 (lto_streamer_cache_delete): Don't free offsets member.
12546 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12547 (lto_output_string_with_length): Use lto_output_data_stream.
12548 (lto_output_tree_header): Remove ix parameter, don't write it.
12549 (lto_output_builtin_tree): Likewise.
12550 (lto_write_tree): Adjust callers to above, don't track and write
12551 offset, write unsigned index.
12552 (output_unreferenced_globals): Don't emit all global vars.
12553 (write_global_references): Use unsigned indices.
12554 (lto_output_decl_state_refs): Likewise.
12555 (write_symbol): Likewise.
12556 * lto-streamer-in.c (lto_input_chain): Move earlier.
12557 (input_function): Use unsigned index.
12558 (input_alias_pairs): Don't read and then ignore all global vars.
12559 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12560 don't pass it back, use lto_streamer_cache_append.
12561 (lto_register_var_decl_in_symtab): Use unsigned index.
12562 (lto_register_function_decl_in_symtab): Likewise.
12563 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12565 (lto_get_builtin_tree): Don't read index, use
12566 lto_streamer_cache_append.
12567 (lto_read_tree): Adjust call to lto_materialize_tree.
12569 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12570 don't use function calls in arguments to MIN.
12572 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12575 * gimple.c (gimple_type_leader_entry): Mark deletable.
12577 2011-04-03 Alan Modra <amodra@gmail.com>
12579 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12581 2011-04-03 Michael Matz <matz@suse.de>
12583 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12585 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12587 2011-04-03 Michael Matz <matz@suse.de>
12589 * cgraphbuild.c (record_reference): Canonicalize constructor values.
12590 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12591 without function context.
12592 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12593 current_function_decl and cfun.
12595 2011-04-03 Michael Matz <matz@suse.de>
12597 * tree.c (decl_init_priority_insert): Don't create entry for
12599 (decl_fini_priority_insert): Ditto.
12600 (fields_compatible_p, find_compatible_field): Remove.
12601 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12602 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12604 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12606 * combine.c (try_combine): Remove useless local variable.
12608 2011-04-03 Richard Guenther <rguenther@suse.de>
12609 Ira Rosen <ira.rosen@linaro.org>
12611 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12612 non-variable offsets and compare the remaining bases of the two
12613 accesses instead of looking for exact same data-ref.
12615 2011-04-02 Kai Tietz <ktietz@redhat.com>
12618 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12620 * i386.c (ix86_is_msabi_thiscall): New helper function.
12621 (ix86_is_type_thiscall): New helper function.
12622 (ix86_comp_type_attributes): Handle thiscall for method-functions
12624 (init_cumulative_args): Likewise.
12625 (find_drap_reg): Likewise.
12626 (ix86_static_chain): Likewise.
12627 (x86_this_parameter): Likewise.
12628 (x86_output_mi_thunk): Likewise.
12630 2011-04-01 Olivier Hainque <hainque@adacore.com>
12631 Nicolas Setton <setton@adacore.com>
12632 Eric Botcazou <ebotcazou@adacore.com>
12634 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12635 (add_gnat_descriptive_type_attribute): New function.
12636 (gen_array_type_die): Call it.
12637 (gen_enumeration_type_die): Likewise.
12638 (gen_struct_or_union_type_die): Likewise.
12639 (modified_type_die): Likewise.
12640 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12641 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12642 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12644 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12647 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12648 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12651 2011-03-17 Richard Guenther <rguenther@suse.de>
12654 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12655 origin for decls in other ltrans units.
12656 (input_varpool_node): Likewise.
12658 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12660 PR middle-end/48335
12661 * expr.c (expand_assignment): Handle all possibilities
12662 if TO_RTX is CONCAT.
12663 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
12664 (store_split_bit_field): If SUBREG_REG (op0) or
12665 op0 itself has smaller mode than word, return it
12666 for offset 0 and const0_rtx for out-of-bounds stores.
12667 If word is const0_rtx, skip it.
12669 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12671 * config/h8300/h8300.c (print_operand_address): Rename to...
12672 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12673 Call h8300_print_operand and h8300_print_operand_address instead of
12674 print_operand and print_operand_address. Declare.
12675 (print_operand): Renake to...
12676 (h8300_print_operand): ...this. Make static. Adjust comments.
12677 Call h8300_print_operand instead of print_operand. Declare.
12678 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12679 (h8300_register_move_cost): Likewise.
12680 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12681 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12682 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12683 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12684 * config/h8300/h8300-protos.h (print_operand): Delete.
12685 (print_operand_address): Delete.
12687 2011-04-01 Richard Henderson <rth@redhat.com>
12690 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12691 in strict mode before dwarf4. Re-order tests to early out
12692 before switching sections.
12694 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12696 * config/h8300/constraints.md: New file.
12697 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12698 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12699 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12700 * config/h8300/predicates.md (bit_operand): Likewise.
12701 (incdec_operand): Use satisfies_constraint_M and
12702 satisfies_constraint_O. Don't use C code block.
12703 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12704 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12705 (compute_mov_length): Use satisfies_constraint_G.
12706 (fix_bit_operand): Use satisfies_constraint_U.
12707 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12708 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12709 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12710 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12711 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12712 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12713 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12714 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12715 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12716 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12717 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12718 (EXTRA_MEMORY_CONSTRAINT): Delete.
12720 2011-04-01 Andrew Pinski <pinskia@gmail.com>
12721 Michael Meissner <meissner@linux.vnet.ibm.com>
12724 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12725 operands, as per the specifications.
12727 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12728 (vec_extract_evenv4sf): Ditto.
12729 (vec_extract_evenv8hi): Ditto.
12730 (vec_extract_evenv16qi): Ditto.
12731 (vec_extract_oddv4si): Ditto.
12733 2011-03-31 Mark Wielaard <mjw@redhat.com>
12735 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12736 high_pc attribute if the CU has no associated code. Only output
12737 DW_AT_entry_pc for CU if not generating strict dwarf and
12740 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12742 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12743 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12745 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12746 * final.c (final_start_function): Call the new function rather
12747 than using a NULL argument for dwarf2out_frame_debug.
12749 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12750 that contains the prologue.
12752 * haifa-sched.c (queue_insn): New arg REASON. All callers
12753 changed. Print it in debugging output.
12755 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12757 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12758 Split most of the code into...
12759 (begin_move_insn): ... here. New function.
12760 (ebb_sched_info): Add a pointer to it.
12761 * haifa-sched.c (scheduled_insns): New static variable.
12762 (sched_extend_ready_list): Allocate it.
12763 (schedule_block): Use it to record the order of scheduled insns.
12764 Perform RTL changes to move insns only after all scheduling
12765 decisions have been made.
12766 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12767 begin_move_insn field.
12768 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12769 * sched-int.h (struct haifa_sched_info): Remove second argument
12770 from begin_schedule_ready hook. Add new member begin_move_insn.
12771 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12772 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12774 * haifa-sched.c (prune_ready_list): New function, broken out of
12776 (schedule_block): Use it.
12778 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12780 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12782 2011-04-01 Kai Tietz <ktietz@redhat.com>
12784 * config.gcc (*-*-mingw*): Allow as option the
12785 posix threading model.
12786 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12787 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12789 (CPP_SPEC): Add pthread/no-pthread handling.
12790 (LIB_SPEC): Likewise.
12791 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12792 (LIB_SPEC): Likewise.
12793 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12794 flag to pass -pthread option for shared libgcc build.
12795 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12796 for shared libgcc build.
12797 * config/i386/t-mingw-pthread: New file.
12798 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12799 New define to enable use of library pthread by default.
12800 * config/i386/mingw.opt (pthread): New driver option.
12801 (no-pthread): New driver option.
12802 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12803 * config/i386/mingw-w64.opt: Likewise.
12805 2011-04-01 Gary Funck <gary@intrepid.com>
12807 * c-decl.c (grokdeclarator): Fix formatting.
12809 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12811 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12812 instead of n_operands.
12813 (set_storage_via_setmem): Likewise.
12814 * optabs.c (maybe_gen_insn): Likewise.
12815 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12816 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12817 (mips_expand_builtin_direct): Likewise.
12818 * config/spu/spu.c (expand_builtin_args): Likewise.
12820 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12822 * recog.h (insn_data_d): Add n_generator_args.
12823 * genoutput.c (data): Likewise.
12824 (output_insn_data): Print it.
12825 (max_opno, num_dups): Delete.
12826 (scan_operands): Just fill in "d->operand[...]".
12827 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12829 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12831 * gensupport.h (pattern_stats): New structure.
12832 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12833 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12834 (max_operand_1, max_operand_vec): Delete.
12835 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12837 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12839 * emit-rtl.c (emit_pattern_after_setloc): New function.
12840 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12841 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12842 (emit_pattern_after): New function.
12843 (emit_insn_after, emit_jump_insn_after): Call it.
12844 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12845 (emit_pattern_before_setloc): New function.
12846 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12847 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12849 (emit_pattern_before): New function.
12850 (emit_insn_before, emit_jump_insn_before): Call it.
12851 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12853 2011-03-31 Richard Henderson <rth@redhat.com>
12855 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12856 (dw_separate_line_info_entry): Remove.
12857 (enum dw_line_info_opcode): New.
12858 (dw_line_info_entry): Use it.
12859 (dw_line_info_table, dw_line_info_table_p): New.
12860 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12861 (line_info_table, line_info_label_num): Remove.
12862 (line_info_table_in_use): Remove.
12863 (separate_line_info_table): Remove.
12864 (separate_line_info_table_allocated): Remove.
12865 (separate_line_info_table_in_use): Remove.
12866 (LINE_INFO_TABLE_INCREMENT): Remove.
12867 (line_info_label_num): New.
12868 (cur_line_info_table): New.
12869 (text_section_line_info, cold_text_section_line_info): New.
12870 (separate_line_info): New.
12871 (SEPARATE_LINE_CODE_LABEL): Remove.
12872 (print_dwarf_line_table): Remove.
12873 (debug_dwarf): Don't dump it.
12874 (output_one_line_info_table): New.
12875 (output_line_info): Use it.
12876 (new_line_info_table): New.
12877 (set_cur_line_info_table): New.
12878 (dwarf2out_switch_text_section): Use it.
12879 (dwarf2out_begin_function): Likewise.
12880 (push_dw_line_info_entry): New.
12881 (dwarf2out_source_line): Rewrite for new line info tables.
12882 (dwarf2out_init): Remove dead initailizations.
12884 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12886 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12888 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12889 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12890 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12891 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12892 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12893 * opt-functions.awk (flag_init, switch_bit_fields): New.
12894 (switch_flags): Don't handle flags moved to bit-fields. Don't
12895 generate CL_MISSING_OK or CL_SAVE.
12896 * optc-gen.awk: Update to generate bit-field output as well as
12898 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12899 bit-field instead of CL_REJECT_DRIVER flag.
12900 * opts-common.c (generate_canonical_option,
12901 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12902 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12903 instead of CL_REJECT_NEGATIVE flag.
12904 * toplev.c (print_switch_values): Use cl_report bit-field instead
12907 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12909 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12910 a zero minimum index only if it is redundant.
12912 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12914 PR rtl-optimization/48381
12915 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12916 instead of ira_class_hard_reg_index for calculating conflicting
12919 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12921 * cprop.c: Clean up hash table building.
12922 (reg_avail_info): Remove.
12923 (oprs_available_p): Remove.
12924 (record_last_reg_set_info): Remove.
12925 (record_last_set_info): Remove.
12926 (reg_available_p): New function.
12927 (gcse_constant_p): Do not treat unfolded conditions as constants.
12928 (make_set_regs_unavailable): New function.
12929 (hash_scan_set): Simplify with new reg_available_p.
12930 (compute_hash_table_work): Traverse insns stream only once.
12931 Do not compute reg_avail_info. Traverse insns in reverse order.
12932 Record implicit sets after recording explicit sets from the block.
12934 2011-03-31 Michael Matz <matz@suse.de>
12936 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12938 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12940 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12941 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12942 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12943 (h8300_mode_dependent_address_p): New function.
12944 (h8300_get_index): Make static.
12946 2011-03-31 Jeff Law <law@redhat.com>
12948 * reload1.c (elimination_effects): Fix typo in recent change.
12950 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12951 typo potentially leading to null pointer dereference.
12953 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12954 (setup_save_areas): Corresponding changes to avoid useless
12957 * jump.c (reversed_comparison_code_parts): Avoid successive return
12958 statements when REVERSE_CONDITION is defined.
12960 * expr.c (expand_assignment): Avoid useless assignments.
12961 (expand_expr_real_1): Likewise.
12962 (expand_expr_real_2): Avoid useless statements.
12964 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12966 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12968 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12971 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12973 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12976 * doc/tm.texi.in (TARGET_VERSION): Remove.
12977 * doc/tm.texi: Regenerate.
12978 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12979 * collect2.c (main): Don't use TARGET_VERSION.
12980 * mips-tdump.c (main): Don't use TARGET_VERSION.
12981 * mips-tfile.c (main): Don't use TARGET_VERSION.
12982 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12983 * config/rs6000/vxworksae.h: Remove.
12984 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12985 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12986 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12987 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12988 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12989 * config/arm/arm.h (TARGET_VERSION): Remove.
12990 * config/arm/coff.h (TARGET_VERSION): Remove.
12991 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12992 * config/arm/elf.h (TARGET_VERSION): Remove.
12993 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12994 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12995 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12996 * config/arm/pe.h (TARGET_VERSION): Remove.
12997 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12998 * config/arm/semi.h (TARGET_VERSION): Remove.
12999 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
13000 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
13001 * config/arm/vxworks.h (TARGET_VERSION): Remove.
13002 * config/avr/avr.h (TARGET_VERSION): Remove.
13003 * config/bfin/bfin.h (TARGET_VERSION): Remove.
13004 * config/fr30/fr30.h (TARGET_VERSION): Remove.
13005 * config/frv/frv.h (TARGET_VERSION): Remove.
13006 * config/h8300/h8300.h (TARGET_VERSION): Remove.
13007 * config/i386/cygwin.h (TARGET_VERSION): Remove.
13008 * config/i386/darwin.h (TARGET_VERSION): Remove.
13009 * config/i386/darwin64.h (TARGET_VERSION): Remove.
13010 * config/i386/djgpp.h (TARGET_VERSION): Remove.
13011 * config/i386/freebsd.h (TARGET_VERSION): Remove.
13012 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
13013 * config/i386/gnu.h (TARGET_VERSION): Remove.
13014 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
13015 * config/i386/i386elf.h (TARGET_VERSION): Remove.
13016 * config/i386/linux.h (TARGET_VERSION): Remove.
13017 * config/i386/linux64.h (TARGET_VERSION): Remove.
13018 * config/i386/lynx.h (TARGET_VERSION): Remove.
13019 * config/i386/mingw32.h (TARGET_VERSION): Remove.
13020 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
13021 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
13022 * config/i386/netware.h (TARGET_VERSION): Remove.
13023 * config/i386/nto.h (TARGET_VERSION): Remove.
13024 * config/i386/openbsd.h (TARGET_VERSION): Remove.
13025 * config/i386/vxworks.h (TARGET_VERSION): Remove.
13026 * config/ia64/elf.h (TARGET_VERSION): Remove.
13027 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
13028 * config/ia64/hpux.h (TARGET_VERSION): Remove.
13029 * config/ia64/linux.h (TARGET_VERSION): Remove.
13030 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13031 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
13032 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13033 * config/lm32/lm32.h (TARGET_VERSION): Remove.
13034 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
13035 * config/m32c/m32c.h (TARGET_VERSION): Remove.
13036 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
13037 * config/m32r/m32r.h (TARGET_VERSION): Remove.
13038 * config/m68k/linux.h (TARGET_VERSION): Remove.
13039 * config/m68k/m68k.h (TARGET_VERSION): Remove.
13040 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
13041 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
13042 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
13043 * config/mep/mep.h (TARGET_VERSION): Remove.
13044 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
13045 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13046 * config/mips/iris6.h (MACHINE_TYPE): Remove.
13047 * config/mips/linux.h (TARGET_VERSION): Remove.
13048 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
13049 * config/mips/vxworks.h (TARGET_VERSION): Remove.
13050 * config/mmix/mmix.h (TARGET_VERSION): Remove.
13051 * config/mn10300/linux.h (TARGET_VERSION): Remove.
13052 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
13053 * config/pa/pa.h (TARGET_VERSION): Remove.
13054 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
13055 * config/picochip/picochip.h (TARGET_VERSION): Remove.
13056 * config/rs6000/aix.h (TARGET_VERSION): Remove.
13057 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
13058 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
13059 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
13060 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
13061 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
13062 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
13063 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
13064 * config/rs6000/linux.h (TARGET_VERSION): Remove.
13065 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
13066 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
13067 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
13068 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
13069 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
13070 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
13071 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
13072 * config/s390/linux.h (TARGET_VERSION): Remove.
13073 * config/s390/s390.h (TARGET_VERSION): Remove.
13074 * config/s390/tpf.h (TARGET_VERSION): Remove.
13075 * config/score/score.h (TARGET_VERSION): Remove.
13076 * config/sh/linux.h (TARGET_VERSION): Remove.
13077 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
13078 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
13079 * config/sh/sh.h (TARGET_VERSION): Remove.
13080 * config/sh/sh64.h (TARGET_VERSION): Remove.
13081 * config/sh/superh.h (TARGET_VERSION): Remove.
13082 * config/sh/vxworks.h (TARGET_VERSION): Remove.
13083 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
13084 * config/sparc/linux.h (TARGET_VERSION): Remove.
13085 * config/sparc/linux64.h (TARGET_VERSION): Remove.
13086 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
13087 TARGET_NAME32, TARGET_NAME): Remove.
13088 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
13089 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
13090 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
13091 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
13092 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
13093 * config/spu/spu.h (TARGET_VERSION): Remove.
13094 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
13095 * config/v850/v850.h (TARGET_VERSION): Remove.
13096 * config/vax/linux.h (TARGET_VERSION): Remove.
13097 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
13098 * config/xtensa/elf.h (TARGET_VERSION): Remove.
13099 * config/xtensa/linux.h (TARGET_VERSION): Remove.
13101 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13104 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
13105 frame-related from frame-unrelated adjustments to the stack pointer.
13107 2011-03-31 Jakub Jelinek <jakub@redhat.com>
13109 * common.opt (fdebug-types-section): Move earlier.
13110 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
13112 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
13114 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
13117 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
13119 * tree.h (CASE_CHAIN): Define.
13120 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
13121 (gimple_redirect_edge_and_branch): Likewise.
13123 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13125 PR middle-end/48367
13126 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
13129 2011-03-30 Jeff Law <law@redhat.com>
13131 * PR bootstrap/48371
13132 * reload1.c (reload): Fix botch in last change.
13134 * reload.h (struct reload): Fix typo introduced in last change.
13136 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13138 * config/arm/arm.opt (mhard-float, msoft-float): Mark
13139 Undocumented. Remove help text.
13140 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
13143 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13145 * doc/options.texi (NegativeAlias): Document.
13146 (Alias): Mention NegativeAlias.
13147 * opt-functions.awk: Handle NegativeAlias.
13148 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
13149 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
13150 * opts.h (CL_NEGATIVE_ALIAS): Define.
13151 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
13152 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
13154 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
13156 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13157 mno-spe and mno-isel instead of mspe=no and -misel=no.
13159 2011-03-29 Mark Wielaard <mjw@redhat.com>
13161 * common.opt (fdebug-types-section): New flag.
13162 * doc/invoke.texi: Document new -fno-debug-types-section flag.
13163 * dwarf2out.c (use_debug_types): New define.
13164 (struct die_struct): Mark die_id with GTY desc use_debug_types.
13165 (print_die): Guard output of type unit signatures using
13167 (build_abbrev_table): Replace assert of dwarf_version >= 4
13168 with assert on use_debug_types.
13169 (size_of_die): Likewise.
13170 (unmark_dies): Likewise.
13171 (value_format): Decide AT_ref_external form on use_debug_types.
13172 (output_die): Replace dwarf_version version check guard with
13173 use_debug_types where appropriate.
13174 (modified_type_die): Likewise.
13175 (gen_reference_type_die): Likewise.
13176 (dwarf2out_start_source_file): Likewise.
13177 (dwarf2out_end_source_file): Likewise.
13178 (prune_unused_types_walk_attribs): Likewise.
13179 (dwarf2out_finish): Likewise.
13181 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13183 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
13185 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13187 PR rtl-optimization/48332
13188 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
13189 mode of input operand N and modeN to its actual mode.
13191 2011-03-30 Jeff Law <law@redhat.com>
13193 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
13194 define accessor macro.
13195 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
13196 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
13197 (reg_equiv_init): Likewise.
13198 (reg_equivs_size): New variable.
13199 (reg_equiv_init_size): Remove.
13200 (allocate_initial_values): Move prototype to here from....
13201 * integrate.h (allocate_initial_values): Remove prototype.
13202 * integrate.c: Include reload.h.
13203 (allocate_initial_values): Corresponding changes.
13204 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
13205 (fix_reg_equiv_init, no_equiv): Corresponding changes.
13206 (update_equiv_regs): Corresponding changes.
13207 (ira): Corresponding changes.
13208 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
13209 (push_secondary_reload): Corresponding changes.
13210 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
13211 (make_memloc, find_reloads_address): Corresponding changes.
13212 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
13213 (find_reloads_address_1): Corresponding changes.
13214 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
13215 (refers_to_regno_for_reload_p): Corresponding changes.
13216 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
13217 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
13218 * reload1.c: Include ggc.h.
13219 (grow_reg_equivs): New function.
13220 (replace_pseudos_in, reload): Corresponding changes.
13221 (calculate_needs_all_insns, alter_regs): Corresponding changes.
13222 (eliminate_regs_1, elimination_effects): Corresponding changes.
13223 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
13224 (delete_output_reload): Likewise.
13225 * caller-save.c (mark_referenced_regs): Corresponding changes.
13226 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
13227 * frv/predicates.md (frv_load_operand): Corresponding changes.
13228 * microblaze/microblaze.c (double_memory_operand): Corresponding
13230 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
13231 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
13232 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
13233 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13234 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13236 * pa/pa.c (emit_move_sequence): Corresponding changes.
13237 * vax/vax.c (nonindexed_address_p): Corresponding changes.
13239 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13242 * config/arm/arm.c (coproc_secondary_reload_class): Handle
13243 structure modes. Don't check neon_vector_mem_operand for
13244 vector or structure modes.
13246 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13247 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13250 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13251 operand 1 and reshuffle the operands to match.
13252 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13254 2011-03-30 Christian Schüler <cschueler@gmx.de>
13257 * config/c.opt (F): Added 'Driver' to -F option.
13260 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13262 * config/darwin.opt: Added '-arch' option.
13264 2011-03-30 Nick Clifton <nickc@redhat.com>
13266 * config/rx/rx.md: Add peepholes and patterns to combine
13267 extending loads and simple arithmetic instructions.
13268 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
13269 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13270 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
13271 modes to use pre-decrement and post-increment addressing.
13272 (rx_is_restricted_memory_address): Add range checking of REG+INT
13274 (rx_print_operand): Add support for %Q. Fix handling of %Q.
13275 (rx_memory_move_cost): Adjust cost of stores.
13276 (rx_adjust_insn_length): New function.
13278 2011-03-30 Jakub Jelinek <jakub@redhat.com>
13281 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13282 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13283 matching arg00/arg01 types.
13285 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
13287 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13288 last_location to UNKNOWN_LOCATION.
13290 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
13293 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13296 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13297 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13300 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13301 Init(PROCESSOR_V7).
13302 (sparc_cpu): Likewise.
13303 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13306 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13309 PR middle-end/48342
13310 PR rtl-optimization/48345
13311 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13312 hard regs for given mode from profitable regs when doing secondary
13315 2011-03-29 Jeff Law <law@redhat.com>
13318 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13319 do_not_duplicate field.
13320 (lookup_redirection_data): Corresponding changes.
13321 (create_duplicates): Always create a template block.
13322 (redirect_edges): Remove code which reused the original block
13323 when it was going to become unreachable code.
13324 (thread_block): Don't set do_not_duplicate field.
13326 2011-03-29 Joseph Myers <joseph@codesourcery.com>
13328 * lto-opts.c (register_user_option_p, lto_register_user_option):
13329 Make type argument unsigned.
13330 * lto-streamer.h (lto_register_user_option): Make type argument
13332 * opth-gen.awk: Make CL_* macros unsigned.
13333 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13334 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13335 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13336 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13337 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13338 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13339 (find_opt): Make lang_mask argument unsigned.
13341 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13343 PR rtl-optimization/48331
13344 PR rtl-optimization/48334
13345 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13346 for any used algorithm.
13348 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13350 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13353 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
13355 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13356 (alpha_option_override): Don't set alpha_sr_alias_set.
13357 (emit_frame_store_1): Use gen_frame_mem rather than calling
13359 (alpha_expand_epilogue): Ditto.
13361 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
13363 PR tree-optimization/48290
13364 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13365 vectorization, check that relevant phis in the basic block after
13366 the inner loop are really inner loop's exit phis.
13368 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13371 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13372 (cached_dw_loc_list_def): New structure.
13373 (cached_dw_loc_list): New typedef.
13374 (cached_dw_loc_list_table): New variable.
13375 (cached_dw_loc_list_table_hash): New function.
13376 (cached_dw_loc_list_table_eq): Likewise.
13377 (add_location_or_const_value_attribute): Take a bool cache_p.
13378 Cache the list when the parameter is true.
13379 (gen_formal_parameter_die): Update caller.
13380 (gen_variable_die): Likewise.
13381 (dwarf2out_finish): Likewise.
13382 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13383 while generating debug info for the decl.
13384 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13385 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13386 (resolve_addr): Cache the result of resolving a chain of
13389 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13391 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13392 conflict object hard regset nodes have intersecting hard reg sets.
13394 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13395 after regstat_init_n_sets_and_refs.
13397 * ira.c: Add more comments at the top.
13398 (setup_stack_reg_pressure_class, setup_pressure_classes):
13399 Add comments how we compute the register pressure classes.
13400 (setup_allocno_and_important_classes): Add more comments.
13401 (setup_class_translate_array, reorder_important_classes)
13402 (setup_reg_class_relations): Add comments.
13404 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13407 * ira-color.c: Add 2011 to the Copyright line.
13408 (assign_hard_reg): Add more comments.
13409 (improve_allocation): Ditto.
13411 * ira-costs.c: Add 2011 to the Copyright line.
13412 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13414 (setup_regno_cost_classes_by_mode): Ditto.
13416 Initial patches from ira-improv branch:
13418 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13420 * ira-build.c (ira_create_object): Remove initialization of
13421 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13422 (ira_create_allocno): Remove initialization of
13423 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13424 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13425 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13426 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13427 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13428 Initialize ALLOCNO_ADD_DATA.
13429 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13430 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13432 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13433 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13435 * ira.c (ira_reallocate): Remove.
13436 (setup_pressure_classes): Call
13437 ira_init_register_move_cost_if_necessary. Use
13438 ira_register_move_cost instead of ira_get_register_move_cost.
13439 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13440 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13442 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13443 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13444 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13445 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13446 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13447 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13449 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13450 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13451 (struct allocno_color_data): New.
13452 (allocno_color_data_t): New typedef.
13453 (allocno_color_data): New definition.
13454 (ALLOCNO_COLOR_DATA): New macro.
13455 (struct object_color_data): New.
13456 (object_color_data_t): New typedef.
13457 (object_color_data): New definition.
13458 (OBJECT_COLOR_DATA): New macro.
13459 (update_copy_costs, calculate_allocno_spill_cost): Call
13460 ira_init_register_move_cost_if_necessary. Use
13461 ira_register_move_cost instead of ira_get_register_move_cost.
13462 (move_spill_restore, update_curr_costs): Ditto.
13463 (allocno_spill_priority): Make it inline.
13464 (color_pass): Allocate and free allocno_color_dat and object_color_data.
13465 (struct coalesce_data, coalesce_data_t): New.
13466 (allocno_coalesce_data): New definition.
13467 (ALLOCNO_COALESCE_DATA): New macro.
13468 (merge_allocnos, coalesced_allocno_conflict_p): Use
13469 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13470 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13471 (coalesce_allocnos): Ditto.
13472 (setup_coalesced_allocno_costs_and_nums): Ditto.
13473 (collect_spilled_coalesced_allocnos): Ditto.
13474 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13475 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13476 (coalesce_spill_slots): Ditto.
13477 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13478 free allocno_coalesce_data.
13480 * ira-conflicts.c: Fix formatting.
13481 (process_regs_for_copy): Call
13482 ira_init_register_move_cost_if_necessary. Use
13483 ira_register_move_cost instead of ira_get_register_move_cost.
13484 (build_object_conflicts): Optimize.
13486 * ira-costs.c (record_reg_classes): Optimize. Call
13487 ira_init_register_move_cost_if_necessary. Use
13488 ira_register_move_cost, ira_may_move_in_cost, and
13489 ira_may_move_out_cost instead of ira_get_register_move_cost and
13490 ira_get_may_move_cost.
13491 (record_address_regs): Ditto.
13492 (scan_one_insn): Optimize.
13493 (find_costs_and_classes): Optimize.
13494 (process_bb_node_for_hard_reg_moves): Call
13495 ira_init_register_move_cost_if_necessary. Use
13496 ira_register_move_cost instead of ira_get_register_move_cost.
13498 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13499 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13500 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13501 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13503 (ira_initiate_emit_data, ira_finish_emit_data)
13504 (create_new_allocno): New functions.
13505 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13506 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13507 Use ira_register_move_cost instead of ira_get_register_move_cost.
13509 * ira-int.h: Fix some comments.
13510 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13511 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13512 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13513 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13515 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13516 bitfield after mode. Make hard_regno a short int. Make
13517 hard_regno short. Remove first_coalesced_allocno and
13518 next_coalesced_allocno. Move mem_optimized_dest_p,
13519 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13520 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13521 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13522 temp, colorable_p. Add new member add_data.
13523 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13524 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13525 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13526 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13527 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13528 (ALLOCNO_ADD_DATA): New macro.
13529 (ira_emit_data_t): New typedef.
13530 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13531 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13532 from struct ira_allocno.
13533 (ALLOCNO_EMIT_DATA): New macro.
13534 (ira_allocno_emit_data, allocno_emit_reg): New.
13535 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13536 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13537 (OBJECT_ADD_DATA): New macro.
13538 (ira_reallocate): Remove.
13539 (ira_initiate_emit_data, ira_finish_emit_data): New.
13540 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13541 (ira_init_register_move_cost_if_necessary): New.
13542 (ira_object_conflict_iter_next): Merge into
13543 ira_object_conflict_iter_cond.
13544 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13546 * ira-live.c (process_single_reg_class_operands): Call
13547 ira_init_register_move_cost_if_necessary. Use
13548 ira_register_move_cost instead of ira_get_register_move_cost.
13550 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13552 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13554 * ira-costs.c: Fix formatting.
13555 (cost_classes, cost_classes_num): Remove.
13556 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13557 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13558 (cost_classes_del, cost_classes_htab): New.
13559 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13560 (initiate_regno_cost_classes, setup_cost_classes): New.
13561 (setup_regno_cost_classes_by_aclass): New.
13562 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13563 (record_reg_classes): Use regno_cost_classes instead of
13564 cost_classes. Move checking opposite operand up.
13565 (record_address_regs): Use regno_cost_classes
13566 instead of cost_classes.
13567 (scan_one_insn): Ditto. Use always general register.
13568 (print_allocno_costs): Use regno_cost_classes instead of
13570 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13571 (find_costs_and_classes): Set up cost classes for each registers.
13572 Use also their mode for this. Use regno_cost_classes instead of
13574 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13576 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13577 (ira_costs, ira_set_pseudo_classes): Call
13578 initiate_regno_cost_classes and finish_regno_cost_classes.
13580 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13582 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13584 * target.def (ira_cover_classes): Remove.
13586 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
13588 * doc/tm.texi.in: Ditto.
13590 * ira-conflicts.c: Remove mentioning cover classes from the file.
13591 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
13592 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
13594 * targhooks.c (default_ira_cover_classes): Remove.
13596 * targhooks.h (default_ira_cover_classes): Ditto.
13598 * haifa-sched.c: Remove mentioning cover classes from the file.
13599 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13600 ira_pressure_classes and ira_pressure_classes_num instead of
13601 ira_reg_class_cover_size and ira_reg_class_cover. Use
13602 sched_regno_pressure_class instead of sched_regno_cover_class.
13603 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13604 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13606 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13607 classes from the file.
13608 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13609 (struct object_hard_regs, struct object_hard_regs_node): New.
13610 (struct ira_object): New members profitable_hard_regs,
13611 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13612 (struct ira_allocno): Rename cover_class to aclass. Rename
13613 cover_class_cost and updated_cover_class_cost to class_cost and
13614 updated_class_cost. Remove splay_removed_p and
13615 left_conflict_size. Add new members colorable_p.
13616 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13617 (ALLOCNO_COLORABLE_P): New macro.
13618 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13619 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13620 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13621 (OBJECT_...): Rename parameter C to O.
13622 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13623 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13624 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13625 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13626 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13627 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13628 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13629 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13630 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13631 x_ira_reg_class_subunion.
13632 (ira_max_memory_move_cost, ira_max_register_move_cost)
13633 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13634 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13635 (ira_important_class_nums, ira_reg_class_superunion): New macros.
13636 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
13637 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13638 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13639 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13640 (ira_tune_allocno_costs_and_cover_classes): Rename to
13641 ira_tune_allocno_costs.
13642 (ira_debug_hard_regs_forest): New.
13643 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13644 (ira_object_conflict_iter_next): Fix comments.
13645 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
13646 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13647 cover_class to aclass.
13648 (ira_allocate_and_accumulate_costs): Ditto.
13649 (ira_allocate_and_set_or_copy_costs): Ditto.
13651 * opts.c (decode_options): Remove ira_cover_class check.
13653 * ira-color.c: Remove mentioning cover classes from the file. Use
13654 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13655 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13656 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13657 (splay-tree.h): Remove include.
13658 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13659 before copy_freq_compare_func.
13660 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13661 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13663 (hard_regs_roots, hard_regs_node_vec): Ditto.
13664 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13665 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13666 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13667 (create_new_object_hard_regs_node): Ditto.
13668 (add_new_object_hard_regs_node_to_forest): Ditto.
13669 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
13670 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13672 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13673 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13674 (remove_unused_object_hard_regs_nodes): Ditto.
13675 (enumerate_object_hard_regs_nodes): Ditto.
13676 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13677 (object_hard_regs_subnode_t): Ditto.
13678 (struct object_hard_regs_subnode): Ditto.
13679 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13680 (setup_object_hard_regs_subnode_index): Ditto.
13681 (get_object_hard_regs_subnodes_num): Ditto.
13682 (form_object_hard_regs_nodes_forest): Ditto.
13683 (finish_object_hard_regs_nodes_tree): Ditto.
13684 (finish_object_hard_regs_nodes_forest): Ditto.
13685 (allocnos_have_intersected_live_ranges_p): Rename to
13686 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13687 (pseudos_have_intersected_live_ranges_p): Rename to
13688 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13689 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13690 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13691 (update_copy_costs): Remove assert. Skip cost update if the hard
13692 reg does not belong the class.
13693 (assign_hard_reg): Process only profitable hard regs.
13694 (uncolorable_allocnos_num): Make it scalar.
13695 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13696 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13697 and ira_reg_class_max_nregs.
13698 (bucket_allocno_compare_func): Check frequency first.
13699 (sort_bucket): Add compare function as a parameter.
13700 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13701 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13702 (push_allocno_to_stack): Rewrite for checking new allocno
13704 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
13705 (push_only_colorable): Pass new parameter to sort_bucket.
13706 (push_allocno_to_spill): Remove.
13707 (allocno_spill_priority_compare): Make it inline and rewrite.
13708 (splay_tree_allocate, splay_tree_free): Remove.
13709 (allocno_spill_sort_compare): New function.
13710 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13711 build and use splay tree. Choose first allocno in uncolorable
13712 allocno bucket to spill. Remove setting spill cost.
13713 (all_conflicting_hard_regs): Remove.
13714 (setup_allocno_available_regs_num): Check only profitable hard
13715 regs. Print info about hard regs nodes.
13716 (setup_allocno_left_conflicts_size): Remove.
13717 (put_allocno_into_bucket): Don't call
13718 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
13719 (improve_allocation): New.
13720 (color_allocnos): Call setup_profitable_hard_regs,
13721 form_object_hard_regs_nodes_forest, improve_allocation,
13722 finish_object_hard_regs_nodes_forest. Setup spill cost.
13723 (print_loop_title): Use pressure classes.
13724 (color_allocnso): Ditto.
13725 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13726 and allocnos_for_spilling.
13727 (ira_sort_regnos_for_alter_reg): Don't setup members
13728 {first,next}_coalesced_allocno.
13729 (color): Remove allocating and freeing removed_splay_allocno_vec.
13730 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13731 prohibited_class_mode_regs.
13733 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13735 (update_allocno_pressure_excess_length): Use pressure classes.
13736 (inc_register_pressure, dec_register_pressure): Check for pressure
13738 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13739 pressure class. Use ira_reg_class_nregs instead of
13740 ira_reg_class_max_nregs.
13741 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13742 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13743 (single_reg_class): Use ira_reg_class_nregs instead of
13744 ira_reg_class_max_nregs.
13745 (process_bb_node_lives): Use pressure classes.
13747 * ira-emit.c: Remove mentioning cover classes from the file. Use
13748 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13749 (change_loop): Use pressure classes.
13750 (modify_move_list): Call ira_set_allocno_class instead of
13751 ira_set_allocno_cover_class.
13753 * ira-build.c: Remove mentioning cover classes from the file. Use
13754 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13755 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13756 ALLOCNO_UPDATED_CLASS_COST instead of
13757 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13758 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13759 (ira_create_allocno): Remove initialization of
13760 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13761 ALLOCNO_COLORABLE_P.
13762 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13763 Update conflict regs for the objects.
13764 (create_cap_allocno): Remove assert. Don't propagate
13765 ALLOCNO_AVAILABLE_REGS_NUM.
13766 (ira_free_allocno_costs): New function.
13767 (finish_allocno): Change a part of code into call of
13768 ira_free_allocno_costs.
13769 (low_pressure_loop_node_p): Use pressure classes.
13770 (object_range_compare_func): Don't compare classes.
13771 (setup_min_max_conflict_allocno_ids): Ditto.
13773 * loop-invariant.c: Remove mentioning cover classes from the file.
13774 Use ira_pressure_classes and ira_pressure_classes_num instead of
13775 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13776 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13777 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13778 Use reg_allocno_class instead of reg_cover_class.
13779 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13780 STACK_REG_COVER_CLASS.
13781 (get_regno_cover_class): Rename to get_regno_pressure_class.
13782 (move_loop_invariants): Initialize and finalize regstat.
13784 * ira.c: Remove mentioning cover classes from the file. Add
13785 comments about coloring without cover classes. Use ALLOCNO_CLASS
13786 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13787 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13788 setup_class_subset_and_memory_move_costs.
13789 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13790 (setup_cover_and_important_classes): Rename to
13791 setup_allocno_and_important_classes.
13792 (setup_class_translate_array): New.
13793 (setup_class_translate): Call it for allocno and pressure classes.
13794 (cover_class_order): Rename to allocno_class_order.
13795 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13796 of ira_class_translate.
13797 (reorder_important_classes): Set up ira_important_class_nums.
13798 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13799 (print_class_cover): Rename to print_classes. Add parameter.
13800 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13801 Print pressure classes too.
13802 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13803 setup_reg_subclasses.
13804 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13805 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13806 (setup_prohibited_class_mode_regs): Use
13807 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13808 (clarify_prohibited_class_mode_regs): New function.
13809 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13810 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13811 (ira_init_once): Initialize them.
13812 (free_register_move_costs): Process them.
13813 (ira_init): Move calls of find_reg_classes and
13814 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13815 Call clarify_prohibited_class_mode_regs.
13816 (ira_no_alloc_reg): Remove.
13817 (too_high_register_pressure_p): Use pressure classes.
13819 * sched-deps.c: Remove mentioning cover classes from the file.
13820 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13821 ira_pressure_classes and ira_pressure_classes_num instead of
13822 ira_reg_class_cover_size and ira_reg_class_cover.
13823 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13824 sched_regno_pressure_class instead of sched_regno_cover_class.
13825 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13826 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13828 * ira.h: Add 2010 to Copyright.
13829 (ira_no_alloc_reg): Remove external.
13830 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13831 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13832 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13833 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13834 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13835 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13836 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13837 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13838 x_ira_no_alloc_regs.
13839 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13840 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13841 ira_allocno_classes_num and ira_allocno_classes.
13842 (ira_class_translate): Rename to ira_allocno_class_translate.
13843 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13844 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13845 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13846 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13847 (ira_no_alloc_regs): New.
13849 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13850 classes from the file. Use ALLOCNO_CLASS instead of
13851 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13852 ALLOCNO_COVER_CLASS_COST.
13853 (regno_cover_class): Rename to regno_aclass.
13854 (record_reg_classes): Use ira_reg_class_subunion instead of
13855 ira_reg_class_union.
13856 (record_address_regs): Check overflow.
13857 (scan_one_insn): Ditto.
13858 (print_allocno_costs): Print total mem cost fore regional allocation.
13859 (print_pseudo_costs): Use REG_N_REFS.
13860 (find_costs_and_classes): Use classes intersected with them on the
13861 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13862 ira_reg_class_union. Use ira_allocno_class_translate and
13863 regno_aclass instead of ira_class_translate and regno_cover_class.
13864 Modify code for finding regno_aclass. Setup preferred classes for
13866 (setup_allocno_cover_class_and_costs): Rename to
13867 setup_allocno_class_and_costs. Use regno_aclass instead of
13868 regno_cover_class. Use ira_set_allocno_class instead of
13869 ira_set_allocno_cover_class.
13870 (init_costs, finish_costs): Use regno_aclass instead of
13872 (ira_costs): Use setup_allocno_class_and_costs instead of
13873 setup_allocno_cover_class_and_costs.
13874 (ira_tune_allocno_costs_and_cover_classes): Rename to
13875 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13876 by processing objects. Use ira_reg_class_max_nregs instead of
13877 ira_reg_class_nregs.
13879 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13881 * sched-int.h: Remove mentioning cover classes from the file.
13882 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13884 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13885 classes from the file.
13886 (struct reg_pref): Rename coverclass into allocnoclass.
13887 (reg_cover_class): Rename to reg_allocno_class.
13889 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13891 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13893 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13895 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13897 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13899 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13901 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13903 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13905 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13907 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13909 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13910 (i386_ira_cover_classes): Ditto.
13912 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13914 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13916 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13918 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13920 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13922 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13924 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13925 (mips_ira_cover_classes): Ditto.
13927 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13929 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13931 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13933 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13935 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13937 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13938 (IRA_COVER_CLASSES_VSX): Ditto.
13940 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13941 (rs6000_ira_cover_classes): Ditto.
13943 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13945 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13947 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13949 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13951 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13953 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13955 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13957 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13959 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13961 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13963 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13966 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13967 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13968 dw_fde_unlikely_section_end_label, cold_in_std_section,
13969 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13970 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13972 (output_fde): Use dw_fde_second_{begin,end} if second is
13973 true, otherwise dw_fde_{begin,end}.
13974 (output_call_frame_info): Test dw_fde_second_begin != NULL
13975 instead of dw_fde_switched_sections.
13976 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13977 fields, initialize new fields. Initialize in_std_section
13978 unconditionally from the first partition.
13979 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13980 dw_fde_second_begin is non-NULL.
13981 (dwarf2out_switch_text_section): Stop initializing removed
13982 dw_fde_struct fields, initialize new fields, initialize
13983 also dw_fde_end here. Set dw_fde_switch_cfi even when
13984 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13985 (struct var_loc_list_def): Add last_before_switch field.
13986 (arange_table, arange_table_allocated, arange_table_in_use,
13987 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13988 (size_of_aranges): Count !in_std_section and !second_in_std_section
13989 hunks in fdes, instead of looking at arange_table_in_use.
13990 (output_aranges): Add aranges_length argument, don't call
13991 size_of_aranges here. Instead of using aranges_table*
13992 emit ranges for fdes when !in_std_section resp.
13993 !second_in_std_section.
13994 (dw_loc_list): Break ranges crossing section switch.
13995 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13996 use dw_fde_second_end instead of dw_fde_end as end of last range.
13997 (gen_subprogram_die): Don't call add_arange. Use
13998 dw_fde_{begin,end} for first partition and if switched
13999 section dw_fde_second_{begin,end} for the second.
14000 (var_location_switch_text_section_1,
14001 var_location_switch_text_section): New functions.
14002 (dwarf2out_begin_function): Initialize cold_text_section even
14003 when function_section () isn't text_section.
14004 (prune_unused_types): Don't walk arange_table.
14005 (dwarf2out_finish): Don't needlessly test
14006 flag_reorder_blocks_and_partition when testing cold_text_section_used.
14007 If info_section_emitted, call size_of_aranges and if it indicates
14008 non-empty .debug_aranges, call output_aranges with the computed
14009 size. Stop using removed dw_fde_struct fields, use
14010 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
14014 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
14015 create ENTRY_VALUE if incoming or address of incoming's MEM
14017 * dwarf2out.c (mem_loc_descriptor): Don't emit
14018 DW_OP_GNU_entry_value of DW_OP_fbreg.
14019 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
14020 on ENTRY_VALUE is able to find the canonical parameter VALUE.
14021 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
14022 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
14024 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
14025 is a REG_P or MEM_P with REG_P address, compute hash directly
14026 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
14027 (preserve_only_constants): Don't clear VALUES forwaring
14028 ENTRY_VALUE to some other VALUE.
14030 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
14032 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
14033 instead of GEN_INT.
14035 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14037 * cfgexpand.c (expand_gimple_cond): Always set the source location and
14038 block before expanding the statement.
14039 (expand_gimple_stmt_1): Likewise. Set them here...
14040 (expand_gimple_stmt): ...and not here. Tidy.
14041 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
14044 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14046 * Makefile.in: New rule for cprop.o.
14047 * gcse.c: Move constant/copy propagation to cprop.c.
14048 (compute_local_properties): Only handle expression tables.
14049 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
14050 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
14051 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
14052 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
14053 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
14054 compute_cprop_data, find_used_regs, try_replace_reg,
14055 find_avail_set, cprop_jump, constprop_register, cprop_insn,
14056 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
14057 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
14058 find_bypass_set, reg_killed_on_edge, bypass_block,
14059 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
14060 execute_rtl_cprop, pass_rtl_cprop): Move to...
14061 * cprop.c: ...here. New file, constant/copy propagation for RTL
14062 moved from gcse.c to here with minor cleanups in duplicated code.
14064 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
14066 * config/i386/i386.c (flag_opts): Fix a typo in
14067 -mavx256-split-unaligned-store.
14069 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14071 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14072 LIBCALL_VALUE): Remove macros.
14073 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14074 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14075 (h8300_function_value, h8300_libcall_value,
14076 h8300_function_value_regno_p): New functions.
14078 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14080 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
14082 2011-03-28 Jeff Law <law@redhat.com>
14084 * tree-ssa-threadupdate.c (redirect_edges): Call
14085 create_edge_and_update_destination_phis as needed.
14086 (create_edge_and_update_destination_phis): Accept new BB argument.
14087 All callers updated.
14088 (thread_block): Do not update the profile when threading around
14089 intermediate blocks.
14090 (thread_single_edge): Likewise.
14091 (determine_bb_domination_status): If BB is not a successor of the
14092 loop header, return NONDOMINATING.
14093 (register_jump_thread): Note when we register a jump thread around
14094 an intermediate block.
14095 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
14096 (thread_across_edge): Use it.
14098 2011-03-28 Tristan Gingold <gingold@adacore.com>
14100 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
14101 when for_return is 2.
14103 2011-03-28 Jeff Law <law@redhat.com>
14105 * var-tracking.c (canonicalize_values_mark): Delete unused
14107 (canonicalize_values_star, set_variable_part): Likewise.
14108 (clobber_variable_part, delete_variable_part): Likewise.
14110 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14112 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
14114 2011-03-28 Martin Jambor <mjambor@suse.cz>
14116 * tree-inline.c (expand_call_inline): Do not check that destination
14118 (optimize_inline_calls): Assert that destination node is analyzed.
14119 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
14120 not call tree_lowering_passes.
14121 * cgraph.h (cgraph_analyze_function): Declare.
14122 * cgraphunit.c (cgraph_analyze_function): Make public.
14124 2011-03-28 Joseph Myers <joseph@codesourcery.com>
14126 * config/sparc/sparc-opts.h: New.
14127 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
14128 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
14129 (sparc_option_override): Store processor_type enumeration rather
14130 than string in cpu_default. Remove name and enumeration from
14131 cpu_table. Directly default -mcpu then default -mtune from -mcpu
14132 without using sparc_select. Use target_flags_explicit instead of
14134 * config/sparc/sparc.h (enum processor_type): Move to
14136 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
14137 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
14138 HeaderInclude entry.
14139 (mcpu=, mtune=): Use Var and Enum.
14140 (sparc_processor_type): New Enum and EnumValue entries.
14142 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14143 Iain Sandoe <iains@gcc.gnu.org>
14146 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
14148 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14150 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
14151 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
14152 Insert new statements at it in lieu of STMT.
14153 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
14154 * tree-vect-stmts.c (vectorizable_store): Likewise.
14155 (vectorizable_load): Likewise.
14157 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
14159 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
14164 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14166 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
14167 unaligned 256bit load/store.
14168 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
14169 (*avx_movdqu<avxmodesuffix>): Likewise.
14171 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14174 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
14175 * config/pa/pa.md (iordi3): Use new predicate in expander.
14176 (iorsi3): Likewise.
14178 2011-03-27 Anatoly Sokolov <aesok@post.ru>
14180 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
14181 FUNCTION_VALUE_REGNO_P): Remove macros.
14182 * config/mips/mips-protos.h (mips_function_value): Remove.
14183 * config/mips/mips.c (mips_function_value): Rename to...
14184 (mips_function_value_1): ... this. Make static. Handle receiving
14185 the function type in 'fn_decl_or_type' argument.
14186 (mips_function_value, mips_libcall_value,
14187 mips_function_value_regno_p): New function.
14188 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14189 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14191 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14193 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
14194 and -mavx256-split-unaligned-store.
14195 (ix86_option_override_internal): Split 32-byte AVX unaligned
14196 load/store by default.
14197 (ix86_avx256_split_vector_move_misalign): New.
14198 (ix86_expand_vector_move_misalign): Use it.
14200 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
14201 -mavx256-split-unaligned-store.
14203 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
14204 256bit load/store. Generate unaligned store on misaligned memory
14206 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
14208 (*avx_movdqu<avxmodesuffix>): Likewise.
14210 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
14211 -mavx256-split-unaligned-store.
14213 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14216 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
14219 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14221 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
14222 opno arguments with an expand_operand. Use create_input_operand.
14223 (mips_prepare_builtin_target): Delete.
14224 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
14226 (mips_expand_builtin_direct): Use create_output_operand and
14227 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
14228 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
14229 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
14231 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
14233 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14235 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14237 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14239 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14240 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
14241 basic blocks and call commit_edge_insertions directly.
14242 (fixup_abnormal_edges): Move from here to...
14243 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
14244 on the edges and return whether some have actually been inserted.
14245 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14248 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
14250 PR rtl-optimization/48144
14251 * sel-sched-ir.c (merge_history_vect): Factor out from ...
14252 (merge_expr_data): ... here.
14253 (av_set_intersect): Rename to av_set_code_motion_filter.
14254 Update all callers. Call merge_history_vect when an expression
14255 is found in both sets.
14256 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14258 2011-03-26 Alan Modra <amodra@gmail.com>
14260 * config/rs6000/predicates.md (word_offset_memref_op): Handle
14261 cmodel medium addresses.
14262 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14263 64-bit gpr loads and stores.
14264 (rs6000_secondary_reload_ppc64): New function.
14265 * config/rs6000/rs6000-protos.h: Declare it.
14266 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14268 2011-03-26 Alan Modra <amodra@gmail.com>
14271 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14272 GNU Go in traceback table.
14274 2011-03-25 Richard Henderson <rth@redhat.com>
14276 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14277 if there are exactly 6 operands.
14278 (set_storage_via_setmem): Similarly.
14280 2011-03-25 Kai Tietz <ktietz@redhat.com>
14282 * collect2.c (write_c_file_stat): Handle backslash
14283 as right-hand directory separator.
14284 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14285 checking just for slash.
14286 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14287 instead of checking for trailing slash.
14288 * gcc.c (record_temp_file): Use filename_cmp instead
14290 (do_spec_1): Likewise.
14291 (replace_outfile_spec_function): Likewise.
14292 (is_directory): Use filename_ncmp instead of strncmp.
14293 (print_multilib_info): Likewise.
14294 * gcov.c (find_source): Use filename_cmp instead
14296 (make_gcov_file_name): Fix order of slash/backslash
14298 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14299 (add_standard_paths): Likewise.
14300 * mips-tfile.c (saber_stop): Handle backslash.
14301 * prefix.c (update_path): Use filename_ncmp instead of
14303 * profile.c (output_location): Use filename_cmp instead
14305 * read-md.c (handle_toplevel_file): Handle backslash.
14306 * tlink.c (frob_extension): Likewise.
14307 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14309 * tree-dump.c (dequeue_and_dump): Handle backslash.
14310 * tree.c (get_file_function_name): Likewise.
14311 * gengtype.c (read_input_list): Likewise.
14312 (get_file_realbasename): Likewise.
14313 (get_output_file_with_visibility): Use filename_cmp
14316 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14318 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14321 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14323 * fold-const.c (expr_location_or): New function.
14324 (fold_truth_not_expr): Call it.
14326 2011-03-25 Jeff Law <law@redhat.com>
14328 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14330 * c-family/c-common.c (def_fn_type): Likewise.
14331 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14332 * emit-rtl.c (gen_rtvec): Likewise.
14333 * lto/lto-lang.c (def_fn_type): Likewise.
14335 2011-03-25 Richard Guenther <rguenther@suse.de>
14337 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14338 also generate copies.
14339 (fini_copy_prop): Handle constant values properly.
14341 2011-03-25 Jakub Jelinek <jakub@redhat.com>
14343 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14344 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14345 (hash_loc_operands, compare_loc_operands): Handle
14346 DW_OP_GNU_entry_value.
14348 2011-03-25 Kai Tietz <ktietz@redhat.com>
14350 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14351 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14352 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14353 comment and use macro TARGET_64BIT_MS_ABI instead.
14354 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14355 and change default behavior for 32-bit MS_ABI.
14356 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14357 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14359 (ix86_cfun_abi): Likewise.
14360 (ix86_maybe_switch_abi): Adjust comment.
14361 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14362 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14363 instead of checking for SYSV_ABI.
14364 (ix86_nsaved_sseregs): Likewise.
14365 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14367 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14368 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14369 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14370 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14371 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14373 2011-03-25 Richard Guenther <rguenther@suse.de>
14375 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14376 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14377 (verify_gimple): Remove.
14378 * tree-cfg.c (verify_gimple_call): Merge verification
14380 (verify_gimple_phi): Merge verification from verify_stmts.
14381 (verify_gimple_label): New function.
14382 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14383 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14384 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14385 (verify_stmts): Rename to verify_gimple_in_cfg.
14386 (verify_gimple_in_cfg): New function.
14387 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14388 * tree-ssa.c (verify_ssa): Likewise.
14389 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14391 2011-03-25 Richard Guenther <rguenther@suse.de>
14393 * passes.c (init_optimization_passes): Add FRE pass after
14396 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14397 Andrew Stubbs <ams@codesourcery.com>
14399 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14401 (arm_movdi_vfp_cortexa8): New pattern.
14402 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14403 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14404 instructions when tuning for Cortex-A8. Set attribute "arch".
14405 * config/arm/arm.md: Move include arm-tune.md up a bit.
14406 (define_attr "arch"): Add "onlya8" and "nota8" values.
14407 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14409 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14413 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14415 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14416 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14417 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14418 * passes.c (init_optimization_passes): Move
14419 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14421 2011-03-25 Kai Tietz <ktietz@redhat.com>
14423 * c-typeck.c (comptypes_internal): Replace target
14424 hook call of comp_type_attributes by version in tree.c file.
14425 * gimple.c (gimple_types_compatible_p_1): Likewise.
14426 * tree-ssa.c (useless_type_conversion_p): Likewise.
14427 * tree.c (build_type_attribute_qual_variant): Likewise.
14428 (attribute_value_equal): New static helper function.
14429 (comp_type_attributes): New function.
14430 (merge_attributes): Use attribute_value_equal for comparison.
14431 (attribute_list_contained): Likewise.
14432 * tree.h (comp_type_attributes): New prototype.
14434 2011-03-25 Richard Guenther <rguenther@suse.de>
14436 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14437 of complex types at -O0.
14438 (verify_gimple_assign_binary): Likewise.
14439 (verify_gimple_assign_ternary): Likewise.
14441 2011-03-24 Mark Wielaard <mjw@redhat.com>
14443 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14444 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14446 2011-03-24 Mark Wielaard <mjw@redhat.com>
14449 * dwarf2out.c (output_abbrev_section): Only write table when
14450 abbrev_die_table_in_use > 1.
14452 2011-02-24 Richard Henderson <rth@redhat.com>
14454 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14455 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14456 (alpha_expand_unaligned_load_words): Use extql.
14457 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14458 (emit_insxl): Handle all modes for consistency.
14460 2011-02-24 Richard Henderson <rth@redhat.com>
14462 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14463 (alpha_expand_unaligned_load): Likewise.
14464 (alpha_expand_unaligned_store): Likewise.
14465 (alpha_expand_unaligned_load_words): Likewise.
14466 (alpha_expand_unaligned_store_words): Likewise.
14467 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14468 (alpha_split_lock_test_and_set_12): Likewise.
14469 (print_operand, alpha_fold_builtin_extxx): Likewise.
14470 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14471 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14472 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14473 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14474 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14475 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14476 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14477 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14478 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14479 (extwl, extll, extql): Similarly.
14480 (inswh, inslh, insqh): Similarly.
14481 (mskbl, mskwl, mskll, mskql): Similarly.
14482 (mskwh, msklh, mskqh): Similarly.
14484 2011-02-24 Richard Henderson <rth@redhat.com>
14486 * config/alpha/alpha.md (attribute isa): Add er, ner.
14487 (attribute enabled): Handle them.
14488 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14490 2011-02-24 Richard Henderson <rth@redhat.com>
14492 * config/alpha/alpha.md (attribute isa): Add vms.
14493 (attribute enabled): Handle it.
14494 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14495 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14496 (*movtf): Rename from *movtf_internal for consistency.
14497 (*movsi): Merge with *movsi_nt_vms.
14498 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14499 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14500 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14501 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14503 2011-02-24 Richard Henderson <rth@redhat.com>
14505 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14506 (extendqisi2, extendhisi2): Likewise.
14507 (extendqidi2): Simplify BWX/non-BWX expansions.
14508 (extendhidi2): Similarly.
14510 2011-02-24 Richard Henderson <rth@redhat.com>
14512 * config/alpha/alpha.md (attribute isa): New.
14513 (attribute enabled): New.
14514 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14515 (zero_extendqisi2, zero_extendqidi2): Similarly.
14516 (zero_extendhisi2, zero_extendhidi2): Similarly.
14517 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14519 2011-02-24 Richard Henderson <rth@redhat.com>
14521 * config/alpha/predicates.md (input_operand): Revert last change;
14522 update comment to mention 32-bit VMS rather than Windows.
14524 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14526 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14527 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14528 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14529 * passes.c (init_optimization_passes): Move
14530 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14532 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14534 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14536 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14538 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14541 2011-03-24 Jakub Jelinek <jakub@redhat.com>
14544 * simplify-rtx.c (simplify_const_unary_operation): Call
14545 real_convert when changing mode class with FLOAT_EXTEND.
14547 2011-03-24 Nick Clifton <nickc@redhat.com>
14549 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14550 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14551 * config/rx/rx.c (rx_option_override): Set align_jumps,
14552 align_loops and align_labels if not set by the user.
14553 (rx_align_for_label): New function.
14554 (rx_max_skip_for_label): New function.
14555 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14556 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14557 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14558 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14559 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14561 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14563 PR rtl-optimization/48263
14564 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14565 and original commutative_p handling. Use maybe_gen_insn.
14567 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14569 * reload.c (find_reloads_subreg_address): Add address_reloaded
14570 parameter and return true there if the full address has been
14572 (find_reloads_toplev): Pass address_reloaded flag.
14573 (find_reloads_address_1): Don't use address_reloaded parameter.
14575 2011-03-24 Jeff Law <law@redhat.com>
14577 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14578 unused variable "ann".
14579 (remove_unused_locals): Likewise.
14581 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14584 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14587 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14589 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14590 for invalid symbolic addresses.
14591 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14594 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14596 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14597 the argument in calls to fold_truth_not_expr.
14599 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14601 * tree.c (record_node_allocation_statistics): New function.
14602 (make_node_stat, copy_node_stat, build_string): Call it.
14603 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14604 (build1_stat, build_omp_clause): Likewise.
14606 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14608 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14611 2011-03-24 Richard Guenther <rguenther@suse.de>
14613 PR tree-optimization/48271
14614 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14615 blocks that still exist.
14617 2011-03-24 Richard Guenther <rguenther@suse.de>
14619 PR tree-optimization/48270
14620 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14621 not free datarefs before ddrs.
14623 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14625 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14626 from the address built for a reference with variable offset.
14628 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14631 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14632 alternatives that can be handled with movq or movabsq insn.
14633 (*movdf_internal): Disable for !TARGET_64BIT.
14634 (*movdf_internal_nointeger): Ditto.
14635 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14637 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14639 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14640 (FUNCTION_ARG_ADVANCE): Likewise.
14641 * tm.texi.in: Change references to them to hook references.
14642 * tm.texi: Regenerate.
14643 * targhooks.c (default_function_arg): Eliminate check for target macro.
14644 (default_function_incoming_arg): Likewise.
14645 (default_function_arg_advance): Likewise.
14646 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14647 (function_arg_advance): Likewise.
14648 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14650 2011-03-24 Richard Guenther <rguenther@suse.de>
14652 PR middle-end/48269
14653 * tree-object-size.c (addr_object_size): Do not double-account
14654 for MEM_REF offsets.
14656 2011-03-24 Diego Novillo <dnovillo@google.com>
14658 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
14659 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
14660 (lto_input_data_block): Move from lto-opts.c. Make extern.
14662 (lto_input_string): Rename from input_string. Make extern.
14664 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14665 output_string_with_length.
14666 Output 0 to indicate a non-NULL string. Update all callers to
14668 (lto_output_string): Rename from output_string. Make extern.
14670 (lto_output_decl_state_streams): Make extern.
14671 (lto_output_decl_state_refs): Make extern.
14672 * lto-streamer.h (lto_input_string): Declare.
14673 (lto_input_data_block): Declare.
14674 (lto_output_string): Declare.
14675 (lto_output_string_with_length): Declare.
14676 (lto_output_decl_state_streams): Declare.
14677 (lto_output_decl_state_refs): Declare.
14679 2011-03-24 Richard Guenther <rguenther@suse.de>
14681 PR tree-optimization/46562
14682 * tree.c (build_invariant_address): New function.
14683 * tree.h (build_invariant_address): Declare.
14684 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14685 a renamed function moved ...
14686 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14687 Take valueization callback parameter.
14688 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14689 * gimple-fold.h: New file.
14690 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14691 (ccp_fold, fold_const_aggregate_ref,
14692 fold_ctor_reference, fold_nonarray_ctor_reference,
14693 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14694 get_base_constructor): Move ...
14695 * gimple-fold.c: ... here.
14696 (gimple_fold_stmt_to_constant_1): New function
14697 split out from ccp_fold. Take a valueization callback parameter.
14698 Valueize all operands.
14699 (gimple_fold_stmt_to_constant): New wrapper function.
14700 (fold_const_aggregate_ref_1): New function split out from
14701 fold_const_aggregate_ref. Take a valueization callback parameter.
14702 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14703 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14704 invariant POINTER_PLUS_EXPRs to invariant form.
14705 (vn_valueize): New function.
14706 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14707 * tree-vrp.c (vrp_valueize): New function.
14708 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14709 to fold statements to constants.
14710 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14711 function declarations.
14712 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14713 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14715 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14717 * config/h8300/predicates.md (jump_address_operand): Fix register
14720 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
14722 * doc/invoke.texi (max-stores-to-sink): Document.
14723 * params.h (MAX_STORES_TO_SINK): Define.
14724 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14725 if either vectorization or if-conversion is disabled.
14726 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14727 tree-vect-data-refs.c vect_equal_offsets.
14728 (dr_equal_offsets_p): New function.
14729 (find_data_references_in_bb): Remove static.
14730 * tree-data-ref.h (find_data_references_in_bb): Declare.
14731 (dr_equal_offsets_p): Likewise.
14732 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14733 (vect_drs_dependent_in_basic_block): Update calls to
14734 vect_equal_offsets.
14735 (vect_check_interleaving): Likewise.
14736 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14737 (cond_if_else_store_replacement): Rename to...
14738 (cond_if_else_store_replacement_1): ... this. Change arguments and
14740 (cond_if_else_store_replacement): New function.
14741 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14742 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14744 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14747 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14748 to subtract lower bound instead of GEN_INT().
14750 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14755 * doc/extend.texi (Alignment): Move section to match order in TOC.
14756 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14757 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14759 2011-03-23 Jeff Law <law@redhat.com>
14761 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14762 before removing the edge.
14764 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14765 it may have been freed by redirect_branch_edge or
14766 redirect_edge_succ_nodup.
14768 2011-03-23 Richard Guenther <rguenther@suse.de>
14770 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14771 (check_va_list_escapes): Likewise.
14772 (check_all_va_list_escapes): Likewise.
14774 2011-03-23 Richard Guenther <rguenther@suse.de>
14776 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14777 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14778 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14779 (alias.o): Likewise.
14780 (ipa-type-escape.o): Remove.
14781 (ipa-struct-reorg.o): Likewise.
14782 (GTFILES): Remove ipa-struct-reorg.c.
14783 * alias.c: Do not include ipa-type-escape.h.
14784 * tree-ssa-alias.c: Likewise.
14785 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14786 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14787 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14788 and ipa-type-escape passes.
14789 * tree-pass.h (pass_ipa_type_escape): Remove.
14790 (pass_ipa_struct_reorg): Likewise.
14791 * ipa-struct-reorg.h: Remove.
14792 * ipa-struct-reorg.c: Likewise.
14793 * ipa-type-escape.h: Likewise.
14794 * ipa-type-escape.c: Likewise.
14795 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14796 (--param struct-reorg-cold-struct-ratio): Likewise.
14797 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14798 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14799 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14801 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14803 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14804 cpu attribute value.
14805 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14806 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14807 * config/s390/s390.c (processor_flags_table): New constant array.
14808 (s390_handle_arch_option): Remove.
14809 (s390_handle_option): Remove s390_handle_arch_option invocations
14810 and OPT_mwarn_framesize_ handling.
14811 (s390_option_override): Remove s390_handle_arch_option invocation.
14812 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14814 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14815 * config/s390/s390.opt (s390_tune, s390_arch)
14816 (march=): Replace s390_arch_option enum and values with
14817 processor_type. Set variable name to s390_arch. Set
14818 initialization value.
14819 (mtune=): Replace s390_arch_option with processor_type. Set
14820 variable name to s390_tune. Set initialization value.
14822 2011-03-23 Julian Brown <julian@codesourcery.com>
14824 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14825 accesses which are not naturally aligned.
14827 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14830 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14832 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14834 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14835 parameter from "int" to "enum insn_code".
14836 (expand_operand_type): New enum.
14837 (expand_operand): New structure.
14838 (create_expand_operand): New function.
14839 (create_fixed_operand, create_output_operand): Likewise
14840 (create_input_operand, create_convert_operand_to): Likewise.
14841 (create_convert_operand_from, create_address_operand): Likewise.
14842 (create_integer_operand): Likewise.
14843 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14844 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14845 (expand_insn, expand_jump_insn): Likewise.
14846 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14847 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14848 (expand_movstr, expand_builtin___clear_cache): Likewise.
14849 (expand_builtin_lock_release): Likewise.
14850 * explow.c (allocate_dynamic_stack_space): Likewise.
14851 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14852 and use the default handling in that case.
14853 * expmed.c (check_predicate_volatile_ok): Delete.
14854 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14855 (emit_cstore): Likewise.
14856 * expr.c (emit_block_move_via_movmem): Likewise.
14857 (set_storage_via_setmem, expand_assignment): Likewise.
14858 (emit_storent_insn, try_casesi): Likewise.
14859 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14860 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14861 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14862 (expand_twoval_unop, expand_twoval_binop): Likewise.
14863 (expand_unop_direct, emit_indirect_jump): Likewise.
14864 (emit_conditional_move, vector_compare_rtx): Likewise.
14865 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14866 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14867 (expand_sync_lock_test_and_set): Likewise.
14868 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14869 (emit_unop_insn): Likewise.
14870 (expand_copysign_absneg): Change icode to an insn_code.
14871 (create_convert_operand_from_type): New function.
14872 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14873 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14874 (expand_insn, expand_jump_insn): Likewise.
14875 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14876 than const_int_operand for operand 2.
14878 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14880 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14883 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14885 * emit-rtl.c (emit_pattern_before_noloc): New function.
14886 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14887 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14888 (emit_pattern_after_noloc): New function.
14889 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14890 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14892 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14894 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14895 (__ffsDI2): Likewise.
14897 2011-03-22 Richard Henderson <rth@redhat.com>
14899 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14900 of !TARGET_ABI_OPEN_VMS.
14901 (alpha_trampoline_init, alpha_start_function): Likewise.
14902 (alpha_expand_epilogue, alpha_file_start): Likewise.
14903 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14904 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14905 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14906 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14907 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14911 * config/s390/s390-opts.h: New.
14912 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14913 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14914 s390_stack_guard): Remove.
14915 (s390_handle_arch_option): Return void. Take enum
14916 s390_arch_option value instead of string and searching array.
14917 (s390_handle_option): Don't assert that global structures are in
14918 use. Access variables via opts pointer. Use error_at. Don't use
14919 sscanf for -mstack-guard= or -mstack-size=. Update call to
14920 s390_handle_arch_option.
14921 (s390_option_override): Update call to s390_handle_arch_option.
14922 (s390_emit_prologue): Use %d format for s390_stack_size in
14923 diagnostic. Use %wd for HOST_WIDE_INT.
14924 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14925 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14926 * config/s390/s390.opt (config/s390/s390-opts.h): New
14927 HeaderInclude entry.
14928 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14929 s390_arch_flags, s390_warn_framesize): New Variable entries.
14930 (s390_arch_option): New Enum and EnumValue entries.
14931 (march=): Use Enum instead of Var.
14932 (mstack-guard=, mstack-size=): Use UInteger and Var.
14933 (mtune=): Use Enum.
14935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14937 * config/score/score.c (score_handle_option): Don't assert that
14938 global structures are in use. Access target_flags via opts
14939 pointer. Use value of -march= option to determine target_flags
14941 * config/score/score.opt (march=): Use Enum.
14942 (score_arch): New Enum and EnumValue entries.
14944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14946 * config/mep/mep.c (option_mtiny_specified): Remove.
14947 (mep_option_override): Move register handling for -mivc2 from
14948 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14949 instead of option_mtiny_specified.
14950 (mep_handle_option): Access target_flags via opts pointer. Don't
14951 assert that global structures are in use. Defer part of -mivc2
14952 handling and move it to mep_option_override.
14953 * config/mep/mep.opt (IVC2): New Mask entry.
14954 (mivc2): Use Var and Defer instead of Mask.
14956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14958 * config/v850/v850-opts.h: New.
14959 * config/v850/v850.c (small_memory): Replace with
14960 small_memory_physical_max array. Make that array static const.
14961 (v850_handle_memory_option): Take integer value of argument. Take
14962 gcc_options pointer, option text and location. Return void.
14963 Update for changes to small memory structures.
14964 (v850_handle_option): Access target_flags via opts pointer. Don't
14965 assert that global structures are in use. Update calls to
14966 v850_handle_memory_option.
14967 (v850_encode_data_area): Update references to small memory settings.
14968 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14969 (enum small_memory_type): Move to v850-opts.h.
14970 * config/v850/v850.opt (config/v850/v850-opts.h): New
14971 HeaderInclude entry.
14972 (small_memory_max): New Variable entry.
14973 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14974 (mtda, mzda): Likewise.
14976 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14978 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14979 pointer. Don't assert that global structures are in use.
14981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14983 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14984 via opts pointer. Don't assert that global structures are in use.
14986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14988 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14989 (munix=93): Use Var.
14990 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14991 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14992 * config/pa/pa-opts.h: New.
14993 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14994 (pa_handle_option): Don't assert that global structures are in
14995 use. Access target_flags via opts pointer. Don't handle
14996 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14998 (pa_option_override): Handle deferred OPT_mfixed_range_.
15000 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15002 * config/mn10300/mn10300-opts.h: New.
15003 * config/mn10300/mn10300.c (mn10300_processor,
15004 mn10300_tune_string): Remove.
15005 (mn10300_handle_option): Don't assert that global structures are
15006 in use. Access mn10300_processor via opts pointer. Don't handle
15008 * config/mn10300/mn10300.h (enum processor_type): Move to
15010 (mn10300_processor): Remove.
15011 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
15012 HeaderInclude entry.
15013 (mn10300_processor): New Variable entry.
15016 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15018 * config/microblaze/microblaze.c: Don't include opts.h.
15019 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
15020 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
15021 (mno-clearbss): Use Var and Warn.
15023 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15025 * config/m32r/m32r-opts.h: New.
15026 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
15027 (m32r_handle_option): Don't assert that global structures are in
15028 use. Access target_flags and m32r_cache_flush_func via opts
15029 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
15030 OPT_mno_flush_trap here.
15031 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
15032 include of m32r-opts.h.
15033 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
15034 HeaderInclude entry.
15035 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
15036 (mmodel=): Use Enum and Var.
15037 (m32r_model): New Enum and EnumValue entries.
15038 (mno-flush-trap): Use Var.
15039 (msdata=): Use Enum and Var.
15040 (m32r_sdata): New Enum and EnumValue entries.
15042 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15044 * config/m32c/m32c.c: Don't include opts.h.
15045 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
15046 m32c_handle_option): Remove.
15047 (m32c_option_override): Check global_options_set.x_target_memregs
15048 instead of target_memregs_set.
15049 * config/m32c/m32c.h (target_memregs): Remove.
15050 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
15053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15055 * config/iq2000/iq2000-opts.h: New.
15056 * config/iq2000/iq2000.c: Don't include opts.h.
15057 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
15058 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
15059 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
15060 HeaderInclude entry.
15061 (iq2000_tune): New Variable entry.
15062 (march=): Add comment. Use Enum.
15063 (iq2000_arch): New Enum and EnumValue entries.
15064 (mcpu=): Use Enum and Var.
15065 (iq2000_tune): New Enum and EnumValue entries.
15067 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15069 * config/ia64/ia64-opts.h: New.
15070 * config/ia64/ia64.c (ia64_tune): Remove.
15071 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
15072 here. Use error_at.
15073 (ia64_option_override): Handle deferred OPT_mfixed_range_.
15074 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
15075 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
15076 HeaderInclude entry.
15077 (ia64_tune): New Variable entry.
15078 (mfixed-range=): Use Defer and Var.
15079 (mtune=): Use Enum and Var.
15080 (ia64_tune): New Enum and EnumValue entries.
15082 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15084 * config/frv/frv-opts.h: New.
15085 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
15087 (frv_cpu_type): Remove.
15088 * config/frv/frv.c: Don't include opts.h.
15089 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
15090 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
15091 (frv_cpu_type): New Variable entry.
15092 (frv_cpu): New Enum and EnumValue entries.
15094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15096 * config/cris/cris.c (cris_handle_option): Access target_flags via
15097 opts pointer. Don't assert that global structures are in use.
15098 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
15099 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
15101 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15103 * config/bfin/bfin-opts.h: New.
15104 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
15105 bfin_si_revision, bfin_workarounds): Remove.
15106 (bfin_cpus): Make static const.
15107 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
15108 not bfin_lib_id_given.
15109 (bfin_handle_option): Don't set bfin_lib_id_given. Access
15110 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
15111 pointer. Use error_at. Don't assert that global structures are in use.
15112 * config/bfin/bfin.h: Include bfin-opts.h.
15113 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
15114 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
15115 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
15116 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
15119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15121 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
15122 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
15123 or -msoft-float here.
15124 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
15125 -msoft-float and -mhard-float.
15126 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
15127 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15129 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
15131 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
15132 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
15134 (LIBGCC_SPEC): Don't handle -msoft-float.
15135 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
15137 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15139 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
15140 -mfloat-abi=*, not -msoft-float and -mhard-float.
15141 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
15143 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
15144 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
15145 mhard-float and msoft-float.
15146 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
15147 mfloat-abi=soft in comments, not mhard-float and msoft-float.
15148 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15149 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
15151 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
15152 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
15154 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
15156 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
15159 2011-03-22 Richard Henderson <rth@redhat.com>
15161 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
15162 TARGET_ABI_WINDOWS_NT.
15163 (alpha_output_function_end_prologue): Likewise.
15164 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
15165 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15166 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
15167 (trap, *movsi_nt_vms): Likewise.
15168 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
15169 (*tablejump_osf_nt_internal): Remove.
15170 * config/alpha/predicates.md (input_operand): Only test Pmode.
15172 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15174 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
15175 via opts pointer. Use error_at. Don't assert that global
15176 structures are in use.
15178 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15180 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
15181 (ix86_handle_option): Access ix86_isa_flags and
15182 ix86_isa_flags_explicit via opts pointer. Don't assert that
15183 global structures are in use.
15184 (ix86_function_specific_save, ix86_function_specific_restore):
15185 Update ix86_isa_flags_explicit field name.
15186 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
15187 (ix86_isa_flags_explicit): Rename TargetSave entry to
15188 x_ix86_isa_flags_explicit.
15190 2011-03-22 Richard Henderson <rth@redhat.com>
15192 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
15193 (alpha_option_override, direct_return): Likewise.
15194 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
15195 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
15196 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
15197 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15198 (alpha_expand_epilogue, alpha_end_function): Likewise.
15199 (alpha_init_libfuncs): Likewise.
15200 (struct machine_function): Remove unicosmk members.
15201 (print_operand) ['t']: Remove.
15202 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
15203 unicosmk_output_module_name, unicosmk_output_common,
15204 current_section_align, unicosmk_output_text_section_asm_op,
15205 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
15206 unicosmk_section_type_flags, unicosmk_unique_section,
15207 unicosmk_asm_named_section, unicosmk_insert_attributes,
15208 unicosmk_output_align, unicosmk_defer_case_vector,
15209 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
15210 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
15211 unicosmk_output_ssib, unicosmk_add_call_info_word,
15212 unicosmk_extern_head, unicosmk_output_default_externs,
15213 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
15214 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
15215 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
15216 * config/alpha/alpha-protos.h: Update.
15217 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
15218 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
15219 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
15220 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
15221 (*mulsi_se, mulvsi3): Likewise.
15222 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
15223 (*divmodsi_internal, call, call_value, realign): Likewise.
15224 (moddi3, umoddi3): Likewise; remove duplicate expander.
15225 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
15226 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
15227 (*movdi_nofix): Remove r/U alternative.
15228 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
15229 * config/alpha/constraints.md ("U"): Remove.
15230 * config/alpha/predicates.md (call_operand"): Don't test
15231 TARGET_ABI_UNICOSMK.
15233 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15235 * target.def (handle_option): Take gcc_options and
15236 cl_decoded_option pointers and location_t.
15237 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15238 * doc/tm.texi: Regenerate.
15239 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15240 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15241 * lto-opts.c (lto_reissue_options): Generate option structure for
15242 targetm.handle_option call.
15243 * opts.c (target_handle_option): Update call to
15244 targetm.handle_option. Remove assertions about values now passed
15246 * targhooks.c (default_target_handle_option): New.
15247 * targhooks.h (default_target_handle_option): Declare.
15248 * config/alpha/alpha.c: Include opts.h.
15249 (alpha_handle_option): Update to new hook interface.
15250 * config/arm/arm.c: Include opts.h.
15251 (arm_handle_option): Update to new hook interface.
15252 * config/arm/t-arm (arm.o): Update dependencies.
15253 * config/bfin/bfin.c: Include opts.h.
15254 (bfin_handle_option): Update to new hook interface.
15255 * config/cris/cris.c: Include opts.h.
15256 (cris_handle_option): Update to new hook interface.
15257 * config/frv/frv.c: Include opts.h.
15258 (frv_handle_option): Update to new hook interface.
15259 * config/i386/i386.c: Include opts.h.
15260 (ix86_handle_option): Update to new hook interface.
15261 (ix86_valid_target_attribute_inner_p): Generate option structure
15262 for call to ix86_handle_option.
15263 * config/i386/t-i386 (i386.o): Update dependencies.
15264 * config/ia64/ia64.c: Include opts.h.
15265 (ia64_handle_option): Update to new hook interface.
15266 * config/ia64/t-ia64 (ia64.o): Update dependencies.
15267 * config/iq2000/iq2000.c: Include opts.h.
15268 (iq2000_handle_option): Update to new hook interface.
15269 * config/m32c/m32c.c: Include opts.h.
15270 (m32c_handle_option): Update to new hook interface.
15271 * config/m32r/m32r.c: Include opts.h.
15272 (m32r_handle_option): Update to new hook interface.
15273 * config/m68k/m68k.c: Include opts.h.
15274 (m68k_handle_option): Update to new hook interface.
15275 * config/mep/mep.c: Include opts.h.
15276 (mep_handle_option): Update to new hook interface.
15277 * config/microblaze/microblaze.c: Include opts.h.
15278 (microblaze_handle_option): Update to new hook interface.
15279 * config/mips/mips.c: Include opts.h.
15280 (mips_handle_option): Update to new hook interface.
15281 * config/mn10300/mn10300.c: Include opts.h.
15282 (mn10300_handle_option): Update to new hook interface.
15283 * config/pa/pa.c: Include opts.h.
15284 (pa_handle_option): Update to new hook interface.
15285 * config/pdp11/pdp11.c: Include opts.h.
15286 (pdp11_handle_option): Update to new hook interface.
15287 * config/rs6000/rs6000.c: Include opts.h.
15288 (rs6000_handle_option): Update to new hook interface.
15289 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15290 * config/rx/rx.c: Include opts.h.
15291 (rx_handle_option): Update to new hook interface.
15292 * config/s390/s390.c: Include opts.h.
15293 (s390_handle_option): Update to new hook interface.
15294 * config/score/score.c: Include opts.h.
15295 (score_handle_option): Update to new hook interface.
15296 * config/sh/sh.c: Include opts.h.
15297 (sh_handle_option): Update to new hook interface.
15298 * config/sparc/sparc.c: Include opts.h.
15299 (sparc_handle_option): Update to new hook interface.
15300 * config/v850/v850.c: Include opts.h.
15301 (v850_handle_option): Update to new hook interface.
15303 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15305 * gcc.c (driver_unknown_option_callback): Only permit and save
15306 unknown -Wno- options.
15307 (driver_wrong_lang_callback): Save options directly instead of via
15308 driver_unknown_option_callback.
15310 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15312 * combine.c (simplify_set): Try harder to find the best CC mode when
15313 simplifying a nested COMPARE on the RHS.
15315 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15317 * config/alpha/gnu.h: Remove.
15318 * config/arc: Remove directory.
15319 * config/arm/netbsd.h: Remove.
15320 * config/arm/t-pe: Remove.
15321 * config/crx: Remove directory.
15322 * config/i386/netbsd.h: Remove.
15323 * config/m68hc11: Remove directory.
15324 * config/m68k/uclinux-oldabi.h: Remove.
15325 * config/mcore/mcore-pe.h: Remove.
15326 * config/mcore/t-mcore-pe: Remove.
15327 * config/netbsd-aout.h: Remove.
15328 * config/rs6000/gnu.h: Remove.
15329 * config/sh/sh-symbian.h: Remove.
15330 * config/sh/symbian-base.c: Remove.
15331 * config/sh/symbian-c.c: Remove.
15332 * config/sh/symbian-cxx.c: Remove.
15333 * config/sh/symbian-post.h: Remove.
15334 * config/sh/symbian-pre.h: Remove.
15335 * config/sh/t-symbian: Remove.
15336 * config/svr3.h: Remove.
15337 * config/vax/netbsd.h: Remove.
15338 * config.build: Don't handle i[34567]86-*-pe.
15339 * config.gcc: Remove handling of deprecations for most deprecated
15341 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15342 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15343 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15344 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15345 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15346 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15348 * config.host: Don't handle i[34567]86-*-pe.
15349 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15350 (ASM_SPEC32): Don't handle -mcall-gnu.
15351 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15353 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15354 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15355 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15356 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15357 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15358 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15359 conditional on SYMBIAN.
15360 * configure.ac: Don't handle powerpc*-*-gnu*.
15361 * configure: Regenerate.
15362 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15363 * doc/install-old.texi (m6811, m6812): Don't mention.
15364 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15365 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15366 (m68k-uclinuxoldabi): Don't mention.
15367 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15369 (-mcall-gnu): Remove.
15370 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15371 families): Remove constraint documentation.
15373 2011-03-22 Marius Strobl <marius@FreeBSD.org>
15375 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15376 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15377 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15379 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15382 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15383 vector when peeking at the next token for vector, don't expand the
15386 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
15388 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15389 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15390 * config/avr/avr.c (init_cumulative_args)
15391 (avr_function_arg_advance): Use it.
15392 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15394 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15395 (avr_function_ok_for_sibcall): ...this new function.
15396 (avr_lookup_function_attribute1): New static Function.
15397 (avr_naked_function_p, interrupt_function_p)
15398 (signal_function_p, avr_OS_task_function_p)
15399 (avr_OS_main_function_p): Use it.
15400 * config/avr/avr.md ("sibcall", "sibcall_value")
15401 ("sibcall_epilogue"): New expander.
15402 ("*call_insn", "*call_value_insn"): New insn.
15403 ("call_insn", "call_value_insn"): Remove
15404 ("call", "call_value", "epilogue"): Change expander to handle
15407 2011-03-21 Nick Clifton <nickc@redhat.com>
15409 * doc/invoke.texi (Overall Options): Move closing brace to end of
15411 (Optimization Options): Add missing @gol.
15412 (Directory Options): Likewise.
15413 (i386 and x86-64 Options): Likewise.
15414 (RS6000 and PowerPC Options): Likewise.
15415 (i386 and x86-64 Windows Options): Likewise.
15416 (V850 Options): Add text missing from descriptions.
15418 2011-03-22 Richard Henderson <rth@redhat.com>
15420 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15421 (avr_incoming_return_addr_rtx): New.
15422 (emit_push_byte): New.
15423 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15424 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15425 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15426 (emit_pop_byte): New.
15427 (expand_epilogue): Use it. Pop frame pointer by bytes.
15428 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15429 (INCOMING_RETURN_ADDR_RTX): New.
15430 (INCOMING_FRAME_SP_OFFSET): New.
15431 (ARG_POINTER_CFA_OFFSET): New.
15432 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15433 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15436 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15438 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15440 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15441 (FUNCTION_ARG_ADVANCE): Likewise.
15442 * tm.texi.in: Change references to them to hook references.
15443 * tm.texi: Regenerate.
15444 * targhooks.c (default_function_arg): Eliminate check for target
15446 (default_function_incoming_arg): Likewise.
15447 (default_function_arg_advance): Likewise.
15448 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15449 (function_arg_advance): Likewise.
15450 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15452 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15454 * tree.c (build_call_1): New function.
15455 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15457 2011-03-22 Richard Guenther <rguenther@suse.de>
15459 PR tree-optimization/48228
15460 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15461 for single-arg PHIs.
15463 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
15465 PR rtl-optimization/48143
15466 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15467 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15468 sse2_cvtps2pd): Likewise.
15470 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15472 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15474 2011-03-22 Richard Guenther <rguenther@suse.de>
15476 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15477 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15478 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15479 and REALIGN_LOAD_EXPR.
15480 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15481 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15482 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15483 DOT_PROD_EXPR case ...
15484 (expand_expr_real_2): ... here.
15485 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15486 and REALIGN_LOAD_EXPR.
15487 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15488 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15489 (vect_create_epilog_for_reduction): Likewise.
15490 (vectorizable_reduction): Likewise.
15491 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15492 * tree-vect-stmts.c (vectorizable_load): Likewise.
15494 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15496 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15498 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15500 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15501 handling for PLTOFF/GOTOFF.
15503 2011-03-22 Nick Clifton <nickc@redhat.com>
15505 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15506 trailing backslash from the end of the macro definition.
15508 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15510 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15513 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15515 * expr.h (prepare_operand): Move to...
15516 * optabs.h (prepare_operand): ...here and change the insn code
15517 parameter from "int" to "enum insn_code".
15518 (insn_operand_matches): Declare.
15519 * expr.c (init_expr_target): Use insn_operand_matches.
15520 (compress_float_constant): Likewise.
15521 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15522 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15523 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15524 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15526 (gen_cond_trap): Likewise.
15527 (prepare_operand): Likewise. Change icode to an insn_code.
15528 (insn_operand_matches): New function.
15529 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15530 * reload1.c (gen_reload): Likewise.
15531 * targhooks.c (default_secondary_reload): Likewise.
15533 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15535 * config/alpha/alpha.md (unspec): New define_c_enum.
15538 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15541 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15542 between a call and its CALL_ARG_LOCATION note.
15544 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15546 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15548 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15552 * c-common.c (shorten_compare): If primopN is first sign-extended
15553 to opN and then zero-extended to result type, set primopN to opN.
15555 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15557 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15558 for barrier handlers.
15560 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15562 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15563 UNSPEC constants to be in the unspec enumeration, and redefine
15564 all UNSPECV constants to be in the unspecv enumeration, so that
15565 dumps print which unspec/unspec_volatile this is.
15566 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15567 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15568 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15569 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15570 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15572 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15573 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15574 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15575 * config/rs6000/sync.md (isync, lwsync): Ditto.
15577 2011-03-21 Richard Guenther <rguenther@suse.de>
15579 * params.def (lto-min-partition): Fix typo.
15581 2011-03-21 Richard Guenther <rguenther@suse.de>
15584 * c-decl.c (grokdeclarator): Drop to the main variant only
15585 for array types. Drop flag_gen_aux_info check.
15587 2011-03-21 Richard Guenther <rguenther@suse.de>
15589 PR translation/47911
15590 * params.def (lto-partitions): Fix typo.
15591 (lto-min-partition): Fix wording.
15593 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
15595 * config/rs6000/t-freebsd: Remove duplication from file.
15597 2011-03-21 Richard Guenther <rguenther@suse.de>
15599 PR middle-end/47661
15600 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15602 2011-03-21 Richard Guenther <rguenther@suse.de>
15605 * params.def (lto-partitions): Require at least 1 partition.
15607 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15609 * gthr-solaris.h: Remove.
15610 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15611 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15612 (LIB_SPEC): Likewise.
15613 * config/sol2.opt (threads): Remove.
15614 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
15615 (sparc*-*-solaris2*): Likewise.
15616 * configure.ac (enable_threads): Enable solaris support.
15617 * configure: Regenerate.
15618 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
15619 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15622 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15624 * config.gcc: Obsolete *-*-solaris2.8*.
15625 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15627 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15630 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15631 reference. Solaris 8 perl works.
15633 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15636 * doc/install.texi (Prerequisites): Move jar etc. up.
15637 Explain support library version requirements.
15639 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15642 * doc/install.texi (Prerequisites): Move Perl to build
15643 requirements. Always necessary on Solaris 2 with Sun ld.
15645 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15647 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15649 (Specific, i?86-*-solaris2.[89]): Likewise.
15650 (Specific, i?86-*-solaris2.10): Likewise.
15651 (Specific, mips-sgi-irix6): Likewise.
15652 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15653 Update for binutils 2.21.
15655 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15657 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15658 Allow -fuse-linker-plugin for non-default plugin linker.
15659 * configure: Regenerate.
15661 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15664 * gengtype.c (files_rules): Added rule for cp/parser.h.
15666 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15669 * config/s390/s390.c (s390_delegitimize_address): Don't call
15670 lowpart_subreg if orig_x has BLKmode.
15672 2011-03-21 Kai Tietz <ktietz@redhat.com>
15675 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15676 * tree.h (attribute_spec): Add new member affects_type_identity.
15677 * attribs.c (empty_attribute_table): Adjust attribute_spec
15679 * config/alpha/alpha.c: Likewise.
15680 * config/arc/arc.c: Likewise.
15681 * config/arm/arm.c: Likewise.
15682 * config/avr/avr.c: Likewise.
15683 * config/bfin/bfin.c: Likewise.
15684 * config/crx/crx.c: Likewise.
15685 * config/darwin.h: Likewise.
15686 * config/h8300/h8300.c: Likewise.
15687 * config/i386/cygming.h: Likewise.
15688 * config/i386/i386.c: Likewise.
15689 * config/ia64/ia64.c: Likewise.
15690 * config/m32c/m32c.c: Likewise.
15691 * config/m32r/m32r.c: Likewise.
15692 * config/m68hc11/m68hc11.c: Likewise.
15693 * config/m68k/m68k.c: Likewise.
15694 * config/mcore/mcore.c: Likewise.
15695 * config/mep/mep.c: Likewise.
15696 * config/microblaze/microblaze.c: Likewise.
15697 * config/mips/mips.c: Likewise.
15698 * config/rs6000/rs6000.c: Likewise.
15699 * config/rx/rx.c: Likewise.
15700 * config/sh/sh.c: Likewise.
15701 * config/sol2.h: Likewise.
15702 * config/sparc/sparc.c: Likewise.
15703 * config/spu/spu.c: Likewise.
15704 * config/stormy16/stormy16.c: Likewise.
15705 * config/v850/v850.c: Likewise.
15707 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15709 * simplify-rtx.c (simplify_binary_operation_1): Handle
15710 (xor (and A B) C) case when B and C are both constants.
15712 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15714 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15716 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15719 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15721 2011-03-20 Jakub Jelinek <jakub@redhat.com>
15723 PR rtl-optimization/48156
15724 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15725 assume df and df_lr are not NULL.
15727 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15730 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15731 between a call and its CALL_ARG_LOCATION note.
15733 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15736 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15737 between a call and its corresponding CALL_ARG_LOCATION note.
15739 2011-03-19 Anatoly Sokolov <aesok@post.ru>
15741 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15742 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15743 * haifa-sched.c (setup_ref_regs): Ditto.
15744 * caller-save.c (add_used_regs_1): Ditto.
15745 * dse.c (look_for_hardregs): Ditto.
15746 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15747 * sched-rgn.c (check_live_1): Ditto.
15749 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15751 * c-decl.c (diagnose_mismatched_decls): Give an error for
15752 redefining a typedef with variably modified type.
15754 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15756 * c-decl.c (grokfield): Don't allow typedefs for structures or
15757 unions with no tag by default.
15758 * doc/extend.texi (Unnamed Fields): Update.
15760 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
15762 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15763 Rewrite using indirect functions.
15764 (lwp_slwpcb): Ditto.
15765 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15766 (avx_vinsertf128<mode>): Ditto.
15768 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15770 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15773 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15775 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15776 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15778 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15780 PR rtl-optimization/48170
15781 * gcse.c (hoist_code): Remove bogus asserts.
15783 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15785 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15786 computation for prologue/epilogue.
15788 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15790 * Makefile.in (check-consistency): Remove.
15792 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15795 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15796 arange_table_in_use is 0, but either text_section_used or
15797 cold_text_section_used is true. Don't call it if
15798 !info_section_emitted.
15800 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15802 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15803 FUNCTION_VALUE_REGNO_P): Remove.
15804 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15806 * config/avr/avr.c (avr_ret_register): Make static inline.
15807 (avr_function_value_regno_p): New function.
15808 (avr_libcall_value): Make static. Add 'func' argument.
15809 (avr_function_value): Make static. Rename 'func' argument to
15810 'fn_decl_or_type', forward it to avr_libcall_value. Call
15811 avr_ret_register function instead of RET_REGISTER macro.
15812 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15814 2011-03-18 Jason Merrill <jason@redhat.com>
15817 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15819 2011-03-18 Richard Guenther <rguenther@suse.de>
15821 * doc/install.texi (--enable-gold): Remove.
15822 (--with-plugin-ld): Document.
15823 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15825 2011-03-18 Andrew Pinski <pinskia@gmail.com>
15827 PR middle-end/47790
15828 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15829 again after expansion changes.
15831 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15833 * combine.c (try_combine): Do simplification only call of
15834 subst() on i2 even when i1 is present. Update comments.
15836 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15838 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15839 and UNSPEC_PCREL_SYMOFF.
15841 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15843 * config/s390/s390.md: Use define_c_enum for the unspec constant
15846 2011-03-18 Richard Henderson <rth@redhat.com>
15847 Jakub Jelinek <jakub@redhat.com>
15850 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15851 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15853 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15855 PR middle-end/47725
15856 * combine.c (cant_combine_insn_p): Don't check zero/sign
15857 extended hard registers.
15859 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15861 PR middle-end/47725
15862 * combine.c (cant_combine_insn_p): Check zero/sign extended
15865 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15867 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15868 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15869 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15870 Change return type to bool.
15871 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15873 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15876 * var-tracking.c (prepare_call_arguments): If CALL target
15877 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15878 pc instead of looking it up using cselib_lookup and use
15879 Pmode for it if x has VOIDmode.
15880 * dwarf2out.c (gen_subprogram_die): If also both first and
15881 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15884 * function.c (assign_parms): For data.passed_pointer parms
15885 use MEM of data.entry_parm instead of data.entry_parm itself
15886 as DECL_INCOMING_RTL.
15887 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15888 also when passed and declared mode is the same, DECL_RTL
15889 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15892 2011-03-16 Jeff Law <law@redhat.com>
15894 PR rtl-optimization/37273
15895 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15896 handle them like argument loads from stack slots. Do not double
15897 count memory for memory constants and argument loads from stack slots.
15899 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15902 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15904 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15907 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15909 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15912 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15914 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15915 Clear call_arg_locations and call_arg_loc_last always.
15917 PR middle-end/48152
15918 * var-tracking.c (prepare_call_arguments): If argument needs to be
15919 passed by reference, adjust argtype and mode.
15921 2011-03-17 Richard Guenther <rguenther@suse.de>
15923 PR middle-end/48134
15924 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15925 a value make sure to fold the statement.
15927 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15930 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15931 return condition with !cfun->calls_alloca.
15933 2011-03-17 Richard Guenther <rguenther@suse.de>
15936 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15937 origin for decls in other ltrans units.
15938 (input_varpool_node): Likewise.
15940 2011-03-17 Richard Guenther <rguenther@suse.de>
15942 PR middle-end/48165
15943 * tree-object-size.c (compute_object_offset): Properly return
15944 the offset operand of MEM_REFs as sizetype.
15946 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15948 PR rtl-optimization/48141
15949 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15950 * dse.c: Include params.h.
15951 (active_local_stores_len): New variable.
15952 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15954 (record_store, check_mem_read_rtx): Decrease it when removing
15956 (scan_insn): Likewise. Increase it when adding to chain, if it
15957 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15958 set active_local_stores to NULL before the addition.
15959 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15961 PR rtl-optimization/48141
15962 * dse.c (record_store): If no positions are needed in an insn
15963 that cannot be deleted, at least unchain it from active_local_stores.
15965 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15968 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15969 (lookup_type_die_strip_naming_typedef): ... here.
15970 (get_context_die): Use it.
15971 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15972 the anonymous struct named by the naming typedef.
15974 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15977 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15978 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15980 2011-03-16 Jeff Law <law@redhat.com>
15982 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15983 check for operands of conditional. Allow type to be a pointer.
15985 2011-03-16 Richard Guenther <rguenther@suse.de>
15987 PR tree-optimization/48149
15988 * fold-const.c (fold_binary_loc): Fold
15989 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15991 2011-03-16 Richard Guenther <rguenther@suse.de>
15993 PR tree-optimization/26134
15994 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15995 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15996 (non_rewritable_mem_ref_base): Handle complex type component
15997 accesses, constrain offsets for vector and complex extracts
16000 2011-03-16 Richard Guenther <rguenther@suse.de>
16002 PR tree-optimization/48146
16003 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
16004 operands avoiding the need for renaming.
16006 2011-03-16 Richard Guenther <rguenther@suse.de>
16008 * gimple-fold.c (maybe_fold_reference): Open-code relevant
16009 constant folding. Move MEM_REF canonicalization first.
16010 Rely on fold_const_aggregate_ref for initializer folding.
16011 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
16013 2011-03-16 Jakub Jelinek <jakub@redhat.com>
16015 PR middle-end/48136
16016 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16017 arg0/arg1 or their arguments are always fold converted to matching
16020 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
16023 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16026 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
16027 Handle in-tree gold.
16028 (ld_vers): Extract binutils version for gold.
16029 (gcc_cv_ld_hidden): Handle gold here.
16030 (gcc_cv_lto_plugin): Determine level of linker plugin support.
16031 * configure: Regenerate.
16032 * config.in: Regenerate.
16033 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
16034 -fuse-linker-plugin otherwise.
16035 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
16036 (LINK_COMMAND_SPEC): Use it.
16037 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
16039 2011-03-16 Jakub Jelinek <jakub@redhat.com>
16041 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
16042 * calls.c: Remove debug.h include.
16043 (emit_call_1): Don't call virtual_call_token debug hook.
16044 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
16045 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
16046 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
16047 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
16048 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
16049 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
16050 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
16051 dwarf2out_virtual_call): Remove.
16052 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
16053 copy_call_info and virtual_call hooks.
16054 (dwarf2out_init): Don't initialize vcall_insn_table,
16055 debug_dcall_section and debug_vcall_section.
16056 (prune_unused_types): Don't mark nodes from dcall_table.
16057 (dwarf2out_finish): Don't output dcall or vcall tables.
16058 * final.c (final_scan_insn): Don't call direct_call or
16059 virtual_call debug hooks.
16060 * debug.h (struct gcc_debug_hooks): Remove direct_call,
16061 virtual_call_token, copy_call_info and virtual_call hooks.
16062 (debug_nothing_uid): Remove prototype.
16063 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
16064 copy_call_info and virtual_call hooks.
16065 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16066 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
16067 * debug.c (do_nothing_debug_hooks): Likewise.
16068 (debug_nothing_uid): Remove.
16069 * doc/invoke.texi (-fenable-icf-debug): Remove.
16070 * common.opt (-fenable-icf-debug): Likewise.
16072 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
16073 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
16074 call's MEM. Handle functions returning aggregate through a hidden
16075 first pointer. For virtual calls add clobbered pc to call arguments
16077 * dwarf2out.c (gen_subprogram_die): Emit
16078 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
16082 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
16083 * rtl.h (ENTRY_VALUE_EXP): Define.
16084 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
16085 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
16086 * print-rtl.c (print_rtx): Likewise.
16087 * gengtype.c (adjust_field_rtx_def): Likewise.
16088 * var-tracking.c (vt_add_function_parameter): Adjust
16089 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
16090 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
16091 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
16092 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
16093 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
16095 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
16096 Call var_location debug hook even on CALL_INSNs.
16097 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
16098 * rtl.def (ENTRY_VALUE): New.
16099 * dwarf2out.c: Include cfglayout.h.
16100 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16101 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
16102 (struct call_arg_loc_node): New type.
16103 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
16104 tail_call_site_count): New variables.
16105 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
16106 DW_TAG_GNU_call_site_parameter.
16107 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
16108 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
16109 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
16110 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
16111 and DW_AT_GNU_all_source_call_sites.
16112 (mem_loc_descriptor): Handle ENTRY_VALUE.
16113 (add_src_coords_attributes): Don't add enything if
16114 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
16115 (dwarf2out_abstract_function): Save and clear call_arg_location,
16116 call_site_count and tail_call_site_count around dwarf2out_decl call.
16117 (gen_call_site_die): New function.
16118 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
16119 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
16120 (dwarf2out_function_decl): Clear call_arg_locations,
16121 call_arg_loc_last, set call_site_count and tail_call_site_count
16122 to -1 and free block_map.
16123 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
16124 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
16125 followed by any real instructions.
16126 (dwarf2out_begin_function): Set call_site_count and
16127 tail_call_site_count to 0.
16128 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
16129 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
16130 attempt to force a DIE for it and worst case remove the attribute.
16131 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
16132 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
16134 * var-tracking.c: Include tm_p.h.
16135 (vt_stack_adjustments): For calls call note_register_arguments.
16136 (argument_reg_set): New variable.
16137 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
16138 ensure the VALUE is resolved.
16139 (call_arguments): New variable.
16140 (prepare_call_arguments): New function.
16141 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
16142 (struct expand_loc_callback_data): Add ignore_cur_loc field.
16143 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
16144 always use the best expression.
16145 (vt_expand_loc): Add ignore_cur_loc argument.
16146 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
16147 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
16148 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
16149 note for all calls.
16150 (vt_add_function_parameter): Use cselib_lookup_from_insn.
16151 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
16152 argument. Don't call cselib_preserve_only_values and
16153 cselib_reset_table.
16154 (note_register_arguments): New function.
16155 (vt_initialize): Compute argument_reg_set. Call
16156 vt_add_function_parameters before processing basic blocks instead of
16157 afterwards. For calls call prepare_call_arguments before calling
16158 cselib_process_insn.
16159 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
16160 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
16161 (var-tracking.o): Depend on $(TM_P_H).
16162 * cfglayout.h (insn_scope): New prototype.
16163 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
16164 * cfglayout.c (insn_scope): No longer static.
16165 * insn-notes.def (CALL_ARG_LOCATION): New.
16166 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
16167 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
16168 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
16169 nothing for DECL_EXTERNAL BLOCK_VARS.
16171 2011-03-16 Alan Modra <amodra@gmail.com>
16174 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16175 create invalid offset address for vsx splat insn.
16176 * config/rs6000/predicates.md (splat_input_operand): New.
16177 * config/rs6000/vsx.md (vsx_splat_*): Use it.
16179 2011-03-15 Xinliang David Li <davidxl@google.com>
16182 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
16183 (normalize_preds): New function.
16184 (is_use_properly_guarded): Normalize def predicates.
16186 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16189 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
16190 in the output template.
16192 2011-03-15 Richard Guenther <rguenther@suse.de>
16194 PR middle-end/47650
16195 * tree-pretty-print.c (dump_function_declaration): Properly
16196 dump unprototyped and varargs function types.
16198 2011-03-15 Richard Guenther <rguenther@suse.de>
16200 PR tree-optimization/13954
16201 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
16204 2011-03-15 Richard Guenther <rguenther@suse.de>
16206 PR tree-optimization/48037
16207 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
16208 selects into BIT_FIELD_REFs.
16209 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
16212 2011-03-15 Jakub Jelinek <jakub@redhat.com>
16214 PR tree-optimization/48129
16215 * builtins.c (fold_builtin_snprintf): Convert to type of
16216 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
16217 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
16219 2011-03-15 Richard Guenther <rguenther@suse.de>
16221 PR tree-optimization/41490
16222 * tree-ssa-dce.c (propagate_necessity): Handle returns without
16223 value but with VUSE.
16224 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
16226 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
16227 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
16228 * tree-tailcall.c (find_tail_calls): Ignore returns.
16230 2011-03-15 Richard Guenther <rguenther@suse.de>
16232 PR middle-end/48031
16233 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16234 or variable-indexed array accesses when in gimple form.
16236 2011-03-15 Richard Guenther <rguenther@suse.de>
16238 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
16240 2011-03-15 Alan Modra <amodra@gmail.com>
16243 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16244 presume symbol_refs without a symbol_ref_decl are suitably
16245 aligned, nor other trees we may see here. Handle anchor symbols.
16246 (legitimate_constant_pool_address_p): Comment. Add mode param.
16247 Check cmodel=medium addresses. Adjust all calls.
16248 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16249 creating cmodel=medium optimized access to locals.
16250 * config/rs6000/constraints.md (R): Pass QImode to
16251 legitimate_constant_pool_address_p.
16252 * config/rs6000/predicates.md (input_operand): Pass mode to
16253 legitimate_constant_pool_address_p.
16254 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16257 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16260 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16261 64-bit constants being loaded into registers other than GPRs such
16262 as loading 0 into a VSX register.
16264 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16266 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
16268 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16270 PR middle-end/47917
16271 * builtins.c (fold_builtin_snprintf): New function.
16272 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16273 (fold_builtin_4): Likewise.
16275 PR middle-end/38878
16276 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16277 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
16278 and C - X == X also strip nops from +/-/p+ operand.
16279 When optimizing -X == C, fold C to arg0's type.
16282 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16283 emit it as add_AT_int instead of add_AT_unsigned.
16285 2011-03-14 Tom Tromey <tromey@redhat.com>
16287 * unwind-dw2.c: Include sys/sdt.h if it exists.
16288 (_Unwind_DebugHook): Use STAP_PROBE2.
16289 * config.in, configure: Rebuild.
16290 * configure.ac: Check for sys/sdt.h.
16292 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
16294 * config/i386/i386.md (ROUND_FLOOR): New constant.
16295 (ROUND_CEIL): Ditto.
16296 (ROUND_TRUNC): Ditto.
16297 (ROUND_MXCSR): Ditto.
16298 (ROUND_NO_EXC): Ditto.
16299 (rint<mode>2): Use new defines instead of numerical constants.
16300 (floor<mode>2): Ditto.
16301 (ceil<mode>2): Ditto.
16302 (btrunc<mode>2): Ditto.
16303 * config/i386/i386-builtin-types.def: Define ROUND function type
16305 * config/i386/i386.c (enum ix86_builtins): Add
16306 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16307 (struct builtin_description): Add
16308 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16309 (ix86_expand_sse_round): New static function.
16310 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16312 (ix86_builtin_vectorized_function): Handle
16313 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16315 2011-03-14 Tom Tromey <tromey@redhat.com>
16317 * c-parser.c (c_parser_asm_string_literal): Clear
16318 warn_overlength_strings.
16320 2011-03-14 Tom Tromey <tromey@redhat.com>
16322 * c-parser.c (disable_extension_diagnostics): Save
16323 warn_overlength_strings.
16324 (restore_extension_diagnostics): Restore warn_overlength_strings.
16326 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16328 * BASE-VER: Change to 4.7.0.
16330 2011-03-14 Richard Guenther <rguenther@suse.de>
16332 PR middle-end/48098
16333 * tree.c (build_vector_from_val): Adjust assert to requirements
16336 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16339 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16341 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
16343 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16344 terms of target_flags_explicit. Adjust copyright year.
16346 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16347 * config/rs6000/t-freebsd: New file. Add override for
16350 2011-03-13 Chris Demetriou <cgd@google.com>
16352 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16353 (-fno-diagnostics-show-option): this, to reflect current default.
16354 (-Werror=): Update text about -fno-diagnostics-show-option.
16356 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16359 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16360 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16361 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16362 mode is not V2DImode or V2DFmode.
16363 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16364 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16365 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16367 (movdi_internal64): Likewise.
16369 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16371 PR tree-optimization/47127
16372 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16374 (set_cloog_options): Same.
16375 (scop_to_clast): Same.
16376 (print_clast_stmt): Do not call cloog_state_malloc and
16378 (print_generated_program): Same.
16380 * graphite-clast-to-gimple.h (cloog_state): Declared.
16381 (scop_to_clast): Adjust declaration.
16382 * graphite.c (cloog_state): Defined here.
16383 (graphite_initialize): Call cloog_state_malloc.
16384 (graphite_finalize): Call cloog_state_free.
16386 2011-03-11 Jason Merrill <jason@redhat.com>
16388 * attribs.c (lookup_attribute_spec): Take const_tree.
16391 2011-03-11 Joseph Myers <joseph@codesourcery.com>
16393 * config/sparc/sparc.c (sparc_option_override): Use
16394 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16396 2011-03-11 Richard Guenther <rguenther@suse.de>
16398 PR tree-optimization/48067
16399 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16400 multiplication result will be only used once on the target
16403 2011-03-11 Richard Guenther <rguenther@suse.de>
16405 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16407 2011-03-11 Richard Guenther <rguenther@suse.de>
16410 * tree.c (find_decls_types_r): Do not walk types only reachable
16411 from IDENTIFIER_NODEs.
16413 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16415 PR middle-end/48044
16416 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16417 all vnode->force_output nodes as needed.
16419 2011-03-11 Jason Merrill <jason@redhat.com>
16422 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16423 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16425 2011-03-11 Martin Jambor <mjambor@suse.cz>
16427 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16430 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16432 PR tree-optimization/48063
16433 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16434 inline functions called once if !tree_can_inline_p (node->callers).
16436 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
16438 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16440 * config/score/score3.c: Delete.
16441 * config/score/score3.h: Delete.
16442 * config/score/mul-div.S: Delete.
16443 * config/score/sfp-machine.h: Add new file.
16444 * config/score/constraints.md: Add new file.
16445 * config/score/t-score-softfp: Add new file.
16446 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16447 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16448 (score7_extra_constraint): Delete.
16449 (score7_option_override): Remove unused code.
16450 * config/score/score.c: Remove score3 and score5 define and code.
16451 * config/score/score.h: Remove score3 and score5 define and code.
16452 * config/score/score.md: Remove score3 template and unusual insn.
16453 * config/score/score.opt: Remove score3 and score5 options.
16455 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16457 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16458 when _HPUX_SOURCE is defined.
16459 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16461 2011-03-10 Jason Merrill <jason@redhat.com>
16464 * stor-layout.c (layout_type): Don't set structural equality
16465 on arrays of incomplete type.
16466 * tree.c (type_hash_eq): Handle comparing them properly.
16468 2011-03-10 Jakub Jelinek <jakub@redhat.com>
16471 * config/s390/s390.c (s390_delegitimize_address): Make sure the
16472 result mode matches original rtl mode.
16474 2011-03-10 Nick Clifton <nickc@redhat.com>
16476 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16477 (andsi3, andsi3_flags): Fix timings for three operand alternative.
16479 2011-03-09 Jakub Jelinek <jakub@redhat.com>
16481 PR rtl-optimization/47866
16482 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16483 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16484 if target wasn't scalar.
16485 * function.c (assign_stack_temp_for_type): Assert that neither
16486 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16487 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16489 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16491 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16493 * config/s390/s390-protos.h (s390_label_align): New prototype.
16494 * config/s390/s390.c (s390_label_align): New function.
16495 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16497 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16500 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16501 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16502 (output_vec_const_move): Ditto.
16504 2011-03-08 Anatoly Sokolov <aesok@post.ru>
16506 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16507 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16508 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16509 Change 'rclass' argument and result type to reg_class_t.
16510 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16512 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
16514 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16515 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16516 (TARGET_MEMORY_MOVE_COST): Define.
16517 (avr_register_move_cost, avr_memory_move_cost): New Functions.
16519 2011-03-08 Jakub Jelinek <jakub@redhat.com>
16522 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16525 PR tree-optimization/48022
16526 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16529 2011-03-07 Jakub Jelinek <jakub@redhat.com>
16532 * var-tracking.c (find_use_val): Return NULL for
16533 cui->sets && cui->store_p BLKmode MEMs.
16535 2011-03-07 Anatoly Sokolov <aesok@post.ru>
16537 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16539 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16540 xstormy16_print_operand_address): Remove.
16541 * config/stormy16/stormy16.c (xstormy16_print_operand,
16542 xstormy16_print_operand_address): Make static.
16543 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16545 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
16548 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16549 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16552 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
16555 * cfgloopmanip.c (fix_bb_placements): Return immediately
16556 if FROM is BASE_LOOP's header.
16558 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16560 * gimplify.c (gimplify_function_tree): Fix building calls
16561 to __builtin_return_address.
16563 2011-03-07 Alan Modra <amodra@gmail.com>
16565 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16566 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16567 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16568 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16570 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16571 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16572 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16573 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16574 * config/rs6000/rs6000.c
16575 (rs6000_elf_end_indicate_exec_stack): Rename to..
16576 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16577 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16578 (rs6000_file_start): ..here.
16579 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16580 file scope variables.
16581 (call_ABI_of_interest): New function.
16582 (init_cumulative_args): Set above vars when function return value
16583 is a float, vector, or small struct.
16584 (rs6000_function_arg_advance_1): Likewise for function args.
16585 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16586 references float args.
16588 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16590 * doc/cfg.texi: Remove "See" before @ref.
16591 * doc/invoke.texi: Likewise.
16593 2011-03-05 Jason Merrill <jason@redhat.com>
16595 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16597 2011-03-05 Anthony Green <green@moxielogic.com>
16599 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16601 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
16603 PR rtl-optimization/47899
16604 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16605 to flow_loop_nested_p when moving the loop upward.
16607 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
16610 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16612 2011-03-05 Jakub Jelinek <jakub@redhat.com>
16614 PR tree-optimization/47967
16615 * ipa-cp.c (build_const_val): Return NULL instead of creating
16616 VIEW_CONVERT_EXPR for mismatching sizes.
16617 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16618 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16619 give up on versioning.
16621 2011-03-05 Alan Modra <amodra@gmail.com>
16624 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16625 full cmodel medium/large lo_sum + high addresses.
16627 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16629 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16630 pool references in UNSPEC_LTREL_OFFSET.
16632 2011-03-04 Jan Hubicka <jh@suse.cz>
16635 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16636 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
16637 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16639 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16640 cgraph_add_thunk): Add node pointers.
16641 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16642 associated to right node.
16643 (input_node): Update use of cgraph_same_body_alias
16644 and cgraph_add_thunk.
16646 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16648 * config/i386/i386.opt (mprefer-avx128): New flag.
16649 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16650 modes when the flag -mprefer-avx128 is on.
16652 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16654 * dwarf2out.c (compare_loc_operands): Fix address handling.
16656 2011-03-04 Alan Modra <amodra@gmail.com>
16658 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16660 2011-03-04 Richard Guenther <rguenther@suse.de>
16662 PR middle-end/47968
16663 * expmed.c (extract_bit_field_1): Prefer vector modes that
16664 vec_extract patterns can handle.
16666 2011-03-04 Richard Guenther <rguenther@suse.de>
16668 PR middle-end/47975
16669 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16671 2011-03-04 Richard Henderson <rth@redhat.com>
16673 * explow.c (emit_stack_save): Remove 'after' parameter.
16674 (emit_stack_restore): Likewise.
16675 * expr.h: Update to match.
16676 * builtins.c, calls.c, stmt.c: Likewise.
16677 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16678 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16679 * function.c (expand_function_end): Insert the emit_stack_save
16680 sequence before parm_birth_insn instead of after.
16682 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
16684 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16685 (ssse3_pmaddubsw128): Ditto.
16686 (ssse3_pmaddubsw): Ditto.
16688 2011-03-03 Steve Ellcey <sje@cup.hp.com>
16690 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16692 2011-03-03 Jakub Jelinek <jakub@redhat.com>
16695 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16696 on TYPE_SIZE_UNIT if it is a DECL.
16699 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16700 first operand is not is_gimple_mem_ref_addr, try to fold it.
16701 If the operand still isn't is_gimple_mem_ref_addr, clear
16704 2011-03-03 Richard Guenther <rguenther@suse.de>
16706 PR middle-end/47283
16707 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16709 (refs_may_alias_p_1): For release branches return true if
16710 we are confused by our input.
16712 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16714 * config/s390/s390.c (s390_function_value): Rename to ...
16715 (s390_function_and_libcall_value): ... this.
16716 (s390_function_value): New function.
16717 (s390_libcall_value): New function.
16718 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16719 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16720 target macro definitions.
16721 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16723 2011-03-02 Joseph Myers <joseph@codesourcery.com>
16725 * config/i386/freebsd64.h (CC1_SPEC): Define.
16726 * config/i386/linux64.h (CC1_SPEC): Define.
16727 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16729 2011-03-02 Anatoly Sokolov <aesok@post.ru>
16731 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16733 * config/stormy16/stormy16.c: Include reload.h.
16734 (xstormy16_memory_move_cost): New function.
16735 (TARGET_MEMORY_MOVE_COST): Define.
16737 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16739 PR rtl-optimization/47925
16740 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16741 with side effects. Remove the more-specific check for volatile asms.
16743 2011-03-02 Alan Modra <amodra@gmail.com>
16746 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16747 toc relative addresses for valid offsets.
16749 2011-03-01 Richard Guenther <rguenther@suse.de>
16751 PR tree-optimization/47890
16752 * tree-vect-loop.c (get_initial_def_for_induction): Set
16753 related stmt properly.
16755 2011-03-01 Richard Guenther <rguenther@suse.de>
16758 * lto-streamer.c (lto_record_common_node): Also register
16759 the canonical type.
16761 2011-03-01 Richard Guenther <rguenther@suse.de>
16764 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16765 Do not stream DECL_ABSTRACT_ORIGIN.
16766 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16767 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16768 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16769 Do not stream DECL_ABSTRACT_ORIGIN.
16770 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16771 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16773 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16775 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16776 FUNCTION_VALUE_REGNO_P): Remove.
16777 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16778 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16779 Add 'outgoing' argument.
16780 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16782 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16783 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16785 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16788 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16789 (lookup_filename): Likewise.
16790 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16792 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16793 Jakub Jelinek <jakub@redhat.com>
16795 PR middle-end/47893
16796 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16797 (assign_stack_local_1): Change last argument type to int.
16798 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16799 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16800 don't record padding space into frame_space_list nor use those areas.
16801 (assign_stack_local): Adjust caller.
16802 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16803 of assign_stack_local, pass 0 as last argument.
16804 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16807 2011-02-28 Jakub Jelinek <jakub@redhat.com>
16810 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16811 Use target address_mode and pointer_mode hooks instead of hardcoded
16812 Pmode and ptr_mode. Handle some simple cases of extending if
16813 POINTERS_EXTEND_UNSIGNED < 0.
16814 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16815 Call convert_debug_memory_address.
16816 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16817 convert_debug_memory_address.
16819 PR middle-end/46790
16820 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16821 * configure: Regenerated.
16822 * config.in: Regenerated.
16823 * varasm.c (default_function_section): Return NULL
16824 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16826 2011-02-28 Martin Jambor <mjambor@suse.cz>
16828 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16829 the description to match the printed values.
16831 2011-02-28 Richard Guenther <rguenther@suse.de>
16833 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16834 of the copied scope tree.
16836 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16838 * doc/extend.texi (Function Attributes): Avoid deeply (and
16839 wrongly) nested tables.
16841 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16843 PR middle-end/47903
16844 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16845 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16846 r isn't op0 nor op1.
16848 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16850 * config/avr/avr.md: Remove magic comment for emacs.
16852 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16855 * config/avr/avr.c (avr_option_override): Use error on bad options.
16856 (avr_help): New function.
16857 (TARGET_HELP): Define.
16859 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16862 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16863 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16865 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16867 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16868 (ARM Options): Ditto.
16869 (i386 and x86-64 Options): Ditto.
16870 (RX Options): Ditto.
16871 (SPARC Options): Ditto.
16873 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16875 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16876 FreeBSD 6 and later. Generally use cpu generic.
16878 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16880 * doc/cpp.texi: Update copyright years.
16882 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16885 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16887 2011-02-25 Jon Beniston <jon@beniston.com>
16890 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16891 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16892 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16893 (lm32_block_move_inline): Add type cast to remove warning.
16894 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16895 (gen_int_relational): Move declarations to start of function.
16897 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16899 PR tree-optimization/45470
16900 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16901 can throw internally only.
16902 * tree-vect-stmts.c (vectorizable_call): Likewise.
16904 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16906 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16907 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16908 * config/stormy16/stormy16-protos.h
16909 (xstormy16_preferred_reload_class): Remove.
16910 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16911 static. Change 'rclass' argument and return type to reg_class_t.
16912 (TARGET_PREFERRED_RELOAD_CLASS,
16913 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16915 2011-02-24 Richard Guenther <rguenther@suse.de>
16917 * lto-streamer-in.c (input_bb): Do not find referenced vars
16918 in debug statements.
16920 2011-02-23 Jason Merrill <jason@redhat.com>
16922 * common.opt (fabi-version): Document v5 and v6.
16924 2011-02-23 Richard Guenther <rguenther@suse.de>
16926 PR tree-optimization/47849
16927 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16929 2011-02-23 Jie Zhang <jie@codesourcery.com>
16931 * opts-common.c (decode_cmdline_option): Print empty string
16932 argument as "" in decoded->orig_option_with_args_text.
16933 * gcc.c (execute): Print empty string argument as ""
16934 in the verbose output.
16935 (do_spec_1): Keep empty string argument.
16937 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16939 * config.gcc: Declare score-* and crx-* obsolete.
16941 2011-02-23 Jie Zhang <jie@codesourcery.com>
16943 PR rtl-optimization/47763
16944 * web.c (web_main): Ignore naked clobber when replacing register.
16946 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16948 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16951 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16954 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16956 2011-02-22 Mike Stump <mikestump@comcast.net>
16958 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16960 * configure: Regenerate.
16962 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16964 PR rtl-optimization/46002
16965 * ira-color.c (update_copy_costs): Change class intersection
16966 test to reg_class_contents[] test of 'hard_regno'.
16968 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16970 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16971 than Driver option.
16972 * config/hpux11.opt (mt): Likewise.
16973 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16974 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16975 * config/vax/elf.opt (mno-asm-pic): Likewise.
16976 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16978 2011-02-21 Mike Stump <mikestump@comcast.net>
16981 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16982 tree so we can get save the type.
16983 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16984 for CFString instead of trying to use past the end of the builtins.
16985 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16986 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16987 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16988 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16989 Rename to darwin_builtin_cfstring.
16990 (darwin_init_cfstring_builtins): Return the built type.
16992 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16995 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16996 (_mm256_insert_epi64): Use _mm_insert_epi64.
16998 2011-02-21 Anatoly Sokolov <aesok@post.ru>
17000 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17001 * config/stormy16/stormy16-protos.h
17002 (xstormy16_mode_dependent_address_p): Remove.
17003 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
17004 Make static. Change return type to bool. Change argument type to
17005 const_rtx. Remove dead code.
17006 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17008 2011-02-21 Richard Guenther <rguenther@suse.de>
17011 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
17012 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17013 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
17015 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17016 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17018 2011-02-20 Richard Guenther <rguenther@suse.de>
17021 * tree.c (free_lang_data_in_decl): Clean builtins from
17022 the TU decl BLOCK_VARS.
17024 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
17028 * haifa-sched.c (fix_tick_ready): Skip tick computation
17031 2011-02-19 Richard Guenther <rguenther@suse.de>
17034 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
17035 Remove lazy BLOCK_VARS streaming.
17036 (lto_input_ts_block_tree_pointers): Likewise.
17037 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
17039 2011-02-19 Joseph Myers <joseph@codesourcery.com>
17041 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
17043 2011-02-19 Joseph Myers <joseph@codesourcery.com>
17045 * config/i386/biarch32.h, config/i386/mach.h,
17046 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
17048 2011-02-19 Jakub Jelinek <jakub@redhat.com>
17051 * config/i386/i386.md (peephole2 for shift and plus): Use
17052 operands[1] original mode in the first insn.
17054 2011-02-18 Mike Stump <mikestump@comcast.net>
17056 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
17058 2011-02-18 Jan Hubicka <jh@suse.cz>
17060 PR middle-end/47788
17061 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
17062 to zero when the function is not inlinable at all.
17064 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17066 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
17067 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17068 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
17069 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
17070 * config/pa/t-pa64: Likewise.
17071 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17073 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17076 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
17078 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17081 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
17083 2011-02-18 Anatoly Sokolov <aesok@post.ru>
17085 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17086 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
17087 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
17088 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17089 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
17090 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
17091 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
17092 m32r_load_postinc_p, m32r_store_preinc_predec_p,
17093 m32r_legitimate_address_p): New functions.
17094 * config/m32r/constraints.md (constraint "S"): Don't use
17095 STORE_PREINC_PREDEC_P.
17096 (constraint "U"): Don't use LOAD_POSTINC_P.
17098 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
17100 PR rtl-optimization/46178
17101 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
17102 compute ira_hard_regno_cover_class[].
17104 2011-02-18 Richard Guenther <rguenther@suse.de>
17107 * lto-streamer.h (lto_global_var_decls): Declare.
17108 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
17109 statics for global var processing.
17111 2011-02-18 Richard Guenther <rguenther@suse.de>
17113 PR tree-optimization/47737
17114 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
17115 edge dominance check.
17117 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17120 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
17121 avoid invalid rtx sharing.
17123 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
17125 * doc/cpp.texi (Obsolete Features): Add background on the
17126 origin of assertions.
17128 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
17130 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
17132 * config/darwin.c (output_objc_section_asm_op): Added support for
17134 (is_objc_metadata): New.
17135 (darwin_objc2_section): New.
17136 (darwin_objc1_section): New.
17137 (machopic_select_section): Added support for ABI v1 and v2.
17138 (darwin_emit_objc_zeroed): New.
17139 (darwin_output_aligned_bss): Detect objc metadata and treat it
17141 (darwin_asm_output_aligned_decl_common): Same.
17142 (darwin_asm_output_aligned_decl_local): Same.
17143 * config/darwin-sections.def: Updated for ABI v1 and v2.
17144 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
17145 compiling Objective-C code for the NeXT runtime, default to using
17146 ABI version 0 for 32-bit, and version 2 for 64-bit.
17148 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17150 * common.opt (optimize_fast): New Variable.
17151 * opts.c (default_options_optimization): Use opts->x_optimize_fast
17152 instead of local variable ofast.
17154 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
17156 * doc/invoke.texi (fobjc-abi-version): Documented.
17157 (fobjc-nilcheck): Documented.
17158 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
17161 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17164 * common.opt (export-dynamic): New Driver option.
17165 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
17167 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17169 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
17171 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
17172 Jan Hubicka <jh@suse.cz>
17176 * cfgexpand.c (account_used_vars_for_block): Remove.
17177 (estimated_stack_frame_size): Use referenced vars.
17178 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
17179 that were referenced in the original function. Test src_fn
17180 rather than cfun. Drop redundant get_var_ann.
17181 (setup_one_parameter): Drop redundant get_var_ann.
17182 (declare_return_variable): Likewise.
17183 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
17184 (copy_arguments_for_versioning): Drop redundant get_var_ann.
17185 * ipa-inline.c (compute_inline_parameters): Do not compute
17186 disregard_inline_limits here.
17187 (compute_inlinable_for_current, pass_inlinable): New.
17188 (pass_inline_parameters): Require PROP_referenced_vars.
17189 * cgraphunit.c (cgraph_process_new_functions): Don't run
17190 compute_inline_parameters explicitly unless function is in SSA form.
17191 (cgraph_analyze_function): Set .disregard_inline_limits.
17192 * tree-sra.c (convert_callers): Compute inliner parameters
17193 only for functions already in SSA form.
17195 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17197 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
17198 -mlittle-endian-data.
17200 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17202 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
17203 -mno-fpu, not -fpu and -no-fpu.
17204 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
17205 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
17207 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
17210 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
17211 input reload with PLUS RTX.
17213 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17215 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
17216 of InverseVar(MDMX).
17218 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17220 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
17223 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17225 * config/mn10300/mn10300.opt (mno-crt0): New.
17227 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17229 * config/m68k/uclinux.opt (static-libc): New Driver option.
17231 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17233 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17235 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17237 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17238 %{muser-extend-enabled}.
17240 2011-02-16 Richard Guenther <rguenther@suse.de>
17242 PR tree-optimization/47738
17243 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17244 the TODO from tree_predictive_commoning.
17246 2011-02-15 Jeff Law <law@redhat.com>
17249 2011-01-25 Jeff Law <law@redhat.com>
17251 PR rtl-optimization/37273
17252 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17253 handle them like argument loads from stack slots. Do not double
17254 count memory for memory constants and argument loads from stack slots.
17256 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17258 PR middle-end/47725
17259 * combine.c (cant_combine_insn_p): Revert the last change.
17261 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17264 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17265 mode for vector constants. Remove code that checks for TImode.
17267 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17271 * cgraph.h (compute_inline_parameters): Return void.
17272 * ipa-inline.c (compute_inline_parameters): Adjust.
17274 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17278 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17280 * cfgexpand.c (estimated_stack_frame_size): Likewise.
17281 * ipa-inline.c (compute_inline_parameters): Adjust.
17283 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17287 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17288 Adjust all users. Pass FN to...
17289 * tree-flow-inline.h (first_referenced_var): ... this. Add
17291 * ipa-struct-reorg.c: Adjust.
17292 * tree-dfa.c: Adjust.
17293 * tree-into-ssa.c: Adjust.
17294 * tree-sra.c: Adjust.
17295 * tree-ssa-alias.c: Adjust.
17296 * tree-ssa-live.c: Adjust.
17297 * tree-ssa.c: Adjust.
17298 * tree-ssanames.c: Adjust.
17299 * tree-tailcall.c: Adjust.
17301 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17305 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17306 Adjust all callers.
17307 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17308 * tree-flow-inline.h: Adjust.
17309 * gimple-pretty-print.c: Adjust.
17310 * tree-into-ssa.c: Adjust.
17311 * tree-ssa.c: Adjust.
17312 * cfgexpand.c: Adjust.
17314 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17316 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17317 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17318 (EXTRA_CONSTRAINT): Delete.
17319 * config/iq2000/constraints.md: New file.
17320 * config/iq2000/iq2000.md: Include it.
17321 (define_insn ""): Delete.
17322 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17323 unsupported constraint letters from patterns.
17324 (call_value, call_value_internal1): Likewise.
17325 (call_value_multiple_internal1): Likewise.
17327 2011-02-15 Nick Clifton <nickc@redhat.com>
17329 * config/mn10300/mn10300.c: Include tm-constrs.h.
17330 (struct liw_data): New data structure describing an LIW candidate
17332 (extract_bundle): Use struct liw_data. Allow small integer
17333 operands for some instructions.
17334 (check_liw_constraints): Use struct liw_data. Remove swapped
17335 parameter. Add comments describing the checks. Fix bug when
17336 assigning the source of liw1 to the source of liw2.
17337 (liw_candidate): Delete. Code moved into extract_bundle.
17338 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17340 * config/mn10300/predicates.md (liw_operand): New predicate.
17341 Allows registers and small integer constants.
17342 * config/mn10300/constraints.md (O): New constraint. Accetps
17343 integers in the range -8 to +7 inclusive.
17344 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17345 for moving a small integer into a register. Give this alternative
17347 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17348 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17349 using the J,K,L and M constraints,
17350 (liw): Remove SI mode on second operands to allow for HI and QI
17352 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17355 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17357 PR middle-end/47725
17358 * combine.c (cant_combine_insn_p): Check zero/sign extended
17361 2011-02-15 Richard Guenther <rguenther@suse.de>
17363 PR tree-optimization/47743
17364 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17365 for a non-type-compatible VN lookup bail out.
17367 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17369 * config/fr30/constraints.md: New file.
17370 * config/fr30/fr30.md: Include it.
17371 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17372 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17373 (EXTRA_CONSTRAINT): Delete.
17375 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17377 * config/frv/constraints.md: New file.
17378 * config/frv/predicates.md: Include it.
17379 * config/frv/frv.c (reg_class_from_letter): Delete.
17380 (frv_option_override): Don't initialize it.
17381 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17382 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17383 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17384 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17385 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17386 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17387 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17388 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17389 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17390 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17391 (REG_CLASS_FROM_CONSTRAINT): Delete.
17393 2011-02-15 Jakub Jelinek <jakub@redhat.com>
17395 PR middle-end/47581
17396 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17397 if frame size is 0 in a leaf function.
17399 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17402 * config/alpha/host-osf.c: New file.
17403 * config/alpha/x-osf: New file.
17404 * config.host (alpha*-dec-osf*): Use it.
17406 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17408 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17409 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17410 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17411 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17413 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17415 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17417 * config/stormy16/constraints.md: New file.
17418 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17419 Use satisfies_constraint_Q and satisfies_constraint_R.
17420 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17422 (xstormy16_legitiamte_address_p): Declare.
17423 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17424 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17425 (EXTRA_CONSTRAINT): Delete.
17426 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17428 (xstormy16_extra_constraint_p): Delete.
17430 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17432 PR tree-optimization/46494
17433 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17434 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17435 (pass_rtl_loop_done): Add TODO_verify_flow.
17436 * fwprop.c (pass_rtl_fwprop): Likewise.
17437 * modulo-sched.c (pass_sms): Likewise.
17438 * tree-ssa-dom.c (pass_dominator): Likewise.
17439 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17440 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17441 (pass_tree_loop_done): Likewise.
17442 * tree-ssa-pre.c (execute_pre): Likewise.
17443 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17444 * tree-ssa-sink.c (pass_sink_code): Likewise.
17445 * tree-vrp.c (pass_vrp): Likewise.
17447 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17449 * config/v850/constraints.md: New file.
17450 * config/v850/v850.md: Include it.
17451 * config/v850/predicates.md (reg_or_0_operand): Use
17452 satisfies_constraint_G.
17453 (special_symbolref_operand): Use satisfies_constraint_K.
17454 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17455 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17456 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17457 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17458 (EXTRA_CONSTRAINT): Delete.
17459 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17460 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17461 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17463 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17466 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17471 * config/mcore/constraints.md: New file.
17472 * config/mcore/mcore.md: Include it.
17473 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17474 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17475 (REG_CLASS_FROM_LETTER): Delete.
17476 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17477 insn_const_int_ok_for_constraint.
17478 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17479 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17480 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17481 (EXTRA_CONSTRAINT): Delete.
17483 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17486 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17487 (IS_SIGHANDLER): Define.
17488 (sparc64_is_sighandler): New function, split off from
17489 sparc64_fallback_frame_state.
17490 (sparc_is_sighandler): New function, split off from
17491 sparc_fallback_frame_state.
17492 (sparc64_fallback_frame_state): Merge with ...
17493 (sparc_fallback_frame_state): ... this into ...
17494 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17495 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17496 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17497 stack instead of hardcoded offsets.
17499 2011-02-14 Andriy Gapon <avg@freebsd.org>
17502 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17504 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17506 * configure: Regenerate.
17508 2011-02-12 Joseph Myers <joseph@codesourcery.com>
17511 * gcc.c (asm_options): Correct spec matching --target-help.
17513 2011-02-12 Martin Jambor <mjambor@suse.cz>
17515 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17516 to gimple call error.
17518 2011-02-12 Mike Stump <mikestump@comcast.net>
17520 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17521 comments in backslash regions.
17523 2011-02-12 Mike Stump <mikestump@comcast.net>
17524 Jakub Jelinek <jakub@redhat.com>
17525 Iain Sandoe <iains@gcc.gnu.org>
17528 * dwarf2out.c (output_cfa_loc): When required, apply the
17529 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17530 (output_loc_sequence): Likewise.
17531 (output_loc_operands_raw): Likewise.
17532 (output_loc_sequence_raw): Likewise.
17533 (output_cfa_loc): Likewise.
17534 (output_loc_list): Suppress register number adjustment when
17535 calling output_loc_sequence()
17536 (output_die): Likewise.
17538 2011-02-12 Anatoly Sokolov <aesok@post.ru>
17540 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17542 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17543 xtensa_memory_move_cost): New functions.
17544 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17546 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
17549 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17550 in the current directory.
17551 * configure: Rebuilt.
17553 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17555 * config/darwin.c (darwin_override_options): Add a hunk missed
17556 from the commit of r168571. Trim comment line lengths and
17557 correct indents of the preceding block.
17559 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17561 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17564 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17566 * common.opt (nostartfiles): New Driver option.
17568 2011-02-11 Xinliang David Li <davidxl@google.com>
17570 PR tree-optimization/47707
17571 * tree-chrec.c (convert_affine_scev): Keep type precision.
17573 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17575 PR tree-optimization/47420
17576 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17578 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
17580 PR rtl-optimization/47614
17581 * rtl.h (check_for_inc_dec): Declare.
17582 * dse.c (check_for_inc_dec): Externalize...
17583 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17584 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17586 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17589 * gcc.c (main): Do not compile inputs if there were errors in
17591 * opts-common.c (read_cmdline_option): Check for wrong language
17592 after other error checks.
17594 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17596 * cgraph.c: Fix comment typos.
17597 * cgraph.h: Likewise.
17598 * cgraphunit.c: Likewise.
17599 * ipa-cp.c: Likewise.
17600 * ipa-inline.c: Likewise.
17601 * ipa-prop.c: Likewise.
17602 * ipa-pure-const.c: Likewise.
17603 * ipa-ref.c: Likewise.
17604 * ipa-reference.c: Likewise.
17606 2011-02-11 Jakub Jelinek <jakub@redhat.com>
17609 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
17611 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17614 * doc/sourcebuild.texi (Require Support): Document
17615 dg-require-ascii-locale.
17617 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17619 * doc/lto.texi (Write summary): Fix missing parentheses.
17621 2011-02-10 DJ Delorie <dj@redhat.com>
17623 * config/m32c/m32c.c (m32c_option_override): Disable
17624 -fcombine-stack-adjustments until flag value tracking and compare
17625 optimization can be rewritten.
17627 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17629 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17631 (PROCESSOR_DEFAULT64): Likewise.
17633 2011-02-10 Richard Henderson <rth@redhat.com>
17635 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17636 change from 2011-02-03.
17637 * config/rx/rx.c (flags_from_code): Likewise.
17638 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17639 is valid, n/pz otherwise.
17640 (rx_select_cc_mode): Return CCmode if Y is not zero.
17642 2011-02-10 Richard Guenther <rguenther@suse.de>
17644 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
17646 2011-02-10 Richard Guenther <rguenther@suse.de>
17648 PR tree-optimization/47677
17649 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17651 2011-02-10 Jakub Jelinek <jakub@redhat.com>
17654 * combine.c (make_compound_operation): Only change shifts into
17655 multiplication for SCALAR_INT_MODE_P.
17657 2011-02-10 Jie Zhang <jie@codesourcery.com>
17661 2011-02-05 Jie Zhang <jie@codesourcery.com>
17663 * web.c (entry_register): Don't clobber the number of the
17664 first uninitialized reference in used[].
17666 2011-02-09 Richard Guenther <rguenther@suse.de>
17668 PR tree-optimization/47664
17669 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17672 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
17676 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17678 (PROCESSOR_DEFAULT64): Same.
17679 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17681 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17683 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17685 2011-02-09 Martin Jambor <mjambor@suse.cz>
17687 PR middle-end/45505
17688 * tree-sra.c (struct access): New flags grp_scalar_read and
17689 grp_scalar_write. Changed description of assignment read and write
17691 (dump_access): Dump new flags, reorder all of them.
17692 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17693 to detect multiple scalar reads.
17694 (analyze_access_subtree): Use the new scalar read write flags instead
17695 of the old flags. Adjusted comments.
17697 2011-02-08 DJ Delorie <dj@redhat.com>
17700 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17703 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17705 * config/m68k/uclinux.opt: New.
17706 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17708 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17710 * config/cris/elf.opt (sim): New Driver option.
17712 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17714 * config/xtensa/elf.opt: New.
17715 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17719 * config/vax/elf.opt: New.
17720 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17722 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17724 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17726 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17728 * config/gnu-user.opt: New.
17729 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17730 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17731 *-*-uclinux*): Use gnu-user.opt.
17733 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
17735 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17736 * config/i386/gnu.h (CPP_SPEC): Likewise.
17738 2011-02-08 Ian Lance Taylor <iant@google.com>
17740 * common.opt (fcx-limited-range): Add SetByCombined flag.
17741 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17742 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17743 (fassociative-math, freciprocal-math): Likewise.
17744 (funsafe-math-optimizations): Likewise.
17745 * opth-gen.awk: Handle SetByCombined.
17746 * optc-gen.awk: Likewise.
17747 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17748 (set_unsafe_math_optimizations_flags): Likewise.
17749 * doc/options.texi (Option properties): Document SetByCombined.
17751 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17753 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17754 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17755 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17756 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17757 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17759 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17761 PR tree-optimization/46834
17762 PR tree-optimization/46994
17763 PR tree-optimization/46995
17764 * graphite-sese-to-poly.c (used_outside_reduction): New.
17765 (detect_commutative_reduction): Call used_outside_reduction.
17766 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17767 translate_scalar_reduction_to_array only when at least one
17768 loop-phi/close-phi tuple has been detected.
17770 2011-02-08 Richard Guenther <rguenther@suse.de>
17772 PR middle-end/47639
17773 * tree-vect-generic.c (expand_vector_operations_1): Update
17775 (expand_vector_operations): ... not here. Cleanup EH info
17776 and the CFG if required.
17778 2011-02-08 Richard Guenther <rguenther@suse.de>
17780 PR tree-optimization/47641
17781 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17782 require type compatibility.
17784 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17786 * gimple-low.c (lower_function_body): Don't remove the location of
17787 the return statement here.
17788 (lower_gimple_return): Do it here instead but only if the return
17789 statement is actually used twice.
17791 2011-02-08 Richard Guenther <rguenther@suse.de>
17793 PR tree-optimization/47632
17794 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17795 unused up_to_stmt parameter, return whether cfg-cleanup is
17796 necessary, remove EH info properly.
17797 (forward_propagate_into_gimple_cond): Adjust caller.
17798 (forward_propagate_into_cond): Likewise.
17799 (forward_propagate_comparison): Likewise.
17800 (tree_ssa_forward_propagate_single_use_vars): Make
17801 forward_propagate_comparison case similar to the two others.
17803 2011-02-08 Nick Clifton <nickc@redhat.com>
17805 * config/mn10300/mn10300.opt (mliw): New command line option.
17806 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17807 (liw_bundling): New automaton.
17808 (liw): New attribute.
17809 (liw_op): New attribute.
17810 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17811 (movsi_internal): Add LIW attributes.
17812 (andsi3): Likewise.
17813 (iorsi3): Likewise.
17814 (xorsi3): Likewise.
17815 (addsi3): Separate register and immediate alternatives.
17816 Add LIW attributes.
17817 (subsi3): Likewise.
17819 (aslsi3): Likewise.
17820 (lshrsi3): Likewise.
17821 (ashrsi3): Likewise.
17822 (liw): New pattern.
17823 * config/mn10300/mn10300.c (liw_op_names): New
17824 (mn10300_print_operand): Handle 'W' operand descriptor.
17825 (extract_bundle): New function.
17826 (check_liw_constraints): New function.
17827 (liw_candidate): New function.
17828 (mn10300_bundle_liw): New function.
17829 (mn10300_reorg): New function.
17830 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17831 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17832 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17833 __LIW__ or __NO_LIW__.
17834 * doc/invoke.texi: Describe the -mliw command line option.
17836 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17838 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17839 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17840 pthread_mutex_unlock): Remove.
17841 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17842 * config/pa/t-pa64: Likewise.
17843 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17844 shared libc if not linking against libpthread.
17845 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17847 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17850 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17851 on 10.6 and later to ensure that we always use the unwinder from
17852 the system. Only add -no_compact_unwind when tarteting darwin
17855 2011-02-07 Steve Ellcey <sje@cup.hp.com>
17858 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17859 (vec_interleave_lowv2sf): Ditto.
17860 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17861 (vec_extract_oddv2sf): Ditto.
17863 2011-02-07 Mike Stump <mikestump@comcast.net>
17866 Add __ieee_divdc3 entry point.
17867 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17869 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17870 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17871 * config/darwin.c (darwin_rename_builtins): Add.
17872 * config/darwin-protos.h (darwin_rename_builtins): Add.
17874 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17877 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17880 2011-02-07 Mike Stump <mikestump@comcast.net>
17882 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17884 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17887 * config/avr/libgcc.S (exit): Move .endfunc
17889 2011-02-07 Richard Guenther <rguenther@suse.de>
17891 PR tree-optimization/47615
17892 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17893 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17894 (run_scc_vn): Initialize it.
17895 (visit_reference_op_load): Use it.
17896 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17898 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17900 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17901 DImode trapping arithmetic libfuncs.
17903 2011-02-07 Richard Guenther <rguenther@suse.de>
17905 PR tree-optimization/47621
17906 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17908 (execute_update_addresses_taken): ... here. Make it more
17909 conservative in what we accept.
17911 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17913 * config/sparc/freebsd.h (ASM_SPEC): Define.
17914 * config/sparc/vxworks.h (ASM_SPEC): Define.
17916 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17918 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17920 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17922 * doc/invoke.texi: Remove reference to compiler internals from
17923 user documentation.
17925 * reg-notes.def: Remove REG_VALUE_PROFILE.
17926 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17928 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17930 PR middle-end/47610
17931 * varasm.c (default_section_type_flags): If decl is NULL,
17932 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17934 2011-02-05 Jie Zhang <jie@codesourcery.com>
17937 * web.c (entry_register): Don't clobber the number of the
17938 first uninitialized reference in used[].
17940 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17942 PR tree-optimization/46194
17943 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17944 (build_classic_dist_vector_1): Do not represent classic distance
17945 vectors when the access functions are variating in different loops.
17947 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17949 * config/mips/iris6.opt: New.
17950 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17952 2011-02-04 Richard Henderson <rth@redhat.com>
17953 Steve Ellcey <sje@cup.hp.com>
17956 * config/ia64/predicates.md (mux1_brcst_element): New.
17957 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17958 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17959 (ia64_unpack_sign): New.
17960 (ia64_expand_unpack): Rewrite using new routines.
17961 (ia64_expand_widen_sum): Ditto.
17962 (ia64_expand_dot_prod_v8qi): Ditto.
17963 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17964 routines, add endian check.
17965 (pmpy2_even): Rename from pmpy2_r, add endian check.
17966 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17967 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17968 (vec_widen_smult_hi_v4hi): Ditto.
17969 (vec_widen_umult_lo_v4hi): Ditto.
17970 (vec_widen_umult_hi_v4hi): Ditto.
17971 (mulv2si3): Change endian checks.
17972 (sdot_prodv4hi): Rewrite with new calls.
17973 (udot_prodv4hi): New.
17974 (vec_pack_ssat_v4hi): Add endian check.
17975 (vec_pack_usat_v4hi): Ditto.
17976 (vec_pack_ssat_v2si): Ditto.
17977 (max1_even): Rename from max1_r, add endian check.
17978 (max1_odd): Rename from max1_l, add endian check.
17979 (*mux1_rev): Format change.
17980 (*mux1_mix): Ditto.
17981 (*mux1_shuf): Ditto.
17982 (*mux1_alt): Ditto.
17983 (*mux1_brcst_v8qi): Use new predicate.
17984 (vec_extract_evenv8qi): Remove endian check.
17985 (vec_extract_oddv8qi): Ditto.
17986 (vec_interleave_lowv4hi): Format change.
17987 (vec_interleave_highv4hi): Ditto.
17988 (mix2_even): Rename from mix2_r, add endian check.
17989 (mix2_odd): Rename from mux2_l, add endian check.
17990 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17991 (vec_extract_evenodd_helper): Format change.
17992 (vec_extract_evenv4hi): Remove endian check.
17993 (vec_extract_oddv4hi): Remove endian check.
17994 (vec_interleave_lowv2si): Format change.
17995 (vec_interleave_highv2si): Format change.
17996 (vec_initv2si): Remove endian check.
17997 (vecinit_v2si): Add endian check.
17998 (reduc_splus_v2sf): Add endian check.
17999 (reduc_smax_v2sf): Ditto.
18000 (reduc_smin_v2sf): Ditto.
18001 (vec_initv2sf): Remove endian check.
18002 (fpack): Add endian check.
18003 (fswap): Add endian check.
18004 (vec_interleave_highv2sf): Add endian check.
18005 (vec_interleave_lowv2sf): Add endian check.
18006 (fmix_lr): Add endian check.
18007 (vec_setv2sf): Format change.
18008 (*vec_extractv2sf_0_be): Use shift to extract operand.
18009 (*vec_extractv2sf_1_be): New.
18010 (vec_pack_trunc_v4hi): Add endian check.
18011 (vec_pack_trunc_v2si): Format change.
18013 2011-02-04 Jakub Jelinek <jakub@redhat.com>
18015 PR inline-asm/23200
18016 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
18017 do bb, locus and block comparison and disallow loads if it is not set.
18018 (stmt_is_replaceable_p): New function.
18019 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
18021 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
18022 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
18024 * tree-flow.h (stmt_is_replaceable_p): New prototype.
18026 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18028 * config/rs6000/xilinx.opt: New.
18029 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
18031 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18033 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
18035 2011-02-03 Anatoly Sokolov <aesok@post.ru>
18037 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
18038 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18039 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
18040 secondary_reload_info, xtensa_secondary_reload): Remove.
18041 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
18042 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18043 (xtensa_preferred_reload_class): Make static. Change return and
18044 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
18045 Use CONST_DOUBLE_P predicate.
18046 (xtensa_preferred_output_reload_class): New function.
18047 (xtensa_secondary_reload): Make static.
18049 2011-02-03 Joseph Myers <joseph@codesourcery.com>
18051 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
18052 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
18053 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
18055 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18057 PR middle-end/31490
18058 * output.h (SECTION_RELRO): Define.
18059 (SECTION_MACH_DEP): Adjust.
18060 (get_variable_section): New prototype.
18061 * varpool.c (varpool_finalize_named_section_flags): New function.
18062 (varpool_assemble_pending_decls): Call it.
18063 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
18064 * cgraphunit.c (cgraph_output_in_order): Call
18065 varpool_finalize_named_section_flags.
18066 * varasm.c (get_section): Allow section flags conflicts between
18067 relro and read-only sections if the section hasn't been declared yet.
18068 Set SECTION_OVERRIDE after diagnosing section type conflict.
18069 (get_variable_section): No longer static.
18070 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
18071 readonly sections that need relocations.
18072 (decl_readonly_section_1): New function.
18073 (decl_readonly_section): Use it.
18076 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
18077 Steve Ellcey <sje@cup.hp.com>
18079 PR middle-end/31490
18080 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
18081 if section attribute used.
18083 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18085 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
18086 * config/darwin.c (SECTION_NO_ANCHOR): Define.
18087 (darwin_init_sections): Remove assertion.
18089 2011-02-03 Nick Clifton <nickc@redhat.com>
18091 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
18093 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
18094 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
18095 instead of "n" and "pz".
18096 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18099 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18102 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
18103 fma, expand FMA_EXPR as fma{,f,l} call.
18106 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
18107 copy them into a unsigned char variable and pass address of it to
18108 lto_output_data_stream.
18111 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
18112 around backend_init_target and lang_dependent_init_target calls.
18113 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
18114 (verify_cgraph_node): Don't call set_cfun here. Use
18115 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
18116 Set error_found for incorrectly represented calls to thunks.
18118 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18121 PR rtl-optimization/43494
18122 * rtl.h (for_each_inc_dec_fn): New type.
18123 (for_each_inc_dec): Declare.
18124 * rtlanal.c (struct for_each_inc_dec_ops): New type.
18125 (for_each_inc_dec_find_inc_dec): New fn.
18126 (for_each_inc_dec_find_mem): New fn.
18127 (for_each_inc_dec): New fn.
18128 * dse.c (struct insn_size): Remove.
18129 (replace_inc_dec, replace_inc_dec_mem): Remove.
18130 (emit_inc_dec_insn_before): New fn.
18131 (check_for_inc_dec): Use it, along with for_each_inc_dec.
18132 (canon_address): Pass mem modes to cselib_lookup.
18133 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
18134 (cselib_lookup_from_insn): Likewise.
18135 (cselib_subst_to_values): Likewise.
18136 * cselib.c (find_slot_memmode): New var.
18137 (cselib_find_slot): New fn. Use it instead of
18138 htab_find_slot_with_hash everywhere.
18139 (entry_and_rtx_equal_p): Use find_slot_memmode.
18140 (autoinc_split): New fn.
18141 (rtx_equal_for_cselib_p): Rename and implement in terms of...
18142 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
18143 Deal with autoinc. Special-case recursion into MEMs.
18144 (cselib_hash_rtx): Likewise.
18145 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
18146 address and MEM modes.
18147 (cselib_subst_to_values): Add memmode, pass it on.
18149 (cselib_lookup): Add memmode argument, pass it on.
18150 (cselib_lookup_from_insn): Add memmode.
18151 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
18152 (struct cselib_record_autoinc_data): New.
18153 (cselib_record_autoinc_cb): New fn.
18154 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
18155 mode to cselib_lookup. Reset autoinced REGs here instead of...
18156 (cselib_process_insn): ... here.
18157 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
18159 (add_uses): Likewise, also to cselib_subst_to_values.
18160 (add_stores): Likewise.
18161 * sched-deps.c (add_insn_mem_dependence): Pass mode to
18162 cselib_subst_to_values.
18163 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
18164 * gcse.c (do_local_cprop): Adjusted.
18165 * postreload.c (reload_cse_simplify_set): Adjusted.
18166 (reload_cse_simplify_operands): Adjusted.
18167 * sel-sched-dump (debug_mem_addr_value): Pass mode.
18169 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18171 PR tree-optimization/45122
18172 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
18173 unsafe assumptions when there's more than one loop exit.
18175 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18178 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18179 Document using vector double with the load/store builtins, and
18180 that the load/store builtins always use Altivec instructions.
18182 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
18183 to use altivec memory instructions, even on VSX.
18184 (vector_altivec_store_<mode>): Ditto.
18186 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
18189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18190 V2DF, V2DI support to load/store overloaded builtins.
18192 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
18193 altivec load/store builtins for V2DF/V2DI types.
18195 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18196 set avoid indexed addresses on power6 if -maltivec.
18197 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
18198 vector_altivec_load/vector_altivec_store builtins.
18199 (altivec_expand_st_builtin): Ditto.
18200 (altivec_expand_builtin): Add VSX memory builtins.
18201 (rs6000_init_builtins): Add V2DI types to internal types.
18202 (altivec_init_builtins): Add support for V2DF/V2DI altivec
18203 load/store builtins.
18204 (rs6000_address_for_altivec): Insure memory address is appropriate
18207 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
18208 vec_vsx_ld and vec_vsx_st.
18209 (vsx_store_<mode>): Ditto.
18211 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
18212 variables to hold long long types for VSX vector memory builtins.
18213 (RS6000_BTI_unsigned_long_long): Ditto.
18214 (long_long_integer_type_internal_node): Ditti.
18215 (long_long_unsigned_type_internal_node): Ditti.
18217 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
18218 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
18219 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
18221 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
18223 (vec_vsx_st): Ditto.
18225 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18227 * config/pa/pa-hpux10.opt: New.
18228 * config/hpux11.opt (pthread): New Driver option.
18229 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
18230 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
18232 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18234 * config/ia64/vms.opt: New.
18235 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18237 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18240 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18241 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18242 generator functions.
18243 (vsx_floatuns<VSi><mode>2): Ditto.
18244 (vsx_fix_trunc<mode><VSi>2): Ditto.
18245 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18247 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18249 * config/i386/djgpp.opt (posix): New Driver option.
18251 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18253 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18254 Move to the unsupported targets list.
18256 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
18258 PR rtl-optimization/47525
18259 * df-scan.c: Update copyright years.
18260 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18261 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18263 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18265 * config/i386/sysv4.h (TARGET_VERSION): Remove.
18266 (SUBTARGET_RETURN_IN_MEMORY): Remove.
18267 (ASM_OUTPUT_ASCII): Remove.
18268 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18270 2011-02-02 Jeff Law <law@redhat.com>
18272 PR middle-end/47543
18273 * reload.c (find_reloads_address): Handle reg+d address where both
18274 components are invalid by reloading the entire address.
18276 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18277 Richard Guenther <rguenther@suse.de>
18279 PR tree-optimization/40979
18281 * passes.c (init_optimization_passes): After LIM call copy_prop
18282 and DCE to clean up.
18283 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18285 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18287 PR tree-optimization/47576
18288 PR tree-optimization/47555
18289 * doc/invoke.texi (scev-max-expr-complexity): Documented.
18290 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18291 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18292 * tree-scalar-evolution.c (follow_ssa_edge): Use
18293 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18295 2011-02-02 Richard Guenther <rguenther@suse.de>
18297 PR tree-optimization/47566
18298 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18300 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18304 * tree-inline.c (declare_return_variable): Remove unused caller
18309 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18310 * cfgexpand.c (account_used_vars_for_block): Use them.
18311 * tree-nrv.c (tree_nrv): Likewise.
18312 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18313 (dump_scope_block): Likewise.
18314 (remove_unused_locals): Likewise.
18318 * tree-inline.c (declare_return_variable): Add result decl to
18319 local decls only once.
18320 * gimple-low.c (record_vars_into): Mark newly-created variables
18323 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18329 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18331 (no_real_insns_p, schedule_block, set_priorities): Drop special
18332 treatment of boundary debug insns.
18333 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18334 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18335 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18336 (BOUNDARY_DEBUG_INSN_P): Likewise.
18337 (SCHEDULE_DEBUG_INSN_P): Likewise.
18338 * sched-rgn.c (init_ready_list): Drop special treatment of
18339 boundary debug insns.
18340 * final.c (rest_of_clean_state): Clear notes' BB.
18342 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18344 * config/openbsd.opt (assert=): New Driver option.
18346 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18348 * config/i386/nto.opt: New.
18349 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18351 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18353 * config/i386/netware.opt: New.
18354 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18358 * config/interix.opt (posix): New Driver option.
18360 2011-02-01 DJ Delorie <dj@redhat.com>
18362 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18364 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18367 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18369 PR tree-optimization/47561
18370 * toplev.c (process_options): Print the Graphite flags. Add
18371 flag_loop_flatten to the list of options requiring Graphite.
18373 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18375 * config/i386/cygming.opt (posix): New Driver option.
18377 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18379 * config/arm/vxworks.opt: New.
18380 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18382 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18384 * config/alpha/elf.opt: New.
18385 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18386 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18388 2011-02-01 Richard Guenther <rguenther@suse.de>
18390 PR tree-optimization/47559
18391 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18392 store-motion on references that can throw.
18394 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18396 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18397 * tree-pass.h (TDF_CSELIB): New macro.
18398 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18399 cselib_lookup): Check for it rather than for TDF_DETAILS.
18401 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18404 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18405 is HOST_BIT_BUCKET.
18407 * opts.c (finish_options): Don't add x_aux_base_name if it is
18410 2011-02-01 Richard Guenther <rguenther@suse.de>
18412 PR tree-optimization/47555
18414 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18416 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18418 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18421 * config/lm32/t-lm32: Add multilib for all CPU options.
18423 2011-02-01 Richard Guenther <rguenther@suse.de>
18425 PR tree-optimization/47541
18426 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18427 sure to have a field at offset zero.
18429 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18431 * config/arc/arc.opt (EB, EL): New Driver options.
18433 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18435 * config/alpha/osf5.opt: New.
18436 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18438 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18440 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18442 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18444 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18445 -floop-interchange.
18446 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18447 is an alias of -floop-interchange and that it requires the
18448 Graphite infrastructure.
18449 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18450 flag_loop_interchange based on the value of flag_tree_loop_linear.
18452 2011-01-31 Jakub Jelinek <jakub@redhat.com>
18453 Richard Guenther <rguenther@suse.de>
18455 PR tree-optimization/47538
18456 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18457 type instead of r1type, except for comparisons. For right
18458 shifts and comparisons punt if there are mismatches in
18459 sizetype vs. non-sizetype types.
18461 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18463 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18466 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18468 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18470 * configure: Regenerate.
18472 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18474 * configure.ac (gcc_cv_ld_static_option): Define.
18475 (gcc_cv_ld_dynamic_option): Define.
18476 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18478 (HAVE_LD_STATIC_DYNAMIC): Update message.
18479 (LD_STATIC_OPTION): Define.
18480 (LD_DYNAMIC_OPTION): Define.
18481 * configure: Regenerate.
18482 * config.in: Regenerate.
18483 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18484 HAVE_LD_STATIC_DYNAMIC]: Use them.
18486 2011-01-31 Nick Clifton <nickc@redhat.com>
18488 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18489 registers inside interrupt handlers if the handler is not a leaf
18492 2011-01-31 Nick Clifton <nickc@redhat.com>
18494 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18495 reg_renumber returning an INVALID_REGNUM.
18497 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18500 * doc/install.texi: Document host options discarded when cross
18501 configuring target libraries.
18503 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18506 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18509 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18511 (no_real_insns_p, schedule_block, set_priorities): Drop special
18512 treatment of boundary debug insns.
18513 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18514 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18515 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18516 (BOUNDARY_DEBUG_INSN_P): Likewise.
18517 (SCHEDULE_DEBUG_INSN_P): Likewise.
18518 * sched-rgn.c (init_ready_list): Drop special treatment of
18519 boundary debug insns.
18520 * final.c (rest_of_clean-state): Clear notes' BB.
18522 2011-01-31 Alan Modra <amodra@gmail.com>
18524 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18525 toc relative expressions as we do in print_operand_address.
18527 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
18529 * doc/extend.texi: Follow spelling conventions.
18530 * doc/invoke.texi: Fix a typo.
18532 2011-01-30 Joseph Myers <joseph@codesourcery.com>
18534 * config/hpux11.opt: New.
18535 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18536 ia64*-*-hpux*): Use hpux11.opt.
18538 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
18540 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18543 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18545 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18548 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18550 * doc/install.texi (Binaries): Remove outdated reference for
18551 Motorola 68HC11/68HC12 downloads.
18553 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18555 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18558 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18561 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18564 2011-01-28 Ahmad Sharif <asharif@google.com>
18566 * value-prof.c (check_counter): Corrected error message.
18568 2011-01-29 Jie Zhang <jie@codesourcery.com>
18570 * config/arm/arm.c (arm_legitimize_reload_address): New.
18571 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18572 arm_legitimize_reload_address.
18573 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18575 2011-01-28 Ian Lance Taylor <iant@google.com>
18577 * godump.c (go_define): Ignore macros whose definitions include
18578 two adjacent operands.
18580 2011-01-28 Jakub Jelinek <jakub@redhat.com>
18583 * varasm.c (force_const_mem): Store copy of x in desc->constant
18584 instead of x itself.
18585 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18586 itself into REG_EQUAL note.
18588 2011-01-28 Joseph Myers <joseph@codesourcery.com>
18590 * config/freebsd.opt (posix, rdynamic): New Driver options.
18592 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18594 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18595 -Bstatic/-Bdynamic.
18596 * configure: Regenerate.
18598 2011-01-27 Joseph Myers <joseph@codesourcery.com>
18600 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18601 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18603 2011-01-27 Anatoly Sokolov <aesok@post.ru>
18605 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18606 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18607 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18608 (s390_preferred_reload_class): Make static. Change return and
18609 'rclass' argument type to reg_class_t.
18611 2011-01-27 Jan Hubicka <jh@suse.cz>
18613 PR middle-end/46949
18614 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18615 (process_function_and_variable_attributes): Check defined weakrefs.
18617 2011-01-27 Martin Jambor <mjambor@suse.cz>
18619 PR tree-optimization/47228
18620 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18621 build_ref_for_offset.
18623 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18625 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18627 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
18629 PR rtl-optimization/46856
18630 * postreload.c (reload_combine_recognize_const_pattern): Do not
18631 separate cc0 setter and user on cc0 targets.
18633 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18636 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18637 passed a VOID_TYPE expression, immediately emit an error and
18638 return error_mark_node.
18640 2011-01-26 Jeff Law <law@redhat.com>
18642 PR rtl-optimization/47464
18643 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18644 rather than may_trap_p as needed.
18646 2011-01-26 DJ Delorie <dj@redhat.com>
18648 PR rtl-optimization/46878
18649 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18650 setter/user dependency as well.
18652 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18654 PR rtl-optimization/44469
18655 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18656 after removing trivially dead basic blocks.
18658 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18660 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18661 * config/frv/frv.h (LINK_SPEC): Likewise.
18662 * config/i386/netware.h (LINK_SPEC): Likewise.
18663 * config/m68k/linux.h (ASM_SPEC): Likewise.
18664 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18665 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18666 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18667 * config/sparc/linux.h (ASM_SPEC): Likewise.
18668 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18669 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18671 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18673 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18674 * config/frv/frv.h (ASM_SPEC): Likewise.
18675 * config/m68k/linux.h (ASM_SPEC): Likewise.
18676 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18677 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18678 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18679 * config/sparc/linux.h (ASM_SPEC): Likewise.
18680 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18681 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18683 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18685 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18686 * config/frv/frv.h (LINK_SPEC): Likewise.
18687 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18689 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18691 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18692 * config/frv/frv.h (ASM_SPEC): Likewise.
18693 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18694 * config/m68k/linux.h (ASM_SPEC): Likewise.
18695 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18696 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18697 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18698 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18699 * config/sparc/linux.h (ASM_SPEC): Likewise.
18700 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18701 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18702 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18704 2011-01-26 Steve Ellcey <sje@cup.hp.com>
18707 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18709 (vec_extract_evenodd_help): Ditto.
18710 (vec_extract_evenv4hi): Ditto.
18711 (vec_extract_oddv4hi): Ditto.
18712 (vec_interleave_lowv2si): Ditto.
18713 (vec_interleave_highv2si): Ditto.
18714 (vec_extract_evenv2si): Ditto.
18715 (vec_extract_oddv2si: Ditto.
18716 (vec_pack_trunc_v2si): Ditto.
18718 2011-01-22 Jan Hubicka <jh@suse.cz>
18721 * cgraph.h (cgraph_local_info): New field can_change_signature.
18722 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18723 signature can change.
18724 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18726 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18727 (cgraph_function_versioning): We can not change signature of functions
18728 that don't allow that.
18729 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18730 (lto_input_node): Likewise.
18731 * ipa-inline.c (compute_inline_parameters): Compute
18732 local.can_change_signature.
18733 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18734 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18735 functions that can not change signature.
18736 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18737 init_cumulative_args): Do not use local calling conventions
18738 for functions that can not change signature.
18740 2011-01-22 Jan Hubicka <jh@suse.cz>
18742 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18744 2011-01-26 Richard Guenther <rguenther@suse.de>
18746 PR tree-optimization/47190
18747 * cgraphunit.c (process_common_attributes): New function.
18748 (process_function_and_variable_attributes): Use it.
18750 2011-01-26 Richard Guenther <rguenther@suse.de>
18753 * cgraphbuild.c (record_eh_tables): Record reference to personality
18756 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
18759 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18760 non-debug insns from moving up.
18762 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18765 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18766 t-dlldir{,-x} fragment for build and add it to tmake_file.
18767 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18768 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18769 * config/i386/t-dlldir: New file.
18770 (SHLIB_DLLDIR): Define.
18771 * config/i386/t-dlldir-x: New file.
18772 (SHLIB_DLLDIR): Define.
18773 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18774 (SHLIB_INSTALL): Use it.
18776 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18779 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18780 lower bound of the allowed Thumb-2 coprocessor load/store
18781 index range to -256. Add explaining comment.
18783 2011-01-25 Ian Lance Taylor <iant@google.com>
18785 * godump.c (go_define): Improve lexing of macro expansion to only
18786 accept expressions which match Go spec.
18788 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18791 * tree.c (handle_dll_attribute): Handle it.
18792 * doc/extend.texi (@item dllexport): Mention it.
18793 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18795 2011-01-25 Ian Lance Taylor <iant@google.com>
18797 PR tree-optimization/26854
18798 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18799 (decl_jump_unsafe): Move higher in file, with no other change.
18800 (bind): Set has_jump_unsafe_decl if appropriate.
18801 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18802 (check_earlier_gotos): Likewise.
18803 (c_check_switch_jump_warnings): Likewise.
18805 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18807 * doc/invoke.texi (Warning Options): Add missing hyphen.
18808 (-fprofile-dir): Minor grammatical fixes.
18809 (-fbranch-probabilities): Likewise.
18811 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18815 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18817 (no_real_insns_p, schedule_block, set_priorities): Drop special
18818 treatment of boundary debug insns.
18819 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18820 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18821 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18822 (BOUNDARY_DEBUG_INSN_P): Likewise.
18823 (SCHEDULE_DEBUG_INSN_P): Likewise.
18824 * sched-rgn.c (init_ready_list): Drop special treatment of
18825 boundary debug insns.
18826 * final.c (rest_of_clean-state): Clear notes' BB.
18828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18830 * Makefile.in (LAMBDA_H): Removed.
18831 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18832 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18833 lambda-trans.o, and tree-loop-linear.o.
18834 (lto-symtab.o): Remove dependence on LAMBDA_H.
18835 (tree-loop-linear.o): Remove rule.
18836 (lambda-mat.o): Same.
18837 (lambda-trans.o): Same.
18838 (lambda-code.o): Same.
18839 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18840 (tree-vect-slp.o): Same.
18841 * hwint.h (gcd): Moved here.
18842 (least_common_multiple): Same.
18843 * lambda-code.c: Removed.
18844 * lambda-mat.c: Removed.
18845 * lambda-trans.c: Removed.
18846 * lambda.h: Removed.
18847 * tree-loop-linear.c: Removed.
18848 * lto-symtab.c: Do not include lambda.h.
18849 * omega.c (gcd): Removed.
18850 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18851 * tree-data-ref.c (print_lambda_vector): Moved here.
18852 (lambda_vector_copy): Same.
18853 (lambda_matrix_copy): Same.
18854 (lambda_matrix_id): Same.
18855 (lambda_vector_first_nz): Same.
18856 (lambda_matrix_row_add): Same.
18857 (lambda_matrix_row_exchange): Same.
18858 (lambda_vector_mult_const): Same.
18859 (lambda_vector_negate): Same.
18860 (lambda_matrix_row_negate): Same.
18861 (lambda_vector_equal): Same.
18862 (lambda_matrix_right_hermite): Same.
18863 * tree-data-ref.h: Do not include lambda.h.
18864 (lambda_vector): Moved here.
18865 (lambda_matrix): Same.
18866 (dependence_level): Same.
18867 (lambda_transform_legal_p): Removed declaration.
18868 (lambda_collect_parameters): Same.
18869 (lambda_compute_access_matrices): Same.
18870 (lambda_vector_gcd): Same.
18871 (lambda_vector_new): Same.
18872 (lambda_vector_clear): Same.
18873 (lambda_vector_lexico_pos): Same.
18874 (lambda_vector_zerop): Same.
18875 (lambda_matrix_new): Same.
18876 * tree-flow.h (least_common_multiple): Removed declaration.
18877 * tree-parloops.c (lambda_trans_matrix): Moved here.
18878 (LTM_MATRIX): Same.
18879 (LTM_ROWSIZE): Same.
18880 (LTM_COLSIZE): Same.
18881 (LTM_DENOMINATOR): Same.
18882 (lambda_trans_matrix_new): Same.
18883 (lambda_matrix_vector_mult): Same.
18884 (lambda_transform_legal_p): Same.
18885 * tree-pass.h (pass_linear_transform): Removed declaration.
18886 * tree-ssa-loop.c (tree_linear_transform): Removed.
18887 (gate_tree_linear_transform): Removed.
18888 (pass_linear_transform): Removed.
18889 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18890 flag_loop_interchange.
18892 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18894 PR tree-optimization/47265
18895 PR tree-optimization/47443
18896 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18897 if name still has some uses.
18899 2011-01-25 Martin Jambor <mjambor@suse.cz>
18901 PR tree-optimization/47382
18902 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18903 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18905 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18907 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18908 sjlj_except_unwind_info.
18910 2011-01-25 Richard Guenther <rguenther@suse.de>
18912 PR tree-optimization/47426
18913 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18914 visible functions results escape.
18916 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18919 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18920 (arm_get_frame_offsets): Use it.
18922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18923 Jakub Jelinek <jakub@redhat.com>
18925 PR tree-optimization/47271
18926 * tree-if-conv.c (bb_postdominates_preds): New.
18927 (if_convertible_bb_p): Call bb_postdominates_preds.
18928 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18929 (predicate_scalar_phi): Call bb_postdominates_preds.
18931 2011-01-25 Nick Clifton <nickc@redhat.com>
18933 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18934 * config/rx/rx.c (rx_function_value): Likewise.
18935 (rx_promote_function_mode): Likewise.
18936 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18937 in order to make it legitimate.
18938 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18939 make sure that the first operand is the same as the result register.
18940 (addsi3_unspec): Delete.
18941 (subdi3): Do not accept immediate operands.
18942 (subdi3_internal): Likewise.
18944 2011-01-25 Jeff Law <law@redhat.com>
18946 PR rtl-optimization/37273
18947 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18948 handle them like argument loads from stack slots. Do not double
18949 count memory for memory constants and argument loads from stack slots.
18951 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18953 PR tree-optimization/47427
18954 PR tree-optimization/47428
18955 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18956 coalesce if the new root var would be TREE_READONLY.
18958 2011-01-25 Richard Guenther <rguenther@suse.de>
18960 PR middle-end/47414
18961 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18962 correct type for TBAA.
18964 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18966 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18967 (close_phi_written_to_memory): Call for_each_index with
18968 dr_indices_valid_in_loop.
18970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18972 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18973 when it is initialized.
18975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18977 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18978 call to graphite_find_data_references_in_stmt.
18979 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18980 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18981 call to graphite_find_data_references_in_stmt.
18982 (analyze_drs_in_stmts): Same.
18983 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18984 in which the scalar analysis of indices is performed.
18985 (create_data_ref): Same. Update call to dr_analyze_indices.
18986 (find_data_references_in_stmt): Update call to create_data_ref.
18987 (graphite_find_data_references_in_stmt): Same.
18988 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18990 (create_data_ref): Same.
18991 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18992 call to create_data_ref.
18994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18996 * graphite-sese-to-poly.c (build_poly_scop): Move
18997 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18999 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19001 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
19002 VAR_DECL, PARM_DECL, and RESULT_DECL.
19004 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19006 * graphite-dependences.c (reduction_dr_1): Allow several reductions
19007 in a reduction PBB.
19008 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
19009 that have already been marked as PBB_IS_REDUCTION.
19011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19013 * graphite-scop-detection.c (same_close_phi_node): New.
19014 (remove_duplicate_close_phi): New.
19015 (make_close_phi_nodes_unique): New.
19016 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
19018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19020 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
19021 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
19022 of both data references to be the same.
19024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19026 * graphite-dependences.c (build_lexicographical_constraint): Remove
19027 the gdim parameter.
19028 (build_lexicographical_constraint): Adjust call to
19029 ppl_powerset_is_empty.
19030 (dependence_polyhedron): Same.
19031 (graphite_legal_transform_dr): Same.
19032 (graphite_carried_dependence_level_k): Same.
19033 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
19035 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
19037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19039 * graphite-sese-to-poly.c
19040 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
19041 (close_phi_written_to_memory): New.
19042 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
19045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19047 * doc/install.texi: Update the expected version number of PPL to 0.11.
19048 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
19049 #if PPL_VERSION_MINOR < 11.
19051 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19053 * graphite-dependences.c: Include graphite-cloog-util.h.
19054 (new_poly_ddr): Inlined into dependence_polyhedron.
19055 (free_poly_ddr): Moved close by new_poly_ddr.
19056 (dependence_polyhedron_1): Renamed dependence_polyhedron.
19057 Early return NULL when ppl_powerset_is_empty returns true.
19058 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
19059 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
19060 (graphite_legal_transform_dr): Call new_poly_ddr.
19061 (graphite_carried_dependence_level_k): Same.
19062 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
19063 (dot_transformed_deps_stmt_1): Removed.
19064 (dot_deps_stmt_1): Call dot_deps_stmt_2.
19065 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
19066 (dot_deps_1): Call dot_deps_2.
19067 * Makefile.in (graphite-dependences.o): Add missing dependence on
19068 graphite-cloog-util.h.
19070 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19072 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
19073 (build_lexicographical_constraint): Same.
19074 (dependence_polyhedron_1): Same.
19075 (graphite_legal_transform_dr): Same.
19076 (graphite_carried_dependence_level_k): Same.
19077 * graphite-ppl.c (ppl_powerset_is_empty): New.
19078 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
19079 * tree-data-ref.c (dump_data_reference): Print the basic block index.
19081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19083 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
19084 the "a followed by b" relation and document it.
19086 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19088 * graphite-dependences.c (build_lexicographical_constraint): Stop the
19089 iteration when the bag of constraints is empty.
19091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19093 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
19095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19097 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
19098 nest and two loop depths as parameters.
19099 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
19100 lst_perfect_nestify.
19102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19104 * graphite-dependences.c (print_pddr): Call
19105 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
19107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19109 * graphite-ppl.c (debug_gmp_value): New.
19110 * graphite-ppl.h (debug_gmp_value): Declared.
19112 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
19114 * doc/install.texi: Document availability of cloog-0.16.
19116 2011-01-25 Vladimir Kargov <kargov@gmail.com>
19118 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
19119 invalid postdominance info.
19121 2011-01-24 Jan Hubicka <jh@suse.cz>
19124 * doc/extend.texi (weak pragma): Drop claim that it must
19125 appear before definition.
19126 * varasm.c (merge_weak, declare_weak): Only sanity check
19127 that DECL is not output at a time it is declared weak.
19129 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
19131 * machmode.def: Fixed comments.
19133 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
19135 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
19137 2011-01-24 Paul Koning <ni1d@arrl.net>
19139 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
19142 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
19145 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
19146 (block_info): Add scanned and prev.
19147 (move_or_delete_vzeroupper_2): Return if the basic block
19148 has been scanned and the upper 128bit state is unchanged
19149 from the last scan.
19150 (move_or_delete_vzeroupper_1): Return true if the exit
19152 (move_or_delete_vzeroupper): Visit basic blocks using the
19153 work-list based algorithm based on vt_find_locations in
19156 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
19158 2011-01-24 Nick Clifton <nickc@redhat.com>
19160 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
19161 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
19162 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
19163 then define __v850e1__.
19164 * doc/invoke.texi: Document -mv850es.
19166 2011-01-24 Richard Henderson <rth@redhat.com>
19168 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
19169 compound unordered comparisons.
19170 * config/rx/rx.c (rx_split_fp_compare): Remove.
19171 * config/rx/rx-protos.h: Update.
19172 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
19173 (cbranchsf4): Don't call rx_split_fp_compare.
19174 (*cbranchsf4): Use rx_split_cbranch.
19175 (*cmpsf): Don't accept "i" constraint.
19176 (*conditional_branch): Only valid after reload.
19177 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
19179 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19182 * config/rs6000/altivec.md (vector constant splitters): Add
19183 support for creating vector single precision constants if -mvsx is
19184 used and we would create the constant using Altivec primitives.
19186 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
19187 Richard Sandiford <rdsandiford@googlemail.com>
19189 PR rtl-optimization/47166
19190 * reload1.c (emit_reload_insns): Disable the spill_reg_store
19191 mechanism for PRE_MODIFY and POST_MODIFY.
19192 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
19195 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
19197 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
19199 2011-01-22 Jan Hubicka <jh@suse.cz>
19202 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
19204 2011-01-22 Jan Hubicka <jh@suse.cz>
19206 PR tree-optimization/43884
19208 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
19209 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
19211 2011-01-22 Anatoly Sokolov <aesok@post.ru>
19213 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19214 * config/s390/s390.c (s390_register_move_cost,
19215 s390_memory_move_cost): New.
19216 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
19218 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19220 PR middle-end/47401
19221 * except.c (sjlj_assign_call_site_values): Move setting the
19222 crtl->uses_eh_lsda flag to ...
19223 (sjlj_mark_call_sites): ... here.
19224 (sjlj_emit_function_enter): Support NULL dispatch label.
19225 (sjlj_build_landing_pads): In a function with no landing pads
19226 that still has must-not-throw regions, generate code to register
19227 a personality function with empty LSDA.
19229 2011-01-21 Richard Henderson <rth@redhat.com>
19231 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
19233 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19235 * compare-elim.c: New file.
19236 * Makefile.in (OBJS-common): Add it.
19237 (compare-elim.o): New.
19238 * common.opt (fcompare-elim): New.
19239 * opts.c (default_options_table): Add OPT_fcompare_elim.
19240 * tree-pass.h (pass_compare_elim_after_reload): New.
19241 * passes.c (init_optimization_passes): Add it.
19242 * recog.h: Protect against re-inclusion.
19243 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19244 * doc/invoke.texi (-fcompare-elim): Document it.
19245 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19246 * doc/tm.texi: Rebuild.
19248 2011-01-22 Nick Clifton <nickc@redhat.com>
19250 * config/rx/rx.md (cstoresf4): Pass comparison operator to
19251 rx_split_fp_compare.
19253 2011-01-22 Nick Clifton <nickc@redhat.com>
19255 * config/rx/rx.md (UNSPEC_CONST): New.
19256 (deallocate_and_return): Wrap the amount popped off the stack in
19257 an UNSPEC_CONST in order to stop it being rejected by
19258 -mmax-constant-size.
19259 (pop_and_return): Add a "(return)" rtx.
19260 (call): Drop the immediate operand.
19261 (call_internal): Likewise.
19262 (call_value): Likewise.
19263 (call_value_internal): Likewise.
19264 (sibcall_internal): Likewise.
19265 (sibcall_value_internal): Likewise.
19266 (sibcall): Likewise. Generate an explicit call using
19268 (sibcall_value): Likewise.
19269 (mov<>): FAIL if a constant operand is not legitimate.
19270 (addsi3_unpsec): New pattern.
19272 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
19273 (ok_for_max_constant): New function.
19274 (gen_safe_add): New function.
19275 (rx_expand_prologue): Use gen_safe_add.
19276 (rx_expand_epilogue): Likewise.
19277 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
19280 2011-01-21 Jeff Law <law@redhat.com>
19282 PR tree-optimization/47053
19283 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19284 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19285 statements are deleted.
19286 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
19287 is nonempty, then purge dead edges and cleanup the CFG.
19289 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19292 Temporarily revert:
19293 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19295 * tree-dfa.c (create_var_ann): Mark variable as used.
19297 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19299 PR middle-end/45566
19300 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19301 notes from other section in hot/cold partitioning even if
19302 last_action is -3. Increment call_site_base.
19304 PR rtl-optimization/47366
19305 * fwprop.c (forward_propagate_into): Return bool. If
19306 any changes are made, -fnon-call-exceptions is used and
19307 REG_EH_REGION note is present, call purge_dead_edges
19308 and return true if it purged anything.
19309 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19310 any EH edges were purged.
19312 2011-01-21 Jeff Law <law@redhat.com>
19314 PR rtl-optimization/41619
19315 * caller-save.c (setup_save_areas): Break out code to determine
19316 which hard regs are live across calls by examining the reload chains
19317 so that it is always used.
19318 Eliminate code which checked REG_N_CALLS_CROSSED.
19320 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19322 PR tree-optimization/47355
19323 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19324 NOP has non-debug uses beyond PHIs in new_bb.
19326 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19329 * cfgexpand.c (account_used_vars_for_block): Only account vars
19330 that are annotated as used.
19331 (estimated_stack_frame_size): Don't set TREE_USED.
19332 * tree-dfa.c (create_var_ann): Mark variable as used.
19334 2011-01-21 Richard Guenther <rguenther@suse.de>
19336 PR middle-end/47395
19337 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19339 2011-01-21 Richard Guenther <rguenther@suse.de>
19341 PR tree-optimization/47365
19342 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19343 (vn_reference_lookup_pieces): Adjust.
19344 (vn_reference_lookup): Likewise.
19345 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19346 (vn_reference_lookup_3): Only look through kills if in
19347 VN_WALKREWRITE mode.
19348 (vn_reference_lookup_pieces): Adjust.
19349 (vn_reference_lookup): Likewise.
19350 (visit_reference_op_load): Likewise.
19351 (visit_reference_op_store): Likewise.
19352 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19353 (compute_avail): Likewise.
19354 (eliminate): Likewise.
19356 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19358 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19359 DECL_IGNORED_P non-reg vars if they are used.
19361 PR tree-optimization/47391
19362 * varpool.c (const_value_known_p): Return false if
19365 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
19368 * config/i386/i386.c (ix86_local_alignment): Handle
19369 case for va_list_type_node is nil.
19370 (ix86_canonical_va_list_type): Likewise.
19372 2011-01-21 Alan Modra <amodra@gmail.com>
19374 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19375 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19377 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19379 * config/arm/arm.md (define_attr type): Rename f_load
19380 and f_store to f_fpa_load and f_fpa_store. Update.
19381 (write_conflict): Deal with rename fallout.
19382 (*push_fp_multi): Likewise.
19383 * config/arm/fpa.md (f_load): Use f_fpa_load.
19384 (f_store): Use f_fpa_store.
19385 (*movsf_fpa): Likewise.
19386 (*movdf_fpa): Likewise.
19387 (*movxf_fpa): Likewise.
19388 (*thumb2_movsf_fpa): Likewise.
19389 (*thumb2_movdf_fpa): Likewise.
19390 (*thumb2_movxf_fpa): Likewise.
19391 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19392 f_loadd and f_stored.
19393 (*thumb2_movdi_vfp): Likewise.
19394 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19395 (*thumb2_movsi_vfp): Likewise.
19396 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19397 Use f_loads instead of f_load.
19398 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19400 2011-01-20 Anatoly Sokolov <aesok@post.ru>
19402 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19403 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19404 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19405 (xtensa_mode_dependent_address_p): New function.
19406 (constantpool_address_p): Make static. Change return type to bool.
19407 Change argument type to const_rtx. Use CONST_INT_P predicate.
19409 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
19412 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19414 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19417 * cfgexpand.c (expand_debug_expr): Instead of generating
19418 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19421 2011-01-20 Richard Guenther <rguenther@suse.de>
19423 PR middle-end/47370
19424 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19425 the pointer operand of MEM_REFs.
19427 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19429 PR tree-optimization/46130
19430 * ipa-split.c (consider_split): If return_bb contains non-virtual
19431 PHIs other than for retval or if split_function would not adjust it,
19434 2011-01-20 Richard Guenther <rguenther@suse.de>
19436 PR tree-optimization/47167
19437 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19438 Revert previous change, only avoid enumeral type changes.
19440 2011-01-19 Mike Stump <mikestump@comcast.net>
19442 * doc/tm.texi.in (BRANCH_COST): Englishify.
19443 * doc/tm.texi (BRANCH_COST): Likewise.
19445 2011-01-19 Dodji Seketeli <dodji@redhat.com>
19448 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19449 (gen_scheduled_generic_parms_dies): New functions.
19450 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19451 generation for the end of CU compilation.
19452 (dwarf2out_finish): Generate template parameters DIEs here.
19454 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19457 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19458 debug bind stmt on merge edges.
19460 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19464 * function.c (instantiate_expr): Instantiate incoming rtl of
19465 implicit arguments, and recurse on VALUE_EXPRs.
19466 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19467 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19469 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19471 * c-parser.c (c_parser_for_statement): Initialize
19472 collection_expression.
19474 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19476 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19478 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19480 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19481 (LINK_SHLIB_SPEC): Don't use %(link_path).
19482 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19484 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19486 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19487 (NO_SHARED_LIB_SUPPORT): Remove.
19488 (LINK_SHLIB_SPEC): Remove one conditional definition.
19490 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19492 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19494 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19495 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19496 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19497 %{call_shared} and conditionals on these options not being passed.
19498 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19501 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19503 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19506 * ipa-split.c: Spelling fixes.
19508 2011-01-19 Richard Henderson <rth@redhat.com>
19510 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19511 (*mulsi3): Likewise.
19513 * longlong.h [__mn10300__] (count_leading_zeros): New.
19514 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19515 [__mn10300__] (add_ssaaaa, subddmmss): New.
19516 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19517 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19519 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19521 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19523 2011-01-19 Richard Henderson <rth@redhat.com>
19525 * config/mn10300/mn10300.md (addsi3_flags): New.
19526 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19527 (subsi3_flags, subc_internal, subdi3): New.
19528 (subdi3_internal, *subdi3_degenerate): New.
19529 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19531 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19532 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19533 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19534 * config/mn10300/mn10300-protos.h: Update.
19535 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19536 (return_ret): Likewise. Rename from return_internal_regs.
19537 (return_internal): Remove.
19539 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19540 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19541 (mn10300_legitimate_constant_p): Likewise.
19542 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19543 (mn10300_frame_size): New.
19544 (mn10300_expand_prologue): Use it.
19545 (mn10300_expand_epilogue): Likewise.
19546 (mn10300_initial_offset): Likewise.
19547 * config/mn10300/mn10300-protos.h: Update.
19548 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19549 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19550 (prologue, epilogue, return_internal): Tidy output code.
19551 (mn10300_store_multiple_operation, return): Likewise.
19552 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19553 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19554 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19555 (load_pic, am33_load_pic): New.
19556 (mn10300_load_pic0, mn10300_load_pic1): New.
19558 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19559 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19560 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19561 (cc_flags_for_mode, cc_flags_for_code): New.
19562 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19563 overflow flag is not valid. Validate that the flags we need
19564 for the comparison are valid.
19565 (mn10300_output_cmp): Remove.
19566 (mn10300_output_add): New.
19567 (mn10300_select_cc_mode): Use cc_flags_for_code.
19568 (mn10300_split_cbranch): New.
19569 (mn10300_match_ccmode): New.
19570 (mn10300_split_and_operand_count): New.
19571 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19573 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19574 (addsi3): ... here. Use mn10300_output_add.
19575 (*addsi3_flags): New.
19576 (*am33_subsi3, *mn10300_subsi3): Merge...
19577 (subsi3): ... here. Use attribute isa.
19578 (*subsi3_flags): New.
19579 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19581 (*am33_andsi3, *mn10300_andsi3): Merge...
19582 (andsi3): ... here.
19583 (*andsi3_flags): New.
19584 (andsi3 splitters): New.
19585 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19586 (iorsi3): ... here.
19587 (*iorsi3_flags): New.
19588 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19589 (xorsi3): ... here.
19590 (*xorsi3_flags): New.
19591 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19592 (one_cmplsi2): ... here.
19593 (*one_cmplsi2_flags): New.
19594 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19595 instead of "dax" in constraints. Use mn10300_split_cbranch.
19596 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19597 use matching constraints to eliminate a self-comparison.
19598 (*integer_conditional_branch): Rename from integer_conditional_branch.
19599 Use int_mode_flags to match CC_REG.
19600 (*cbranchsi4_btst, *btstsi): New.
19601 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19602 mn10300_split_cbranch.
19603 (*am33_cmpsf): Rename from am33_cmpsf.
19604 (*float_conditional_branch): Rename from float_conditional_branch.
19605 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19606 (zero_extendqisi2): ... here.
19607 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19608 (zero_extendhisi2): ... here.
19609 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19610 (extendqisi2): ... here.
19611 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19612 (extendhisi2): ... here.
19613 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19614 (ashlsi3): ... here.
19615 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19616 (lshrsi3): ... here.
19617 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19618 (ashrsi3): ... here.
19619 (consecutive add peephole): Remove.
19620 * config/mn10300/predicates.md (label_ref_operand): New.
19621 (int_mode_flags): New.
19622 (CCZN_comparison_operator): New.
19624 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19625 (throughput_42_latency_43): New reservation.
19626 (mulsidi3, umulsidi3): New expanders.
19627 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19628 the MDR register to allocation; separately allocate the low and
19629 high parts of the DImode result.
19630 (umulsidi3_internal): Similarly.
19631 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19632 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19633 (udivsi3, umodsi3): Remove.
19634 (udivmodsi4, divmodsi4): New expanders.
19635 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19636 (*divmodsi4): Simiarly.
19637 (ext_internal): New.
19639 * config/mn10300/constraints.md ("z"): New constraint.
19640 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19641 (FIXED_REGISTERS): Don't fix MDR.
19642 (CALL_USED_REGSITERS): Reformat nicely.
19643 (REG_ALLOC_ORDER): Add MDR.
19644 (enum regclass): Add MDR_REGS.
19645 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19646 (IRA_COVER_CLASSES): Add MDR_REGS.
19647 (REGNO_REG_CLASS): Handle MDR_REG.
19648 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19649 (mn10300_register_move_cost): Likewise.
19650 * config/mn10300/mn10300.md (MDR_REG): New.
19651 (*movsi_internal): Handle moves to/from MDR_REGS.
19653 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19655 (mn10300_secondary_reload): Tidy combination reload classes.
19656 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19657 addresses for AM33. Allow symbolic offsets for reg+imm.
19658 (mn10300_regno_in_class_p): New.
19659 (mn10300_legitimize_reload_address): New.
19660 * config/mn10300/mn10300.h (enum reg_class): Remove
19661 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19662 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19663 SP_OR_GENERAL_REGS.
19664 (REG_CLASS_NAMES): Update to match.
19665 (REG_CLASS_CONTENTS): Likewise.
19666 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19667 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19668 (REGNO_IN_RANGE_P): Remove.
19669 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19670 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19671 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19672 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19673 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19674 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19675 (REGNO_GENERAL_P): New.
19676 (HAVE_POST_MODIFY_DISP): New.
19677 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19678 (LEGITIMIZE_RELOAD_ADDRESS): New.
19679 * config/mn10300/mn10300-protos.h: Update.
19681 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19682 DATA_REGS for AM33 stack-pointer destination.
19683 (mn10300_preferred_output_reload_class): Likewise.
19684 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19685 into a form appropriate for ...
19686 (TARGET_SECONDARY_RELOAD): New.
19687 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19688 * config/mn10300/mn10300-protos.h: Update.
19689 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19690 reload_insi; use the "A" constraint for the scratch; handle AM33
19691 moves of sp to non-address registers.
19693 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19694 (*movqi_internal): ... here.
19695 (*am33_movhi, *mn10300_movhi): Merge into...
19696 (*movhi_internal): ... here.
19697 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19698 as the source/destination of moves from/to SP.
19699 (movsf): Only allow for AM33-2.
19700 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
19701 any integer constant constraint. Only allow for AM33-2. Tidy
19702 all of the alternative outputs.
19703 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19704 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19706 (udivsi3, umodsi3): New patterns for MN103 only.
19708 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
19710 * doc/tm.texi.in: Spell out that a lack of register class unions
19712 * doc/tm.texi: Regenerate.
19714 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19716 PR rtl-optimization/47337
19717 * dce.c (check_argument_store): New function.
19718 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19720 PR tree-optimization/47290
19721 * tree-eh.c (infinite_empty_loop_p): New function.
19722 (cleanup_empty_eh): Use it.
19724 2011-01-18 Steve Ellcey <sje@cup.hp.com>
19727 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19728 (a64_expand_widen_sum): Ditto.
19729 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19730 (vec_extract_evenodd_help): Ditto.
19731 (vec_extract_evenv4hi): Ditto.
19732 (vec_extract_oddv4hi): Ditto.
19733 (vec_extract_evenv2si): Ditto.
19734 (vec_extract_oddv2si): Ditto.
19735 (vec_extract_evenv2sf): Ditto.
19736 (vec_extract_oddv2sf): Ditto.
19737 (vec_pack_trunc_v4hi: Ditto.
19738 (vec_pack_trunc_v2si): Ditto.
19739 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19740 (vec_interleave_highv8qi): Ditto.
19742 (vec_extract_oddv8qi): Ditto.
19743 (vec_interleave_lowv4hi): Ditto.
19744 (vec_interleave_highv4hi): Ditto.
19745 (vec_interleave_lowv2si): Ditto.
19746 (vec_interleave_highv2si): Ditto.
19748 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19750 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19751 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19752 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19753 (pa_c_mode_for_suffix): New.
19754 (TARGET_EXPAND_BUILTIN): Define.
19755 (TARGET_C_MODE_FOR_SUFFIX): Define.
19756 (pa_builtins): Define.
19757 (pa_init_builtins): Register __float128 type and init new support
19759 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19760 * config/pa/quadlib.c (_U_Qfcopysign): New.
19762 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19764 PR middle-end/46894
19765 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19766 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19769 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19771 PR tree-optimization/47179
19772 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19773 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19775 2011-01-18 Richard Guenther <rguenther@suse.de>
19777 PR rtl-optimization/47216
19778 * emit-rtl.c: Include tree-flow.h.
19779 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19780 of replicating it with different semantics.
19781 * Makefile.in (emit-rtl.o): Adjust.
19783 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19785 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19786 (cortex_a9_dp): Handle neon types correctly.
19788 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19790 PR rtl-optimization/47299
19791 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19792 subtarget. Use normal multiplication if both operands are constants.
19793 * expmed.c (expand_widening_mult): Don't try to optimize constant
19794 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19797 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19799 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19800 spacing after 'e.g.', typos, comma, hyphenation.
19802 2011-01-17 Richard Henderson <rth@redhat.com>
19804 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19805 (rx_restricted_mem_operand): New.
19806 (rx_shift_operand): Use register_operand.
19807 (rx_source_operand, rx_compare_operand): Likewise.
19808 * config/rx/rx.md (addsi3_flags): New expander.
19809 (adddi3): Rewrite as expander.
19810 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19811 (subsi3_flags): New expander.
19812 (subdi3): Rewrite as expander.
19813 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19815 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19816 (rx_init_builtins): Remove sat builtin.
19817 (rx_expand_builtin): Likewise.
19818 * config/rx/rx.md (ssaddsi3): New.
19819 (*sat): Rename from sat. Represent the CC_REG input.
19821 * config/rx/predicates.md (rshift_operator): New.
19822 * config/rx/rx.c (rx_expand_insv): Remove.
19823 * config/rx/rx-protos.h: Update.
19824 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19825 operand to the canonical position.
19826 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19827 (*bitclr, *bitclr_in_memory): Similarly.
19828 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19829 (insv): Retain the zero_extract in the expansion.
19831 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19832 (bswaphi2, bitinvert, revw): Likewise.
19834 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19835 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19836 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19837 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19838 (bitset, bitset_in_memory): Likewise.
19839 (bitinvert, bitinvert_in_memory): Likewise.
19840 (bitclr, bitclr_in_memory): Likewise.
19841 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19842 (rx_strend, rx_cmpstrn): Likewise.
19843 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19844 (bitop peep2 patterns): Remove.
19846 * config/rx/rx.c (rx_match_ccmode): New.
19847 * config/rx/rx-protos.h: Update.
19848 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19849 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19850 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19851 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19852 (fix_truncsfsi2, floatsisf2): Likewise.
19853 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19854 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19855 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19856 (*subsi3_flags, *xorsi3_flags): New.
19858 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19860 * config/rx/rx.c (rx_print_operand): Remove workaround for
19861 unsplit comparison operations.
19863 * config/rx/rx.md (movsicc): Split after reload.
19864 (*movsicc): Merge *movsieq and *movsine via match_operator.
19865 (*stcc): New pattern.
19867 * config/rx/rx.c (rx_float_compare_mode): Remove.
19868 * config/rx/rx.h (rx_float_compare_mode): Remove.
19869 * config/rx/rx.md (cstoresi4): Split after reload.
19870 (*sccc): New pattern.
19872 * config/rx/predicates.md (label_ref_operand): New.
19873 (rx_z_comparison_operator): New.
19874 (rx_zs_comparison_operator): New.
19875 (rx_fp_comparison_operator): New.
19876 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19877 Validate that the flags are set properly for the comparison.
19878 (rx_gen_cond_branch_template): Remove.
19879 (rx_cc_modes_compatible): Remove.
19880 (mode_from_flags): New.
19881 (flags_from_code): Rename from flags_needed_for_conditional.
19882 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19883 (rx_select_cc_mode): Likewise.
19884 (rx_split_fp_compare): New.
19885 (rx_split_cbranch): New.
19886 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19887 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19888 (*cbranchsf4): Similarly.
19889 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19890 match_operator and rx_split_cbranch.
19891 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19892 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19893 (*cmpsi): Rename from cmpsi.
19894 (*tstsi): Rename from tstsi.
19895 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19896 (*conditional_branch): Rename from conditional_branch.
19897 (*reveresed_conditional_branch): Remove.
19898 (b<code>): Remove expander.
19899 * config/rx/rx-protos.h: Update.
19901 * config/rx/rx.c (rx_compare_redundant): Remove.
19902 * config/rx/rx.md (cmpsi): Don't use it.
19903 * config/rx/rx-protos.h: Update.
19905 * config/rx/rx-modes.def (CC_F): New mode.
19906 * config/rx/rx.c (rx_select_cc_mode): New.
19907 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19908 * config/rx/rx-protos.h: Update.
19910 2011-01-17 Richard Henderson <rth@redhat.com>
19912 * except.c (dump_eh_tree): Fix stray ; after for statement.
19914 2011-01-17 Richard Guenther <rguenther@suse.de>
19916 PR tree-optimization/47313
19917 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19918 handling before copying the body. Properly deal with
19919 by-reference result in SSA form.
19921 2011-01-17 Ian Lance Taylor <iant@google.com>
19924 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19925 (struct_value_alias_set): Don't define.
19926 (sparc_option_override): Don't set sparc_sr_alias_set and
19927 struct_value_alias_set.
19928 (save_or_restore_regs): Use gen_frame_mem rather than calling
19930 (sparc_struct_value_rtx): Likewise.
19932 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19935 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19936 (_mm_maskstore_pd): Likewise.
19937 (_mm_maskload_ps): Likewise.
19938 (_mm_maskstore_ps): Likewise.
19939 (_mm256_maskload_pd): Change mask to __m256i.
19940 (_mm256_maskstore_pd): Likewise.
19941 (_mm256_maskload_ps): Likewise.
19942 (_mm256_maskstore_ps): Likewise.
19944 * config/i386/i386-builtin-types.def: Updated.
19945 (ix86_expand_special_args_builtin): Likewise.
19947 * config/i386/i386.c (bdesc_special_args): Update
19948 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19949 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19950 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19951 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19953 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19954 Use <avxpermvecmode> on mask register.
19955 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19957 2011-01-17 Olivier Hainque <hainque@adacore.com>
19958 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19959 Eric Botcazou <ebotcazou@adacore.com>
19962 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19963 if <= USHRT_MAX in 32-bit mode.
19965 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19967 * doc/install.texi (Configuration, Specific): Wrap long
19968 lines in examples. Allow line wrapping in long options
19969 and URLs where beneficial for PDF output.
19971 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19973 * config/mips/mips.c (mips_classify_symbol): Don't return
19974 SYMBOL_PC_RELATIVE for nonlocal labels.
19976 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19978 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19980 2011-01-15 Jan Hubicka <jh@suse.cz>
19982 PR tree-optimization/47276
19983 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19984 declarations as needed.
19986 2011-01-15 Martin Jambor <mjambor@suse.cz>
19988 * common.opt (fdevirtualize): New flag.
19989 * doc/invoke.texi (Option Summary): Document it.
19990 * opts.c (default_options_table): Add devirtualize flag.
19991 * ipa-prop.c (detect_type_change): Return immediately if
19992 devirtualize flag is not set.
19993 (detect_type_change_ssa): Likewise.
19994 (compute_known_type_jump_func): Likewise.
19995 (ipa_analyze_virtual_call_uses): Likewise.
19997 2011-01-14 Martin Jambor <mjambor@suse.cz>
19999 PR tree-optimization/45934
20000 PR tree-optimization/46302
20001 * ipa-prop.c (type_change_info): New type.
20002 (stmt_may_be_vtbl_ptr_store): New function.
20003 (check_stmt_for_type_change): Likewise.
20004 (detect_type_change): Likewise.
20005 (detect_type_change_ssa): Likewise.
20006 (compute_complex_assign_jump_func): Check for dynamic type change.
20007 (compute_complex_ancestor_jump_func): Likewise.
20008 (compute_known_type_jump_func): Likewise.
20009 (compute_scalar_jump_functions): Likewise.
20010 (ipa_analyze_virtual_call_uses): Likewise.
20011 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
20013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20015 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
20016 * config/i386/i386.opt (msse5): New Alias.
20018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20020 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20021 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20022 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20023 * config/sparc/sparc.h (CC1_SPEC): Likewise.
20025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20027 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
20029 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20030 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20031 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
20032 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
20034 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
20036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20038 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
20040 2011-01-14 Mike Stump <mikestump@comcast.net>
20042 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
20043 * config/fr30/fr30.md: Likweise
20044 (movsi_push): Likewise.
20045 (movsi_pop): Likewise.
20046 (enter_func): Likewise.
20047 * config/moxie/moxie.md (movsi_push): Likewise.
20048 (movsi_pop): Likewise.
20050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20052 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
20053 %{no_archive} %{exact_version}.
20054 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
20055 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
20056 %{no_archive} %{exact_version}.
20057 * config/mips/openbsd.h (LINK_SPEC): Likewise.
20058 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
20059 * config/mips/vxworks.h: Likewise.
20061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20063 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
20065 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20067 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
20068 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
20070 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20072 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
20075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20077 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
20079 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
20080 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
20082 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
20083 Don't handle -shlib.
20085 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20087 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
20088 (CC1_SPEC): Don't handle -profile.
20090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20092 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
20093 * config/mips/mips.h (CC1_SPEC): Likewise.
20095 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20097 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
20098 * config/mips/mips.h (CC1_SPEC): Likewise.
20100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20102 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
20103 * config/m32r/linux.h (LINK_SPEC): Likewise.
20104 * config/mips/linux.h (LINK_SPEC): Likewise.
20105 * config/mips/linux64.h (LINK_SPEC): Likewise.
20106 * config/sparc/linux.h (LINK_SPEC): Likewise.
20107 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20108 LINK_SPEC): Likewise.
20109 * config/xtensa/linux.h (LINK_SPEC): Likewise.
20111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20113 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
20115 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
20117 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20119 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
20120 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20124 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
20126 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20128 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
20129 supports -Bstatic/-Bdynamic.
20130 * configure: Regenerate.
20132 2011-01-14 Jan Hubicka <jh@suse.cz>
20133 Jack Howarth <howarth@bromo.med.uc.edu>
20136 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
20137 when checking debug_info_level. Test write_symbols instead of
20138 debug_hooks->var_location when setting flag_var_tracking_uninit.
20140 2011-01-14 Richard Guenther <rguenther@suse.de>
20142 PR tree-optimization/47179
20143 * target.def (ref_may_alias_errno): New target hook.
20144 * targhooks.h (default_ref_may_alias_errno): Declare.
20145 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
20146 (default_ref_may_alias_errno): New function.
20147 * target.h (struct ao_ref_s): Declare.
20148 * tree-ssa-alias.c: Include target.h.
20149 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
20150 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
20151 (targhooks.o): Likewise.
20152 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
20153 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
20155 2011-01-14 Richard Guenther <rguenther@suse.de>
20157 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
20159 2011-01-14 Richard Guenther <rguenther@suse.de>
20161 PR tree-optimization/47280
20162 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
20163 return CFG changes.
20164 (tree_ssa_forward_propagate_single_use_vars): Deal with
20165 CFG changes from associate_plusminus.
20167 2011-01-14 Richard Guenther <rguenther@suse.de>
20169 PR middle-end/47281
20171 2011-01-11 Richard Guenther <rguenther@suse.de>
20173 PR tree-optimization/46076
20174 * tree-ssa.c (useless_type_conversion_p): Conversions from
20175 unprototyped to empty argument list function types are useless.
20177 2011-01-14 Richard Guenther <rguenther@suse.de>
20179 PR tree-optimization/47286
20180 * tree-ssa-structalias.c (new_var_info): Register variables are global.
20182 2011-01-14 Martin Jambor <mjambor@suse.cz>
20184 PR middle-end/46823
20185 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
20187 2011-01-13 Anatoly Sokolov <aesok@post.ru>
20189 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
20190 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20191 * config/xtensa/xtensa.c (xtensa_libcall_value,
20192 xtensa_function_value_regno_p): New functions.
20193 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20195 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
20198 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
20200 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
20201 New function prototype.
20202 * config/i386/winnt.c (i386_pe_assemble_visibility):
20203 Warn only if attribute was specified by user.
20205 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20208 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
20210 (floatunsdidf2_fcfidu): Ditto.
20212 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20214 * config/s390/s390.c (print_operand_address): Replace 'error' with
20215 'output_operand_lossage'.
20216 (print_operand): Likewise.
20218 2011-01-13 Jeff Law <law@redhat.com>
20220 PR rtl-optimization/39077
20221 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
20222 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
20223 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
20224 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
20225 * gcse.c (prune_insertions_deletions): New function.
20226 (compute_pre_data): Use it.
20228 2011-01-13 Dodji Seketeli <dodji@redhat.com>
20231 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
20233 (prune_unused_types_mark): Use it.
20235 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
20237 PR rtl-optimization/45352
20238 * sel-sched.c: Update copyright years.
20239 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
20240 in the advancing loop when we have issued issue_rate insns.
20242 2011-01-12 Richard Henderson <rth@redhat.com>
20244 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20245 (TARGET_MD_ASM_CLOBBERS): New.
20247 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20248 (TARGET_DELEGITIMIZE_ADDRESS): New.
20250 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20251 (clzsi2, *bsch): New patterns.
20253 * config/mn10300/mn10300.md (INT): New mode iterator.
20254 (*mov<INT>_clr): New pattern, and peep2 to generate it.
20256 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20257 flag_split_wide_types.
20259 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20260 (mn10300_trampoline_init): Rewrite without a template, an immediate
20261 load and a direct branch.
20262 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20264 2011-01-12 Anatoly Sokolov <aesok@post.ru>
20266 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20267 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20268 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20269 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20271 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
20274 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20277 2011-01-12 Jan Hubicka <jh@suse.cz>
20280 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20281 (PLUGIN_COND_CLOSE): New macro.
20282 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20284 2011-01-12 Richard Guenther <rguenther@suse.de>
20287 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20288 register variables in a MEM_REF.
20290 2011-01-12 Joseph Myers <joseph@codesourcery.com>
20292 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20293 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20294 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20295 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20296 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20297 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20298 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20299 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20300 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20301 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20302 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20303 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20304 * config/gnu-user.h: New. Copied from linux.h.
20305 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20306 GNU_USER_TARGET_STARTFILE_SPEC.
20307 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20308 GNU_USER_TARGET_ENDFILE_SPEC.
20309 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20310 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20311 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20312 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20313 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20314 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20315 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20316 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20317 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20318 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20319 * config/arm/linux-eabi.h (CC1_SPEC): Use
20320 GNU_USER_TARGET_CC1_SPEC.
20321 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20322 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20323 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20324 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20325 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20326 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20327 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20328 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20330 2011-01-12 Richard Guenther <rguenther@suse.de>
20333 * doc/invoke.texi (ffast-math): Document it is turned on
20336 2011-01-12 Jan Hubicka <jh@suse.cz>
20338 PR tree-optimization/47233
20339 * opts.c (common_handle_option): Disable ipa-reference with profile
20342 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20344 * c-parser.c (c_parser_objc_at_property_declaration): Improved
20347 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20349 * c-parser.c (c_lex_one_token): Updated and reindented some
20350 comments. No changes in code.
20352 2011-01-11 Ian Lance Taylor <iant@google.com>
20354 * godump.c (go_output_var): Don't output the variable if there is
20355 already a type with the same name.
20357 2011-01-11 Ian Lance Taylor <iant@google.com>
20359 * godump.c (go_format_type): Don't generate float80.
20361 2011-01-11 Richard Henderson <rth@redhat.com>
20363 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20364 declaration. Rewrite for both speed and size.
20365 (mn10300_address_cost_1): Remove.
20366 (mn10300_register_move_cost): New.
20367 (mn10300_memory_move_cost): New.
20368 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20369 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20370 extensions, shifts, BSWAP, CLZ.
20371 (mn10300_wide_const_load_uses_clr): Remove.
20372 (TARGET_REGISTER_MOVE_COST): New.
20373 (TARGET_MEMORY_MOVE_COST): New.
20374 * config/mn10300/mn10300-protos.h: Update.
20375 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20377 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20378 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20379 * config/mn10300/mn10300-protos.h: Update.
20380 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20381 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20382 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20383 (*test_int_bitfield, *test_byte_bitfield): Remove.
20384 (*bit_test, *subreg_bit_test): Remove.
20385 * config/mn10300/predicates.md (const_8bit_operand): Remove.
20387 * config/mn10300/constraints.md ("c"): Rename from "A".
20388 ("A", "D"): New constraint letters.
20389 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20390 (fmssf4, fnmasf4, fnmssf4): Likewise.
20392 * config/mn10300/mn10300.md (isa): New attribute.
20393 (enabled): New attribute.
20395 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20396 (abssf2, negsf2): Define only for hardware fp.
20397 (sqrtsf2): Reformat.
20398 (addsf3, subsf3, mulsf3): Merge expander and insn.
20400 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20401 (DEBUGGER_AUTO_OFFSET): Remove.
20402 (DEBUGGER_ARG_OFFSET): Remove.
20404 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20405 Emit register stores with the same offsets as the hardware.
20406 (mn10300_store_multiple_operation): Don't check that the register
20407 save offsets are monotonic.
20408 * config/mn10300/mn10300-protos.h: Update.
20410 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20412 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20413 in terms of the value on the stack, not the MDR register.
20415 2011-01-11 Jan Hubicka <jh@suse.cz>
20419 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20420 (symbol_alias_set_destroy, symbol_alias_set_contains,
20421 propagate_aliases_backward): Declare.
20422 * lto-streamer-out.c (struct sets): New sturcture.
20423 (trivally_defined_alias): New function.
20424 (output_alias_pair_p): Rewrite.
20425 (output_unreferenced_globals): Fix output of alias pairs.
20426 (produce_symtab): Likewise.
20427 * ipa.c (function_and_variable_visibility): Set weak alias destination
20429 * varasm.c (symbol_alias_set_t): Remove.
20430 (symbol_alias_set_destroy): Export.
20431 (propagate_aliases_forward, propagate_aliases_backward): New functions
20433 (compute_visible_aliases): ... this one; remove.
20434 (trivially_visible_alias): New
20435 (trivially_defined_alias): New.
20436 (remove_unreachable_alias_pairs): Rewrite.
20437 (finish_aliases_1): Reorganize code checking if alias is defined.
20438 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20441 2011-01-11 Richard Guenther <rguenther@suse.de>
20443 PR tree-optimization/46076
20444 * tree-ssa.c (useless_type_conversion_p): Conversions from
20445 unprototyped to empty argument list function types are useless.
20447 2011-01-11 Richard Guenther <rguenther@suse.de>
20449 PR middle-end/45235
20450 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20451 volatile MEMs as MEM_READONLY_P.
20453 2011-01-11 Richard Guenther <rguenther@suse.de>
20455 PR tree-optimization/47239
20456 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20458 2011-01-11 Jeff Law <law@redhat.com>
20460 PR tree-optimization/47086
20461 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20462 IVs from statements that might throw.
20464 2011-01-10 Jan Hubicka <jh@suse.cz>
20467 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20469 2011-01-10 Jan Hubicka <jh@suse.cz>
20472 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20473 when correcting profile.
20475 2011-01-10 Jan Hubicka <jh@suse.cz>
20478 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20479 DECL_FINI_PRIORITY.
20480 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20481 Restore DECL_FINI_PRIORITY.
20483 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20485 * doc/gimple.texi: Fix quoting of multi-word return values in
20486 @deftypefn statements. Ensure presence of return value. Wrap
20487 overlong @deftypefn lines.
20488 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20489 descriptions of removed functions.
20490 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20491 of multi-word return value in @deftypefn statement.
20493 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20495 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20496 (Conditional Expressions, Logical Operators)
20497 (Statement and operand traversals): Do not indent smallexample
20498 code. Fix duplicate function argument in example.
20500 2011-01-10 Jeff Law <law@redhat.com>
20502 PR tree-optimization/47141
20503 * ipa-split.c (split_function): Handle case where we are
20504 returning a value and the return block has a virtual operand phi.
20506 2011-01-10 Jan Hubicka <jh@suse.cz>
20508 PR tree-optimization/47234
20509 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20510 (pass_feedback_split_functions): Declare.
20511 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20513 * ipa-split.c (gate_split_functions): Update comments; disable
20514 split-functions for profile_arc_flag and branch_probabilities.
20515 (gate_feedback_split_functions): New function.
20516 (execute_feedback_split_functions): New function.
20517 (pass_feedback_split_functions): New global var.
20519 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20522 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20523 calling gimple_call_set_cannot_inline.
20525 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20527 * config/darwin-sections.def: Remove unused section.
20529 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20532 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20534 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20537 * c-parser.c (c_parser_declaration_or_fndef): Improved
20540 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
20542 * config/i386/winnt.c (i386_pe_start_function): Make sure
20543 to switch back to function's section.
20545 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20549 * plugin.c: Move include of dlfcn.h from here...
20550 * system.h: ... to here.
20552 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20554 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20556 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20557 two extra empty pages in PDF output.
20559 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20562 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20563 for error recovery purposes behave as if it was not specified so
20564 that the default type is usd.
20566 2011-01-07 Jan Hubicka <jh@suse.cz>
20568 PR tree-optmization/46469
20569 * ipa.c (function_and_variable_visibility): Clear needed flags on
20570 nodes with external decls; handle weakrefs merging correctly.
20572 2011-01-07 Joseph Myers <joseph@codesourcery.com>
20574 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20577 2011-01-07 Jan Hubicka <jh@suse.cz>
20579 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
20580 and no longer claim that gold is required for linker plugin.
20581 * configure: Regenerate.
20582 * gcc.c (PLUGIN_COND): New macro.
20583 (LINK_COMMAND_SPEC): Use it.
20584 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20585 * config.in (HAVE_LTO_PLUGIN): New.
20586 * configure.ac (--with-lto-plugin): New parameter; autodetect
20589 2011-01-07 Jan Hubicka <jh@suse.cz>
20591 PR tree-optimization/46367
20592 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20593 when we can update original.
20594 (cgraph_mark_inline_edge): Sanity check.
20595 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20597 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20599 * config/spu/spu.h (ASM_COMMENT_START): Define.
20601 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20604 * gcc.c (%>S): New.
20605 (SWITCH_KEEP_FOR_GCC): Likewise.
20606 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20607 (do_spec_1): Handle "%>".
20609 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20611 2011-01-07 Jakub Jelinek <jakub@redhat.com>
20614 * config/i386/i386.c (ix86_delegitimize_address): If
20615 simplify_gen_subreg fails, return orig_x.
20618 * value-prof.c (gimple_stringop_fixed_value): Handle
20619 lhs of the call properly.
20621 2011-01-07 Jan Hubicka <jh@suse.cz>
20624 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20626 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20628 * target.def (function_switched_text_sections): New hook.
20629 * doc/tm.texi: Regenerated.
20630 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20631 * final.c (default_function_switched_text_sections): New.
20632 (final_scan_insn): Call function_switched_text_sections when a
20633 mid-function section change occurs.
20634 * output.h (default_function_switched_text_sections): Declare.
20635 * config/darwin-protos.h (darwin_function_switched_text_sections):
20637 * config/darwin.c (darwin_function_switched_text_sections): New.
20638 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20640 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20642 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20643 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20644 the secondary code fragment when outputting for DWARF == 2.
20646 2011-01-07 Anatoly Sokolov <aesok@post.ru>
20648 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20649 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20651 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20652 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20654 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20657 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20658 when it is not empty.
20660 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
20663 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
20664 (case ${target}): Add btver1.
20665 * config/i386/driver-i386.c (host_detect_local_cpu): Let
20666 -march=native recognize btver1 processors.
20667 * config/i386/i386-c.c (ix86_target_macros_internal): Add
20668 btver1 def_and_undef
20669 * config/i386/i386.c (struct processor_costs btver1_cost): New
20671 (m_BTVER1): New definition.
20672 (m_AMD_MULTIPLE): Includes m_BTVER1.
20673 (initial_ix86_tune_features): Add btver1 tune.
20674 (processor_target_table): Add btver1 entry.
20675 (static const char *const cpu_names): Add btver1 entry.
20676 (software_prefetching_beneficial_p): Add btver1.
20677 (ix86_option_override_internal): Add btver1 instruction sets.
20678 (ix86_issue_rate): Add btver1.
20679 (ix86_adjust_cost): Add btver1.
20680 * config/i386/i386.h (TARGET_BTVER1): New definition.
20681 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20682 (enum processor_type): Add PROCESSOR_BTVER1.
20683 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20685 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20688 * config/i386/i386.c (legitimize_tls_address)
20689 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20690 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20691 (tls_initial_exec_64_sun): New pattern.
20693 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20695 * doc/invoke.texi (Overall Options): Improve wording and markup
20696 of the description of -wrapper.
20698 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20700 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20701 rdynamic, threads): New Driver options.
20703 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20706 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20707 if coming from .tdata.
20708 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20710 2011-01-06 Jan Hubicka <jh@suse.cz>
20713 * collect2.c (main): Do not enable LTOmode when plugin is active.
20715 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20718 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20719 --version output if supported.
20720 * configure: Regenerate.
20722 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20724 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20727 2011-01-06 Jakub Jelinek <jakub@redhat.com>
20730 * c-convert.c (convert): When converting a complex expression
20731 other than COMPLEX_EXPR to a different complex type, ensure
20732 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20733 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20734 when converting COMPLEX_TYPE.
20736 2011-01-06 Ira Rosen <irar@il.ibm.com>
20738 PR tree-optimization/47139
20739 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20740 only the last reduction value is used outside the loop. Update
20743 2011-01-05 Joseph Myers <joseph@codesourcery.com>
20745 * config/rtems.opt: New.
20746 * config.gcc (*-*-rtems*): Use rtems.opt.
20748 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20750 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20751 processors do not support 3DNow instructions.
20753 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20755 * config/spu/spu.c (spu_option_override): Set parameter
20756 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20758 2011-01-05 Jan Hubicka <jh@suse.cz>
20760 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20761 at the command line.
20763 2011-01-05 Martin Jambor <mjambor@suse.cz>
20766 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20767 deltas on streamed outgoing edges.
20768 (output_node_opt_summary): Output info for outgoing edges only when
20769 the node is in new parameter set.
20770 (output_cgraph_opt_summary): New parameter set, passed to the two
20771 aforementioned functions. Update its forward declaration and its
20774 2011-01-05 Tom Tromey <tromey@redhat.com>
20776 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20777 operator to c_finish_omp_atomic.
20778 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20779 (build_unary_op): Update.
20780 (build_modify_expr): Update.
20781 (build_asm_expr): Update.
20783 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20785 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20786 newly inserted insns.
20787 (pad_bb): Likewise.
20788 (spu_emit_branch_hint): Likewise.
20789 (insert_hbrp_for_ilb_runout): Likewise.
20790 (spu_machine_dependent_reorg): Call df_finish_pass after
20791 schedule_insns returns.
20793 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20795 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20797 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20799 PR tree-optimization/47005
20800 * tree-sra.c (struct access): Add 'non_addressable' bit.
20801 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20802 (decide_one_param_reduction): Return 0 if the parameter is passed by
20803 reference and one of the accesses in the group is non_addressable.
20805 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20807 PR tree-optimization/47056
20808 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20809 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20810 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20812 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20814 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20815 initializer. Skip view conversions from aggregate types.
20817 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
20820 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20822 2011-01-04 Philipp Thomas <pth@suse.de>
20824 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20827 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20829 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20830 on empty epilogue sequences.
20832 2011-01-04 Joseph Myers <joseph@codesourcery.com>
20834 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20835 non-static): New Driver options.
20837 2011-01-04 Jie Zhang <jie@codesourcery.com>
20840 * gcc.c (default_compilers[]): Set combinable field to 0
20841 for all assembly languages.
20843 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20845 * config/mips/loongson3a.md: New file.
20846 * config/mips/mips.md: Include loongson3a.md.
20847 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20850 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20852 PR middle-end/47017
20853 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20854 instead of convert_memory_address_addr_space on the base expression.
20856 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20858 * config/spu/spu.c (spu_option_override): Update error text
20859 for bad -march= / -mtune= values.
20861 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20863 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20864 if branch-hint optimization will be performed.
20866 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20868 PR tree-optimization/47148
20869 * ipa-split.c (split_function): Convert arguments to
20870 DECL_ARG_TYPE if possible.
20872 PR tree-optimization/47155
20873 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20874 when computing uns.
20876 PR rtl-optimization/47157
20877 * combine.c (try_combine): If undobuf.other_insn becomes
20878 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20879 and set *new_direct_jump_p too.
20881 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20883 PR tree-optimization/47021
20884 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20886 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20888 * gcc.c (process_command): Update copyright notice dates.
20889 * gcov.c (print_version): Likewise.
20890 * gcov-dump.c (print_version): Likewise.
20891 * mips-tfile.c (main): Likewise.
20892 * mips-tdump.c (main): Likewise.
20894 2011-01-03 Martin Jambor <mjambor@suse.cz>
20896 PR tree-optimization/46801
20897 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20898 aggregate fields start at byte boundary instead of the bit-field flag.
20900 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20903 * gcc.c (main): Revert revision 168407.
20905 2011-01-03 Martin Jambor <mjambor@suse.cz>
20907 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20909 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20911 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20912 vector optab to expand vector/scalar shift, update gimple to vector.
20914 2011-01-03 Martin Jambor <mjambor@suse.cz>
20916 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20919 2011-01-03 Martin Jambor <mjambor@suse.cz>
20921 PR tree-optimization/46984
20922 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20924 (cgraph_create_indirect_edge): Fixed line length.
20925 (cgraph_indirect_call_info): Declare.
20926 (cgraph_make_edge_direct) Update declaration.
20927 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20928 (cgraph_create_indirect_edge): Use it.
20929 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20931 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20932 the new thunk_delta representation.
20933 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20935 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20936 (ipa_read_indirect_edge_info): Likewise.
20937 * lto-cgraph.c (output_edge_opt_summary): New function.
20938 (output_node_opt_summary): Call it on all outgoing edges.
20939 (input_edge_opt_summary): New function.
20940 (input_node_opt_summary): Call it on all outgoing edges.
20942 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20945 * gcc.c (main): Don't check have_o when settting combine_inputs.
20947 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20949 * regrename.c: Add general comment describing the pass.
20950 (struct du_head): Remove 'length' field.
20951 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20952 (regrename_optimize): Do not sort chains. Rework comments, add others.
20953 Force renaming to the preferred class (if any) in the first pass and do
20954 not consider registers that belong to it in the second pass.
20955 (create_new_chain): Do not set 'length' field.
20956 (scan_rtx_reg): Likewise.
20958 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20960 PR tree-optimization/47140
20961 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20962 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20963 to bit_value_binop.
20965 PR rtl-optimization/47028
20966 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20967 parm_birth_insn instead of at the beginning of first bb.
20969 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20971 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20972 Remove the word "see" before "@pxref".
20973 * doc/rtl.texi: Remove the word "see" before "@pxref".
20975 2011-01-01 Jan Hubicka <jh@suse.cz>
20977 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20980 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20983 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20986 Copyright (C) 2011 Free Software Foundation, Inc.
20988 Copying and distribution of this file, with or without modification,
20989 are permitted in any medium without royalty provided the copyright
20990 notice and this notice are preserved.