1 2011-07-05 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/49518
4 PR tree-optimization/49628
5 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6 irrelevant and invariant data-references.
7 (vect_analyze_data_ref_access): For invariant loads clear the
10 2011-07-04 Jakub Jelinek <jakub@redhat.com>
12 PR rtl-optimization/49619
13 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
14 pass VOIDmode as op0_mode to recursive call, and return temp even
15 when different from tor, just if it is not IOR of the original
18 PR rtl-optimization/49472
19 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
20 negating MULT, negate the second operand instead of first.
21 (simplify_binary_operation_1) <case MULT>: If one operand is
22 a NEG and the other is MULT, don't attempt to optimize by
23 negation of the MULT operand if it only moves the NEG operation
27 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
28 get_current_def return value if it can't be trusted to be
29 the current value of the variable in the current bb.
31 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
34 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
35 general register to memory for !TARGET_INTER_UNIT_MOVES.
37 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
40 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
41 instead of TREE_READONLY.
43 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
45 * doc/extend.texi (AVR Built-in Functions): Update documentation
46 of __builtin_avr_fmul*.
47 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
48 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
49 * config/avr/avr.md (fmul): Rename to fmul_insn.
50 (fmuls): Rename to fmuls_insn.
51 (fmulsu): Rename to fmulsu_insn.
52 (fmul,fmuls,fmulsu): New expander.
53 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
54 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
55 * config/avr/libgcc.S (__fmul): New function.
56 (__fmuls): New function.
57 (__fmulsu,__fmulsu_exit): New function.
59 2011-07-04 Richard Guenther <rguenther@suse.de>
61 PR tree-optimization/49615
62 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
63 basic-block index check.
65 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
67 * longlong.h (count_leading_zeros, count_trailing_zeros,
68 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
71 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
73 PR tree-optimization/49610
74 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
77 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
78 Olivier Hainque <hainque@adacore.com>
79 Nicolas Setton <setton@adacore.com>
81 * tree.h (TYPE_ARTIFICIAL): New flag.
82 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
83 the DIE of the type if it is artificial.
84 (gen_array_type_die): Likewise.
85 (gen_enumeration_type_die): Likewise.
86 (gen_struct_or_union_type_die): Likewise.
87 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
88 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
90 2011-07-01 Jakub Jelinek <jakub@redhat.com>
92 * tree-object-size.c (pass_through_call): Handle
93 BUILT_IN_ASSUME_ALIGNED.
95 2011-07-01 Martin Jambor <mjambor@suse.cz>
97 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
99 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
102 * explow.c (update_nonlocal_goto_save_area): Use proper mode
104 * function.c (expand_function_start): Likewise.
106 2011-07-01 Richard Guenther <rguenther@suse.de>
109 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
110 may have unknown refs.
112 2011-07-01 Kai Tietz <ktietz@redhat.com>
114 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
116 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
118 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
119 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
120 (Specific, mips-sgi-irix6): Likewise.
122 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
125 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
127 2011-07-01 Jakub Jelinek <jakub@redhat.com>
129 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
130 [idx]= and [idx1 ... idx2]= before initializers if needed for
133 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
135 * config.gcc (score-*-elf): Remove score7.o.
136 * config/score/t-score-elf: Likewise.
137 * config/score/score.c: Merge score7 to score.c and
138 remove forwarding functions.
139 * config/score/score7.c: Deleted.
140 * config/score/score7.h: Deleted.
142 2011-07-01 Richard Guenther <rguenther@suse.de>
144 PR tree-optimization/49603
145 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
147 2011-06-30 Martin Jambor <mjambor@suse.cz>
149 * tree-sra.c (struct access): Rename total_scalarization to
150 grp_total_scalarization
151 (completely_scalarize_var): New function.
152 (sort_and_splice_var_accesses): Set total_scalarization in the
153 representative access.
154 (analyze_access_subtree): Propagate total scalarization accross the
155 tree, no holes in totally scalarized trees, simplify coverage
157 (analyze_all_variable_accesses): Call completely_scalarize_var instead
158 of completely_scalarize_record.
160 2011-06-30 Richard Henderson <rth@redhat.com>
162 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
163 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
164 * config/i386/i386.c: Don't include dwarf2out.h.
165 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
166 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
167 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
168 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
169 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
171 2011-06-30 Richard Henderson <rth@redhat.com>
173 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
174 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
175 * final.c (final_scan_insn): Look for it, and invoke
176 dwarf2out_frame_debug before the insn if found.
178 2011-06-30 Richard Henderson <rth@redhat.com>
180 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
181 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
183 2011-06-30 Richard Henderson <rth@redhat.com>
185 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
186 Define a vector of this type.
187 (regs_saved_in_regs): Use a VEC.
188 (num_regs_saved_in_regs): Remove.
189 (compare_reg_or_pc): New.
190 (record_reg_saved_in_reg): Split out from...
191 (dwarf2out_flush_queued_reg_saves): ... here.
192 (clobbers_queued_reg_save): Update for VEC.
193 (reg_saved_in): Likewise.
194 (dwarf2out_frame_debug_init): Likewise.
195 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
196 (dwarf2out_frame_debug_cfa_register): Likewise.
198 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
200 PR tree-optimization/49572
201 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
202 type of the RHS instead of that of the LHS for the expression type.
204 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
206 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
209 2011-06-30 Richard Guenther <rguenther@suse.de>
211 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
212 * tree-ssa-structalias.c (create_variable_info_for): Do not
213 add initial constraints for non-var-decls. Properly handle
214 globals in other ltrans partitions.
215 (intra_create_variable_infos): Manually create constraints for
216 the fake no-alias parameter.
217 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
218 and assert there are no clones.
220 2011-06-30 Richard Guenther <rguenther@suse.de>
222 PR tree-optimization/46787
223 * tree-data-ref.c (dr_address_invariant_p): Remove.
224 (find_data_references_in_stmt): Invariant accesses are ok now.
225 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
226 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
229 2011-06-30 Martin Jambor <mjambor@suse.cz>
231 PR tree-optimization/49094
232 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
233 (build_accesses_from_assign): Use it.
235 2011-06-30 Jakub Jelinek <jakub@redhat.com>
237 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
238 handling of BUILT_IN_ASSUME_ALIGNED.
241 * dwarf2out.c (output_abbrev_section): Don't return early
242 if abbrev_die_table_in_use is 1.
243 (dwarf2out_finish): Instead don't call output_abbrev_section
244 nor emit abbrev_section_label in that case.
246 2011-06-30 Nick Clifton <nickc@redhat.com>
248 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
251 2011-06-30 Jakub Jelinek <jakub@redhat.com>
253 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
254 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
256 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
258 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
259 both pattern and original statements if necessary.
260 (vect_transform_loop): Likewise.
261 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
262 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
263 Mark the pattern statement only if the original statement doesn't
265 (process_use): Call vect_mark_relevant with additional parameter.
266 (vect_mark_stmts_to_be_vectorized): Likewise.
267 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
268 (vect_analyze_stmt): Handle both pattern and original statements
270 (vect_transform_stmt): Don't store vectorized pattern statement
271 in the original statement.
272 (vect_is_simple_use_1): Use related pattern statement only if the
273 original statement is irrelevant.
274 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
276 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
278 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
280 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
282 (TARGET_AVX128_OPTIMAL): New definition.
283 * config/i386/i386.c (initial_ix86_tune_features): Initialize
284 X86_TUNE_AVX128_OPTIMAL entry.
285 (ix86_option_override_internal): Enable the generation
286 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
287 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
288 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
290 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
292 PR tree-optimization/49539
293 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
294 names by means of stmt_references_abnormal_ssa_name.
295 (associate_plusminus): Call can_propagate_from before propagating
296 from definition statements.
297 (ssa_forward_propagate_and_combine): Remove superfluous newline.
299 2011-06-29 Richard Guenther <rguenther@suse.de>
301 * doc/invoke.texi: Document -scev dump modifier.
302 * tree-pass.h (TDF_SCEV): New dump flag.
303 * tree-dump.c (dump_option_value_in): Add scev.
304 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
305 * tree-scalar-evolution.c: Likewise.
307 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
309 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
310 (cxa_type_match): Correct declaration.
311 (__gnu_unwind_pr_common): Reconstruct additional indirection
312 when __cxa_type_match returns succeeded_with_ptr_to_base.
314 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
316 PR rtl-optimization/49114
317 * reload.c (struct replacement): Remove SUBREG_LOC member.
318 (push_reload): Do not set it.
319 (push_replacement): Likewise.
320 (subst_reload): Remove dead code.
321 (copy_replacements): Remove assertion.
322 (copy_replacements_1): Do not handle SUBREG_LOC.
323 (move_replacements): Likewise.
324 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
325 Detect subregs via recursive descent instead of via SUBREG_LOC.
327 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
329 * config/avr/avr.c (avr_encode_section_info): Dispatch to
330 default_encode_section_info.
332 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
334 PR tree-optimization/49545
335 * builtins.c (get_object_alignment_1): Update function comment.
336 Do not use DECL_ALIGN for functions, but test
337 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
338 * fold-const.c (get_pointer_modulus_and_residue): Don't check
340 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
342 2011-06-29 Jakub Jelinek <jakub@redhat.com>
345 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
346 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
348 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
351 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
352 about uninitialized data attributed 'progmem' from here...
353 (avr_encode_section_info): ...to this new function.
354 (TARGET_ENCODE_SECTION_INFO): New define.
355 (avr_section_type_flags): For data in ".progmem.data", remove
356 section flag SECTION_WRITE.
358 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
360 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
362 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
363 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
364 (__umulhisi3): Ditto.
365 * config/avr/avr.md (mulhisi3): New insn expender.
366 (umulhisi3): New insn expender.
367 (*mulhisi3_call): New insn.
368 (*umulhisi3_call): New insn.
370 2011-06-28 Joseph Myers <joseph@codesourcery.com>
372 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
374 2011-06-28 Richard Henderson <rth@redhat.com>
376 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
377 all code and arguments that handled pushes. Update all callers.
379 2011-06-28 Richard Henderson <rth@redhat.com>
381 * config/arm/arm.c (arm_output_function_prologue): Don't call
382 thumb1_output_function_prologue.
383 (arm_expand_prologue): Avoid dead store.
384 (number_of_first_bit_set): Use ctz_hwi.
385 (thumb1_emit_multi_reg_push): New.
386 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
387 to emit the entire prologue as rtl.
388 (thumb1_output_interwork): Split out from
389 thumb1_output_function_prologue.
390 (thumb1_output_function_prologue): Remove.
391 (arm_attr_length_push_multi): Handle thumb1.
392 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
393 (prologue_thumb1_interwork): New.
394 (*push_multi): Allow thumb1; use push_mult_memory_operand.
395 * config/arm/predicates.md (push_mult_memory_operand): New.
397 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
399 * config/sparc/sync.md (*stbar): Delete.
400 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
402 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
404 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
406 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
408 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
409 (TARGET_64BIT_DEFAULT): Define.
410 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
412 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
414 2011-06-28 Joseph Myers <joseph@codesourcery.com>
416 * common.opt (in_lto_p): New Variable entry.
417 * flags.h (in_lto_p): Move to common.opt.
418 * gcc.c: Include params.h.
419 (set_option_handlers): Also use common_handle_option and
420 target_handle_option.
421 (main): Call global_init_params, finish_params and init_options_struct.
422 * opts.c (debug_type_names): Move from toplev.c.
423 (print_filtered_help): Access quiet_flag through opts pointer.
424 (common_handle_option): Return early in the driver for some options.
425 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
427 * toplev.c (in_lto_p): Move to common.opt.
428 (debug_type_names): Move to opts.c.
429 * Makefile.in (OBJS): Remove opts.o.
430 (OBJS-libcommon-target): Add opts.o.
431 (gcc.o): Update dependencies.
433 2011-06-28 Kai Tietz <ktietz@redhat.com>
435 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
437 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
439 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
440 with '=' constraint modifier.
441 (*divdf3_vfp): Likewise.
442 ("*mulsf3_vfp"): Likewise.
443 ("*muldf3_vfp"): Likewise.
444 ("*mulsf3negsf_vfp"): Likewise.
445 ("*muldf3negdf_vfp"): Likewise.
447 2011-06-28 Nick Clifton <nickc@redhat.com>
449 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
450 relaxation when performing an incremental link.
452 2011-06-28 Kai Tietz <ktietz@redhat.com>
454 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
455 within BB from last to first.
457 2011-06-28 Joseph Myers <joseph@codesourcery.com>
459 * genattr-common.c: New. Based on genattr.c.
460 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
461 (MOSTLYCLEANFILES): Add insn-attr-common.h.
462 (opts.o): Update dependencies.
463 (.PRECIOUS): Add insn-attr-common.h.
464 (simple_rtl_generated_h): Add insn-attr-common.h.
465 (build/genattr-common.o): New.
466 (genprogrtl): Add attr-common.
467 * genattr.c (main): Include insn-attr-common.h. Don't generate
468 definitions of DELAY_SLOTS or INSN_SCHEDULING.
469 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
471 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
473 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
474 avr-*-* and avr-*-rtems* targets.
476 * config/avr/elf.h: New file.
477 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
478 (TARGET_ASM_SELECT_SECTION): Define.
479 (INIT_SECTION_ASM_OP): Undefine.
480 (FINI_SECTION_ASM_OP): Undefine.
481 (READONLY_DATA_SECTION_ASM_OP): Undefine.
482 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
483 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
485 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
486 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
487 (MAX_OFILE_ALIGNMENT): Move to elf.h.
488 (STRING_LIMIT): Move to elf.h.
489 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
490 (ASM_DECLARE_OBJECT_NAME): Remove.
492 (ASM_OUTPUT_SKIP): Remove.
493 (DWARF2_DEBUGGING_INFO): Remove.
494 (OBJECT_FORMAT_ELF): Remove.
495 (USER_LABEL_PREFIX): Remove.
496 (ASM_OUTPUT_EXTERNAL): Remove.
497 (ASM_OUTPUT_ASCII): Remove.
498 (TYPE_ASM_OP): Remove.
499 (SIZE_ASM_OP): Remove.
500 (WEAK_ASM_OP): Remove.
501 (STRING_ASM_OP): Remove.
502 (SET_ASM_OP): Remove.
503 (ASM_WEAKEN_LABEL): Remove.
504 (TYPE_OPERAND_FMT): Remove.
505 (ASM_DECLARE_FUNCTION_SIZE): Remove.
506 (ASM_FINISH_DECLARE_OBJECT): Remove.
507 (NO_DOLLAR_IN_LABEL): Remove.
508 (ASM_GENERATE_INTERNAL_LABEL): Remove.
509 (ASM_OUTPUT_CASE_LABEL): Remove.
510 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
511 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
512 (gas_output_ascii): Remove.
513 (gas_output_limited_string): Remove.
514 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
515 * config/avr/avr-protos.h
516 (gas_output_ascii): Remove prototye.
517 (gas_output_limited_string): Remove prototype.
519 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
522 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
525 2011-06-27 Jan Hubicka <jh@suse.cz>
527 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
528 node instead of references in node.
530 2011-06-27 Richard Henderson <rth@redhat.com>
532 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
533 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
536 2011-06-27 Jakub Jelinek <jakub@redhat.com>
538 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
540 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
541 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
542 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
543 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
544 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
545 (evaluate_stmt, execute_fold_all_builtins): Handle
546 BUILT_IN_ASSUME_ALIGNED.
547 * tree-ssa-dce.c (propagate_necessity): Likewise.
548 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
549 call_may_clobber_ref_p_1): Likewise.
550 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
551 (expand_builtin_assume_aligned): New function.
552 * doc/extend.texi (__builtin_assume_aligned): Document.
555 * cselib.c (promote_debug_loc): If cselib_preserve_constants
556 and l has two DEBUG_INSN owned locs instead of just one, adjust
557 the second location's setting_insn too.
559 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
564 2011-06-27 Nick Clifton <nickc@redhat.com>
566 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
567 bit position of highest bit set into a count of the high zero bits.
569 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
571 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
573 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
576 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
579 2011-06-27 Richard Guenther <rguenther@suse.de>
581 PR tree-optimization/49394
582 * passes.c (execute_one_pass): Restore current_pass after
583 applying IPA transforms.
585 2011-06-27 Kai Tietz <ktietz@redhat.com>
587 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
588 out of type precision after operation.
589 (find_bswap): Take for limit value the integer auto-promotion
592 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
594 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
595 forward scan as well.
597 2011-06-27 Tristan Gingold <gingold@adacore.com>
600 * config/vms/vms-protos.h: New file.
601 * config/vms/vms-crtlmap.map: New file.
602 * config/vms/vms.c: New file.
603 * config/vms/make-crtlmap.awk: New file.
604 * config/vms/vms-crtl.h: File removed.
605 * config/vms/vms-crtl-64.h: File removed.
606 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
607 * config/alpha/vms64.h: Do not include vms-crtl-64.h
608 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
609 clear some builtins on VMS. Calls vms_patch_builtins.
610 (avms_asm_output_external): Remove.
611 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
612 (struct crtl_name_spec): Remove
613 (DO_CTRL_NAMES): Remove.
614 * config/ia64/vms.h (struct crtl_name_spec): Remove
615 (DO_CTRL_NAMES): Remove.
616 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
617 clear some builtins on VMS. Calls vms_patch_builtins.
618 (ia64_asm_output_external): Remove DO_CRTL_NAME.
619 * config/ia64/vms64.h: Do not include vms-crtl-64.h
620 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
622 2011-06-27 Tristan Gingold <gingold@adacore.com>
624 * config/alpha/alpha.c (alpha_end_function): Always generate .end
627 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
629 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
630 the function receives nonlocal gotos.
632 2011-06-27 Richard Guenther <rguenther@suse.de>
634 PR tree-optimization/49536
635 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
636 For non-scalar inner types use a scalar type according to
637 the scalar inner mode.
639 2011-06-27 Richard Guenther <rguenther@suse.de>
641 PR tree-optimization/49365
642 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
644 2011-06-27 Richard Guenther <rguenther@suse.de>
646 PR tree-optimization/49169
647 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
648 the alignment of function decls.
650 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
653 * config/darwin.c (darwin_mergeable_string_section): Place string
654 constants in '.cstring' rather than '.const' when CF/NSStrings are
657 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
659 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
660 (emit_save_register_window): Likewise.
661 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
662 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
663 Swap back %o7/%i7 in register naming.
665 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
668 * config/darwin.c (darwin_override_options): Improve warning when
669 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
670 is given with fpie/fPIE.
671 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
672 * config/darwin9.h (PIE_SPEC): New.
674 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
676 * timevar.c (timevar_print): Increase width for display of timevar
679 2011-06-24 Jakub Jelinek <jakub@redhat.com>
682 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
683 instead of TYPE_CHAIN for chain_next for types.
685 2011-06-24 Richard Henderson <rth@redhat.com>
687 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
688 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
689 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
690 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
691 (sparc_flat_expand_prologue): Emit individual instructions
692 instead of one of the above.
694 2011-06-24 Easwaran Raman <eraman@google.com>
696 PR rtl-optimization/49429
698 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
699 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
700 used to copy y into x.
701 * calls.c (initialize_argument_information): Mark
702 an argument addressable if it is passed by invisible reference.
703 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
704 if it is passed by reference.
706 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
708 PR rtl-optimization/49504
709 * rtlanal.c (nonzero_bits1): Properly handle addition or
710 subtraction of a pointer in Pmode if pointers extend unsigned.
711 (num_sign_bit_copies1): Likewise.
713 2011-06-24 Martin Jambor <mjambor@suse.cz>
715 PR tree-optimizations/49516
716 * tree-sra.c (sra_modify_assign): Choose the safe path for
717 aggregate copies if we also did scalar replacements.
719 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
722 * config/arm/predicates.md (add_operator): New.
723 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
725 2011-06-24 Andi Kleen <ak@linux.intel.com>
727 * tree-sra.c (type_internals_preclude_sra_p): Add msg
728 parameter. Split up ifs and report reason in *msg.
730 (find_var_candiate): Add msg variable.
731 Split up ifs and report reason to reject.
732 (find_param_candidates): Add msg variable.
733 Pass msg to type_internals_preclude_sra_p.
735 2011-06-23 Jeff Law <law@redhat.com>
738 * reload.h (reload): Change to return a bool.
739 * ira.c (ira): If requested by reload, run a fast DCE pass after
740 reload has completed. Fix comment typo.
741 * reload1.c (need_dce): New file scoped static.
742 (reload): Set reload_completed here. Return whether or not a DCE
743 pass after reload is needed.
744 (delete_dead_insn): Set need_dce as needed.
747 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
748 to detect threading through joiner block. If there was already
749 an edge to the new target, then do not change the PHI nodes.
751 2011-06-23 Jakub Jelinek <jakub@redhat.com>
753 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
754 get_pointer_alignment to see if base isn't sufficiently aligned.
756 2011-06-23 Jan Hubicka <jh@suse.cz>
758 PR tree-optimize/49373
759 * tree-pass.h (all_late_ipa_passes): Declare.
760 * cgraphunit.c (init_lowered_empty_function): Fix properties.
761 (cgraph_optimize): Execute late passes; remove unreachable funcions
762 after materialization.
763 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
765 * passes.c (all_late_ipa_passes): Declare.
766 (dump_passes, register_pass): Handle late ipa passes.
767 (init_optimization_passes): Move ipa_pta to late passes; schedule
768 fixup_cfg at beggining of all_passes.
769 (apply_ipa_transforms): New function.
770 (execute_one_pass): When doing simple ipa pass, apply all transforms.
772 2011-06-23 Joseph Myers <joseph@codesourcery.com>
774 * params.c: Include common/common-target.h. Don't include tm.h.
775 (lang_independent_params): Move from toplev.c.
776 (global_init_params): New.
777 * params.h (global_init_params): Declare.
778 * target.def (default_params): Move to common-target.def.
779 * toplev.c (lang_independent_options): Remove.
780 (lang_independent_params): Move to params.c.
781 (general_init): Use global_init_params.
782 * common/common-target.def (option_default_params): Move from
784 * common/config/ia64/ia64-common.c: Include params.h.
785 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
787 * common/config/rs6000/rs6000-common.c: Include params.h.
788 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
790 * common/config/sh/sh-common.c: Include params.h.
791 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
793 * common/config/spu/spu-common.c: Include params.h.
794 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
796 * config/ia64/ia64.c (ia64_option_default_params,
797 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
798 * config/rs6000/rs6000.c (rs6000_option_default_params,
799 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
800 * config/sh/sh.c (sh_option_default_params,
801 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
802 * config/spu/spu.c (spu_option_default_params,
803 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
804 * Makefile.in (OBJS): Remove params.o.
805 (OBJS-libcommon-target): Add params.o.
806 (params.o, $(common_out_object_file)): Update dependencies.
807 * doc/tm.texi: Regenerate.
809 2011-06-23 Alan Modra <amodra@gmail.com>
812 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
813 invocation for 2011-06-09 changes.
815 2011-06-22 Jakub Jelinek <jakub@redhat.com>
818 * omp-low.c (expand_omp_for_static_nochunk): Only
819 use n ceil/ nthreads size for the first n % nthreads threads in the
820 team instead of all threads except for the last few ones which
821 get less work or none at all.
824 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
827 2011-06-22 Richard Guenther <rguenther@suse.de>
829 PR tree-optimization/49493
830 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
831 Refer to the alias target of variables.
832 (associate_varinfo_to_alias_1): Remove.
833 (ipa_pta_execute): Do not associate aliases with anything.
834 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
835 (cgraph_function_node): Likewise.
836 (cgraph_function_or_thunk_node): Likewise.
837 (varpool_variable_node): Likewise.
839 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
841 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
842 * config.gcc (arm*-*-linux*): Default to gnu tls.
843 (arm*-*-*): Add --with-tls option.
844 (all_defaults): Add 'tls'.
846 2011-06-22 Richard Henderson <rth@redhat.com>
848 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
849 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
850 (dwarf2out_frame_debug_cfa_window_save): Rename from
851 dwarf2out_window_save; make static.
852 * tree.h (dwarf2out_window_save): Don't declare.
854 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
855 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
856 (emit_save_register_window): Rename from gen_save_register_window;
857 emit the insn and add REG_CFA_* notes.
858 (sparc_expand_prologue): Update to match.
859 * config/sparc/sparc.md (save_register_window_1): Simplify from
860 save_register_window<P:mode>.
862 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
865 * config/i386/i386.md (*lea_general_2): Always allow SImode.
866 (*lea_general_2_zext): Likewise.
867 (imul to lea peepholes): Use const359_operand and check
868 TARGET_PARTIAL_REG_STALL.
870 * config/i386/predicates.md (const359_operand): New.
872 2011-06-22 Michael Matz <matz@suse.de>
874 * cgraphunit.c (assemble_thunk): Use correct return type.
876 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
877 Dmitry Melnik <dm@ispras.ru>
879 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
880 (neon_output_shift_immediate): Ditto.
881 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
883 (neon_output_shift_immediate): Ditto.
884 * config/arm/neon.md (vashl<mode>3): Modified constraint.
885 (vashr<mode>3_imm): New insn pattern.
886 (vlshr<mode>3_imm): Ditto.
887 (vashr<mode>3): Modified constraint.
888 (vlshr<mode>3): Ditto.
889 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
891 (imm_for_neon_rshift_operand): Ditto.
892 (imm_lshift_or_reg_neon): Ditto.
893 (imm_rshift_or_reg_neon): Ditto.
895 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
897 2011-06-22 Jakub Jelinek <jakub@redhat.com>
899 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
900 builtin calls even if likelyvalue is not CONSTANT.
901 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
902 Return get_value_for_expr of first operand
903 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
904 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
905 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
906 their non-checking counterparts.
907 (call_may_clobber_ref_p_1): Likewise.
908 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
909 like their non-checking counterparts.
910 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
911 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
912 like their non-checking counterparts.
913 (find_func_clobbers): Likewise.
914 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
915 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
917 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
918 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
919 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
920 of base type reference as argument.
921 (resolve_addr_in_expr): Likewise. Fix keep computation.
922 (convert_descriptor_to_signed): Renamed to...
923 (convert_descriptor_to_mode): ... this. For wider types convert to
924 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
925 (typed_binop): New function.
926 (scompare_loc_descriptor, ucompare_loc_descriptor,
927 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
928 default to unsigned type instead of signed.
931 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
932 (gimple_build_debug_source_bind_stat): New prototype.
933 (gimple_build_debug_source_bind): Define.
934 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
935 gimple_debug_source_bind_get_value,
936 gimple_debug_source_bind_get_value_ptr,
937 gimple_debug_source_bind_set_var,
938 gimple_debug_source_bind_set_value): New inlines.
939 * gimple.c (gimple_build_debug_source_bind_stat): New function.
940 * gimple-pretty-print.c (dump_gimple_debug): Handle
941 GIMPLE_DEBUG_SOURCE_BIND.
942 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
943 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
944 * tree-parloops.c (eliminate_local_variables,
945 separate_decls_in_region): Likewise.
946 (separate_decls_in_region_debug): Renamed from
947 separate_decls_in_region_debug_bind. Handle
948 gimple_debug_source_bind_p.
949 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
951 (DECL_HAS_DEBUG_ARGS_P): Define.
952 (struct tree_function_decl): Add has_debug_args_flag field.
953 * tree.c (debug_args_for_decl): New variable.
954 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
955 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
956 (rewrite_debug_stmt_uses): New function.
957 (rewrite_stmt): Use it to rewrite debug stmt uses.
958 * rtl.def (DEBUG_PARAMETER_REF): New.
959 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
960 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
962 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
963 * print-rtl.c (print_rtx): Likewise.
964 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
965 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
966 debug stmts in the first bb.
967 * tree-inline.c (remap_ssa_name): If remapping default def
968 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
969 a source bind debug stmt.
970 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
971 (maybe_move_debug_stmts_to_successors): Likewise.
972 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
973 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
974 debug args vector from old_decl to new_decl.
975 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
976 or modified parameters, add debug bind stmts before call
977 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
978 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
979 on DECL_DEBUG_EXPRs from debug args vector.
980 (expand_debug_source_expr): New function.
981 (expand_debug_locations): Use it for source bind insns.
982 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
983 * var-tracking.c (prepare_call_arguments): Add debug args
984 to call_arguments if any.
985 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
986 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
987 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
988 (get_ref_die_offset, parameter_ref_descriptor): New functions.
989 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
990 (gen_subprogram_die): Handle parameters identified by
993 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
995 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
996 * doc/install.texi (Configuration): Document --with-tls.
997 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
998 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
999 (arm_tls_descseq_addr): New.
1000 (legitimize_tls_address): Add tlsdesc support.
1001 (arm_cannot_copy_insn_p): Check for tlscall.
1002 (arm_emit_tls_decoration): Likewise.
1003 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1004 (OPTION_DEFAULT_SPECS): Add with-tls support.
1005 * config/arm/arm.md (R1_REGNUM): Define.
1007 * config/arm/arm.opt (tls_type): New enumeration type and values.
1008 (mtls-dialect): New switch.
1009 * config/arm/arm-opts.h (enum tls_type): New.
1011 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1013 * attribs.c (register_attribute): Added assert to check that all
1014 attribute specs are registered with a name that is not empty and
1015 does not start with '_'.
1016 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1017 if the function has no attributes.
1018 * tree.c (is_attribute_with_length_p): Removed.
1019 (is_attribute_p): Removed.
1020 (private_is_attribute_p): New.
1021 (private_lookup_attribute): New.
1022 (lookup_attribute): Removed.
1023 (lookup_ident_attribute): New.
1024 (remove_attribute): Require the first argument to be in the form
1025 'text', not '__text__'. Updated asserts.
1026 (merge_attributes): Use lookup_ident_attributes instead of
1028 (merge_dllimport_decl_attributes): Use remove_attribute.
1029 (attribute_list_contained): Likewise.
1030 (attribute_list_equal): Immediately return 1 if the arguments are
1032 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1033 'int'. Require the first argument to be in the form 'text', not
1034 '__text__'. Require the second argument to be an identifier.
1035 (lookup_attribute): Made inline. Require the first argument to be
1036 in the form 'text', not '__text__'.
1037 (private_is_attribute_p, private_lookup_attribute): New.
1040 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1042 * builtins.c: Add sync_ or SYNC__ to builtin names.
1043 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1044 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1046 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1049 * config/avr/avr.md (extzv): New expander.
1051 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1052 * config/avr/constraints.md (C04): New constraint.
1053 * doc/md.texi (Machine Constraints): Document it.
1055 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1058 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1059 unsignedp argument instead of 1 for clrsb_optab.
1060 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1061 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1062 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1063 * optabs.c (widen_leading): Call widen_operand and expand_unop
1064 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1065 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1067 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1069 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1071 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1073 * gensupport.c (add_define_attr): New static function.
1074 (is_predicable): Allow multi-alternative lists for the "predicable"
1076 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1077 (process_one_cond_exec): Call alter_attrs_for_insn.
1078 * doc/md.texi (Defining Attributes): Mention some standard names.
1079 (Conditional Execution): Update documentation for "predicable".
1081 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1082 __builtin_clrsbll): Document.
1083 * doc/rtl.texi (clrsb): New entry.
1084 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1085 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1086 (expand_unop): Handle clrsb_optab.
1087 (init_optabs): Initialize it.
1088 * optabs.h (enum optab_index): New entry OTI_clrsb.
1089 (clrsb_optab): Define.
1090 * genopinit.c (optabs): Add an entry for it.
1091 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1092 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1093 BUILT_IN_CLRSBLL): New.
1094 * rtl.def (CLRSB): New code.
1095 * dwarf2out.c (mem_loc_descriptor): Handle it.
1096 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1097 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1099 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1100 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1101 (__ctzDI2): Move declaration.
1102 * config/bfin/bfin.md (clrsbsi2): New expander.
1103 (signbitssi2): Use the CLRSB rtx.
1104 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1105 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1107 2011-06-21 Richard Guenther <rguenther@suse.de>
1109 * ipa-inline-transform.c (inline_transform): Fix previous change.
1111 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1113 PR tree-optimization/49478
1114 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1115 with constant operand.
1117 2011-06-21 Richard Guenther <rguenther@suse.de>
1119 * ipa-inline-transform.c (inline_transform): Fix typo.
1121 2011-06-21 Richard Guenther <rguenther@suse.de>
1123 PR tree-optimization/49483
1124 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1125 VIEW_CONVERT_EXPR conversions.
1127 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1129 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1130 * config/avr/avr-tables.opt: New file (generated).
1131 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1132 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1134 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1135 (avr_option_override): Don't process -mmcu= argument here. Set
1136 avr_current_device using avr_mcu_index.
1137 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1138 * config/avr/avr.opt (mmcu=): Use Enum.
1139 * config/avr/t-avr (avr-devices.o): Update dependencies.
1140 ($(srcdir)/config/avr/avr-tables.opt): New.
1141 * target.def (help): Remove.
1142 * doc/tm.texi.in (TARGET_HELP): Remove.
1143 * doc/tm.texi: Regenerate.
1144 * opts.c: Don't include target.h.
1145 (common_handle_option): Don't call targetm.help.
1146 * system.h (TARGET_HELP): Poison.
1147 * Makefile.in (opts.o): Update dependencies.
1149 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1151 * config/usegld.h: New file.
1152 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1153 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1154 (LIB_SPEC): Likewise. Search /lib.
1155 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1156 (RDYNAMIC_SPEC): Handle GNU ld.
1157 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1159 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1160 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1161 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1162 (STACK_CHECK_STATIC_BUILTIN): Define.
1163 * config/sol2.opt (compat-bsd): Remove.
1164 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1165 * config/sol2-bi.h: New file.
1166 * config/sol2-gld.h: Remove.
1167 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1168 (NO_DBX_BNSYM_ENSYM): Remove.
1169 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1170 (STACK_CHECK_STATIC_BUILTIN): Remove.
1171 Test USE_GLD instead of TARGET_GNU_LD.
1172 * config/i386/sol2-10.h: Rename to ...
1173 * config/i386/sol2-bi.h .. this.
1174 (SUBTARGET_EXTRA_SPECS): Redefine.
1175 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1176 (MULTILIB_DEFAULTS): Remove.
1177 (DEFAULT_ARCH32_P): Define.
1178 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1179 (ARCH64_SUBDIR): Define.
1180 Test USE_GLD instead of TARGET_GNU_LD.
1181 (I386_EMULATION): Rename to ...
1182 (ARCH32_EMULATION): ... this.
1183 (X86_64_EMULATION): Rename to ...
1184 (ARCH64_EMULATION): ... this.
1185 (TARGET_LD_EMULATION): Remove.
1186 (LINK_ARCH_SPEC): Remove.
1187 * config/i386/sol2-gas.h: Remove.
1188 * config/i386/t-sol2-10: Rename to ...
1189 * config/i386/t-sol2-64: ... this.
1190 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1191 (AS_SPARC64_FLAG): Define.
1192 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1193 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1194 depending on TARGET_CPU_DEFAULT.
1195 (CPP_CPU_SPEC): Redefine.
1196 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1197 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1198 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1199 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1200 ASM_ARCH_DEFAULT_SPEC): Redefine.
1201 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1202 LINK_ARCH_DEFAULT_SPEC.
1203 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1204 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1205 (ARCH64_SUBDIR): Define.
1206 (LINK_ARCH64_SPEC): Redefine.
1207 (CC1_SPEC): Redefine.
1208 (OPTION_DEFAULT_SPECS): Redefine.
1209 (MULTILIB_DEFAULTS): Define.
1210 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1211 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1212 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1213 (NO_DBX_BNSYM_ENSYM): Remove.
1214 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1215 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1216 (TARGET_ASM_NAMED_SECTION): Likewise.
1217 (STACK_CHECK_STATIC_BUILTIN): Remove.
1218 * config/sparc/sol2-bi.h: Remove.
1219 * config/sparc/sol2-gas-bi.h: Remove.
1220 * config/sparc/sol2-gas.h: Remove.
1221 * config/sparc/sol2-gld-bi.h: Remove.
1222 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1224 (*-*-solaris2*): ... here.
1226 2011-06-21 Christian Bruel <christian.bruel@st.com>
1229 * ipa-inline.c (can_inline_edge_p): Check
1230 !DECL_DISREGARD_INLINE_LIMITS.
1232 2011-06-21 Christian Bruel <christian.bruel@st.com>
1235 * cgraphunit.c (process_function_and_variable_attributes): warn when
1236 always_inline functions that are not inline.
1237 * ipa-inline-transform.c (inline_transform): Always call
1239 * tree-inline.c (tree_inlinable_function_p): Use error instead
1241 (expand_call_inline): Likewise.
1243 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1245 * Makefile.in (dg_target_exps): Set.
1246 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1247 instead of 7, try to divide it more evenly.
1249 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1252 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1253 (avx256_split_unaligned_store): New definition.
1254 (ix86_option_override_internal): Enable avx256 unaligned load/store
1255 splitting only when avx256_split_unaligned_load/store is set.
1257 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1259 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1260 open chain in a smaller mode without failing the entire block.
1262 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1265 * combine.c (cant_combine_insn_p): Don't check zero/sign
1266 extended hard registers.
1268 2011-06-21 Alan Modra <amodra@gmail.com>
1270 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1271 CONST high part large-toc address.
1272 (rs6000_tls_referenced_p): Make static.
1273 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1275 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1278 * combine.c (cant_combine_insn_p): Check zero/sign extended
1281 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1284 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1285 one of the operands is a register.
1287 2011-06-20 Kai Tietz <ktietz@redhat.com>
1289 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1290 operations in combination with binary and.
1292 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1294 * regrename.c (do_replace): Don't update notes.
1296 2011-06-20 Alan Modra <amodra@gmail.com>
1298 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1299 of toc-relative address in CONST.
1300 (rs6000_delegitimize_address): Recognize changed address.
1301 (rs6000_legitimize_reload_address): Likewise.
1302 (rs6000_emit_move): Don't force these constants to memory.
1303 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1304 toc-relative address in CONST.
1305 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1306 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1308 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1310 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1311 (count_trailing_zeros): Likewise.
1313 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1316 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1317 .init_array can be used with .ctors on targets.
1318 * configure: Regenerated.
1320 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1322 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1323 if the element type is volatile.
1325 2011-06-18 Jan Hubicka <jh@suse.cz>
1327 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1329 (lto_symtab_resolve_can_prevail_p): Likewise.
1330 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1331 * cgraphbuild.c (record_reference): Remove extra body alias code.
1332 (mark_load): Likewise.
1333 (mark_store): Likewise.
1334 * cgraph.h (varpool_node): Remove extra_name filed;
1335 add alias_of and extraname_alias.
1336 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1337 (varpool_alias_aliased_node): New inline function.
1338 (varpool_variable_node): New function.
1339 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1340 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1341 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1342 (input_varpool_node): Likewise.
1343 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1344 (varpool_externally_visible_p): Remove extra body alias code.
1345 (function_and_variable_visibility): Likewise.
1346 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1347 (ipa_pta_execute): Use it.
1348 * varpool.c (varpool_remove_node): Remove extra name alias code.
1349 (varpool_mark_needed_node): Likewise.
1350 (varpool_analyze_pending_decls): Analyze aliases.
1351 (assemble_aliases): New functoin.
1352 (varpool_assemble_decl): Use it.
1353 (varpool_create_variable_alias): New function.
1354 (varpool_extra_name_alias): Rewrite.
1355 (varpool_for_node_and_aliases): New function.
1357 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1360 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1361 last_arg_constant and last argument doesn't match its predicate,
1362 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1363 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1364 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1365 spelling of error message.
1366 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1367 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1368 const_0_to_255_operand instead of const_int_operand.
1371 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1373 * config/i386/sse.md (blendbits): Remove mode attribute.
1374 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1375 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1376 Check integer value of operand 3 in insn constraint.
1378 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1380 PR rtl-optimization/48542
1381 * reload.c (find_equiv_reg): Stop looking when finding a
1383 * reload1.c (reload_as_needed): Invalidate all reload
1384 registers when crossing a setjmp-type call.
1386 2011-06-16 Jeff Law <law@redhat.com>
1388 * tree-ssa-threadupdate.c (struct redirection_data): New field
1390 (THREAD_TARGET2): Define.
1391 (redirection_data_eq): Also check that the intermediate edge is equal.
1392 (lookup_redirection_data): Drop useless argument. Extract the
1393 outgoing_edge and intermediate edge from E. Callers updated.
1394 (copy_phi_args, update_destination_phis): New functions.
1395 (fix_duplicate_block_edges): Likewise.
1396 (create_edge_and_update_destination_phis): Duplicate all the edges
1397 hung off e->aux. Use copy_phi_args.
1398 (create_duplicates): Use fix_duplicate_block_edges.
1399 (fixup_template_block): Likewise.
1400 (redirect_edges): If necessary, redirect the joiner block's incoming
1401 edge to the duplicate of the joiner block.
1402 (thread_block): Don't muck up loops when threading through a joiner
1404 (thread_through_loop_header): Handle threading through a joiner block.
1405 (mark_threaded_blocks, register_jump_thread): Likewise.
1406 * tree-flow.h (register_jump_thread): Add new argument. Callers
1408 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1409 (thread_across_edge): Handle threading through a joiner block.
1411 2011-06-16 Martin Jambor <mjambor@suse.cz>
1413 PR tree-optimization/49343
1414 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1415 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1417 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1419 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1420 inside RTX_CODE ifdef.
1422 2011-06-16 Tom de Vries <tom@codesourcery.com>
1425 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1426 Disallow NULL pointer for pointer arithmetic.
1428 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1432 2011-06-10 Wei Guozhi <carrot@google.com>
1435 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1436 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1437 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1439 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1441 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1442 (arm_legitimate_ldrd_p): New prototype.
1443 (arm_output_ldrd): New prototype.
1444 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1445 (arm_legitimate_ldrd_p): New function.
1446 (arm_output_ldrd): New function.
1448 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1451 * doc/tm.texi.in: Update Copyright date.
1452 * doc/tm.texi: Regenerate.
1453 * targhooks.c (default_setup_incoming_varargs): Replace
1454 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1455 (default_pretend_outgoing_varargs_named): Likewise.
1456 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1457 (hook_callee_copies_named): Likewise.
1458 (default_function_arg_advance): Likewise.
1459 (default_function_arg): Likewise.
1460 (default_function_incoming_arg): Likewise.
1461 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1462 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1463 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1464 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1465 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1466 * targhooks.h (default_setup_incoming_varargs): Likewise.
1467 (default_pretend_outgoing_varargs_named): Likewise.
1468 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1469 (hook_callee_copies_named): Likewise.
1470 (default_function_arg_advance): Likewise.
1471 (default_function_arg): Likewise.
1472 (default_function_incoming_arg): Likewise.
1473 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1474 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1475 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1476 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1477 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1478 * target.def (pass_by_reference): Likewise.
1479 (setup_incoming_varargs, strict_argument_naming): Likewise.
1480 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1481 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1482 (function_incoming_arg): Likewise.
1483 * target.h: Don't include "tm.h" .
1484 (cumulative_args_t): New typedef.
1485 [GCC_TM_H] (get_cumulative_args): New static inline function.
1486 [GCC_TM_H] (pack_cumulative_args): Likewise.
1487 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1488 argument type with cumulative_args_t.
1489 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1490 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1491 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1492 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1493 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1494 (frv_function_arg_1): Likewise.
1495 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1496 (s390_function_arg_advance, s390_function_arg): Likewise.
1497 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1498 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1499 (m32c_strict_argument_naming): Likewise.
1500 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1501 (spu_function_arg_advance): Likewise.
1502 (spu_setup_incoming_varargs): Likewise. Make static.
1503 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1505 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1506 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1507 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1508 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1509 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1510 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1511 (mep_pass_by_reference, mep_function_arg): Likewise.
1512 (mep_function_arg_advance): Likewise.
1513 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1514 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1515 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1516 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1517 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1518 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1519 (ix86_setup_incoming_varargs): Likewise.
1520 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1521 (sh_strict_argument_naming): Likewise.
1522 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1523 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1524 (sh_function_arg_advance, sh_function_arg): Likewise.
1525 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1526 (pdp11_function_arg_advance): Likewise.
1527 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1529 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1530 * config/avr/avr.c (avr_function_arg): Likewise.
1531 (avr_function_arg_advance): Likewise.
1532 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1533 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1534 (xtensa_function_arg_1): Likewise.
1535 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1537 (xstormy16_function_arg): Likewise.
1538 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1539 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1540 (fr30_function_arg_advance): Likewise.
1541 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1542 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1543 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1544 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1545 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1546 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1547 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1548 (cris_function_arg, cris_function_incoming_arg): Likewise.
1549 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1550 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1551 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1552 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1553 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1554 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1555 (mn10300_arg_partial_bytes): Likewise.
1556 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1557 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1558 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1559 (ia64_function_arg_1): Likewise.
1560 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1561 (m68k_function_arg): Likewise.
1562 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1563 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1564 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1565 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1566 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1567 (picochip_arg_advance): Likewise.
1568 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1569 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1570 (mcore_function_arg_advance): Likewise.
1571 * config/score/score.c (score_pass_by_reference): Likewise.
1572 (score_function_arg_advance): Likewise.
1573 (score_arg_partial_bytes): Likewise. Make static.
1574 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1575 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1576 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1577 (arm_function_arg, arm_function_arg_advance): Likewise.
1578 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1579 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1580 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1581 (pa_function_arg): Likewise.
1582 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1583 (mips_function_arg, mips_function_arg_advance): Likewise.
1584 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1585 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1586 * config/vax/vax.c (vax_function_arg): Likewise.
1587 (vax_function_arg_advance): Likewise.
1588 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1589 (h8300_function_arg_advance): Likewise.
1590 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1591 (v850_strict_argument_naming, v850_function_arg): Likewise.
1592 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1593 (v850_setup_incoming_varargs): Likewise.
1594 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1595 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1596 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1597 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1599 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1600 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1601 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1602 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1603 * calls.c (emit_call_1): Change type of args_so_far to
1604 cumulative_args_t. Changed all callers.
1605 (initialize_argument_information): Likewise.
1606 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1607 * dse.c (get_call_args): Likewise.
1608 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1609 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1610 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1611 New member args_so_far_v. Changed all users.
1612 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1613 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1614 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1615 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1616 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1617 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1619 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1620 m32r_pass_by_reference.
1622 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1624 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1625 argument to be a VEC of statements.
1626 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1627 assert that pattern statements have to have their vector type set.
1628 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1629 Change the first argument to be a VEC of statements. Update
1631 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1632 (vect_handle_widen_mult_by_const): New function.
1633 (vect_recog_widen_mult_pattern): Change the first argument to be a
1634 VEC of statements. Update documentation. Check that the constant is
1635 INTEGER_CST. Support multiplication by a constant that fits an
1636 intermediate type - call vect_handle_widen_mult_by_const.
1637 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1638 call. Handle additional pattern statements if necessary.
1640 2011-06-16 Nick Clifton <nickc@redhat.com>
1643 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1644 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1645 md_file, extra_modes, out_file and extra_options are these are all
1646 deduced from cpu_type.
1648 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1650 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1651 truncation mask to 63.
1653 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1657 * longlong.h: Add AVR support:
1658 (count_leading_zeros): New macro.
1659 (count_trailing_zeros): New macro.
1660 (COUNT_LEADING_ZEROS_0): New macro.
1661 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1662 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1663 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1664 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1665 (LIB2FUNCS_EXCLUDE): Add _clz.
1666 * config/avr/libgcc.S (XCALL): Move up in file.
1667 (XJMP): New C Macro.
1668 (DEFUN): New asm macro.
1669 (ENDF): New asm macro.
1670 (__ffssi2): New function.
1671 (__ffshi2): New function.
1672 (__loop_ffsqi2): New function.
1673 (__ctzsi2): New function.
1674 (__ctzhi2): New function.
1675 (__clzdi2): New function.
1676 (__clzsi2): New function.
1677 (__clzhi2): New function.
1678 (__paritydi2): New function.
1679 (__paritysi2): New function.
1680 (__parityhi2): New function.
1681 (__parityqi2): New function.
1682 (__popcounthi2): New function.
1683 (__popcountsi2): New function.
1684 (__popcountdi2): New function.
1685 (__popcountqi2): New function.
1686 (__bswapsi2): New function.
1687 (__bswapdi2): New function.
1688 (__ashldi3): New function.
1689 (__ashrdi3): New function.
1690 (__lshrdi3): New function.
1691 Fix suspicous lines.
1693 2011-06-16 Richard Guenther <rguenther@suse.de>
1695 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1697 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1699 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1700 equality compares against zero for the lower bit.
1702 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1704 PR tree-optimization/49419
1705 * tree-vrp.c (execute_vrp): Call init_range_assertions
1706 before estimate_numbers_of_iterations, call
1707 free_number_of_iterations_estimates before calling
1708 remove_range_assertions.
1710 2011-06-16 Revital Eres <revital.eres@linaro.org>
1712 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1713 (struct partial_schedule): Add rows_length field.
1714 (verify_partial_schedule): Check rows_length.
1715 (ps_insert_empty_row): Handle rows_length.
1716 (create_partial_schedule): Likewise.
1717 (free_partial_schedule): Likewise.
1718 (reset_partial_schedule): Likewise.
1719 (create_ps_insn): Remove rest_count argument.
1720 (remove_node_from_ps): Update rows_length.
1721 (add_node_to_ps): Update rows_length and call create_ps_insn
1722 without passing row_rest_count.
1723 (rotate_partial_schedule): Update rows_length.
1725 2011-06-16 Revital Eres <revital.eres@linaro.org>
1727 * ddg.c (add_intra_loop_mem_dep): New function.
1728 (build_intra_loop_deps): Call it.
1730 2011-06-13 Jeff Law <law@redhat.com>
1732 * df-problems.c (df_lr_local_compute): Manually CSE
1733 PIC_OFFSET_TABLE_REGNUM.
1734 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1735 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1737 2011-06-13 Jan Hubicka <jh@suse.cz>
1739 * cgraphunit.c (handle_alias_pairs): New function.
1740 (cgraph_finalize_compilation_unit): Use it.
1741 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1742 as externally visible.
1744 2011-06-15 Richard Guenther <rguenther@suse.de>
1746 * expr.c (expand_expr_real_2): Reduce all integral types to
1748 (expand_expr_real_1): Likewise.
1750 2011-06-15 Martin Jambor <mjambor@suse.cz>
1752 PR tree-optimization/48613
1753 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1754 ipa_node_params_vector is NULL.
1756 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1759 * dwarf2out.c (dw_loc_list_node): Add force field.
1760 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1761 location in the list, even if it is modified before first real insn.
1762 (output_loc_list): Emit empty ranges with force flag set.
1763 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1765 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1768 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1769 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1770 above a fence. Update comments.
1771 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1772 placed just above it. Do not allow NULL place_to_insert.
1774 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1776 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1777 (slpeel_tree_peel_loop_to_edge): Don't call
1778 remove_dead_stmts_from_loop.
1779 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1780 remove irrelevant pattern statements. For irrelevant statements
1781 check if it is the last statement of a detected pattern, use
1782 corresponding pattern statement instead.
1783 (destroy_loop_vec_info): No need to remove pattern statements,
1784 only free stmt_vec_info.
1785 (vect_transform_loop): For irrelevant statements check if it is
1786 the last statement of a detected pattern, use corresponding
1787 pattern statement instead.
1788 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1789 pattern statements. Set basic block for the new statement.
1790 (vect_pattern_recog): Update documentation.
1791 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1792 operands of pattern statements.
1793 (vectorizable_call): Fix printing. In case of a pattern statement
1794 use the lhs of the original statement when creating a dummy
1795 statement to replace the original call.
1796 (vect_analyze_stmt): For irrelevant statements check if it is
1797 the last statement of a detected pattern, use corresponding
1798 pattern statement instead.
1799 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1800 statements use gsi of the original statement.
1802 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1804 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1805 common/common-target-def.h.
1806 * target.def (default_target_flags, handle_option,
1807 supports_split_stack, optimization_table, init_struct,
1808 except_unwind_info, unwind_tables_default, have_named_sections):
1809 Move to common/common-target.def.
1810 * target.h (enum opt_levels, struct default_options): Move to
1811 common/common-target.h.
1812 * targhooks.c (default_except_unwind_info,
1813 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1814 default_target_handle_option, empty_optimization_table): Move to
1815 common/common-targhooks.c.
1816 * targhooks.h (default_except_unwind_info,
1817 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1818 default_target_handle_option, empty_optimization_table): Move to
1819 common/common-targhooks.h.
1820 * common/common-target-def.h: Include common/common-targhooks.h.
1821 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1823 * common/common-target.def (handle_option, option_init_struct,
1824 option_optimization_table, default_target_flags,
1825 except_unwind_info, supports_split_stack, unwind_tables_default,
1826 have_named_sections): Move from target.def.
1827 (HOOK_PREFIX): Undefine at end of file.
1828 * common/common-target.h: Include input.h.
1829 (enum opt_levels, struct default_options): Move from target.h.
1830 * common/common-targhooks.c, common/common-targhooks.h: New.
1831 * config.gcc (target_has_targetm_common): Default to yes.
1832 (moxie*): Set target_has_targetm_common=no.
1833 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1834 * doc/tm.texi: Regenerate.
1835 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1836 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1837 (GCC_OBJS): Remove vec.o.
1838 (OBJS): Remove hooks.o and vec.o.
1839 (OBJS-libcommon-target): Add vec.o, hooks.o and
1840 common/common-targhooks.o.
1841 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1842 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1843 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1844 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1845 Update dependencies.
1846 (common/common-targhooks.o): New.
1847 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1848 * common/config/pa/pa-common.c: Include more headers. Take
1849 copyright dates from pa.c.
1850 (pa_option_optimization_table, pa_handle_option,
1851 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1852 TARGET_HANDLE_OPTION): Move from pa.c.
1853 * common/config/alpha/alpha-common.c,
1854 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1855 common/config/bfin/bfin-common.c,
1856 common/config/cris/cris-common.c,
1857 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1858 common/config/h8300/h8300-common.c,
1859 common/config/i386/i386-common.c,
1860 common/config/ia64/ia64-common.c,
1861 common/config/iq2000/iq2000-common.c,
1862 common/config/lm32/lm32-common.c,
1863 common/config/m32c/m32c-common.c,
1864 common/config/m32r/m32r-common.c,
1865 common/config/m68k/m68k-common.c,
1866 common/config/mcore/mcore-common.c,
1867 common/config/mep/mep-common.c,
1868 common/config/microblaze/microblaze-common.c,
1869 common/config/mips/mips-common.c,
1870 common/config/mmix/mmix-common.c,
1871 common/config/mn10300/mn10300-common.c,
1872 common/config/pdp11/pdp11-common.c,
1873 common/config/picochip/picochip-common.c,
1874 common/config/rs6000/rs6000-common.c,
1875 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1876 common/config/score/score-common.c, common/config/sh/sh-common.c,
1877 common/config/sparc/sparc-common.c,
1878 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1879 common/config/vax/vax-common.c,
1880 common/config/xstormy16/xstormy16-common.c,
1881 common/config/xtensa/xtensa-common.c: New.
1882 * config/alpha/alpha.c: Include common/common-target.h.
1883 (alpha_option_optimization_table, alpha_handle_option,
1884 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1885 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1886 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1887 * config/arm/arm.c (arm_option_optimization_table,
1888 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1889 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1891 * config/avr/avr.c (avr_option_optimization_table,
1892 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1894 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1895 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1896 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1897 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1898 * config/cris/cris.c (cris_option_optimization_table,
1899 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1900 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1902 * config/fr30/fr30.c (fr30_option_optimization_table,
1903 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1905 * config/frv/frv.c (frv_option_optimization_table,
1906 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1907 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1908 * config/h8300/h8300.c (h8300_option_optimization_table,
1909 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1910 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1911 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1912 * config/i386/i386.c: Include common/common-target.h.
1913 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1914 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1915 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1916 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1917 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1918 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1919 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1920 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1921 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1922 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1923 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1924 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1925 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1926 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1927 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1928 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1929 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1930 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1931 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1932 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1933 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1934 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1935 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1936 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1937 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1938 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1939 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1940 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1941 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1942 ix86_option_optimization_table, ix86_option_init_struct,
1943 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1944 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1945 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1947 * config/i386/t-i386 (i386.o): Update dependencies.
1948 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1949 * config/ia64/ia64.c (ia64_option_optimization_table,
1950 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1951 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1952 ia64_handle_option): Move to ia64-common.c.
1953 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1954 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1955 * config/lm32/lm32.c (lm32_option_optimization_table,
1956 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1958 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1960 * config/m32r/m32r.c (m32r_option_optimization_table,
1961 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1962 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1963 m32r_handle_option): Move to m32r-common.c.
1964 (m32r_memory_move_cost): Remove comment referring to
1965 TARGET_HANDLE_OPTION.
1966 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1967 Move to m68k-common.c.
1968 * config/mcore/mcore.c (mcore_option_optimization_table,
1969 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1970 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1971 * config/mep/mep.c (mep_option_optimization_table,
1972 mep_handle_option, TARGET_HANDLE_OPTION,
1973 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1974 Move to mep-common.c.
1975 * config/microblaze/microblaze.c
1976 (microblaze_option_optimization_table,
1977 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1978 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1979 * config/mips/mips.c (mips_handle_option,
1980 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1981 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1983 * config/mmix/mmix.c (mmix_option_optimization_table,
1984 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1985 Move to mmix-common.c.
1986 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1987 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1988 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1989 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1990 * config/pa/pa.c: Include common/common-target.h.
1991 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1992 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1993 pa_handle_option): Move to pa-common.c.
1994 (pa_option_override): Use targetm_common.except_unwind_info.
1995 (pa_asm_output_mi_thunk, pa_function_section): Use
1996 targetm_common.have_named_sections.
1997 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1998 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1999 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2000 pdp11_handle_option, pdp11_option_init_struct): Move to
2002 * config/picochip/picochip.c (picochip_option_optimization_table,
2003 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2004 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2005 * config/rs6000/rs6000.c: Include common/common-target.h.
2006 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2007 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2008 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2009 rs6000_handle_option): Move to rs6000-common.c.
2010 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2011 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2012 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2013 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2014 * config/s390/s390.c (processor_flags_table,
2015 s390_option_optimization_table, s390_option_init_struct,
2016 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2017 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2018 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2019 * config/s390/s390.h (processor_flags_table): Declare.
2020 * config/score/score.c (score_option_optimization_table,
2021 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2022 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2023 score_handle_option): Move to score-common.c.
2024 * config/sh/sh.c (sh_option_optimization_table,
2025 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2026 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2027 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2028 * config/sparc/sparc.c: Include common/common-target.h.
2029 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2030 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2031 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2032 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2033 spu_option_init_struct): Move to spu-common.c.
2034 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2035 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2036 * config/v850/v850.c (small_memory_physical_max,
2037 v850_handle_memory_optionn v850_handle_option,
2038 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2039 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2041 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2042 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2043 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2044 Move to xtensa-common.c.
2045 * cfglayout.c: Include common/common-target.h.
2046 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2047 * cfgrtl.c: Include common/common-target.h.
2048 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2049 targetm_common.have_named_sections.
2050 * dbxout.c: Include common/common-target.h.
2051 (dbxout_function_end): Use targetm_common.have_named_sections.
2052 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2053 targetm_common.except_unwind_info.
2054 * dwarf2out.c: Include common/common-target.h.
2055 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2056 dwarf2out_begin_prologue, dwarf2out_frame_init,
2057 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2058 targetm_common.except_unwind_info.
2059 * except.c: Include common/common-target.h.
2060 (init_eh, finish_eh_generation,
2061 output_one_function_exception_table): Use
2062 targetm_common.except_unwind_info.
2063 (switch_to_exception_section): Use targetm_common.have_named_sections.
2064 * explow.c: Include common/common-target.h.
2065 * expr.c: Include common/common-target.h.
2066 (build_personality_function): Use targetm_common.except_unwind_info.
2067 * function.c: Include common/common-target.h.
2068 (expand_function_end): Use targetm_common.except_unwind_info.
2069 * haifa-sched.c: Include common/common-target.h.
2070 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2071 * lto-opts.c: Include common/common-target.h instead of target.h.
2072 (lto_reissue_options): Use targetm_common.handle_option.
2073 * opts.c: Include common/common-target.h.
2074 (target_handle_option): Use targetm_common.handle_option.
2075 (init_options_struct): Update comment referring to
2076 targetm.target_option.optimization. Use
2077 targetm_common.default_target_flags,
2078 targetm_common.unwind_tables_default and
2079 targetm_common.option_init_struct.
2080 (default_options_optimization): Use
2081 targetm_common.option_optimization_table.
2082 (finish_options): Use targetm_common.except_unwind_info,
2083 targetm_common.unwind_tables_default,
2084 targetm_common.have_named_sections and
2085 targetm_common.supports_split_stack.
2086 * toplev.c: Include common/common-target.h.
2087 (process_options): Use targetm_common.have_named_sections.
2088 * tree-tailcall.c: Include common/common-target.h.
2089 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2090 * tree.c: Include common/common-target.h.
2091 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2092 * varasm.c: Include common/common-target.h.
2093 (resolve_unique_section, hot_function_section,
2094 default_function_section): Use targetm_common.have_named_sections.
2096 2011-06-14 Easwaran Raman <eraman@google.com>
2098 PR rtl-optimization/44194
2099 * dse.c: Include tree-flow.h
2100 (insn_info): Add new field non_frame_wild_read.
2101 (group_info): Add new fields escaped_n and escaped_p.
2102 (kill_on_calls): New variable.
2103 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2104 (dse_step0): Initialize kill_on_calls.
2105 (can_escape): New function.
2106 (set_usage_bits): Add additional parameter; record information
2107 about escaped locations.
2108 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2109 (dse_step2_nospill): Set kill_on_calls based on
2110 group->escaped_n and group->escaped_n.
2111 (add_wild_read): Refactor into...
2112 (reset_active_stores): ... New function, and
2113 (free_read_records): ... New function.
2114 (add_non_frame_wild_read): New function.
2115 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2116 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2117 (dse_step5_nospill): Call scan_reads_nospill for instructions
2118 marked as non_frame_wild_read.
2119 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2121 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2123 * common/common-target-def.h, common/common-target.def,
2124 common/common-target.h, common/config/default-common.c,
2125 common/config/pa/pa-common.c: New files.
2126 * Makefile.in (common_out_file, common_out_object_file,
2127 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2128 (OBJS-libcommon-target): Include $(common_out_object_file).
2129 (prefix.o): Update dependencies.
2130 ($(common_out_object_file), common/common-target-hooks-def.h,
2131 s-common-target-hooks-def-h): New.
2132 (s-tm-texi): Also check timestamp on common-target.def.
2133 (build/genhooks.o): Update dependencies.
2134 * config.gcc (common_out_file, target_has_targetm_common): Define.
2135 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2136 TARGET_ALWAYS_STRIP_DOTDOT.
2137 * configure.ac (common_out_object_file): Define.
2138 (common_out_file, common_out_object_file): Substitute.
2139 (common): Create directory.
2140 * configure: Regenerate.
2141 * doc/tm.texi.in (targetm_common): Document.
2142 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2143 * doc/tm.texi: Regenerate.
2144 * genhooks.c (hook_array): Also include common/common-target.def.
2145 * prefix.c (tm.h): Don't include.
2146 (common/common-target.h): Include.
2147 (ALWAYS_STRIP_DOTDOT): Don't define.
2148 (update_path): Use targetm_common.always_strip_dotdot instead of
2149 ALWAYS_STRIP_DOTDOT.
2150 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2152 2011-06-14 David Li <davidxl@google.com>
2154 * passes.c (execute_function_todo): Remove TODO_dump_func.
2155 (execute_one_pass): Remove TODO_dump_func.
2156 (execute_function_dump): New function.
2157 * tree-vrp.c: Remove TODO_dump_func.
2158 * regrename.c: Remove TODO_dump_func.
2159 * fwprop.c: Remove TODO_dump_func.
2160 * tree-into-ssa.c: Remove TODO_dump_func.
2161 * tree-complex.c: Remove TODO_dump_func.
2162 * tracer.c: Remove TODO_dump_func.
2163 * tree-loop-distribution.c: Remove TODO_dump_func.
2164 * postreload-gcse.c: Remove TODO_dump_func.
2165 * postreload.c: Remove TODO_dump_func.
2166 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2167 * tree-tailcall.c: Remove TODO_dump_func.
2168 * ipa-cp.c: Remove TODO_dump_func.
2169 * final.c: Remove TODO_dump_func.
2170 * tree-emutls.c: Remove TODO_dump_func.
2171 * omp-low.c: Remove TODO_dump_func.
2172 * tree-ssa-dse.c: Remove TODO_dump_func.
2173 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2174 * auto-inc-dec.c: Remove TODO_dump_func.
2175 * reorg.c: Remove TODO_dump_func.
2176 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2177 * tree-ssa-ccp.c: Remove TODO_dump_func.
2178 * compare-elim.c: Remove TODO_dump_func.
2179 * mode-switching.c: Remove TODO_dump_func.
2180 * modulo-sched.c: Remove TODO_dump_func.
2181 * tree-call-cdce.c: Remove TODO_dump_func.
2182 * cse.c: Remove TODO_dump_func.
2183 * web.c: Remove TODO_dump_func.
2184 * tree-stdarg.c: Remove TODO_dump_func.
2185 * lto-streamer-out.c: Remove TODO_dump_func.
2186 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2187 * tree-ssa-dom.c: Remove TODO_dump_func.
2188 * tree-nrv.c: Remove TODO_dump_func.
2189 * loop-init.c: Remove TODO_dump_func.
2190 * gimple-low.c: Remove TODO_dump_func.
2191 * ipa-inline.c: Remove TODO_dump_func.
2192 * tree-ssa-sink.c: Remove TODO_dump_func.
2193 * jump.c: Remove TODO_dump_func.
2194 * ifcvt.c: Remove TODO_dump_func.
2195 * tree-ssa-loop.c: Remove TODO_dump_func.
2196 * recog.c: Remove TODO_dump_func.
2197 * dse.c: Remove TODO_dump_func.
2198 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2199 * matrix-reorg.c: Remove TODO_dump_func.
2200 * tree-eh.c: Remove TODO_dump_func.
2201 * regmove.c: Remove TODO_dump_func.
2202 * function.c: Remove TODO_dump_func.
2203 * tree-vectorizer.c: Remove TODO_dump_func.
2204 * ipa-split.c: Remove TODO_dump_func.
2205 * gcse.c: Remove TODO_dump_func.
2206 * tree-if-conv.c: Remove TODO_dump_func.
2207 * init-regs.c: Remove TODO_dump_func.
2208 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2209 * implicit-zee.c: Remove TODO_dump_func.
2210 * lower-subreg.c: Remove TODO_dump_func.
2211 * bt-load.c: Remove TODO_dump_func.
2212 * tree-dfa.c: Remove TODO_dump_func.
2213 * except.c: Remove TODO_dump_func.
2214 * emit-rtl.c: Remove TODO_dump_func.
2215 * store-motion.c: Remove TODO_dump_func.
2216 * cfgexpand.c: Remove TODO_dump_func.
2217 * tree-cfgcleanup.c: Remove TODO_dump_func.
2218 * cfgcleanup.c: Remove TODO_dump_func.
2219 * tree-ssa-pre.c: Remove TODO_dump_func.
2220 * tree-sra.c: Remove TODO_dump_func.
2221 * tree-mudflap.c: Remove TODO_dump_func.
2222 * tree-ssa-copy.c: Remove TODO_dump_func.
2223 * cfglayout.c: Remove TODO_dump_func.
2224 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2225 * tree-ssa-dce.c: Remove TODO_dump_func.
2226 * ira.c: Remove TODO_dump_func.
2227 * tree-ssa.c: Remove TODO_dump_func.
2228 * integrate.c: Remove TODO_dump_func.
2229 * tree-optimize.c: Remove TODO_dump_func.
2230 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2231 * tree-object-size.c: Remove TODO_dump_func.
2232 * combine.c: Remove TODO_dump_func.
2233 * bb-reorder.c: Remove TODO_dump_func.
2234 * cprop.c: Remove TODO_dump_func.
2235 * var-tracking.c: Remove TODO_dump_func.
2236 * tree-profile.c: Remove TODO_dump_func.
2237 * tree-vect-generic.c: Remove TODO_dump_func.
2238 * reg-stack.c: Remove TODO_dump_func.
2239 * sched-rgn.c: Remove TODO_dump_func.
2240 * tree-ssa-structalias.c: Remove TODO_dump_func.
2241 * tree-switch-conversion.c: Remove TODO_dump_func.
2242 * tree-cfg.c: Remove TODO_dump_func.
2243 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2244 * combine-stack-adj.c: Remove TODO_dump_func.
2245 * dce.c: Remove TODO_dump_func.
2246 * tree-ssanames.c: Remove TODO_dump_func.
2247 * regcprop.c: Remove TODO_dump_func.
2249 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2252 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2253 and properly handle result not in Pmode.
2255 2011-06-14 Robert Millan <rmh@gnu.org>
2257 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2258 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2261 * config/i386/kfreebsd-gnu64.h: New file.
2262 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2263 with `i386/kfreebsd-gnu64.h'.
2265 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2266 (GNU_USER_LINK_EMULATION64): New macros.
2267 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2268 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2269 of hardcoding `elf_i386' and `elf_x86_64'.
2271 2011-06-14 Nick Clifton <nickc@redhat.com>
2274 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2277 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2279 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2282 * tree.h (DECL_NONSHAREABLE): Define.
2283 (struct tree_decl_common): Change decl_common_unused to
2284 decl_nonshareable_flag.
2285 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2286 Ignore vars with DECL_NONSHAREABLE bit set.
2287 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2288 on stores to automatic aggregate vars.
2290 PR rtl-optimization/49390
2292 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2294 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2297 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2298 Tom de Vries <tom@codesourcery.com>
2301 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2302 Document changed semantics.
2303 (max_stmt_executions, max_stmt_executions_int): Declare.
2304 * tree-data-ref.c (estimated_loop_iterations)
2305 (estimated_loop_iterations_int): Move functions...
2306 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2307 (estimated_loop_iterations_int): here.
2308 (record_estimate): Change nb_iterations_upper_bound and
2309 nb_iterations_estimate semantics.
2310 (max_stmt_executions, max_stmt_executions_int): New function.
2311 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2312 (max_stmt_executions_tree): this.
2313 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2314 estimated_loop_iterations_tree.
2315 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2316 max_stmt_executions_int instead of estimated_loop_iterations_int.
2317 * predict.c (predict_loops): Idem.
2318 * tree-parloops.c (parallelize_loops): Idem.
2319 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2320 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2321 (init_omega_for_ddr_1): Idem.
2322 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2323 (loop_prefetch_arrays): Idem
2324 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2325 max_stmt_executions instead of estimated_loop_iterations.
2326 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2327 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2328 instead of nb_iterations_upper_bound.
2330 2011-06-13 Jan Hubicka <jh@suse.cz>
2332 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2334 2011-06-14 Richard Henderson <rth@redhat.com>
2337 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2338 (based_loc_descr): Assert it's true.
2339 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2340 aborting immediately.
2342 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2343 Mingfeng Wu <mingfeng@faraday-tech.com>
2345 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2347 2011-06-13 Jan Hubicka <jh@suse.cz>
2349 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2351 2011-06-13 Jan Hubicka <jh@suse.cz>
2353 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2354 similarly to DECL_COMDAT.
2355 * cgraphunit.c (cgraph_analyze_function): Likewise.
2356 * ipa.c (function_and_variable_visibility): Likewise.
2358 2011-06-13 Jan Hubicka <jh@suse.cz>
2360 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2361 BINFO_VIRTUALS when streaming for ltrans unit.
2363 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2365 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2366 (movdi_internal64): Same.
2368 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2371 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2372 a set of similar patterns, where the MATCH_OPERAND for the function
2373 argument is replaced with individual references to hardware registers.
2374 (save_fpregs_<mode>): Ditto
2375 (restore_gpregs_<mode>): Ditto
2376 (return_and_restore_gpregs_<mode>): Ditto
2377 (return_and_restore_fpregs_<mode>): Ditto
2378 (return_and_restore_fpregs_aix_<mode>): Ditto
2380 2011-06-13 Jan Hubicka <jh@suse.cz>
2382 * ipa-utils.c (postorder_stack): New structure.
2383 (ipa_reverse_postorder): Handle aliases.
2385 2011-06-13 Jan Hubicka <jh@suse.cz>
2387 * ipa-inline.c (reset_edge_caches): Walk aliases.
2388 (update_caller_keys): Do not test inlinability of aliases.
2389 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2390 (do_estimate_growth): Fix typo.
2392 2011-06-13 Jan Hubicka <jh@suse.cz>
2394 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2395 (can_remove_node_now_p): ... here; handle same comdat groups.
2396 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2397 (inline_call): Update use of can_remove_node_now_p.
2399 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2401 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2402 condition to disallow non-identical memory locations.
2403 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2404 preference to bit manipulation instructions.
2406 2011-06-13 Jan Hubicka <jh@suse.cz>
2408 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2409 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2410 (nonremovable_p): New function.
2411 (cgraph_can_remove_if_no_direct_calls_p): New function.
2412 (used_from_object_file_p): New functoin.
2413 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2414 references from aliases.
2415 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2416 * ipa-inline.c (check_caller_edge): New function.
2417 (want_inline_function_called_once_p): Use it; accept aliases called
2419 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2421 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2424 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2425 correctly for the case with Quad vectors.
2427 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2428 Ira Rosen <ira.rosen@linaro.org>
2430 PR tree-optimization/49352
2431 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2432 all, make sure loop_use_stmt after the loop is a def stmt of a used
2433 SSA_NAME that is the only one defined inside of the loop. Don't
2434 check for COND_EXPR and GIMPLE_BINARY_RHS.
2435 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2436 check_reduction is true.
2438 2011-06-11 Jan Hubicka <jh@suse.cz>
2441 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2443 2011-06-11 Jan Hubicka <jh@suse.cz>
2446 * ipa-inline-transform.c: Include tree-pass.h
2447 (inline_transform): Set TODO_update_ssa_only_virtuals.
2448 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2450 2011-06-11 Jan Hubicka <jh@suse.cz>
2453 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2456 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2458 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2459 Take number of iterations to peel into account for equally frequent
2460 misalignment values.
2462 2011-06-11 Jan Hubicka <jh@suse.cz>
2464 * lto-streamer-out.c (produce_symtab): Stream out the newly
2465 represented aliases.
2467 2011-06-11 Jan Hubicka <jh@suse.cz>
2469 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2471 (ipa_update_after_lto_read): Likewise.
2472 (ipa_write_node_info): Do not sream call_with_var_arguments.
2473 (ipa_read_node_info): Likewise.
2475 2011-06-11 Jan Hubicka <jh@suse.cz>
2477 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2479 2011-06-11 Jan Hubicka <jh@suse.cz>
2481 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2482 (lto_symtab_resolve_can_prevail_p): Likewise.
2483 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2484 * cgraph.c (same_body_aliases_done): New global var.
2485 (cgraph_same_body_alias_1): Rename to ...
2486 (cgraph_create_function_alias): ... this one; reorg to new
2488 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2489 record references when asked to.
2490 (cgraph_add_thunk): Fix formating.
2491 (cgraph_get_node): Kill same body alias code.
2492 (cgraph_node_for_asm): Likewise.
2493 (cgraph_remove_same_body_alias): Remove.
2494 (cgraph_remove_node): Kill same body alias code.
2495 (cgraph_mark_address_taken_node): Mark also the aliased function
2496 as having address taken.
2497 (dump_cgraph_node): Dump same body aliases.
2498 (cgraph_for_node_thunks_and_aliases): Update for new alias
2500 (cgraph_for_node_and_aliases): Likewise.
2501 * cgraph.h (same_body): Kll pointer.
2502 (same_body_alias): Update comment.
2503 (same_body_aliases_done): Declare.
2504 (cgraph_remove_same_body_alias): Remove declaration.
2505 (cgraph_create_function_alias): Declare.
2506 (cgraph_process_same_body_aliases): Declare.
2507 (cgraph_function_with_gimple_body_p): Check for alias.
2508 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2509 (cgraph_alias_aliased_node): New function.
2510 (cgraph_function_node): Update for new aliases.
2511 (cgraph_function_or_thunk_node): Likewise.
2512 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2513 (inline_call): Remove dead aliases.
2514 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2515 name hack for same body aliases.
2516 (clone_of_p): Look through aliases.
2517 (verify_cgraph_node): Verify aliases.
2518 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2519 (cgraph_process_same_body_aliases): New function.
2520 (process_function_and_variable_attributes): Disable weakref warning on
2522 (cgraph_analyze_functions): Handle aliases.
2523 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2524 (assemble_thunks): Rename to ...
2525 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2526 (cgraph_expand_function): Remove alias output code.
2527 (cgraph_output_in_order): Skip aliases.
2528 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2529 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2530 (ipa_record_reference): Do not assert on alias references.
2531 (ipa_ref_has_aliases_p): New function.
2532 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2533 (ipa_ref_has_aliases_p): Declare.
2534 * lto-cgraph.c (lto_output_node): Handle aliases.
2535 (input_node): Likewise.
2536 * lto-streamer-out.c (lto_output): Skip aliases.
2537 (produce_symtab): Kill same_body_alias code.
2538 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2539 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2540 * ipa-inline.c (update_caller_keys): Walk aliases.
2541 (inline_small_functions): Fix thinko in previous patch.
2542 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2543 (function_and_variable_visibility): Do not walk same body aliases.
2544 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2545 (ipa_pta_execute): Use it.
2547 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2549 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2550 (*vec_dupv2df): Rename from vec_dupv2df.
2551 (vec_dupv2df): New expander.
2553 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2555 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2557 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2559 * config/i386/i386.md: Use default value in "isa" attribute.
2560 * config/i386/sse.md: Ditto.
2561 * config/i386/mmx.md: Ditto.
2563 2011-06-10 Wei Guozhi <carrot@google.com>
2566 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2567 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2568 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2570 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2572 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2573 (arm_legitimate_ldrd_p): New prototype.
2574 (arm_output_ldrd): New prototype.
2575 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2576 (arm_legitimate_ldrd_p): New function.
2577 (arm_output_ldrd): New function.
2579 2011-06-10 David Li <davidxl@google.com>
2581 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2582 * passes.c (passr_eq): New function.
2583 (create_pass_tab): New function.
2584 (pass_traverse): New function.
2585 (dump_one_pass): New function.
2586 (dump_pass_list): New function.
2587 (dump_passes): New function.
2589 2011-06-10 Jan Hubicka <jh@suse.cz>
2591 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2592 setting the nothrow flag.
2593 * ipa-reference.c (propagate): Skip aliases.
2594 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2595 (propagate_nothrow): Skip aliases; do not update cgraph.
2596 (local_pure_const): Do not update cgraph.
2597 * tree-profile.c (tree_profiling): Do fixup_cfg.
2599 2011-06-10 Jan Hubicka <jh@suse.cz>
2601 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2602 (cgraph_local_node_p): ... here; handle aliases.
2603 (has_addr_references_p): Break out from ...;
2604 (cgraph_remove_unreachable_nodes) ... here.
2606 2011-06-10 Jan Hubicka <jh@suse.cz>
2608 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2609 * common.opt (flag_inline_functions_called_once): Do not
2612 2011-06-10 Jan Hubicka <jh@suse.cz>
2614 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2615 (ipcp_initialize_node_lattices): Do not deal with aliases;
2616 Do not try to propagate through thunks.
2617 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2619 2011-06-10 Jan Hubicka <jh@suse.cz>
2621 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2623 (ipa_read_node_info): Likewise.
2625 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2628 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2629 (build_and_insert_call): Likewise.
2630 (build_and_insert_ref): New.
2631 (gimple_expand_builtin_pow): Minor cleanup.
2632 (gimple_expand_builtin_cabs): New.
2633 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2635 2011-06-10 Jan Hubicka <jh@suse.cz>
2637 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2638 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2639 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2640 (ipcp_propagate_stage): Skip aliases when propagating.
2641 (ipcp_need_redirect_p): Skip aliases.
2642 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2643 collect_callers_of_node.
2644 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2646 (ipa_compute_jump_functions): Look through aliases.
2648 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2650 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2652 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2654 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2656 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2658 2011-06-10 Jan Hubicka <jh@suse.cz>
2660 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2661 Update call of gimple_get_virt_method_for_binfo.
2662 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2663 refuse_thunks parameter.
2664 (gimple_fold_call): Update.
2665 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2667 2011-06-10 Jan Hubicka <jh@suse.cz>
2669 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2670 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2671 worker for cgraph_for_node_and_aliases.
2672 (convert_callers_for_node): Break out from ...
2673 (convert_callers): ... here.
2674 (modify_function): Use collect_callers_of_node.
2675 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2677 2011-06-10 Richard Guenther <rguenther@suse.de>
2679 PR tree-optimization/49361
2680 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2681 when not already in gimple form.
2683 2011-06-10 Richard Guenther <rguenther@suse.de>
2686 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2687 FOR_EACH_PHI_OR_STMT_USE.
2689 2011-06-10 Jan Hubicka <jh@suse.cz>
2691 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2692 (clone_inlined_nodes): ... here.
2693 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2694 to real destination prior inlining.
2695 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2696 can_early_inline_edge_p, want_early_inline_function_p,
2697 want_early_inline_function_p, want_inline_small_function_p,
2698 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2699 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2700 add_new_edges_to_heap, inline_small_functions, flatten_function,
2701 inline_always_inline_functions, early_inline_small_functions): Use
2702 cgraph_function_or_thunk_node.
2703 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2704 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2705 (do_estimate_edge_growth_1): Break out from ...
2706 (do_estimate_growth) ... here; walk aliases.
2707 (inline_generate_summary): Skip aliases.
2709 2011-06-10 Richard Guenther <rguenther@suse.de>
2711 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2712 forward when combining, visit inserted stmts when a stmt was changed.
2714 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2716 * tree.h (error_operand_p): Add.
2717 * dbxout.c (dbxout_type_fields): Use the latter.
2718 * c-decl.c (add_stmt): Likewise.
2719 * gimplify.c (omp_add_variable, omp_notice_variable,
2720 gimplify_scan_omp_clauses): Likewise.
2722 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2724 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2725 when a value is actually passed in regs.
2727 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2728 Laurent Rougé <laurent.rouge@menta.fr>
2730 * doc/invoke.texi (SPARC options): Add -mflat.
2731 * config/sparc/sparc.opt: Likewise.
2732 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2733 (sparc_flat_expand_prologue): Declare.
2734 (sparc_flat_expand_epilogue): Likewise.
2735 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2736 (CPP_ENDIAN_SPEC): Replace with...
2737 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2738 (CPP_SPEC): Adjust to above change.
2739 (EXTRA_SPECS): Likewise.
2740 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2741 (INCOMING_REGNO): Likewise.
2742 (OUTGOING_REGNO): Likewise.
2743 (LOCAL_REGNO): Likewise.
2744 (SETUP_FRAME_ADDRESSES): Likewise.
2745 (FIXED_REGISTERS): Set 0 for %fp.
2746 (CALL_USED_REGISTERS): Likewise.
2747 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2748 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2749 (RETURN_ADDR_REGNUM): Define.
2750 (RETURN_ADDR_RTX): Use it.
2751 (INCOMING_RETURN_ADDR_REGNUM): Define.
2752 (INCOMING_RETURN_ADDR_RTX): Use it.
2753 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2754 (EH_RETURN_REGNUM): Define.
2755 (EH_RETURN_STACKADJ_RTX): Use it.
2756 (EH_RETURN_HANDLER_RTX): Delete.
2757 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2758 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2760 (struct machine_function): Add frame_size, apparent_frame_size,
2761 frame_base_reg, frame_base_offset, n_global_fp_regs and
2762 save_local_in_regs_p fields.
2763 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2764 sparc_frame_base_offset, sparc_n_global_fp_regs,
2765 sparc_save_local_in_regs_p): New macros.
2766 (sparc_option_override): Error out if -fcall-saved-REG is specified
2768 (eligible_for_restore_insn): Fix formatting.
2769 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2770 (eligible_for_sibcall_delay): Likewise.
2771 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2772 (sparc_legitimate_address_p): Adjust to above change.
2773 (save_global_or_fp_reg_p): New predicate.
2774 (return_addr_reg_needed_p): Likewise.
2775 (save_local_or_in_reg_p): Likewise.
2776 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2777 (SORR_SAVE, SORR_RESTORE): Delete.
2778 (sorr_pred_t): New typedef.
2779 (sorr_act_t): New enum.
2780 (save_or_restore_regs): Rename to...
2781 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2782 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2783 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2784 mechanism. Add CFI information for double-word saves in 32-bit mode.
2785 (emit_adjust_base_to_offset): New function extracted from...
2786 (emit_save_or_restore_regs): ...this. Rename the rest to...
2787 (emit_save_or_restore_regs_global_fp_regs): ...this.
2788 (emit_save_or_restore_regs_local_in_regs): New function.
2789 (gen_create_flat_frame_[123]): New functions.
2790 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2791 (sparc_flat_expand_prologue): New function.
2792 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2793 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2794 (sparc_flat_expand_epilogue): New function.
2795 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2796 (output_return): Likewise.
2797 (output_sibcall): Likewise.
2798 (sparc_output_mi_thunk): Likewise.
2799 (sparc_frame_pointer_required): Likewise.
2800 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2801 function optimization.
2802 * config/sparc/sparc.md (flat): New attribute.
2803 (prologue): Add TARGET_FLAT handling.
2804 (save_register_window): Disable if TARGET_FLAT.
2805 (create_flat_frame_[123]): New patterns.
2806 (epilogue): Add TARGET_FLAT handling.
2807 (sibcall_epilogue): Likewise.
2808 (eh_return): New expander.
2809 (eh_return_internal): New insn and splitter.
2810 (return_internal): Add TARGET_FLAT handling.
2811 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2812 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2813 (nonlocal_goto): Add TARGET_FLAT handling.
2814 * config/sparc/t-elf: Add -mflat multilib.
2815 * config/sparc/t-leon: Likewise.
2817 2011-06-10 Jan Hubicka <jh@suse.cz>
2819 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2820 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2821 (self_recursive_p): Use cgraph_function_node.
2822 (propagate_pure_const): Likewise.
2823 (propagate_nothrow): Likewise.
2824 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2825 cgraph_function_node.
2826 (propagate_bits): Likewise.
2827 (propagate): Likewise.
2829 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2830 Richard Earnshaw <rearnsha@arm.com>
2832 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2833 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2834 (*thumb2_movdi_vfp): Delete.
2835 (*arm_movdi_vfp_cortexa8): Delete.
2836 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2837 (*movdi_vfp_cortexa8): Likewise.
2839 2011-06-10 Richard Guenther <rguenther@suse.de>
2841 * stor-layout.c (initialize_sizetypes): Give names to all
2844 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2846 PR tree-optimization/49318
2847 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2848 irrelevant pattern statements.
2850 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2852 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2855 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2858 2011-06-09 Jan Hubicka <jh@suse.cz>
2860 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2861 do not recompute reachable flag.
2862 (cgraph_finalize_function, cgraph_analyze_functions): Set
2863 redefined_extern_inline here.
2865 2011-06-09 Jan Hubicka <jh@suse.cz>
2867 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2868 (cgraph_only_called_directly_p): ... this one; bring offline.
2869 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2870 varpool_used_from_object_file_p): Drop names from the declaratoin.
2871 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2872 collect_callers_of_node): New.
2873 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2874 (cgraph_edge_recursive_p): Use cgraph_function_node.
2875 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2876 (cgraph_node_cannot_be_local_p_1): Break out from ...
2877 (cgraph_node_can_be_local_p): ... here; walk aliases.
2878 (cgraph_for_node_thunks_and_aliases): New function.
2879 (cgraph_for_node_and_aliases): New function.
2880 (cgraph_make_node_local_1): Break out from ...
2881 (cgraph_make_node_local) ... here; use
2882 cgraph_for_node_thunks_and_aliases.
2883 (cgraph_set_nothrow_flag_1): Break out from ...
2884 (cgraph_set_nothrow_flag) ... here;
2885 use cgraph_for_node_thunks_and_aliases.
2886 (cgraph_set_const_flag_1): Break out from ...
2887 (cgraph_set_const_flag) ... here;
2888 use cgraph_for_node_thunks_and_aliases.
2889 (cgraph_set_pure_flag_1): Break out from ...
2890 (cgraph_set_pure_flag) ... here;
2891 use cgraph_for_node_thunks_and_aliases.
2892 (cgraph_propagate_frequency_1): Break out from ...
2893 (cgraph_propagate_frequency) ... here; use
2894 cgraph_for_node_thunks_and_aliases.
2895 (cgraph_used_from_object_file_p): Do not care about aliases.
2896 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2898 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2900 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2902 PR rtl-optimization/49154
2903 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2904 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2905 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2906 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2907 * config/cris/cris.h (cris_register_move_cost): Remove
2908 !TARGET_V32 code. Tweak comments.
2910 2011-06-09 Jan Hubicka <jh@suse.cz>
2912 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2915 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2917 PR rtl-optimization/49154
2918 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2919 is a matching slot in the hashtable, assign it to classes_ptr.
2921 PR rtl-optimization/49154
2922 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2924 * doc/tm.texi: Regenerate.
2926 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2929 * config/sh/sh.md (UNSPEC_CHKADD): New.
2930 (chk_guard_add): New define_insn_and_split.
2931 (symGOT_load): Use chk_guard_add instead of blockage.
2933 2011-06-09 Kai Tietz <ktietz@redhat.com>
2935 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2937 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2939 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2941 2011-06-09 Wei Guozhi <carrot@google.com>
2944 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2945 (peephole2 for conditional move): Generate 16 bit instructions.
2947 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2949 * config/i386/i386.md (*movdi_internal_rex64): Merge
2950 alternatives 6 and 8.
2952 2011-06-09 David Li <davidxl@google.com>
2954 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2955 * passes.c (passr_eq): New function.
2956 (create_pass_tab): New function.
2957 (pass_traverse): New function.
2958 (dump_one_pass): New function.
2959 (dump_pass_list): New function.
2960 (dump_passes): New function.
2962 2011-06-09 David Li <davidxl@google.com>
2964 * tree-complex.c (tree_lower_complex): Gate cleanup.
2965 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2966 (execute_optimize_stdarg): Ditto.
2967 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2968 (execute_cleanup_eh_1): Ditto.
2969 (execute_cleanup_eh): Ditto.
2970 * gcse.c (gate_rtl_pre): Ditto.
2971 (execute_rtl_pre): Ditto.
2972 * except.c (finish_eh_generation): Ditto.
2973 (convert_to_eh_region_ranges): Ditto.
2974 * cprop.c (one_cprop_pass): Ditto.
2976 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2979 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2980 in all basic blocks.
2982 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2984 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2985 (HAVE_ENABLE_EXECUTE_STACK): Define.
2986 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2987 (HAVE_ENABLE_EXECUTE_STACK): Define.
2988 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2989 (HAVE_ENABLE_EXECUTE_STACK): Define.
2990 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2991 (ENABLE_EXECUTE_STACK): Remove.
2992 (HAVE_ENABLE_EXECUTE_STACK): Define.
2993 [IN_LIBGCC2]: Don't include <windows.h>.
2994 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2995 (HAVE_ENABLE_EXECUTE_STACK): Define.
2996 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2997 (HAVE_ENABLE_EXECUTE_STACK): Define.
2998 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2999 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3000 (HAVE_ENABLE_EXECUTE_STACK): Define.
3001 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3002 (HAVE_ENABLE_EXECUTE_STACK): Define.
3003 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3004 (HAVE_ENABLE_EXECUTE_STACK): Define.
3005 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3006 (HAVE_ENABLE_EXECUTE_STACK): Define.
3007 * config/alpha/alpha.c (alpha_trampoline_init): Test
3008 HAVE_ENABLE_EXECUTE_STACK.
3009 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3010 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3011 (sparc64_initialize_trampoline): Likewise.
3012 * libgcc2.c [L_enable_execute_stack]: Remove.
3013 * system.h (ENABLE_EXECUTE_STACK): Poison.
3014 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3015 * doc/tm.texi: Regenerate.
3016 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3018 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3021 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3022 variable. After resetting and rescanning insn continue with previous
3025 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3027 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3028 (gcc_cv_ld_hidden): Likewise.
3029 * configure: Regenerate.
3030 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3031 (ix86_stack_protect_fail): Mark unused.
3032 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3033 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3034 [TARGET_MACHO]: Don't define.
3035 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3036 (TARGET_STACK_PROTECT_FAIL): Likewise.
3037 (rs6000_stack_protect_fail): Mark unused.
3038 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3039 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3041 2011-06-08 Andi Kleen <ak@linux.intel.com>
3043 * varasm.c (get_section): Print location of other conflict
3044 for section conflicts.
3046 2011-06-08 Andi Kleen <ak@linux.intel.com>
3048 * config/i386/driver-i386.c (host_detect_local_cpu):
3049 Add model 0x2d Intel CPU.
3051 2011-06-08 Andi Kleen <ak@linux.intel.com>
3053 * reginfo.c (global_regs_decl): Add.
3054 (globalize_reg): Add decl parameter. Compute location. Pass location
3055 to warnings and add inform. Store decl in global_regs_decl.
3056 * rtl.h (globalize_reg): Update prototype.
3057 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3059 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3061 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3063 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3066 * config/sh/predicates.md (general_movsrc_operand): Check
3067 mode for memory with indexed address for QI and HImode.
3068 (general_movdst_operand): Likewise.
3070 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3072 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3074 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3076 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3077 (num_ssa_operands): Likewise.
3078 (op_iter_init_phiuse): Forward-declare.
3079 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3081 2011-06-08 Nick Clifton <nickc@redhat.com>
3083 * doc/invoke.texi (ARM Options): Update description of
3086 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3088 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3089 unknown Intel family 0x6 CPUs.
3091 2011-06-08 Martin Jambor <mjambor@suse.cz>
3093 * tree-sra.c (mark_rw_status): Removed.
3094 (analyze_access_subtree): New parameter parent instead of
3095 mark_read and mark_write, propagate from that.
3097 2011-06-08 Julian Brown <julian@codesourcery.com>
3099 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3100 for double-precision helper functions in hard-float mode if only
3101 single-precision arithmetic is supported in hardware.
3103 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3105 PR rtl-optimization/49303
3106 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3107 code_motion_path_driver returned 0 or 1.
3108 (sel_region_finish): Clear h_d_i_d.
3110 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3112 * config/sh/sh.c (prepare_move_operands): Set pic register
3113 appropriately for global and local dynamic tls models even
3114 if flag_pic is unset.
3116 2011-06-07 Jason Merrill <jason@redhat.com>
3118 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3120 2011-06-07 Xinliang David Li <davidxl@google.com>
3121 * passes.c (enable_disable_pass): Handle assembler name.
3122 (is_pass_explicitly_enabled_or_disabled): Ditto.
3124 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3126 PR tree-optimization/48497
3127 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3129 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3131 PR tree-optimization/46728
3132 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3133 to use gimple_val_nonnegative_real_p.
3134 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3135 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3137 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3139 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3141 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3143 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3146 2011-06-07 Richard Guenther <rguenther@suse.de>
3148 * stor-layout.c (initialize_sizetypes): Initialize all
3149 sizetypes based on target definitions.
3150 (set_sizetype): Remove.
3151 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3152 * tree.h (set_sizetype): Remove.
3154 2011-06-07 Nick Clifton <nickc@redhat.com>
3156 * config.gcc: Unify V850 architecture options and add support for
3157 newer V850 architectures.
3158 * config/v850/t-v850e: Delete.
3160 2011-06-07 Richard Guenther <rguenther@suse.de>
3162 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3163 Call set_sizetype from here.
3165 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3167 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3168 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3170 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3171 Andrew Stubbs <ams@codesourcery.com>
3173 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3175 * doc/md.texi (Canonicalization of Instructions): Document widening
3176 multiply canonicalization.
3178 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3180 PR gcov-profile/49299
3181 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3183 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3185 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3187 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3188 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3189 vect_recog_pow_pattern): Likewise.
3190 (vect_pattern_recog_1): Remove declaration.
3191 (widened_name_p): Remove declaration. Add new argument to specify
3192 whether to check that both types are either signed or unsigned.
3193 (vect_recog_widen_mult_pattern): Update documentation. Handle
3194 unsigned patterns and multiplication by constants.
3195 (vect_pattern_recog_1): Update vect_recog_func references. Use
3196 statement information from the statement returned from pattern
3197 detection functions.
3198 (vect_pattern_recog): Update vect_recog_func reference.
3199 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3200 multiplication by a constant use the type of the other operand.
3202 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3204 PR rtl-optimization/49145
3205 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3207 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3210 * dwarf2out.c (native_encode_initializer): Decrement count in each
3214 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3218 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3219 if stmt folded into nothing.
3220 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3221 a bb folded into nothing, just update cgraph edges and move to next bb.
3222 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3223 to be NULL. Don't compute count and frequency if new_call is NULL.
3225 2011-06-04 Diego Novillo <dnovillo@google.com>
3227 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3228 (cgraph.o): Likewise.
3229 (cgraphunit.o): Likewise.
3230 * cgraphunit.c: Include lto-streamer.h
3231 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3233 * lto-streamer-in.c (unpack_value_fields): Call
3234 streamer_hooks.unpack_value_fields if set.
3235 (lto_materialize_tree): For unhandled nodes, first try to
3236 call lto_streamer_hooks.alloc_tree, if it exists.
3237 (lto_input_ts_decl_common_tree_pointers): Move reading of
3238 DECL_INITIAL to lto_streamer_read_tree.
3239 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3240 (lto_streamer_read_tree): New.
3241 (lto_reader_init): Rename from lto_init_reader.
3242 Move initialization code to lto/lto.c.
3243 * lto-streamer-out.c (pack_value_fields): Call
3244 streamer_hooks.pack_value_fields if set.
3245 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3246 call streamer_hooks.indexable_with_decls_p before giving up.
3247 (lto_output_ts_decl_common_tree_pointers): Move handling
3248 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3249 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3250 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3251 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3252 (lto_streamer_write_tree): New.
3253 (lto_output): Call lto_streamer_init directly.
3254 (lto_writer_init): Remove.
3255 * lto-streamer.c (streamer_hooks): New.
3256 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3257 instead of lto_preload_common_nodes.
3258 (lto_is_streamable): Move from lto-streamer.h
3259 (lto_streamer_hooks_init): New.
3260 (streamer_hooks): New.
3261 (streamer_hooks_init): New.
3262 * lto-streamer.h (struct output_block): Forward declare.
3263 (struct lto_input_block): Likewise.
3264 (struct data_in): Likewise.
3265 (struct bitpack_d): Likewise.
3266 (struct streamer_hooks): Declare.
3267 (streamer_hooks): Declare.
3268 (lto_streamer_hooks_init): Declare.
3269 (lto_streamer_write_tree): Declare.
3270 (lto_streamer_read_tree): Declare.
3271 (streamer_hooks_init): Declare.
3272 (lto_is_streamable): Move to lto-streamer.c
3274 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3276 * longlong.h (smul_ppmm): The resulting register pair contains the
3277 higher order word first.
3279 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3281 PR tree-optimization/46728
3282 * builtins.c (powi_table): Remove.
3283 (powi_lookup_cost): Remove.
3284 (powi_cost): Remove.
3285 (expand_powi_1): Remove.
3286 (expand_powi): Remove.
3287 (expand_builtin_pow_root): Remove.
3288 (expand_builtin_pow): Remove.
3289 (expand_builtin_powi): Eliminate handling of constant exponent.
3290 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3292 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3294 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3296 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3298 * dce.c (reset_unmarked_insns_debug_uses): New.
3299 (delete_unmarked_insns): Skip debug insns.
3300 (prescan_insns_for_dce): Likewise.
3301 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3302 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3303 active reg can be found.
3304 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3305 (convert_regs_1): Use it.
3307 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3309 * tree-pretty-print.c (dump_function_header): Add flags.
3310 Don't dump decl_uid with nouid.
3311 * tree-pretty-print.h (dump_function_header): Adjust.
3312 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3313 * passes.c (pass_init_dump_file): Pass dump_flags on.
3314 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3316 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3319 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3321 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3323 PR tree-optimization/49243
3324 * calls.c (setjmp_call_p): Also check if fndecl has the
3325 returns_twice attribute.
3327 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3329 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3332 2011-06-06 Richard Henderson <rth@redhat.com>
3333 Georg-Johann Lay <avr@gjlay.de>
3336 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3338 * config/avr/avr.md ("insv"): New insn expander.
3339 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3340 "*insv.not.io", "*insv.reg"): New insns.
3342 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3345 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3346 to nonimmediate_operand from memory_operand for the operand that is to
3347 be forced to memory by the expander. Lose the constraints.
3349 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3351 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3352 EH return when delayed branches are disabled.
3354 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3356 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3357 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3359 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3360 Simplify MODE_V1DF and MODE_V2SF handling.
3361 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3362 Simplify MODE_SF handling.
3364 2011-06-04 Jan Hubicka <jh@suse.cz>
3366 PR tree-optimization/48893
3367 PR tree-optimization/49091
3368 PR tree-optimization/49179
3369 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3372 2011-06-04 Jan Hubicka <jh@suse.cz>
3375 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3378 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3380 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3382 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3385 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3386 to be strictly smaller than 1 << shiftcount.
3388 2011-06-04 Jan Hubicka <jh@suse.cz>
3390 PR tree-optimize/48929
3391 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3394 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3397 * calls.c (emit_call_1): Prefer the __builtin declaration of
3400 2011-06-03 Diego Novillo <dnovillo@google.com>
3402 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3403 (lto_input_tree_pointers): Likewise.
3404 * lto-streamer-out.c (pack_value_fields): Likewise.
3405 (lto_output_tree_pointers): Likewise.
3406 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3407 and OPTIMIZATION_NODE.
3409 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3411 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3412 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3413 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3414 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3415 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3416 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3417 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3418 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3419 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3420 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3421 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3422 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3423 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3424 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3425 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3426 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3427 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3428 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3429 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3430 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3431 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3432 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3433 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3434 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3435 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3436 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3437 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3438 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3439 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3440 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3441 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3442 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3443 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3444 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3445 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3446 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3447 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3448 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3449 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3450 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3451 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3452 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3453 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3454 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3455 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3456 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3457 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3458 * system.h (MD_UNWIND_SUPPORT): Poison.
3459 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3460 * doc/tm.texi: Regenerate.
3461 * unwind-dw2.c: Include md-unwind-support.h instead of
3463 * config/ia64/unwind-ia64.c: Likewise.
3464 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3466 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3468 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3470 2011-06-03 Richard Henderson <rth@redhat.com>
3471 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3473 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3474 (sigill_hdlr): Correct insn, insn size.
3475 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3477 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3479 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3481 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3482 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3483 * config/mips/t-iris: Remove.
3484 * config/mips/t-irix6: New file.
3485 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3487 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3489 * Makefile.in (LIB2ADDEHDEP): Remove.
3490 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3491 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3492 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3493 * config/t-darwin (LIB2ADDEHDEP): Remove.
3494 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3495 * config/t-linux (LIB2ADDEHDEP): Remove.
3497 2011-06-03 Diego Novillo <dnovillo@google.com>
3499 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3500 (lto_register_var_decl_in_symtab): Likewise.
3501 (lto_register_function_decl_in_symtab): Likewise.
3502 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3503 logic to uniquify_nodes.
3505 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3507 * config/alpha/t-osf5: Remove.
3508 * config/alpha/t-osf-pthread: Remove.
3509 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3510 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3512 2011-06-03 Julian Brown <julian@codesourcery.com>
3514 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3515 (strongarm1110): Use strongarm tuning.
3516 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3517 * config/arm/arm.c (arm_strongarm_tune): New.
3518 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3519 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3520 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3521 setting, using previous defaults or 1 for Cortex-A5.
3522 (arm_option_override): Set max_insns_skipped from current tuning.
3524 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3526 * doc/install.texi (Options specification): Document --with-specs.
3528 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3530 * config/arm/neon.md (orndi3_neon): Actually split it.
3532 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3534 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3535 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3537 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3540 * target.def (delay_sched2, delay_vartrack): New.
3541 * doc/tm.texi.in: Update.
3542 * doc/tm.texi: Rebuild.
3543 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3544 * var-tracking.c (gate_handle_var_tracking): Likewise.
3545 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3546 (bfin_flag_var_tracking): Drop.
3547 (output_file_start): Don't save and override flag_var_tracking.
3548 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3549 (bfin_reorg): Test original variables.
3550 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3551 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3552 (ia64_flag_var_tracking): Drop.
3553 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3554 (ia64_file_start): Don't save and override flag_var_tracking.
3555 (ia64_override_options_after_change): Ditto
3556 flag_schedule_insns_after_reload.
3557 (ia64_reorg): Test original variables.
3558 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3559 (picochip_flag_var_tracking): Drop.
3560 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3561 (picochip_option_override): Don't save and override
3562 flag_schedule_insns_after_reload.
3563 (picochip_asm_file_start): Ditto flag_var_tracking.
3564 (picochip_reorg): Test original variables.
3565 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3566 (TARGET_DELAY_VARTRACK): Define.
3567 (spu_var_tracking): New.
3568 (spu_machine_dependent_reorg): Call it.
3569 (asm_file_start): Don't save and override flag_var_tracking.
3571 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3574 * config/sh/predicates.md (general_movsrc_operand): Return 0
3575 for memory and memory subreg of which address is an invalid
3576 indexed address for QI and HImode.
3577 (general_movdst_operand): Likewise.
3579 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3581 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3582 edges only, when there is a non-local label in the function.
3583 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3585 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3587 * config/i386/constraints.md (Y3): New register constraint.
3588 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3589 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3590 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3591 *sse2_interleave_lowv2df.
3593 2011-06-02 Julian Brown <julian@codesourcery.com>
3595 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3596 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3597 (arm_cortex_a5_tune): New.
3599 2011-06-02 Julian Brown <julian@codesourcery.com>
3601 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3602 * config/arm/arm.c (arm_default_branch_cost): New.
3603 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3604 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3605 (arm_fa726_tune): Set branch_cost field using
3606 arm_default_branch_cost.
3607 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3608 current_tune structure.
3609 * dojump.c (tm_p.h): Include file.
3611 2011-06-02 Julian Brown <julian@codesourcery.com>
3613 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3615 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3616 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3617 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3619 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3620 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3621 (arm_fa726te_tune): Add prefer_constant_pool setting.
3622 (arm_v6t2_tune, arm_cortex_tune): New.
3623 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3624 prefer_constant_pool setting.
3626 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3628 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3630 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3631 (*movdf_internal) <case 6,7,8>: Ditto.
3633 * config/i386/constraints.md (Y4): New register constraint.
3634 * config/i386/sse.md (vec_set<mode>_0): Merge with
3635 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3636 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3637 *vec_extractv2di_1_sse.
3638 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3639 and *vec_concatv2di_rex64_sse.
3641 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3644 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3645 of cgraph_local_info for null before attempting to use it.
3647 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3649 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3650 (current_function_dynamic_alloc_count): Delete.
3651 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3652 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3653 (expand_builtin_update_setjmp_buf): Remove dead code.
3654 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3655 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3657 * function.c (instantiate_virtual_regs): Likewise.
3658 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3659 for a block with a single abnormal incoming edge.
3660 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3661 (SETJMP_VIA_SAVE_AREA): Delete.
3662 * config/sparc/sparc-protos.h (load_got_register): Declare.
3663 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3664 (load_got_register): Make global.
3665 (sparc_frame_pointer_required): Add 'static'.
3666 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3667 (sparc_builtin_setjmp_frame_value): New function.
3668 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3669 (save_stack_nonlocal): New expander.
3670 (restore_stack_nonlocal): Likewise.
3671 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3672 (nonlocal_goto_internal): New insn.
3673 (goto_handler_and_restore): Delete.
3674 (builtin_setjmp_setup): Likewise.
3675 (do_builtin_setjmp_setup): Likewise.
3677 (builtin_setjmp_receiver): New expander.
3679 2011-06-01 David Li <davidxl@google.com>
3682 * tree-pretty-print.c (dump_function_header): Format cleanup.
3684 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3687 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3688 needed when original operands are used for msw_skip comparison.
3690 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3693 * var-tracking.c (add_uses, add_stores): Don't call
3694 cselib_subst_to_values on ENTRY_VALUE.
3696 2011-06-01 Diego Novillo <dnovillo@google.com>
3698 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3699 output_record_start with LTO_null instead of output_zero.
3700 (lto_output_ts_binfo_tree_pointers): Likewise.
3701 (lto_output_tree): Likewise.
3702 (output_eh_try_list): Likewise.
3703 (output_eh_region): Likewise.
3704 (output_eh_lp): Likewise.
3705 (output_eh_regions): Likewise.
3706 (output_bb): Likewise.
3707 (output_function): Likewise.
3708 (output_unreferenced_globals): Likewise.
3709 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3710 instead of NUM_TREE_CODES.
3711 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3712 (lto_output_int_in_range): Change << to >> when shifting VAL.
3714 2011-06-01 Diego Novillo <dnovillo@google.com>
3716 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3717 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3719 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3722 * optabs.h (valid_multiword_target_p): Declare.
3723 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3724 doing multi-word operations.
3725 * optabs.c (expand_binop): Likewise.
3726 (expand_doubleword_bswap): Likewise.
3727 (expand_absneg_bit): Likewise.
3728 (expand_unop): Likewise.
3729 (expand_copysign_bit): Likewise.
3730 (multiword_target_p): New function.
3732 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3734 PR rtl-optimization/48830
3735 PR rtl-optimization/48808
3736 PR rtl-optimization/48792
3737 * reload.c (push_reload): Check contains_reg_of_mode.
3738 * reload1.c (strip_paradoxical_subreg): New function.
3739 (gen_reload_chain_without_interm_reg_p): Use it to handle
3740 paradoxical subregs.
3741 (emit_output_reload_insns, gen_reload): Likewise.
3743 2011-06-01 David Li <davidxl@google.com>
3745 * predict.c : Change pass name
3748 * tree-profile.c: Ditto.
3751 2011-06-01 David Li <davidxl@google.com>
3753 * tree-pretty-print.c (dump_function_header): New function.
3754 * final.c (rest_of_clean_state): Use header dumper.
3755 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3756 * passes.c (pass_init_dump_file): Use header dumper.
3758 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3760 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3761 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3762 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3764 (mem_loc_descriptor): Use them.
3766 * var-tracking.c (create_entry_value): New function.
3767 (vt_add_function_parameter): Use it.
3769 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3771 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3772 Include <signal.h>, <ucontext.h>.
3773 (sigill_caught): Define.
3774 (sigill_hdlr): New function.
3775 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3776 insns can be executed.
3777 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3778 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3780 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3782 * config/t-slibgcc-darwin: Move to ...
3783 * config/t-slibgcc-dummy: ... this. Clarify comments.
3784 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3785 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3786 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3787 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3788 Remove i386/t-crtstuff from tmake_file.
3789 (i[34567]86-*-solaris2*): Remove t-svr4,
3790 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3792 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3793 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3794 sparc/t-crtfm from tmake_file.
3795 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3796 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3798 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3799 * config/i386/t-nwld (SHLIB_LINK): Remove.
3800 * config/i386/t-rtems-i386: Rename to ...
3801 * config/i386/t-rtems: ... this.
3802 ($(T)crti.o, $(T)crtn.o): Remove.
3803 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3804 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3805 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3806 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3807 EXTRA_MULTILIB_PARTS): Remove.
3808 * config/sparc/t-sol2-64: Likewise.
3809 * config/sparc/t-sol2: Remove.
3810 * config/sparc/t-crtin: Remove.
3811 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3812 * config/i386/gmon-sol2.c: Remove.
3813 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3814 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3815 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3816 * config/i386/sol2-gc1.asm: Remove.
3817 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3818 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3819 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3820 * config/t-slibgcc-sld: Remove.
3822 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3824 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3825 base_type_for_mode with op_mode instead of mode.
3827 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3829 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3831 * config/arm/arm-tune.md: Regenerate.
3832 * config/arm/arm-tables.opt: Regenerate.
3833 * config/arm/arm.c (FL_DIV): Rename...
3834 (FL_THUMB_DIV): ... to this.
3835 (FL_ARM_DIV): Define.
3836 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3837 (arm_arch_hwdiv): Remove.
3838 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3839 (arm_issue_rate): Add cortexr5.
3840 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3841 __ARM_ARCH_EXT_IDIV__.
3842 (TARGET_IDIV): Define.
3843 (arm_arch_hwdiv): Remove.
3844 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3845 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3846 (divsi3, udivsi3): New patterns.
3847 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3848 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3850 2011-06-01 Martin Jambor <mjambor@suse.cz>
3852 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3853 * ipa-utils.c (searchc): Set scc_no.
3855 2011-06-01 Martin Jambor <mjambor@suse.cz>
3857 * ipa-utils.c (searchc_env): New field allow_overwritable.
3858 (searchc): do not ignore edges to overwritable nodes if indicated
3859 by env->allow_overwritable.
3860 (ipa_reduced_postorder): Set env.allow_overwritable.
3862 2011-06-01 Richard Guenther <rguenther@suse.de>
3864 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3866 * lto-streamer.c (lto_record_common_node): Take node pointer,
3867 do not register types.
3868 (lto_preload_common_nodes): Explicitly skip preloading nodes
3869 that differ between frontends.
3871 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3873 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3876 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3878 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3879 parameter value for dump. Dump cost on outermost call only.
3880 (rs6000_memory_move_cost): Dump cost on outermost call only.
3882 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3884 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3885 DW_OP_GNU_convert ops.
3887 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3888 cselib_preserve_constants.
3889 (cselib_lookup_1): If cselib_preserve_constants,
3890 a new VALUE is being created for REG and there is a VALUE for the
3891 same register in wider mode, add another loc with lowpart SUBREG of
3893 (cselib_subst_to_values): Handle ENTRY_VALUE.
3894 * var-tracking.c (replace_expr_with_values): Return NULL for
3896 * dwarf2out.c (convert_descriptor_to_signed): New function.
3897 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3898 instead of two shifts.
3899 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3900 the right mode if needed.
3901 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3902 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3903 convert_descriptor_to_signed.
3904 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3905 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3908 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3910 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3912 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3913 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3914 (SWI248x): New mode iterator, rename from X87MODEI.
3915 (X87MODEI): Remove mode iterator.
3916 (X87MODEI12): Ditto.
3917 (SSEMODEI24): Ditto.
3919 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3921 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3922 * doc/invoke.texi: Document max-vartrack-expr-depth.
3923 * var-tracking.c (EXPR_DEPTH): New.
3924 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3926 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3928 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3929 * config/i386/sse.md: Add n to negated FMA pattern names.
3931 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3933 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3935 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3937 * gengtype-state.c (read_state_params_structs): Initialize previous.
3939 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3941 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3942 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3944 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3946 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3947 registers. Penalize F*r->o alternative to prevent partial memory
3948 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3949 CONST_DOUBLE immediates when optimizing function for size. Do not move
3950 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3951 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3952 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3953 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3955 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3957 (fp_register_operand splitters): Use fp_register_operand
3958 constraint. Do not use FP_REG_P in insn condition.
3959 (any_fp_register_operand splitters): Use any_fp_register_operand
3960 constraint. Do not use ANY_FP_REG_P in insn condition.
3962 2011-05-31 Jan Hubicka <jh@suse.cz>
3964 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3965 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3966 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3967 (lto_output_edge): Use output_enum and var_len_unsigned.
3968 (lto_output_varpool_node): Likewise.
3969 (input_overwrite_node): Do not take resolution parameter;
3970 extract it from a bitpack.
3971 (input_node): Do not read resolution; use input_enum and
3973 (input_varpool_node): Likewise.
3974 (input_edge): Likewise.
3975 (input_cgraph_1): Likewise.
3977 2011-05-31 Richard Guenther <rguenther@suse.de>
3979 * gimple.c (gimple_register_canonical_type): Do not register
3980 any types via gimple_register_type.
3982 2011-05-31 Jan Hubicka <jh@suse.cz>
3984 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3987 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3989 PR rtl-optimization/49235
3990 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3991 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3993 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3995 PR tree-optimization/49093
3996 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3999 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4002 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4003 for concrete functions containing the code of cloned functions.
4005 2011-05-31 Richard Guenther <rguenther@suse.de>
4007 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4009 (forward_propagate_into_comparison_1): ... this.
4010 (forward_propagate_comparison): Rename to ...
4011 (forward_propagate_into_comparison): ... this. Split out
4012 real forward propagation code to ...
4013 (forward_propagate_comparison): ... this.
4014 (forward_propagate_into_gimple_cond): Remove looping.
4015 (forward_propagate_into_cond): Likewise.
4016 (simplify_not_neg_expr): Return whether we have done something.
4017 (simplify_gimple_switch): Likewise.
4018 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4019 (ssa_forward_propagate_and_combine): ... this. Re-structure
4020 to do a forward forward-propagation walk on BBs and a backward
4021 stmt combining walk on BBs. Consistently re-scan changed statements.
4022 (pass_forwprop): Adjust.
4024 2011-05-30 Ian Lance Taylor <iant@google.com>
4026 * godump.c (go_format_type): Correct length of name added to
4027 obstack for anonymous field.
4029 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4032 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4033 part of the second operand is 0.
4035 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4037 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4038 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4039 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4040 (*movdf_internal_rex64): Do not penalize F->r alternative.
4041 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4042 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4043 when optimizing function for size. Do not move CONST_DOUBLEs
4044 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4045 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4046 SUBREGs. Do not check for MEM_P operands in the insn condition,
4047 check for ANY_FP_REGNO_P instead.
4048 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4049 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4051 * config/i386/i386.c (ix86_option_override_internal): Do not
4052 set TARGET_INTEGER_DFMODE_MOVES here.
4054 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4057 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4059 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4061 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4062 DW_TAG_rvalue_reference_type even for
4063 -gdwarf-4 -fno-debug-types-section.
4065 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4067 PR tree-optimization/46728
4068 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4069 (build_and_insert_binop): New.
4070 (gimple_expand_builtin_pow): Reorder args for
4071 build_and_insert_call; use build_and_insert_binop; add more
4072 optimizations for fractional exponents.
4074 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4079 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4081 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4083 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4084 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4085 TS_BASE instead of TS_COMMON.
4086 * varasm.c (assemble_name): Remove assert.
4088 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4090 * config.gcc: Keep obselete list sorted.
4092 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4093 Eric Botcazou <ebotcazou@adacore.com>
4095 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4096 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4097 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4098 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4099 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4101 2011-05-30 Richard Guenther <rguenther@suse.de>
4103 * gimple.c (gimple_types_compatible_p_1): Compare record
4104 and union type members properly.
4106 2011-05-30 Richard Guenther <rguenther@suse.de>
4108 PR tree-optimization/49210
4109 * ipa-split.c (split_function): Care for the case where the call
4110 result is not trivially convertible to the result holding variable.
4112 2011-05-30 Richard Guenther <rguenther@suse.de>
4114 PR tree-optimization/49218
4115 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4118 2011-05-30 Richard Guenther <rguenther@suse.de>
4120 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4121 New function split out from ...
4122 (forward_propagate_into_gimple_cond): ... here. Adjust.
4123 (forward_propagate_into_cond): Likewise.
4124 (forward_propagate_comparison): Also propagate into
4125 comparisons on assignment RHS. Change return value to
4126 behave similar to forward_propagate_into_cond.
4127 (tree_ssa_forward_propagate_single_use_vars): Handle
4128 strict-overflow warnings properly for forward_propagate_comparison.
4130 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4132 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4134 * configure: Regenerate.
4136 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4138 PR tree-optimization/49199
4139 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4140 non-reduction operands are either defined in the loop or by induction.
4142 2011-05-29 Xinliang David Li <davidxl@google.com>
4144 * opts-global.c (handle_common_deferred_options): Handle new options.
4145 * passes.c (register_one_dump_file): Call register_pass_name.
4146 (execute_one_pass): Check explicit enable/disable flag.
4147 (passr_hash): New function.
4149 (register_pass_name): Ditto.
4150 (get_pass_by_name): Ditto.
4153 (enable_pass): Ditto.
4154 (disable_pass): Ditto.
4155 (is_pass_explicitly_enabled_or_disabled): Ditto.
4157 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4159 * config/i386/i386.md (*movoi_internal_avx): Use
4160 standard_sse_constant_opcode for alternative 0.
4161 (*movti_internal_sse): Ditto.
4162 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4164 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4166 (*movsi_internal): Ditto.
4167 (*movdi_internal): Ditto. Add ssecvt type moves.
4169 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4172 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4174 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4176 PR rtl-optimization/49095
4177 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4178 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4180 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4183 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4184 recurse_p argument. Only follow register copies if it is set,
4185 and prevent mips_find_pic_call_symbol from recursing.
4186 (mips_find_pic_call_symbol): Add a recurse_p argument.
4187 Pass it to mips_pic_call_symbol_from_set.
4188 (mips_annotate_pic_calls): Update accordingly.
4190 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4192 * emit-rtl.c (try_split): Use a loop to search for
4193 NOTE_INSN_CALL_ARG_LOCATIONs.
4195 2011-05-29 Richard Guenther <rguenther@suse.de>
4197 PR tree-optimization/49217
4198 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4200 2011-05-28 Jan Hubicka <jh@suse.cz>
4202 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4204 (string_slot_free): Remove
4205 (create_output_block): Initialize obstack.
4206 (destroy_output_block): Free obstack.
4207 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4208 the string unless it needs to be added into the hash.
4209 (lto_output_string_with_length): Add persistent attribute;
4210 handle NULL strings.
4211 (lto_output_string): Add PERSISTENT parameter.
4212 (output_string_cst, output_identifier): Simplify.
4213 (lto_output_location_bitpack): Update.
4214 (lto_output_builtin_tree): Update.
4215 * lto-streamer.h (struct output_block): Add obstack.
4216 (lto_output_string, lto_output_string_with_length): Remove
4217 declarations; functions are static now.
4219 2011-05-28 Jan Hubicka <jh@suse.cz>
4221 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4222 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4223 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4224 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4225 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4226 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4227 unpack_ts_decl_with_vis_value_fields,
4228 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4229 lto_get_builtin_tree): Use enum and variable length i/o.
4230 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4231 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4233 (bp_pack_enum, bp_unpack_enum): New macros.
4235 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4237 * genrecog.c: Remove redundant forward declarations.
4239 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4241 * config.gcc: Deprecate mips*-*-openbsd*.
4243 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4246 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4249 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4252 * gengtype.c (vec_prefix_type): New function.
4253 (note_def_vec): Use vec_prefix_type and change the length
4254 attribute to be based on the prefix.
4255 * vec.c: Include coretypes.h before vec.h.
4256 (struct vec_prefix): Remove.
4257 (vec_gc_p_reserve): Change the offsetof to sizeof.
4258 (vec_gc_p_reserve_exact): Likewise.
4259 (vec_heap_p_reserve): Likewise.
4260 (vec_heap_p_reserve_exact): Likewise.
4261 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4262 (vec_stack_p_reserve): Change the offsetof to sizeof.
4263 (vec_stack_p_reserve_exact): Likewise.
4264 * vec.h (struct vec_prefix): New struct definition.
4265 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4266 (VEC_T_GTY(T,B)): Likewise.
4267 (DEF_VEC_FUNC_P(T)): Use prefix field.
4268 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4269 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4271 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4273 PR tree-optimization/46728
4274 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4275 (powi_as_mults): Add gimple_set_location.
4276 (build_and_insert_call): New.
4277 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4278 0.5, 0.25, 0.75, 1./3., or 1./6.
4280 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4282 * doc/contrib.texi: Update copyright years.
4283 (Contributors): Add Zdenek Sojka.
4285 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4287 * c-decl.c (c_push_function_context): Copy the current statement
4289 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4290 (finish_struct): Call building_stmt_list_p instead of checking
4292 * c-parser.c (c_parser_postfix_expression): Likewise.
4293 * c-typeck.c (c_end_compound_stmt): Likewise.
4294 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4295 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4296 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4297 (free_stmt_list): Likewise.
4298 * tree.h (struct tree_statement_list): Include typed_tree instead
4300 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4301 as TS_TYPED instead of TS_COMMON.
4303 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4304 Uros Bizjak <ubizjak@gmail.com>
4306 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4307 (HAVE_AS_IX86_TLSGDPTL): Define.
4308 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4309 (HAVE_AS_IX86_TLSLDMPLT): Define.
4310 * configure: Regenerate.
4311 * config.in: Regenerate.
4312 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4313 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4314 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4315 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4316 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4318 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4320 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4322 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4324 (INSN_COND, INSN_REVERSE_COND): New macros.
4325 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4327 (sched_get_condition_with_rev): Cache the results, and look them up
4329 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4330 are clobbered by the current insn.
4331 * target.def (exposed_pipline): New sched data hook.
4332 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4333 * doc/tm.texi: Regenerate.
4335 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4337 PR tree-optimization/49170
4338 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4341 2011-05-27 Richard Guenther <rguenther@suse.de>
4344 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4347 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4349 * haifa-sched.c (sched_scan_info): Remove.
4350 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4352 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4354 (sched_scan): Remove.
4355 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4356 static. All callers changed.
4357 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4358 static. All callers changed.
4359 (sched_init_luids): Remove all arguments except the first. All
4360 callers changed. Don't use sched_scan.
4361 (haifa_init_h_i_d): Likewise.
4362 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4363 manually rather than using sched_init_luids. Likewise with
4364 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4365 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4366 rather than sched_init_luids with NULL args.
4367 * sel-sched-ir.c (new_insns): Remove variable.
4368 (sched_scan): New static function, previously in haifa-sched.c. Remove
4369 all arguments but the first two; all callers changed.
4370 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4371 rather than sched_init_luids.
4372 (sel_init_bbs): Remove second argument. All callers changed.
4373 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4374 with NULL arguments.
4375 (create_insn_rtx_from_pattern): Likewise.
4376 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4377 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4378 (sched_init_insn_luid, sched_extend_luids): Declare.
4379 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4382 2011-05-27 Richard Guenther <rguenther@suse.de>
4385 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4386 A CMP B ? (T) true : (T) false for non-integral types T again.
4388 2011-05-27 Jan Hubicka <jh@suse.cz>
4390 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4391 so 0 means NULL string.
4392 (lto_output_string_with_length): ... here.
4393 (lto_output_string, output_string_cst, output_identifier): Update
4394 handling of NULL strings.
4395 (lto_output_location_bitpack): New function.
4396 (lto_output_location): Use it.
4397 (lto_output_tree_ref): Use output_record_start.
4398 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4400 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4402 (input_string_internal): ... here;
4403 (input_string_cst, input_identifier, lto_input_string): Update handling
4405 (lto_input_location_bitpack): New function
4406 (lto_input_location): Use it.
4407 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4409 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4410 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4411 (bp_pack_value): Sanity check the value range.
4412 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4414 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4417 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4419 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4420 call_arg_location instructions down the floor.
4422 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4424 PR rtl-optimization/49154
4425 * ira.c (setup_pressure_classes): Process class without sublcasses
4426 as a candidate for pressure classes.
4428 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4430 PR rtl-optimization/48575
4431 * genrecog.c (position_type): New enum.
4432 (position): New structure.
4433 (decision): Use position structure instead of a string.
4434 (root_pos, peep2_insn_pos_list): New variables.
4435 (next_position, compare_positions): New functions.
4436 (new_decision): Use position structures instead of strings.
4437 (maybe_both_true): Likewise.
4438 (change_state): Likewise.
4439 (write_tree): Likewise.
4440 (make_insn_sequence): Likewise.
4442 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4444 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4445 TS_BASE instead of TS_COMMON.
4446 (find_decls_types_r): Check for TS_TYPED structure before looking at
4448 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4450 (BLOCK_CHAIN): Use new chain field.
4452 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4454 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4455 moves expensive on Power7 also.
4457 2011-05-26 Richard Guenther <rguenther@suse.de>
4459 * fold-const.c (fold_unary_loc): Remove bogus code.
4461 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4463 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4465 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4466 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4467 TS_BASE instead of TS_COMMON.
4468 * varasm.c (assemble_name): Remove assert.
4470 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4472 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4474 * libgcc-std.ver: Delete file.
4476 2011-05-26 Richard Guenther <rguenther@suse.de>
4478 PR tree-optimization/48702
4479 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4480 only when we know the base address is within bounds.
4481 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4482 assume the base address of TARGET_MEM_REFs is in bounds.
4484 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4487 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4488 declaration in TARGET_SOLARIS.
4490 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4492 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4493 The instruction is then expanded explicitly.
4494 (supported_compare): Callable instruction.
4495 (compare): Likewise.
4497 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4500 * gimplify.c (shortcut_cond_r): Don't special case
4501 COND_EXPRs if they have void type on one of their arms.
4503 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4505 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4506 to reduce duplication, and to achieve a slightly more logical order
4509 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4511 PR tree-optimization/49161
4512 * tree-vrp.c (struct case_info): New type.
4513 (compare_case_labels): Sort case_info structs instead of
4514 trees, and not primarily by CASE_LABEL uids but by
4515 label_for_block indexes.
4516 (find_switch_asserts): Put case labels into struct case_info
4517 array instead of TREE_VEC, adjust sorting, compare label_for_block
4518 values instead of CASE_LABELs.
4520 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4522 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4523 ("orndi3_neon"): Likewise.
4524 ("bic<mode>3_neon"): Likewise.
4526 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4528 PR tree-optimization/49038
4529 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4530 Ensure at least one epilogue iteration if required by data
4532 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4533 to mark loops that require peeling for gaps.
4534 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4535 (vect_get_known_peeling_cost): Take peeling for gaps into
4537 (vect_transform_loop): Generate epilogue if required by data
4539 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4540 loop as requiring an epilogue if there are gaps in the end of
4543 2011-05-25 Ian Lance Taylor <iant@google.com>
4545 * godump.c (go_format_type): Output the first field with a usable
4548 2011-05-25 Ian Lance Taylor <iant@google.com>
4550 * godump.c (go_format_type): Check for invalid type names, pointer
4551 target types, and struct field types.
4553 2011-05-25 Jason Merrill <jason@redhat.com>
4555 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4557 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4559 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4561 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4563 * config/i386/i386.md (*movqi_extv_1)): Put back
4564 "register_operand" check in "type" calculation.
4565 (*movqi_extzv_2): Likewise.
4567 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4569 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4571 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4574 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4575 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4576 __divxc3, __divtc3): Wrap definitions in #ifndef.
4578 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4581 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4582 "register_operand" check and replace q_regs_operand with
4583 QIreg_operand in "type" calculation.
4584 (*movqi_extv_1): Likewise.
4585 (*movqi_extzv_2_rex64): Likewise.
4586 (*movqi_extzv_2): Likewise.
4588 * config/i386/predicates.md (QIreg_operand): New.
4590 2011-05-25 Richard Guenther <rguenther@suse.de>
4592 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4593 type-based offset disambiguation, streamline MEM_REF and
4594 TARGET_MEM_REF handling.
4596 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4598 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4599 (bdesc_special_args): Add pause intrinsic.
4601 * config/i386/i386.md (UNSPEC_PAUSE): New.
4604 * config/i386/ia32intrin.h (__pause): Likewise.
4606 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4609 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4611 PR tree-optimization/46728
4612 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4613 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4615 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4617 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4618 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4619 instead of TS_COMMON.
4621 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4623 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4624 LIBGCC2_GNU_PREFIX is defined.
4626 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4627 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4628 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4629 __clz_tab): Define using __N.
4630 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4631 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4632 * target.def (libfunc_gnu_prefix): New hook.
4633 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4634 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4635 * doc/tm.texi: Regenerate.
4636 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4637 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4639 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4640 (init_optabs): Likewise for the bswap libfuncs.
4641 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4643 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4644 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4645 * libgcc-std.ver: Remove.
4646 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4647 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4649 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4650 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4651 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4652 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4653 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4654 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4655 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4656 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4657 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4658 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4660 2011-05-25 Jan Hubicka <jh@suse.cz>
4662 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4663 (lto_output_tree): Use output_record_start.
4664 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4665 (lto_get_pickled_tree): Use input_record_start.
4666 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4667 (lto_value_range_error): New function.
4668 * lto-streamer.h (lto_value_range_error): Declare.
4669 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4670 (lto_output_enum, lto_input_enum): New macros.
4672 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4674 * common.opt (flag_stack_usage_info): New variable.
4675 (-Wstack-usage): New option.
4676 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4677 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4678 <OPT_fstack_usage>: Likewise.
4679 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4680 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4681 of flag_stack_usage.
4682 (emit_library_call_value_1): Likewise.
4683 * explow.c (allocate_dynamic_stack_space): Likewise.
4684 * function.c (instantiate_virtual_regs ): Likewise.
4685 (prepare_function_start): Likewise.
4686 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4687 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4688 * config/arm/arm.c (arm_expand_prologue): Likewise.
4689 (thumb1_expand_prologue): Likewise.
4690 * config/avr/avr.c (expand_prologue): Likewise.
4691 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4692 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4693 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4694 * config/mips/mips.c (mips_expand_prologue): Likewise.
4695 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4696 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4697 * config/s390/s390.c (s390_emit_prologue): Likewise.
4698 * config/sh/sh.c (sh_expand_prologue): Likewise.
4699 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4700 * config/spu/spu.c (spu_expand_prologue): Likewise.
4702 2011-05-25 Richard Guenther <rguenther@suse.de>
4704 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4705 (gimple_canonical_types_compatible_p): Likewise.
4707 2011-05-25 Jan Hubicka <jh@suse.cz>
4710 * ipa.c (function_and_variable_visibility): Only add to same
4711 comdat group list if DECL_ONE_ONLY.
4713 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4715 PR rtl-optimization/49014
4716 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4718 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4721 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4723 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4725 PR rtl-optimization/48757
4726 * ira-build.c (loop_with_eh_edge_p): Rename to
4727 loop_with_complex_edge_p, check edges on complexity, make function
4729 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4732 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4734 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4735 force flag_ira_share_save_slots to 0.
4737 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4739 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4740 (vt_initialize): Set PROLOGUE_BB unconditionally.
4741 Add block comment about CFA_BASE_RTX machinery.
4742 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4743 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4745 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4748 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4749 parsing of syntax error in ObjC instance variable lists. In
4750 particular, avoid an infinite loop if there is a stray ']'.
4751 Updated error message.
4753 2011-05-24 Ian Lance Taylor <iant@google.com>
4755 * godump.c (go_define): Don't accept a string immediately after
4758 2011-05-24 Ian Lance Taylor <iant@google.com>
4760 * godump.c (struct godump_container): Add invalid_hash field.
4761 (go_format_type): Return false if type is found in invalid_hash.
4762 (go_output_typedef): Add invalid type to invalid_hash.
4763 (go_finish): Create and delete invalid_hash.
4765 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4767 PR tree-optimization/46728
4768 * tree-ssa-math-opts.c (powi_table): New.
4769 (powi_lookup_cost): New.
4771 (powi_as_mults_1): New.
4772 (powi_as_mults): New.
4773 (gimple_expand_builtin_powi): New.
4774 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4775 (gate_cse_sincos): Remove sincos/cexp restriction.
4777 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4780 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4782 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4783 * mips-tdump.c: Likewise.
4785 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4788 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4789 add -mno-XXX. Handle FMA.
4791 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4793 PR rtl-optimization/48633
4794 * ira-build.c (loop_with_eh_edge_p): New function.
4795 (mark_loops_for_removal): Use it.
4797 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4799 PR rtl-optimization/48971
4800 * ira.c (setup_pressure_classes): Don't check register move cost
4801 for classes with one registers. Don't add pressure class if there
4802 is a pressure class with the same available hard registers.
4803 Check contains_reg_of_mode. Fix a typo in collecting
4804 temp_hard_regset. Ignore hard registers not belonging to a class.
4806 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4809 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4811 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4812 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4814 PR gcov-profile/48845
4815 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4817 2011-05-24 Richard Guenther <rguenther@suse.de>
4819 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4820 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4821 (gimple_types_compatible_p_1): Adjust.
4822 (iterative_hash_canonical_type): Do not bother about complete vs.
4824 (gimple_canonical_types_compatible_p): Likewise.
4826 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4828 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4830 2011-05-24 Richard Guenther <rguenther@suse.de>
4833 * gimple.c (gimple_register_canonical_type): Revert
4835 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4836 does not for a tree for the case where it matters. Cache
4837 pointer-type alias-sets.
4839 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4841 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4842 (OBJS): Remove options.o, opts-common.o and prefix.o.
4843 (OBJS-libcommon-target): New.
4844 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4845 (BACKEND): Include libcommon-target.a.
4846 (MOSTLYCLEANFILES): Include libcommon-target.a.
4847 (libcommon-target.a): New.
4848 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4851 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4853 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4854 parts of output shared with the driver.
4855 * optc-gen.awk: Don't generate parts of output not shared with the
4857 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4858 * doc/options.texi (SourcerInclude): Mention options-save.c.
4859 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4860 (OBJS): Add options-save.o.
4861 (options-save.c, options-save.o): New.
4862 (options.o): Update dependencies.
4863 (gcc-options.o): Remove.
4864 (mostlyclean): Remove options-save.c.
4866 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4869 * dbxout.c: Include cgraph.h.
4870 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4871 and without value expr, return NULL if no varpool node exists for
4872 it or if it is not needed.
4873 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4876 * c-decl.c (start_decl): Convert expr to void_type_node.
4878 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4880 PR rtl-optimization/48826
4881 * emit-rtl.c (try_split): When splitting a call that is followed
4882 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4884 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4886 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4887 parameters passed in memory prefer using DECL_INCOMING_RTL over
4888 the pseudos it will be copied into.
4890 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4893 * config/i386/i386.c (ix86_option_override_internal): Save the
4894 initial options after checking vzeroupper.
4896 2011-05-23 David Li <davidxl@google.com>
4898 PR tree-optimization/48988
4899 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4900 Initialize has_valid_pred for each pred chain.
4902 2011-05-23 Richard Guenther <rguenther@suse.de>
4904 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4905 (iterative_hash_gimple_type): Always hash type names.
4907 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4909 * c-typeck.c (build_function_call_vec): Tweak call to
4910 check_function_arguments.
4912 2011-05-23 Richard Guenther <rguenther@suse.de>
4914 PR tree-optimization/49115
4915 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4916 is not necessarily carried out, do not claim it kills the ref.
4917 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4919 2011-05-23 Richard Guenther <rguenther@suse.de>
4922 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4923 what pointer types we accept for folding.
4925 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4927 * gthr-gnat.c: Remove.
4928 * gthr-gnat.h: Remove.
4929 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4930 * config/t-freebsd (LIB2ADDEH): Likewise.
4931 * config/t-linux (LIB2ADDEH): Likewise.
4932 * config/t-sol2 (LIB2ADDEH): Likewise.
4933 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4934 * configure.ac (target_thread_file): Remove gnat handling.
4935 * configure: Regenerate.
4936 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4938 2011-05-23 Tristan Gingold <gingold@adacore.com>
4939 Eric Botcazou <ebotcazou@adacore.com>
4941 * gcov.c (create_file_names): If no object directory is specified,
4942 keep the directory of the file.
4944 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4946 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4947 * configure: Regenerate.
4949 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4952 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4953 failed and the comparison has a single bit signed type, use
4954 constm1_rtx instead of const1_rtx for true value.
4955 (do_store_flag): If ops->type is single bit signed type, disable
4956 signel bit test optimization and pass -1 instead of 1 as last
4957 parameter to emit_store_flag_force.
4959 2011-05-23 Tom de Vries <tom@codesourcery.com>
4962 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4964 (infer_loop_bounds_from_undefined): Use new function.
4966 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4968 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4969 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4970 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4972 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4974 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4976 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4977 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4980 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4982 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4984 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4986 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4987 UNSPEC_MOVE_PIC pattern.
4989 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4991 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4992 (sparc-*-rtems*): Likewise.
4993 (sparc64-*-elf*): Likewise.
4994 (sparc64-*-rtems*): Likewise.
4995 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4996 * config/sparc/t-crtin: New file.
4997 * config/sparc/t-sol2 (crti.o): Delete rule.
4999 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5000 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5001 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5002 (ENDFILE_SPEC): Add crtn.o.
5004 2011-05-22 Tom de Vries <tom@codesourcery.com>
5007 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5008 CODE_CONTAINS_STRUCT (TS_COMMON).
5010 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5013 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5014 only after deciding which mode to use.
5016 2011-05-22 Tom de Vries <tom@codesourcery.com>
5019 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5020 for call to get_shiftadd_cost.
5022 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5025 * config/i386/cpuid.h (bit_MMXEXT): New define.
5027 2011-05-22 Nick Clifton <nickc@redhat.com>
5029 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5030 initialisation of non-existant args[2] element. Use args[] array
5031 not arg[] array to pass arguments to build_function_type_list.
5033 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5035 PR tree-optimization/49087
5036 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5038 2011-05-21 Jason Merrill <jason@redhat.com>
5041 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5042 static storage duration.
5044 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5046 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5049 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5051 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5052 false if there are call-saved registers here...
5053 (sparc_can_use_return_insn_p): ...but here instead.
5054 (save_or_restore_regs): Fix thinko.
5055 (sparc_expand_prologue): Use current_function_is_leaf.
5056 (sparc_frame_pointer_required): Likewise.
5058 2011-05-21 Nick Clifton <nickc@redhat.com>
5061 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5063 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5065 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5066 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5068 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5070 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5071 * optc-gen.awk: Move common code to opt-read.awk.
5072 * opth-gen.awk: Likewise.
5073 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5075 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5077 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5079 2011-05-20 Tom de Vries <tom@codesourcery.com>
5082 * tree-ssa-loop-ivopts.c: Include expmed.h.
5083 (get_shiftadd_cost): New function.
5084 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5086 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5089 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5090 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5092 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5094 * Makefile.in: Update comment referring to $(OBJS-common).
5096 2011-05-20 Ian Lance Taylor <iant@google.com>
5098 * godump.c (go_output_typedef): Put enum constants in the macro
5099 hash table to avoid duplicate Go const definitions.
5101 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5103 * Makefile.in (LIBDEPS): Add libcommon.a.
5105 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5106 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5107 pretty-print.o and version.o.
5108 (OBJS-libcommon): New.
5109 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5110 (BACKEND): Add libcommon.a.
5111 (MOSTLYCLEANFILES): Likewise.
5113 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5114 (cpp$(exeext)): Likewise.
5115 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5116 pretty-print.o and input.o.
5117 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5118 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5120 (mips-tfile): Don't explicitly use version.o.
5121 (mips-tdump): Likewise.
5122 (gcov.o): Depend on $(DIAGNOSTIC_H).
5123 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5124 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5125 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5126 * gcov-dump.c: Include intl.h and diagnostic.h.
5127 (main): Initialize diagnostics.
5128 * gcov.c: Include diagnostic.h.
5130 (main): Initialize diagnostics.
5131 * lto-wrapper.c: Include diagnostic.h.
5132 (main): Initialize diagnostics.
5134 2011-05-20 Michael Matz <matz@suse.de>
5136 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5138 2011-05-20 Michael Matz <matz@suse.de>
5139 Richard Guenther <rguenther@suse.de>
5141 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5142 use lto_streamer_cache_append directly instead of returning a VEC.
5143 (preload_common_node): Remove.
5144 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5146 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5148 2011-05-20 Richard Guenther <rguenther@suse.de>
5150 PR tree-optimization/49079
5151 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5152 MEM_REFs correctly for the trailing array access detection.
5153 Special case constants the same way as decls for overall size
5156 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5158 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5161 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5163 PR tree-optimization/49073
5164 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5165 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5166 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5168 2011-05-20 Richard Guenther <rguenther@suse.de>
5171 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5172 of pointer types the same way the middle-end does.
5174 2011-05-20 Richard Guenther <rguenther@suse.de>
5176 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5177 or pointer-to chains. Delay all fixup to uniquify_nodes.
5179 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5181 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5182 (fma4_fmaddsub): Likewise
5184 2011-05-19 Jan Hubicka <jh@suse.cz>
5186 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5187 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5188 (type_pair_cache): New static var.
5189 (lookup_type_pair): Use fixed sized custom hash; make inline.
5190 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5191 calls of lookup_type_pair.
5192 (print_gimple_types_stats): Remove cache stats.
5193 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5196 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5198 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5199 when TARGET_RDRND is active.
5200 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5201 Generate dummy SImode target register when target is NULL.
5203 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5205 * config/arm/arm-fpus.def: New.
5206 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5208 * config/arm/arm-tables.opt: Regenerate.
5209 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5210 (arm_option_override): Don't decode FPU name to string here.
5211 * config/arm/arm.opt (mfpu=): Use Enum.
5212 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5213 Update dependencies.
5215 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5217 * collect2.c: Include diagnostic.h.
5218 (fatal_perror, fatal, error, fancy_abort): Remove.
5219 (main): Set progname. Call xmalloc_set_program_name and
5220 diagnostic_initialize.
5221 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5222 scan_libraries, resolve_lib_name): Call fatal_error instead of
5223 fatal and fatal_perror.
5224 * collect2.h (error, fatal, fatal_perror): Don't declare.
5225 * tlink.c: Include diagnostic-core.h.
5226 (recompile_files): Call fatal_error instead of fatal_perror.
5227 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5228 pretty-print.o and input.o.
5229 (collect2.o, tlink.o): Update dependencies.
5231 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5233 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5235 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5238 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5239 COMDAT group syntax, both SPARC and x86 variants.
5240 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5241 * configure: Regenerate.
5242 * config/sol2.h (TARGET_SOLARIS): Define.
5243 (PUSHSECTION_FORMAT): Remove.
5244 (SECTION_NAME_FORMAT): Define.
5245 * config/sol2.c: Include hashtab.h.
5246 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5247 expansion, using SECTION_NAME_FORMAT.
5248 (solaris_comdat_htab): New variable.
5249 (struct comdat_entry): Define.
5250 (comdat_hash): New function.
5251 (comdat_eq): New function.
5252 (solaris_elf_asm_comdat_section): New function.
5253 (solaris_define_comdat_signature): New function.
5254 (solaris_code_end): New function.
5255 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5256 (solaris_code_end): Declare.
5257 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5258 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5260 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5261 Remove ATTRIBUTE_UNUSED.
5262 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5263 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5264 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5265 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5266 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5267 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5268 (PUSHSECTION_FORMAT): Remove.
5269 (SECTION_NAME_FORMAT): Redefine.
5271 2011-05-19 Kai Tietz <ktietz@redhat.com>
5273 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5274 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5275 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5277 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5278 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5280 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5282 2011-05-19 Richard Guenther <rguenther@suse.de>
5285 * tree-object-size.c (addr_object_size): If the pointed-to
5286 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5288 2011-05-19 Richard Guenther <rguenther@suse.de>
5290 * gimple.c (gimple_types_compatible_p_1): Compare names of
5291 the types themselves.
5292 (iterative_hash_gimple_type): And hash them that way.
5293 (gimple_register_type_1): If we register a main variant properly
5294 initialize the leader to ourselves.
5296 2011-05-19 Tom de Vries <tom@codesourcery.com>
5299 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5300 get_loop_invariant_expr_id.
5301 (get_loop_invariant_expr_id): Use get_expr_id.
5302 (parm_decl_cost): New function.
5303 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5304 Improve bound cost estimation. Use different inv_expr_id for elim and
5307 2011-05-19 Tom de Vries <tom@codesourcery.com>
5310 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5311 cost_base.cost == 0.
5313 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5316 * config/i386/sse.md
5317 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5320 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5322 PR tree-optimization/49039
5323 * tree-vrp.c (extract_range_from_binary_expr): For
5324 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5325 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5327 2011-05-18 Tom de Vries <tom@codesourcery.com>
5330 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5332 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5334 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5335 (*tls_global_dynamic_64): Ditto.
5336 (*tls_local_dynamic_base_32_gnu): Ditto.
5337 (*tls_local_dynamic_base_64): Ditto.
5338 (tls_initial_exec_64_sun): Ditto.
5340 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5342 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5343 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5345 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5346 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5347 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5348 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5349 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5350 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5351 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5353 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5355 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5356 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5357 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5358 target_thread_pointer, arm_structure_size_boundary, struct
5359 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5360 struct abi_name, arm_all_abis): Remove.
5361 (arm_option_override) Don't process most enumerated option values here.
5362 Don't process target_fpe_name here. Work with integer not string for
5363 structure size boundary; use separate diagnostics for each case.
5364 * config/arm/arm.h (enum float_abi_type, enum
5365 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5367 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5368 arm_structure_size_boundary): Remove.
5369 * config/arm/arm.opt (mabi=): Use Enum and Init.
5370 (arm_abi_type): New Enum and EnumValue entries.
5371 (mfloat-abi=): Use Enum and Init.
5372 (float_abi_type): New Enum and EnumValue entries.
5373 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5374 (mfp16-format=): Use Enum and Init.
5375 (arm_fp16_format_type): New Enum and EnumValue entries.
5376 (mstructure-size-boundary=): Use UInteger and Init.
5377 (mtp=): Use Enum and Init.
5378 (arm_tp_type): New Enum and EnumValue entries.
5380 2011-05-18 Richard Guenther <rguenther@suse.de>
5382 PR tree-optimization/49018
5383 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5384 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5385 gimple_has_side_effects.
5387 2011-05-18 Richard Guenther <rguenther@suse.de>
5389 * gimple.c (gimple_register_type_1): New function, split out from ...
5390 (gimple_register_type): ... here. Avoid infinite recursion.
5392 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5394 PR tree-optimization/41881
5395 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5396 reduction_chains along with a macro for its access.
5397 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5398 (destroy_loop_vec_info): Free reduction chains.
5399 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5400 (vect_is_slp_reduction): New function.
5401 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5402 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5403 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5404 definition types for reduction chains.
5405 (vect_supported_load_permutation_p): Don't allow permutations for
5407 (vect_analyze_slp_instance): Support reduction chains.
5408 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5409 (vect_get_constant_vectors): Handle reduction chains.
5410 (vect_schedule_slp_instance): Mark the first statement of the
5411 reduction chain as reduction.
5413 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5415 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5416 names for group elements access.
5417 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5418 reduction chains as well. Remove data reference and interleaving
5419 related words from the fields names.
5420 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5422 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5423 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5424 vect_update_interleaving_chain, vect_same_range_drs,
5425 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5426 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5427 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5428 vect_analyze_group_access, vect_analyze_data_ref_access,
5429 vect_create_data_ref_ptr, vect_transform_strided_load,
5430 vect_record_strided_load_vectors): Likewise.
5431 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5432 vect_model_load_cost, vectorizable_store, vectorizable_load,
5433 vect_remove_stores, new_stmt_vec_info): Likewise.
5434 * tree-vect-slp.c (vect_build_slp_tree,
5435 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5437 2011-05-18 Richard Guenther <rguenther@suse.de>
5440 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5441 operand verification.
5442 (verify_gimple_assign_binary): Likewise.
5443 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5444 to non-1-precision BOOLEAN_TYPEs.
5446 2011-05-18 Tom de Vries <tom@codesourcery.com>
5449 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5451 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5453 PR tree-optimization/49000
5454 * tree-ssa.c (execute_update_addresses_taken): Call
5455 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5456 be rewritten and decl has been marked for renaming, reset
5459 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5461 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5462 enum_opts_set when testing if attributes have set -mfpmath=.
5464 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5466 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5468 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5470 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5472 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5473 id.transform_lang_insert_block with NULL.
5475 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5477 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5478 (output_fp_compare): Change args 3 and 4 to bool.
5479 (ix86_expand_call): Change arg 6 to bool.
5480 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5481 (ix86_attr_length_vex_default): Change arg 3 to bool.
5482 * config/i386/i386.md: Update all uses.
5483 * config/i386/i386.c: Ditto.
5484 (ix86_flags_dependent): Change return type to bool.
5486 2011-05-17 Richard Guenther <rguenther@suse.de>
5488 * gimple.c (type_hash_pair_compare): Fix comparison.
5490 2011-05-17 Richard Guenther <rguenther@suse.de>
5492 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5493 case some more, fix final hash value of the non-singleton case.
5495 2011-05-17 Richard Guenther <rguenther@suse.de>
5499 2011-05-16 Richard Guenther <rguenther@suse.de>
5501 * gimple.c (gimple_types_compatible_p_1): Use names of the
5502 type itself, not its main variant.
5503 (iterative_hash_gimple_type): Likewise.
5505 2011-05-17 Richard Guenther <rguenther@suse.de>
5507 * gimple.c (gimple_register_canonical_type): Use the main-variant
5508 leader for computing the canonical type.
5510 2011-05-17 Nick Clifton <nickc@redhat.com>
5512 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5515 * config/rx/rx.md: Add peephole to remove redundant extensions
5517 (bitset_in_memory): Use rx_restricted_mem_operand.
5518 (bitinvert_in_memory): Likewise.
5519 (bitclr_in_memory): Likewise.
5521 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5522 Nick Clifton <nickc@redhat.com>
5524 * config/rx/rx.md: Add peepholes to match a register move followed
5525 by a comparison of the moved register. Replace these with an
5526 addition of zero that does both actions in one instruction.
5528 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5531 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5532 predicate to allow CONST_INT.
5533 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5535 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5537 * opts-common.c (opt_enum_arg_to_value): New.
5538 * opts.h (opt_enum_arg_to_value): Declare.
5539 * config/i386/i386.opt (fpmath): Remove.
5540 (mfpmath=): Use Enum, Init and Save.
5541 (fpmath_unit): New Enum and EnumValue entries.
5542 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5543 name for function fpmath state.
5544 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5545 * config/i386/i386.c: Include diagnostic.h.
5546 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5547 (ix86_target_string): Take enum fpmath_unit value instead of string.
5548 (ix86_debug_options): Update call to ix86_target_string.
5549 (ix86_option_override_internal): Don't process fpmath strings here.
5550 (x86_function_specific_save, ix86_function_specific_restore):
5551 Don't handle fpmath state specially.
5552 (ix86_function_specific_print): Pass fpmath state to
5553 ix86_target_string instead of printing in this function.
5554 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5555 Handle enum attributes.
5556 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5557 (ix86_valid_target_attribute_tree): Update option_strings
5558 handling. Handle fpmath as enum option.
5559 (ix86_can_inline_p): Update field names for function fpmath state.
5560 (ix86_expand_builtin): Update call to ix86_target_string.
5561 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5562 (ix86_fpmath): Remove.
5563 * config/i386/t-i386 (i386.o): Update dependencies.
5565 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5567 PR preprocessor/48677
5568 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5569 from decoded_options[0], not from itself.
5571 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5573 * config/i386/constraints.md (z): New constraint.
5574 * config/i386/i386.c (c): New mode attribute.
5575 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5576 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5577 constraint for operand 0.
5578 (*call_vzeroupper): Ditto.
5579 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5580 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5581 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5582 Use "lzm" constraint for operand 0.
5583 (*call_pop_vzeroupper): Ditto.
5584 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5585 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5586 constraint for operand 0.
5587 (*sibcall_vzeroupper): Ditto.
5588 (*sibcall_rex64_ms_sysv): Ditto.
5589 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5590 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5591 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5592 (*sibcall_pop_vzeroupper): Ditto.
5593 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5594 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5595 mode iterator. Use "<c>zm" constraint for operand 1.
5596 (*call_value_vzeroupper): Ditto.
5597 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5599 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5600 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5601 *call_value_pop_1. Use "lzm" constraint for operand 1.
5602 (*call_value_pop_vzeroupper): Ditto.
5603 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5604 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5605 mode iterator. Use "Uz" constraint for operand 1.
5606 (*sibcall_value_vzeroupper): Ditto.
5607 (*sibcall_value_rex64_ms_sysv): Ditto.
5608 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5609 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5610 constraint for operand 1.
5611 (*sibcall_value_pop_vzeroupper): Ditto.
5612 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5613 and "z" constraint for operand 2.
5614 (*tls_global_dynamic_32_gnu): Ditto.
5615 (*tls_local_dynamic_base_32_gnu): Ditto.
5616 (*tls_local_dynamic_base_64): Ditto.
5617 (*tls_local_dynamic_32_once): Ditto.
5618 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5620 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5622 2011-05-16 Richard Guenther <rguenther@suse.de>
5624 * gimple.c (gimple_types_compatible_p_1): Use names of the
5625 type itself, not its main variant.
5626 (iterative_hash_gimple_type): Likewise.
5628 2011-05-16 Richard Guenther <rguenther@suse.de>
5630 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5631 always visit pointer target and function result and argument types.
5633 2011-05-16 Jason Merrill <jason@redhat.com>
5636 * tree-inline.c (copy_statement_list): Put back recursion.
5638 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5642 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5643 * config/avr/avr.md ("*ior<mode>qi.byte0",
5644 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5646 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5649 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5650 register is needed for a function argument.
5652 2011-05-16 Richard Guenther <rguenther@suse.de>
5654 * gimple.c (struct type_hash_pair): New type.
5655 (type_hash_pair_compare): New function.
5656 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5658 2011-05-16 Revital Eres <revital.eres@linaro.org>
5660 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5662 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5664 * config/i386/i386.md (floating point move splitters): Fix
5665 usage of standard_80387_constant_p.
5666 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5668 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5670 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5672 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5674 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5675 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5676 (tree_ssa_lim_finalize): Likewise.
5678 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5680 * config/i386/constraint.md (Yd, Yx): New register constraints.
5681 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5682 Yd conditional register constraint.
5683 (*movtf_internal): Use standard_sse_constant_opcode.
5684 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5685 Yx conditional register constraint.
5686 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5687 Yd conditional register constraint. Use standard_sse_constant_p to
5688 check for valid SSE constants and call standard_sse_constant_opcode to
5690 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5691 constants and call standard_sse_constant_opcode to output SSE insn.
5692 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5693 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5694 optimize_size is set.
5695 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5697 2011-05-14 Tobias Burnus <burnus@net-b.de>
5699 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5701 2011-05-13 Martin Jambor <mjambor@suse.cz>
5703 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5704 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5705 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5706 (evaluate_conditions_for_ipcp_clone): Removed.
5707 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5708 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5709 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5711 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5713 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5714 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5715 lieu of MAY_HAVE_DEBUG_STMTS.
5716 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5717 debug statements if !MAY_HAVE_DEBUG_STMTS.
5719 2011-05-13 Martin Thuresson <martint@google.com>
5721 PR gcov-profile/47793
5722 * libgcov.c (gcov_exit): Support relative profile paths.
5723 * doc/invoke.texi (-fprofile-dir): Update for above change.
5725 2011-05-13 Richard Guenther <rguenther@suse.de>
5727 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5728 type-pair caching, do not compare hashes.
5730 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5733 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5734 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5736 2011-05-13 Kai Tietz <ktietz@redhat.com>
5738 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5739 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5740 compatible type for TRUTH_NOT_EXPR.
5742 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5744 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5745 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5746 can_create_pseudo_p ().
5748 2011-05-13 Richard Guenther <rguenther@suse.de>
5751 * gimple.c (iterative_hash_gimple_type): Revert change in
5752 pointer target and function result and argument hashing.
5754 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5756 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5757 (*movxf_internal_nointeger): Ditto.
5758 (*movdf_internal_rex64): Ditto.
5759 (*movdf_internal): Ditto.
5760 (*movdf_internal_nointeger): Ditto.
5761 (*movsf_internal): Ditto.
5762 (sincos splitters): Use can_create_pseudo ().
5764 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5766 * config/i386/i386-opts.h: New.
5767 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5768 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5769 ix86_section_threshold): Remove.
5770 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5771 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5773 (ix86_option_override_internal): Don't decode strings for options
5774 other than -march=, -mtune= and -mfpmath=. Don't allow for
5775 __attribute__ uses in remaining diagnostics for options with
5776 string arguments. Don't check for integer arguments being negative.
5777 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5778 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5779 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5780 ix86_branch_cost, ix86_section_threshold): Remove.
5781 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5783 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5785 (masm=): Use Enum and Init.
5786 (asm_dialect): New Enum and EnumValue entries.
5787 (mbranch-cost=): Use UInteger.
5788 (mlarge-data-threshold=): Use UInteger and Init.
5789 (mcmodel=): Use Enum and Init.
5790 (cmodel): New Enum and EnumValue entries.
5791 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5792 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5793 mregparm=): Use UInteger.
5794 (mstringop-strategy=): Use Enum and Init.
5795 (stringop_alg): New Enum and EnumValue entries.
5796 (mtls-dialect=): Use Enum and Init.
5797 (tls_dialect): New Enum and EnumValue entries.
5798 (mabi=): Use Enum and Init.
5799 (calling_abi): New Enum and EnumValue entries.
5800 (mveclibabi=): Use Enum and Init.
5801 (ix86_veclibabi): New Enum and EnumValue entries.
5803 2011-05-13 Nick Clifton <nickc@redhat.com>
5805 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5806 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5808 2011-05-13 Kai Tietz <ktietz@redhat.com>
5811 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5812 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5813 (gimple_boolify): Check for cast for boolean_type_node instead for
5816 2011-05-13 Richard Guenther <rguenther@suse.de>
5818 PR tree-optimization/48172
5819 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5820 multiplying by number of iterations for equal step.
5821 (vect_create_cond_for_alias_checks): Likewise.
5823 2011-05-13 Andreas Schwab <schwab@redhat.com>
5825 * configure.ac: Use AS_HELP_STRING throughout.
5826 * configure: Regenerate.
5828 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5830 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5831 (ix86_emit_restore_regs_using_mov): Likewise.
5832 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5834 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5836 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5837 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5838 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5839 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5840 RTX_OK_FOR_OLO10_P): ...here.
5841 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5844 2011-05-12 Kai Tietz <ktietz@redhat.com>
5846 * gimplify.c (gimple_boolify): Re-boolify expression
5847 arguments even if expression type is of kind BOOLEAN_TYPE.
5848 (gimplify_boolean_expr): Removed.
5849 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5850 and XOR. Additional take care that we keep expression's type.
5851 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5852 of TRUTH_AND|OR|XOR_EXPR.
5854 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5856 PR tree-optimization/48975
5857 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5858 on all bbs here and free and clear ifc_bbs at the end.
5860 2011-05-12 Richard Guenther <rguenther@suse.de>
5862 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5863 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5864 until after simple checks.
5865 (gimple_types_compatible_p): Likewise.
5866 (iterative_hash_gimple_type): Always hash pointer targets
5867 and function return and argument types.
5868 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5869 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5870 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5871 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5872 completely in the simple compare section.
5873 (gimple_register_canonical_type): Query the cache again after
5876 2011-05-12 Richard Guenther <rguenther@suse.de>
5878 PR tree-optimization/48172
5879 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5880 the number of iterations from the segment size calculation.
5881 (vect_create_cond_for_alias_checks): Adjust.
5883 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5886 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5887 if validate_subreg fails.
5889 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5891 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5892 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5895 2011-05-12 DJ Delorie <dj@redhat.com>
5897 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5898 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5899 created builtin into rx_builtins array.
5900 (rx_builtin_decl): New function.
5901 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5903 2011-05-12 DJ Delorie <dj@redhat.com>
5904 Nick Clifton <nickc@redhat.com>
5906 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5907 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5908 (rx_is_legitimate_address): Add pre-decrement and post-increment
5909 addressing in HImode and QImode. Fix test for out of range
5911 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5912 (rx_align_for_label): Test label before extracting its usage count.
5913 (rx_adjust_insn_lengths): Fix selection of insn codes.
5914 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5916 2011-05-11 Jason Merrill <jason@redhat.com>
5918 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5920 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5922 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5923 reindent the subsequent block.
5925 2011-05-11 Satoru Takabayashi <satorux@google.com>
5926 Paul Pluzhnikov <ppluzhnikov@google.com>
5928 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5929 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5930 * config.in: Add LINKER_HASH_STYLE.
5931 * configure.ac: Add --with-linker-hash-style.
5932 * configure: Regenerate.
5934 2011-05-11 Richard Guenther <rguenther@suse.de>
5937 * gimple.c (iterative_hash_canonical_type): Fix typo.
5939 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5941 * config/i386/i386.c (legitimize_tls_address)
5942 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5943 expanders directly for TARGET_GNU2_TLS. Determine pic and
5944 __tls_get_addr symbol reference here. Update call to
5945 gen_tls_global_dynamic_{32,64} for added arguments.
5946 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5947 expanders directly for TARGET_GNU2_TLS. Determine
5948 __tls_get_addr symbol reference here. Update call to
5949 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5950 unique UNSPEC REG_EQUIV to libcall block.
5951 (ix86_tls_get_addr): Declare static.
5952 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5953 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5954 Do not determine pic and __tls_get_addr symbol reference here. Do not
5955 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5956 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5957 (tls_global_dynamic_64): Add operand 2. Do not determine
5958 __tls_get_addr symbol reference here. Do not call
5959 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5960 (tls_local_dynamic_base64): Ditto for operand 1.
5962 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5964 * function.c (expand_function_start): Initialize stack_check_probe_note
5965 only if the generic stack checking mechanism is used.
5967 2011-05-11 Richard Guenther <rguenther@suse.de>
5969 PR tree-optimization/15256
5970 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5971 (A & B) | C, combine (A op CST1) op CST2.
5972 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5973 visit assigns that have uses.
5975 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5977 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5978 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5979 (unpack_ts_type_common_value_fields): ...this. Update comment.
5980 (unpack_value_fields): Adjust for renaming.
5981 (lto_input_ts_type_tree_pointers): Split into...
5982 (lto_input_ts_type_common_tree_pointer): ...this and...
5983 (lto_input_ts_type_non_common_tree_pointers): ...this.
5984 (lto_input_tree_pointers): Adjust for above split.
5985 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5986 (pack_ts_type_common_value_fields): ...this. Update comment.
5987 (lto_output_ts_type_tree_pointers): Split into...
5988 (lto_output_ts_type_common_tree_pointers): ...this and...
5989 (lto_output_ts_type_non_common_tree_pointers): ...this.
5990 (lto_output_tree_pointers): Adjust for above split.
5991 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5992 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5993 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5994 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5996 (struct tree_type): Split into...
5997 (struct tree_type_common: ...this and...
5998 (struct tree_type_with_lang_specific): ...this and...
5999 (struct tree_type_non_common): ...this. Adjust accessor macros
6001 (TYPE_VALUES_RAW): Define.
6002 (union tree_node): Update for above changes.
6003 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6005 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6006 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6007 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6008 * treestructu.def (TS_TYPE): Remove.
6009 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6012 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6015 * tree-ssa.c (reset_debug_uses): New function.
6016 * tree-flow.h (reset_debug_uses): New prototype.
6017 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6018 * tree-loop-distribution.c (generate_loops_for_partition): Call
6019 reset_debug_uses on the stmts that will be removed. Keep around
6020 all debug stmts, don't count them as bits in partition bitmap.
6021 (generate_builtin): Don't count debug stmts or labels as bits in
6024 2011-05-11 Richard Guenther <rguenther@suse.de>
6026 * gimple.c (gimple_type_hash_1): Merge with ...
6027 (gimple_type_hash): ... this.
6028 (gtc_visit): Remove mode parameter and simplify accordingly.
6029 (gimple_types_compatible_p_1): Likewise.
6030 (gimple_types_compatible_p): Likewise.
6031 (iterative_hash_gimple_type): Likewise.
6033 (gimple_type_eq): Adjust.
6035 2011-05-11 Revital Eres <revital.eres@linaro.org>
6037 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6038 enters the branch create an anti edge in the opposite direction
6039 to prevent the creation of reg-moves.
6040 * modulo-sched.c: Adjust comment to reflect the fact we are
6041 scheduling closing branch.
6042 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6043 (stage_count): New field in struct partial_schedule.
6044 (calculate_stage_count): New function.
6045 (normalize_sched_times): Rename to reset_sched_times and handle
6046 incrementing the sched time of the nodes by a constant value
6047 passed as parameter.
6048 (duplicate_insns_of_cycles): Skip closing branch.
6049 (sms_schedule_by_order): Schedule closing branch.
6050 (ps_insn_find_column): Handle closing branch.
6051 (sms_schedule): Call reset_sched_times and adjust the code to
6052 support scheduling of the closing branch.
6053 (ps_insert_empty_row): Update calls to normalize_sched_times
6054 and rotate_partial_schedule functions.
6056 2011-05-11 Richard Guenther <rguenther@suse.de>
6059 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6061 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6063 * opts.c (finish_options): Move warning settings from process_options.
6064 * toplev.c (process_options): Move warning settings to finish_options.
6066 2011-05-11 Richard Guenther <rguenther@suse.de>
6068 PR tree-optimization/18041
6069 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6070 (simplify_bitwise_binary): ... this. Handle operand conversions
6071 by applying them to the result instead.
6072 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6074 2011-05-11 Richard Guenther <rguenther@suse.de>
6076 * gimple.c (gimple_canonical_types_compatible_p): Split out
6077 from gimple_types_compatible_p and friends. Do not recurse
6078 to pointed-to types.
6079 (gimple_canonical_type_eq): Use it.
6080 (iterative_hash_canonical_type): Split out from
6081 iterative_hash_gimple_type and friends. Do not recurse
6082 to pointed-to types.
6083 (gimple_canonical_type_hash): Use it, allocate the hash here.
6085 2011-05-11 Revital Eres <revital.eres@linaro.org>
6087 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6090 2011-05-11 Revital Eres <revital.eres@linaro.org>
6092 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6093 instead of PREV_INSN.
6095 2011-05-11 Revital Eres <revital.eres@linaro.org>
6097 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6098 * loop-doloop.c (doloop_condition_get): Likewise.
6099 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6101 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6103 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6105 * tree.def (CASE_LABEL_EXPR): Add an operand.
6106 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6108 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6110 * c-decl.c (c_override_global_bindings_to_false): Remove.
6111 (global_bindings_p): Don't check
6112 c_override_global_bindings_to_false.
6113 * c-tree.h (c_override_global_bindings_to_false): Remove.
6114 * c-typeck.c (composite_type): Don't set
6115 c_override_global_bindings_to_false.
6117 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6119 PR target/48857, 48495
6120 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6122 (VSX_MOVE_MODE): Ditto.
6123 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6124 VSX vector types. Add V2DImode.
6125 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6126 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6127 (MODES_TIEABLE_P): Ditto.
6129 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6130 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6132 (init_cumulative_args): Ditto.
6133 (rs6000_function_arg_boundary): Ditto.
6134 (rs6000_function_arg_advance_1): Ditto.
6135 (rs6000_function_arg): Ditto.
6136 (rs6000_function_ok_for_sibcall): Ditto.
6137 (emit_frame_save): Ditto.
6138 (rs6000_function_value): Ditto.
6139 (rs6000_libcall_value): Ditto.
6141 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6143 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6144 i386/darwin-lib.h to $libgcc_tm_file.
6145 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6147 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6149 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6151 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6153 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6154 * config/rs6000/rs6000-tables.opt: New file (generated).
6155 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6156 rs6000/rs6000-tables.opt to extra_options.
6157 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6158 * config/rs6000/rs6000.c (rs6000_select): Remove.
6159 (processor_target_table): Move contents to rs6000-cpus.def.
6160 (darwin_rs6000_override_options): Check
6161 global_options_set.x_rs6000_cpu_index instead of
6162 rs6000_select[1].string.
6163 (rs6000_option_override_internal): Likewise.
6164 (rs6000_handle_option): Don't assert that global structures are in
6165 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6166 (rs6000_default_cpu): New variable.
6167 (rs6000_file_start): Set it instead of local default_cpu. Check
6168 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6169 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6170 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6171 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6172 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6173 rs6000_select): Remove.
6174 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6176 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6177 * config/rs6000/t-rs6000
6178 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6179 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6180 global_options_set.x_rs6000_cpu_index instead of
6181 rs6000_select[1].string.
6182 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6183 global_options_set.x_rs6000_cpu_index instead of
6184 rs6000_select[1].string.
6186 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6188 * config.gcc (libgcc_tm_file): Define instead of including files
6189 from ../../libgcc/config/ in tm_file.
6190 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6191 * configure: Regenerate.
6192 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6193 libgcc_tm.h, cs-libgcc_tm.h): New.
6194 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6195 (clean): Remove libgcc_tm.h.
6196 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6197 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6198 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6200 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6203 * config/avr/avr.c (avr_ret_register): Return unsigned int
6205 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6206 it to avr_libcall_value.
6207 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6209 (avr_expand_binop_builtin): Ditto.
6210 (avr_expand_unop_builtin): Ditto.
6212 2011-05-10 DJ Delorie <dj@redhat.com>
6214 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6215 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6216 * config/rx/rx.c (rx_align_for_label): Add label and
6217 uses_threshold parameters. Do not align when the label is not
6219 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6221 2011-05-10 Richard Guenther <rguenther@suse.de>
6223 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6224 a series of conversions and apply foldings similar to what
6226 (tree_ssa_forward_propagate_single_use_vars): Call it.
6228 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6230 PR tree-optimization/48611
6231 PR tree-optimization/48794
6232 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6233 referenced from RESX or EH_DISPATCH arguments.
6236 * dfp.c (decimal_to_decnumber): Handle conversion from
6237 dconst{1,2,m1,half}.
6239 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6241 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6242 for !flag_prefer_avx128.
6243 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6245 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6247 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6248 (fold_ternary_loc): Use expr_location_or.
6250 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6253 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6254 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6255 Pmode and mem_mode is not VOIDmode.
6257 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6259 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6260 TYPE_QUAL_RESTRICT): Convert to enum.
6262 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6264 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6265 (const_pow2_1_to_8_operand): Ditto.
6266 (const_pow2_1_to_128_operand): Ditto.
6267 (const_pow2_1_to_32768_operand): Ditto.
6268 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6269 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6270 in insn constraint to check integer value of operand 3.
6271 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6273 (PINSR_MODE): New mode iterator.
6274 (sse2p4_1): New mode attribute.
6275 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6276 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6277 iterator. Use const_int_operand instead of
6278 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6279 exact_log2 in insn constraint to check integer value of operand 3.
6281 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6283 * config/i386/sse.md (blendbits): Remove mode attribute.
6284 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6285 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6286 Check integer value of operand 3 in insn constraint.
6288 2011-05-09 Richard Guenther <rguenther@suse.de>
6290 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6292 (lto_symtab_merge): Likewise. Do not register types here.
6293 (lto_symtab_merge_decls_2): Likewise.
6294 (lto_symtab_merge_decls_1): Likewise.
6295 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6296 * gimple.c (enum gtc_mode): Declare.
6297 (gimple_types_compatible_p): Make static.
6299 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6301 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6302 temporary register to match Pmode.
6304 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6306 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6307 and *vec_concatv4si_1_avx.
6309 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6311 PR rtl-optimization/48927
6312 * ira-conflicts.c (commutative_constraint_p): Use
6313 recog_data.alternative_enabled_p to disable alternatives where
6314 "enabled" attribute is false.
6315 (get_dup_num): Ditto.
6316 * ira-lives.c (single_reg_class): Ditto.
6317 (ira_implicitly_set_insn_hard_regs): Ditto.
6319 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6321 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6322 (dataflow_set_preserve_mem_locs): Likewise.
6324 2011-05-09 Philipp Thomas <pth@suse.de>
6326 * config/mep/mep.c (mep_validate_vliw): Syntax description
6327 should not be translated.
6329 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6331 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6332 * config/mips/mips-tables.opt: New file (generated).
6333 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6334 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6335 MIPS_ARCH_OPTION_NATIVE): Define.
6336 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6338 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6339 mips_parse_cpu): Remove.
6340 (mips_cpu_info_from_opt, mips_default_arch): New.
6341 (mips_handle_option): Don't assert that global structures are in
6342 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6343 (mips_option_override): Use new variables and functions to set
6344 state of these options. Use strcmp to check for individual CPU names.
6345 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6347 * config/mips/mips.opt (march=): Use ToLower and Enum.
6348 (mips): Use ToLower, Enum and Var.
6349 (mtune=): Use ToLower and Enum.
6350 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6352 2011-05-08 Jan Hubicka <jh@suse.cz>
6354 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6355 Arrange type pairs to be UID ordered.
6356 (gimple_lookup_type_leader): Make inline.
6358 2011-05-09 Nick Clifton <nickc@redhat.com>
6361 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6365 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6368 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6370 * combine.c (simplify_comparison): Abstract out parts into...
6371 (simplify_compare_const): ... new function.
6372 (try_combine): Generalize parallel arithmetic/compare combining
6373 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6375 2011-05-08 Jan Hubicka <jh@suse.cz>
6377 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6378 (cgraph_create_virtual_clone): Call hooks once virtual clone
6380 * cgraph.h (cgraph_clone_node): Update prototype.
6381 * ipa-cp.c (ipcp_estimate_growth): Use
6382 estimate_ipcp_clone_size_and_time.
6383 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6384 * lto-cgraph.c (input_node): Update.
6385 * ipa-inline.c (recursive_inlining): Update.
6386 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6387 (evaluate_conditions_for_known_args): Break out from ...
6388 (evaluate_conditions_for_edge): ... here.
6389 (evaluate_conditions_for_ipcp_clone): New function.
6390 (inline_node_duplication_hook): Update clone summary based
6392 (estimate_callee_size_and_time): Rename to ...
6393 (estimate_node_size_and_time): take NODE instead of EDGE;
6394 take POSSIBLE_TRUTHS as argument.
6395 (estimate_callee_size_and_time): Update.
6396 (estimate_ipcp_clone_size_and_time): New function.
6397 (do_estimate_edge_time): Update.
6399 2011-05-08 Richard Guenther <rguenther@suse.de>
6403 * expmed.c (expand_shift_1): Compute adjusted constant shift
6406 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6408 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6410 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6412 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6414 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6416 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6418 2011-05-07 Jan Hubicka <jh@suse.cz>
6420 * ipa-inline-transform.c (inline_call): Account when program size
6422 * ipa-inline.c (relative_time_benefit): New function.
6423 (edge_badness): Reorganize to be power 2 based; fix thinko when
6424 computing badness for negative growth; update comments to match
6425 reality; better dumps.
6427 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6429 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6430 type to bool and adjust comment.
6431 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6432 (fold_mathfn_compare): Remove calls to global_bindings_p.
6433 (fold_inf_compare): Likewise.
6434 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6435 * c-tree.h (global_bindings_p): Adjust prototype.
6436 * c-decl.c (global_bindings_p): Return bool and simplify.
6438 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6440 PR tree-optimization/48837
6441 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6442 when accumulator transformation is performed.
6444 2011-05-06 Jan Hubicka <jh@suse.cz>
6446 * i386.h (ix86_tune_indices): Add
6447 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6448 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6449 * i386.c (initial_ix86_tune_features): Add
6450 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6451 (software_prefetching_beneficial_p): Remove predicate.
6452 (ix86_option_override_internal): Use new macro.
6454 2011-05-06 Jan Hubicka <jh@suse.cz>
6456 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6458 2011-05-06 Jan Hubicka <jh@suse.cz>
6460 * cgraph.c (cgraph_add_thunk): Create real function node instead
6461 of alias node; finalize it and mark needed/reachale; arrange visibility
6462 to be right and add it into the corresponding same comdat group list.
6463 (dump_cgraph_node): Dump thunks.
6464 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6465 cgraph_function_with_gimple_body_p,
6466 cgraph_first_function_with_gimple_body,
6467 cgraph_next_function_with_gimple_body): New functions.
6468 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6470 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6471 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6472 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6473 devirtualization when optimizing.
6474 (verify_cgraph_node): Verify thunks.
6475 (cgraph_analyze_function): Analyze thunks.
6476 (cgraph_mark_functions_to_output): Output thunks only in combination
6477 with function they are assigned to.
6478 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6479 alias into normal node.
6480 (assemble_thunks): New functoin.
6481 (cgraph_expand_function): Use it.
6482 * lto-cgraph.c (lto_output_node): Stream thunks.
6483 (input_overwrite_node): Stream in thunks.
6484 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6485 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6486 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6487 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6488 (inline_analyze_function): Do not care about thunk jump functions.
6489 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6490 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6491 cgraph_function_with_gimple_body_p.
6492 * passes.c (do_per_function_toporder): Use
6493 cgraph_function_with_gimple_body_p.
6494 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6495 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6496 (function_called_by_processed_nodes_p): Likewise.
6498 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6500 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6501 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6503 (mabi=): Replace with separate entries for mabi=altivec,
6504 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6505 mabi=ieeelongdouble and mabi=ibmlongdouble.
6506 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6507 check for -mabi=spe without SPE ABI support here.
6508 (rs6000_handle_option): Replace OPT_mabi_ handling with
6509 OPT_mabi_altivec and OPT_mabi_spe handling.
6511 2011-05-06 Cary Coutant <ccoutant@google.com>
6513 * dwarf2out.c (contains_subprogram_definition): New function.
6514 (should_move_die_to_comdat): Call it.
6516 2011-05-06 Jeff Law <law@redhat.com>
6518 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6519 remove_ctrl_stmt_and_useless_edges.
6520 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6521 (fixup_template_block, thread_single_edge): Likewise.
6522 (mark_threaded_blocks): Use THREAD_TARGET.
6524 2011-05-06 Alan Modra <amodra@gmail.com>
6527 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6528 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6530 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6532 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6533 constraint modifier to "r".
6535 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6537 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6538 fall through for OPT_mcmodel_.
6540 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6542 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6544 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6546 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6549 * config/arm/arm.opt (marm): Document it.
6550 (mthumb): Reject negative variant.
6552 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6555 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6556 Fix typo in "ccvt" variable name.
6558 2011-05-06 Tristan Gingold <gingold@adacore.com>
6561 * config/vms/vms-ar.c (main): Remove cwd variable.
6563 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6566 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6568 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6570 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6571 * gimplify.c (gimplify_switch_expr): Likewise.
6572 * omp-low.c (expand_omp_sections): Likewise.
6573 * tree-eh.c (lower_try_finally_switch): Likewise.
6574 (lower_eh_dispatch): Likewise.
6575 * tree.h (build_case_label): Declare.
6576 * tree.c (build_case_label): Define.
6578 2011-05-05 Jason Merrill <jason@redhat.com>
6581 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6582 (copy_statement_list): Don't recurse.
6583 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6586 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6588 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6589 through from -mfpu= handling.
6590 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6592 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6594 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6597 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6599 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6601 (hppa[12]*-*-hpux11*): Ditto.
6602 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6603 * config/ia64/hpux-unix2003.h: New.
6604 * config/pa/pa-hpux1131.opt: New.
6605 * config/pa/pa-hpux1131.h: New.
6606 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6607 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6608 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6610 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6613 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6614 instead of mode as 3rd argument to recursive call.
6615 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6616 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6618 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6619 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6620 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6621 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6623 2011-05-05 Julian Brown <julian@codesourcery.com>
6625 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6626 parenthesis in D-register case.
6628 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6630 * opt-functions.awk (var_type_struct): Handle Enum options.
6631 * optc-gen.awk: Don't check range of variables of character type.
6632 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6633 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6634 rs6000_sdata_name, rs6000_explicit_options): Remove.
6635 (rs6000_option_override_internal): Check for -malign-power here.
6636 Use global_options_set instead of rs6000_explicit_options.
6637 (rs6000_parse_fpu_option): Remove.
6638 (rs6000_handle_option): Access variables via opts and opts_set
6639 pointers. Use error_at and warning_at. Add fall-through
6640 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6641 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6642 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6643 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6644 here. Don't use rs6000_parse_fpu_option.
6645 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6646 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6647 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6649 (mspe): Use Var and Save.
6650 (mtraceback=): Use Enum and Var.
6651 (rs6000_traceback_type): New Enum and EnumValue entries.
6652 (mfloat-gprs=): Use Enum, Var and Save.
6653 (rs6000_float_gprs): New Enum and EnumValue entries.
6654 (mlong-double-): use Var and Save.
6655 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6656 (malign-): Use Enum and Var.
6657 (rs6000_alignment_flags): New Enum and EnumValue entries.
6659 (fpu_type_t): New Enum and EnumValue entries.
6660 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6661 global_options_set instead of rs6000_explicit_options.
6662 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6663 global_options_set instead of rs6000_explicit_options.
6664 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6665 global_options_set instead of rs6000_explicit_options.
6666 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6667 global_options_set instead of rs6000_explicit_options.
6668 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6669 global_options_set instead of rs6000_explicit_options.
6670 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6671 global_options_set instead of rs6000_explicit_options.
6672 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6674 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6675 global_options_set instead of rs6000_explicit_options.
6676 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6677 (rs6000_cmodel): New Enum and EnumValue entries.
6678 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6679 global_options_set instead of rs6000_explicit_options.
6680 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6681 (mtls-size=): Use Enum and Var.
6682 (rs6000_tls_size): New Enum and EnumValue entries.
6684 2011-05-05 Michael Matz <matz@suse.de>
6686 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6687 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6688 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6689 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6690 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6691 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6692 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6693 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6694 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6695 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6696 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6697 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6698 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6699 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6700 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6701 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6703 2011-05-05 Richard Guenther <rguenther@suse.de>
6705 * expmed.c (expand_variable_shift): Rename to ...
6706 (expand_shift_1): ... this. Take an expanded shift amount.
6707 For rotates recurse directly not building trees for the shift amount.
6708 (expand_variable_shift): Wrap around expand_shift_1.
6709 (expand_shift): Adjust.
6711 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6713 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6715 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6717 * tree.h (get_pending_sizes): Remove prototype.
6718 (put_pending_size): Likewise.
6719 (put_pending_sizes): Likewise.
6720 * stor-layout.c (pending_sizes): Delete.
6721 (get_pending_sizes): Likewise.
6722 (put_pending_size): Likewise.
6723 (put_pending_sizes): Likewise.
6724 (variable_size): Do not call put_pending_size and tidy up.
6725 * function.h (struct function): Remove dont_save_pending_sizes_p.
6726 * lto-streamer-in.c (input_function): Do not stream it.
6727 * lto-streamer-out.c (output_function): Likewise.
6728 * tree-inline.c (initialize_cfun): Do not copy it.
6729 * c-decl.c (store_parm_decls): Do not set it.
6730 * omp-low.c (create_task_copyfn): Likewise.
6731 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6733 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6735 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6737 (*movdf_internal): Ditto.
6738 (*movdf_internal_nointeger): Ditto.
6739 (*movsf_internal): Ditto.
6741 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6743 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6744 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6745 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6746 (c_variable_size): Remove.
6747 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6748 call put_pending_sizes.
6749 (get_parm_info): Add parameter expr. Use it to set
6750 arg_info->pending_sizes.
6751 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6753 * c-parser.c (c_parser_parms_declarator): Update call to
6754 c_parser_parms_list_declarator.
6755 (c_parser_parms_list_declarator): Take parameter expr. Update
6756 call to push_parm_decl. Update recursive call. Don't call
6757 get_pending_sizes. Update calls to get_parm_info.
6758 (c_parser_objc_method_definition): Update calls to
6759 c_parser_objc_method_decl and objc_start_method_definition.
6760 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6761 (c_parser_objc_method_decl): Add parameter expr. Update call to
6763 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6764 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6765 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6767 2011-05-05 Michael Hope <michael.hope@linaro.org>
6770 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6773 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6775 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6776 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6777 (spu_output_mi_thunk): New function.
6779 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6781 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6782 targetm.asm_out.print_operand.
6783 * config/sol2.c: Include target.h.
6785 2011-05-04 Jan Hubicka <jh@suse.cz>
6787 * ipa-inline.c (reset_edge_caches): New function.
6788 (update_caller_keys): Add check_inlinablity_for; do not
6789 reset edge caches; remove now unnecesary loop.
6790 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6791 (update_all_callee_keys): Likewise.
6792 (inline_small_functions): Sanity check cache; update code
6795 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6797 PR rtl-optimization/47612
6798 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6799 as the last insn of the sequence to be moved.
6801 2011-05-04 Tobias Burnus <burnus@net-b.de>
6804 * doc/invoke.texi (Ofast): Document that it
6805 enables Fortran's -fno-protect-parens.
6807 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6809 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6811 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6813 * stor-layout.c (variable_size): Do not issue errors.
6815 2011-05-04 Richard Guenther <rguenther@suse.de>
6817 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6818 for array-ref indices.
6819 (tree_coverage_counter_addr): Likewise.
6820 (build_fn_info_type): Use size_int for index types.
6821 (build_gcov_info): Likewise.
6823 2011-05-04 Richard Guenther <rguenther@suse.de>
6825 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6827 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6828 for constructor indices.
6829 (push_init_level): Likewise.
6831 2011-05-04 Richard Guenther <rguenther@suse.de>
6833 * explow.c (promote_mode): Move variable declarations before code.
6835 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6837 * tree.h (build_function_type_array): Declare.
6838 (build_varargs_function_type_array): Declare.
6839 (build_function_type_vec, build_varargs_function_type_vec): Define.
6840 * tree.c (build_function_type_array_1): New function.
6841 (build_function_type_array): New function.
6842 (build_varargs_function_type_array): New function.
6844 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6846 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6847 before setting STMT_VINFO_TYPE.
6849 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6851 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6852 instead of spu_pass_by_reference.
6854 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6856 * calls.c (emit_library_call_value_1): Invoke
6857 promote_function_mode hook on libcall arguments.
6858 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6859 argument being NULL.
6860 * targhooks.c (default_promote_function_mode): Lisewise.
6861 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6862 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6864 * doc/tm.texi: Document that TYPE argument might be NULL.
6866 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6868 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6870 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6873 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6875 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6877 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6878 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6880 * mips-tfile.c: ... here.
6881 Don't include coretypes.h, tm.h, filenames.h.
6882 (saber_stop): Remove definition and all calls.
6883 [__SABER__]: Remove.
6884 (__LINE__): Remove default.
6885 (Size_t, Ptrdiff_t): Remove definitions.
6886 Replace by size_t, ptrdiff_t.
6887 [!MIPS_DEBUGGING_INFO]: Remove.
6888 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6889 (progname): Add const.
6891 Replace all uses by static.
6892 (ALIGN_SYMTABLE_OFFSET): Remove default.
6893 * mips-tdump.c: Don't include coretypes.h, tm.h.
6894 Remove !MIPS_IS_STAB guard.
6895 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6896 $(TM_H), filenames.h dependencies.
6897 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6899 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6902 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6903 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6905 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6908 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6909 account and save/restore RETS.
6910 (PROFILE_BEFORE_PROLOGUE): Define.
6911 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6912 the push insn to use predecrement.
6914 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6917 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6919 2011-05-04 Nick Clifton <nickc@redhat.com>
6921 * config/mn10300/mn10300.c: Include cfgloop.h.
6923 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6924 Lcc or a FLcc insn into the instruction stream.
6925 (mn10300_block_contains_call): New function. Returns true if the
6926 given basic block contains a CALL insn.
6927 (mn10300_loop_contains_call_insn): New function. Returns true if
6928 the given loop contains a CALL insn.
6929 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6930 to use the SETLB and Lcc or FLcc insns.
6931 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6932 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6933 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6934 disable the SETLB optimization.
6935 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6936 __SETLB__ or __NO_SETLB__.
6937 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6938 (movsf_internal): Handle MDR register.
6939 (cmpsi): Make visible.
6940 (setlb): New pattern.
6942 (FLcc): New pattern.
6944 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6947 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6948 for reg<->xmm moves.
6949 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6950 (vec_concatv2di_rex64_sse): Ditto.
6951 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6952 (*vec_extractv2di_1_rex64): Ditto.
6955 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6957 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6959 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6961 2011-05-04 Richard Guenther <rguenther@suse.de>
6963 * tree.h (int_const_binop): Remove notrunc argument.
6964 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6965 create integer constants that are properly truncated.
6966 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6967 (const_binop): Remove zero notrunc argument to int_const_binop.
6968 (size_binop_loc): Likewise.
6969 (fold_div_compare): Likewise.
6970 (maybe_canonicalize_comparison_1): Likewise.
6971 (fold_comparison): Likewise.
6972 (fold_binary_loc): Likewise.
6973 (multiple_of_p): Likewise.
6974 * expr.c (store_constructor): Likewise.
6975 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6976 (maybe_fold_stmt_addition): Likewise.
6977 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6978 * stor-layout.c (layout_type): Likewise.
6979 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6980 * tree-sra.c (build_ref_for_offset): Likewise.
6981 (build_user_friendly_ref_for_offset): Likewise.
6982 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6983 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6984 * tree-ssa-loop-niter.c (inverse): Likewise.
6985 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6986 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6987 * tree-switch-conversion.c (check_range): Likewise.
6988 (build_constructors): Likewise.
6989 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6990 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6991 (extract_range_from_assert): Likewise.
6992 (vrp_int_const_binop): Likewise.
6993 (extract_range_from_binary_expr): Likewise.
6994 (extract_range_from_unary_expr): Likewise.
6995 (check_array_ref): Likewise.
6996 (find_case_label_range): Likewise.
6997 (simplify_div_or_mod_using_ranges): Likewise.
6998 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6999 comparing case labels for merging.
7001 2011-05-03 Mark Wielaard <mjw@redhat.com>
7003 * dwarf2out.c (debug_str_hash_forced): Removed.
7004 (gen_label_for_indirect_string): Removed.
7005 (get_debug_string_label): Removed.
7006 (AT_string_form): Generate label directly.
7007 (output_indirect_string): Test indirect_string_node for
7008 DW_FORM_strp instead of checking label and refcount.
7009 (prune_indirect_string): Removed.
7010 (prune_unused_types): Don't check debug_str_hash_forced or
7011 call prune_indirect_string.
7013 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7016 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7018 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7022 * combine.c (try_combine): Skip debug insns at m_split tests.
7024 2011-04-26 Mark Wielaard <mjw@redhat.com>
7027 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7028 when info_section_emitted.
7030 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7032 * config/mips/mips-opts.h: New.
7033 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7035 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7036 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7037 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7039 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7041 (mips_abi, mips_code_readable): Don't declare.
7042 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7043 (mabi=): Use Enum and Var.
7044 (mips_abi): New Enum and EnumValue entries.
7045 (mcode-readable=): Use Enum and Var.
7046 (mips_code_readable_setting): New Enum and EnumValue entries.
7047 (mr10k-cache-barrier=): Use Enum and Var.
7048 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7050 2011-05-03 Jan Hubicka <jh@suse.cz>
7052 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7053 replace hash by pointer map.
7054 (cgraph_node_set_element_def, cgraph_node_set_element,
7055 const_cgraph_node_set_element, varpool_node_set_element_def,
7056 varpool_node_set_element, const_varpool_node_set_element): Remove.
7057 (free_cgraph_node_set, free_varpool_node_set): New function.
7058 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7059 * tree-emutls.c: Free varpool node set.
7060 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7061 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7062 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7063 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7064 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7065 Move here from ipa.c; implement using pointer_map
7066 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7067 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7068 debug_cgraph_node_set, varpool_node_set_new,
7069 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7070 dump_varpool_node_set, debug_varpool_node_set):
7071 Move to ipa-uitls.c.
7072 * passes.c (ipa_write_summaries): Update.
7074 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7076 From Mike Frysinger:
7077 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7078 bf542/bf544/bf547/bf548/bf549.
7080 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7082 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7084 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7087 * config/bfin/bfin.md (MOVCC): New mode_macro.
7088 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7089 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7090 comments from generated assembly.
7092 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7095 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7096 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7097 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7098 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7099 * config/bfin/lib1funcs.asm (___muldi3): New function.
7101 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7103 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7104 build_function_type_list instead of build_function_type.
7105 Rearrange initialization of `args' to do so.
7107 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7109 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7110 instead of build_function_type.
7112 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7114 * config/rs6000/rs6000.c (spe_init_builtins): Call
7115 build_function_type_list instead of build_function_type.
7116 (paired_init_builtins, altivec_init_builtins): Likewise.
7117 (builtin_function_type): Likewise.
7119 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7121 * config/sh/sh.c (sh_media_init_builtins): Call
7122 build_function_type_list instead of build_function_type.
7124 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7126 * config/sparc/sparc.c (sparc_file_end): Call
7127 build_function_type_list instead of build_function_type.
7129 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7131 * config/alpha/alpha.c (alpha_init_builtins): Call
7132 build_function_type_list instead of build_function_type.
7134 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7136 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7137 build_function_type_list instead of build_function_type.
7139 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7141 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7142 build_function_type_list instead of build_function_type.
7143 Delete `endlink' variable.
7145 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7147 * config/avr/avr.c (avr_init_builtins): Call
7148 build_function_type_list instead of build_function_type.
7150 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7152 * config/picochip/picochip.c (picochip_init_builtins): Call
7153 build_function_type_list instead of build_function_type.
7154 Delete `endlink' variable.
7156 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7158 * config/bfin/bfin.c (bfin_init_builtins): Call
7159 build_function_type_list instead of build_function_type.
7161 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7164 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7165 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7167 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7170 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7171 libbffastfp overrides libgcc when -mfast-fp.
7173 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7175 Originally from Bernd Schmidt
7176 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7177 * config/bfin/bfin.c (override_options): Test it and error if
7180 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7182 Originally From Bernd Schmidt
7183 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7186 2011-05-03 Jeff Law <law@redhat.com>
7188 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7189 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7190 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7191 than accessing AUX field directly. Free the AUX field before
7193 (thread_block, thread_through_loop_header): Likewise.
7194 (thread_single_edge, mark_threaded_blocks): Likewise.
7195 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7196 (register_jump_thread): Do not attempt to thread to a NULL edge.
7198 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7200 * function.c (init_function_start): Call decide_function_section.
7201 * varasm.c (decide_function_section): New function.
7202 (assemble_start_function): When not using
7203 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7204 or first_function_block_is_cold.
7205 * rtl.h (decide_function_section): Declare.
7207 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7208 Jakub Jelinek <jakub@redhat.com>
7211 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7212 only succeed if req_mode is the same as set_mode.
7214 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7216 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7217 * genemit.c (gen_exp): Handle RETURN.
7218 * emit-rtl.c (verify_rtx_sharing): Likewise.
7219 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7220 * rtl.c (copy_rtx): RETURN is shared.
7221 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7223 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7224 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7225 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7226 * config/cris/cris.c (cris_expand_return): Likewise.
7227 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7228 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7229 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7230 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7231 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7233 * config/v850/v850.c (expand_epilogue): Likewise.
7234 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7235 * config/arm/arm.md (epilogue): Likewise.
7236 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7237 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7238 variable to ret_reg.
7240 2011-05-03 Richard Guenther <rguenther@suse.de>
7243 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7244 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7245 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7247 2011-05-03 Richard Guenther <rguenther@suse.de>
7249 * c-decl.c (grokdeclarator): Instead of looking at
7250 TREE_OVERFLOW check if the constant fits in the index type.
7252 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7254 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7255 (vec_store_lanes<mode><mode>): Likewise.
7257 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7259 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7260 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7261 convert_optab_index values.
7262 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7263 * genopinit.c (optabs): Initialize the new optabs.
7264 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7265 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7266 (expand_STORE_LANES): New functions.
7267 * tree.h (build_array_type_nelts): Declare.
7268 * tree.c (build_array_type_nelts): New function.
7269 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7270 (vect_model_load_cost): Likewise.
7271 (vect_store_lanes_supported, vect_load_lanes_supported)
7272 (vect_record_strided_load_vectors): Declare.
7273 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7274 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7275 (vect_transform_strided_load): Split out statement recording into...
7276 (vect_record_strided_load_vectors): ...this new function.
7277 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7278 (write_vector_array, create_array_ref): New functions.
7279 (vect_model_store_cost): Add store_lanes_p argument.
7280 (vect_model_load_cost): Add load_lanes_p argument.
7281 (vectorizable_store): Try to use store-lanes functions for
7283 (vectorizable_load): Likewise load-lanes and loads.
7284 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7285 to vect_model_store_cost.
7286 (vect_build_slp_tree): Likewise vect_model_load_cost.
7288 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7290 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7291 * hooks.c (hook_bool_mode_uhwi_false): New function.
7292 * target.def (array_mode_supported_p): New hook.
7293 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7294 * doc/tm.texi: Regenerate.
7295 * stor-layout.c (mode_for_array): New function.
7296 (layout_type): Use it.
7297 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7298 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7300 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7303 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7304 for -fstack-check if the size to allocate is negative.
7306 2011-05-02 Lawrence Crowl <crowl@google.com>
7308 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7309 (timevar_cond_start): New for starting a timer only when it is not
7311 (timevar_cond_stop): New for stopping a timer when it was not already
7314 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7315 (timevar_cond_start): New as above.
7316 (timevar_cond_stop): New as above.
7318 * timevar.def: Add start/stop timers for compiler phases,
7319 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7320 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7321 and TV_PHASE_FINALIZE.
7322 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7323 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7324 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7325 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7326 Make unused TV_OVERLOAD into a start/stop timer.
7328 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7329 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7330 to indicate that they are start/stop timers.
7332 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7333 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7334 Move initialization to do_compile.
7335 (do_compile): Add initialization from above.
7336 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7338 * c-decl.c (c_write_global_declarations): Add start/stop of
7339 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7341 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7342 or TV_PARSE_INLINE, as appropriate.
7343 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7344 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7346 2011-05-02 Jason Merrill <jason@redhat.com>
7349 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7351 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7354 * c-decl.c (finish_decl): Only create a composite if the types are
7357 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7359 * config/fr30/fr30-protos.h (Mmode): Don't define.
7360 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7361 definition where used.
7362 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7363 define. Expand definitions where used.
7364 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7365 Expand definitions where used.
7366 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7367 rx_function_arg, rx_function_arg_advance,
7368 rx_function_arg_boundary): Expand definitions of those macros.
7369 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7370 definition where used.
7372 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7374 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7376 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7377 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7378 with *movv2sf_internal_rex64_avx.
7379 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7380 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7381 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7382 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7383 "vex" in "prefix" attribute calculation.
7384 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7386 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7389 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7390 inputs match the output.
7392 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7395 * config/m68k/m68k.c (m68k_expand_prologue): Set
7396 current_function_static_stack_size.
7398 2011-05-02 Jan Hubicka <jh@suse.cz>
7400 * lto-streamer.c (lto_streamer_cache_insert_1,
7401 lto_streamer_cache_lookup, lto_streamer_cache_create,
7402 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7403 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7405 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7407 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7408 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7409 config/m68k/t-opts: New files.
7410 * config/m68k/m68k-tables.opt: New file (generated).
7411 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7412 extra_options and m68k/t-opts to tmake_file.
7413 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7414 (all_isas): Initialize using m68k-isas.def.
7415 (all_microarchs): Initialize using m68k-microarchs.def.
7416 (m68k_find_selection): Remove.
7417 (m68k_handle_option): Don't assert that global structures are in
7418 use. Use error_at. Access variables via opts pointer. Don't
7419 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7420 directly for -m68020-40 and -m68020-60.
7421 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7422 m68k_tune_entry here.
7423 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7425 (m68k_library_id_string): Remove declaration.
7426 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7427 (m68k_library_id_string): New Variable.
7428 (march=, mcpu=, mtune=): Use Enum and Var.
7430 2011-05-02 Richard Guenther <rguenther@suse.de>
7432 * varasm.c (output_constructor_regular_field): Compute zero-based
7433 index with double-ints. Make sure to ICE instead of producing
7435 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7436 in asserts. Properly use a signed type.
7438 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7440 * config/i386/sse.md (V): New mode iterator.
7441 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7443 (V_256): Rename from AVX256MODE.
7444 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7445 condition to all users.
7447 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7448 condition to all users.
7449 (VF_128): Make V4SF mode unconditional.
7450 (VF_256): Rename from AVX256MODEF2P.
7451 (VI4F_128): Rename from SSEMODE4S.
7452 (VI8F_128): Rename from SSEMODE2D.
7453 (VI4F_256): Rename from AVX256MODE8P.
7454 (VI8F_256): Rename from AVX256MODE4P.
7455 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7456 (ssescalarmodesuffix): Remove SF and DF modes.
7457 (SSEMODE124): Remove.
7458 (SSEMODE1248): Ditto.
7459 (SSEMODEF2P): Ditto.
7460 (AVXMODEF2P): Ditto.
7461 (AVXMODEFDP): Ditto.
7462 (AVXMODEFSP): Ditto.
7463 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7465 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7467 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7468 xop_pcmov_<mode>256. Use V mode iterator.
7470 Adjust RTX patterns globally for renamed mode attributes.
7472 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7474 * haifa-sched.c (sched_emit_insn): Emit insn before first
7475 non-scheduled insn. Inform back-end about new insn. Add
7476 new insn to scheduled_insns list.
7478 2011-05-02 Richard Guenther <rguenther@suse.de>
7480 PR tree-optimization/48822
7481 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7482 (process_scc): Indicate which iteration we start.
7484 2011-05-02 Jan Hubicka <jh@suse.cz>
7486 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7487 (lto_section_overrun): New.
7488 * lto-section-out.c (append_block): Rename to ...
7489 (lto_append_block): ... this one; export.
7490 (lto_output_1_stream): Move lto lto-streamer.h
7491 (lto_output_data_stream): Update.
7492 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7493 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7496 2011-05-02 Richard Guenther <rguenther@suse.de>
7498 * tree.c (tree_code_counts): New global array.
7499 (record_node_allocation_statistics): Count individual tree codes.
7500 (dump_tree_statistics): Dump individual code stats.
7502 2011-05-01 Jan Hubicka <jh@suse.cz>
7504 * ipa-inline.c (caller_growth_limits): Fix thinko when
7505 looking for largest stack frame.
7506 * ipa-inline.h (dump_inline_summary): Declare.
7507 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7509 (dump_inline_summary): Export.
7510 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7512 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7514 * reginfo.c (memory_move_cost): Change rclass argument type form
7515 'enum reg_class' to reg_class_t.
7516 * reload.h (memory_move_cost): Update prototype.
7517 * postreload.c reload_cse_simplify_set): Change type dclass var to
7519 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7521 (ira_allocate_and_set_costs): Change aclass argument type form
7522 'enum reg_class' to reg_class_t.
7523 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7524 Change aclass argument type to reg_class_t.
7525 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7527 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7528 memory_move_cost call.
7530 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7531 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7532 Change type tmp var to reg_class_t.
7534 2011-04-30 Jan Hubicka <jh@suse.cz>
7536 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7537 inlining into function with flatten attribute.
7538 (want_inline_small_function_p): Be more realistic about inlining
7539 cold calls where callee size grows.
7541 2011-04-30 Jan Hubicka <jh@suse.cz>
7543 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7546 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7548 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7549 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7550 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7551 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7552 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7553 (print_operand): Rename to...
7554 (sparc_print_operand): ...this. Make static. Adjust
7555 sparc_print_operand function call.
7556 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7559 2011-04-30 Jan Hubicka <jh@suse.cz>
7562 * ipa-inline.c (early_inliner): Disable when doing late
7563 addition of function.
7565 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7567 * dwarf2out.c (get_address_mode): New inline.
7568 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7569 if not dwarf_strict emit
7570 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7571 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7572 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7573 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7574 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7575 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7576 mem_loc_descriptor callers.
7577 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7578 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7579 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7580 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7581 (base_types): New variable.
7582 (get_base_type_offset, calc_base_type_die_sizes,
7583 base_type_for_mode, mark_base_types, base_type_cmp,
7584 move_marked_base_types): New functions.
7585 (calc_die_sizes): Assert that die_offset is 0 or equal to
7587 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7588 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7589 callers. If not dwarf_strict, call mem_loc_descriptor even for
7590 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7591 (gen_subprogram_die): Don't give up on call site parameters
7592 with non-integral or large integral modes. Adjust
7593 mem_loc_descriptor callers.
7594 (prune_unused_types): Call prune_unused_types_mark on base_types
7596 (resolve_addr): Call mark_base_types.
7597 (dwarf2out_finish): Call move_marked_base_types.
7599 PR tree-optimization/48809
7600 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7602 (gen_inbound_check): Don't compute index_expr - range_min in utype
7603 again, instead reuse SSA_NAME initialized in build_arrays.
7604 Remove two useless gsi_for_stmt calls.
7606 2011-04-29 Jeff Law <law@redhat.com>
7608 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7610 2011-04-29 Martin Jambor <mjambor@suse.cz>
7612 * cgraph.h (cgraph_postorder): Remove declaration.
7613 * ipa-utils.h (ipa_free_postorder_info): Declare.
7614 (ipa_reverse_postorder): Likewise.
7615 * cgraphunit.c: Include ipa-utils.h.
7616 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7617 * ipa-inline.c: Include ipa-utils.h.
7618 (ipa_inline): Update call to ipa_reverse_postorder.
7619 * ipa-pure-const.c (propagate_pure_const): Update call to
7620 ipa_reduced_postorder and ipa_print_order. Call
7621 ipa_free_postorder_info to clean up.
7622 (propagate_nothrow): Likewise.
7623 * ipa-reference.c (propagate): Removed a useless call to
7624 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7625 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7626 * ipa.c: Include ipa-utils.h.
7627 (ipa_profile): Update call to ipa_reverse_postorder.
7628 (cgraph_postorder): Moved to...
7629 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7630 (ipa_utils_print_order): Renamed to ipa_print_order.
7631 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7633 (ipa_free_postorder_info): New function.
7634 * passes.c: Include ipa-utils.h.
7635 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7636 (ipa_write_summaries): Likewise.
7637 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7638 (cgraphunit.o): Likewise.
7640 (ipa-inline.o): Likewise.
7642 2011-04-29 Jan Hubicka <jh@suse.cz>
7644 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7645 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7646 * ipa-inline.h (clause_t): Turn into unsigned int.
7647 * ipa-inline-analysis.c (add_clause): Do more simplification.
7648 (and_predicates): Shortcut more cases.
7649 (predicates_equal_p): Move forward; check that clauses are properly
7651 (or_predicates): Shortcut more cases.
7652 (edge_execution_predicate): Rewrite as...
7653 (set_cond_stmt_execution_predicate): ... this function; handle
7654 __builtin_constant_p.
7655 (set_switch_stmt_execution_predicate): New .
7656 (compute_bb_predicates): New.
7657 (will_be_nonconstant_predicate): Update TODO.
7658 (estimate_function_body_sizes): Use compute_bb_predicates
7659 and free them later, always try to estimate if stmt is constant.
7660 (estimate_time_after_inlining, estimate_size_after_inlining):
7661 Gracefully handle optimized out edges.
7662 (read_predicate): Fix off by one error.
7664 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7666 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7668 2011-04-27 Xinliang David Li <davidxl@google.com>
7670 * tree-profile.c (init_ic_make_global_vars): Set
7671 tls attribute on ic vars.
7672 * coverage.c (coverage_end_function): Initialize
7673 function_list with zero.
7675 2011-04-29 Richard Guenther <rguenther@suse.de>
7677 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7678 for the type of the result.
7679 (fold_builtin_isascii): Likewise.
7680 (fold_builtin_toascii): Use integer_type_node where appropriate.
7681 (fold_builtin_logb): Likewise.
7682 (fold_builtin_frexp): Likewise.
7683 (fold_builtin_strstr): Likewise.
7684 (fold_builtin_strpbrk): Likewise.
7685 (fold_builtin_fputs): Likewise.
7686 (fold_builtin_sprintf): Likewise.
7687 (fold_builtin_snprintf): Likewise.
7688 (fold_builtin_printf): Likewise.
7689 (do_mpfr_remquo): Use a proper type for the assigned constant.
7690 (do_mpfr_lgamma_r): Likewise.
7691 * dwarf2out.c (resolve_one_addr): Use size_int.
7692 * except.c (init_eh): Likewise.
7693 (assign_filter_values): Use integer_type_node for filter values.
7694 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7696 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7697 for EH region numbers.
7698 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7699 for the shift amount.
7701 2011-04-29 Richard Guenther <rguenther@suse.de>
7703 * expr.h (expand_shift): Rename to ...
7704 (expand_variable_shift): ... this.
7705 (expand_shift): Take a constant shift amount.
7706 * expmed.c (expand_shift): Rename to ...
7707 (expand_variable_shift): ... this.
7708 (expand_shift): New wrapper around expand_variable_shift.
7709 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7710 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7711 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7712 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7713 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7714 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7715 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7716 emit_store_flag_1, emit_store_flag): Likewise.
7717 * builtins.c (expand_builtin_signbit): Likewise.
7718 * calls.c (load_register_parameters): Likewise.
7719 * function.c (assign_parm_setup_block): Likewise.
7720 * lower-subreg.c (resolve_shift_zext): Likewise.
7721 * optabs.c (widen_bswap, expand_abs_nojump,
7722 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7723 * spu/spu.c (spu_expand_extv): Likewise.
7724 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7726 2011-04-29 Richard Guenther <rguenther@suse.de>
7728 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7729 for the remapped region number.
7730 * predict.c (build_predict_expr): Use integer_type_node for the
7732 * fold-const.c (fold_binary_loc): Use integer_type_node for
7733 the shift amount. Use a proper type for the PLUS_EXPR operand.
7735 2011-04-29 Michael Matz <matz@suse.de>
7737 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7738 other trees that just builtins.
7739 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7741 2011-04-29 Richard Guenther <rguenther@suse.de>
7743 * tree-nested.c (get_trampoline_type): Use size_int.
7744 (get_nl_goto_field): Likewise.
7745 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7747 (lower_eh_constructs_2): Likewise.
7748 (lower_resx): Likewise.
7749 (lower_eh_dispatch): Likewise.
7750 * tree-mudflap.c (mf_build_string): Use size_int.
7751 (mudflap_register_call): Use integer_type_node for the flag.
7752 (mudflap_enqueue_constant): Use size_int.
7753 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7754 instead of rebuilding it.
7756 2011-04-29 Richard Guenther <rguenther@suse.de>
7758 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7759 Handle OBJ_TYPE_REF.
7760 (find_func_aliases_for_call): Use it more consistently.
7762 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7764 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7765 (rank_for_schedule): Use it.
7766 (schedule_block): Set it.
7768 2011-04-28 David Li <davidxl@google.com>
7770 * tree.c (crc32_string): Use crc32_byte.
7771 (crc32_byte): New function.
7772 * tree.h (crc32_byte): New function.
7773 * gcov.c (read_graph_file): Handle new cfg_cksum.
7774 (read_count_file): Ditto.
7775 * profile.c (instrument_values): Ditto.
7776 (get_exec_counts): Ditto.
7777 (read_profile_edge_counts): Ditto.
7778 (compute_branch_probabilities): Ditto.
7779 (compute_value_histograms): Ditto.
7780 (branch_prob): Ditto.
7781 (end_branch_prob): Ditto.
7782 * coverage.c (read_counts_file): Ditto.
7783 (get_coverage_counts): Ditto.
7784 (tree_coverage_counter_addr): Ditto.
7785 (coverage_checksum_string): Ditto.
7786 (coverage_begin_output): Ditto.
7787 (coverage_end_function): Ditto.
7788 (build_fn_info_type): Ditto.
7789 (build_fn_info_value): Ditto.
7790 * libgcov.c (gcov_exit): Ditto.
7791 * gcov-dump.c (tag_function): Ditto.
7792 (compute_checksum): Remove.
7794 2011-04-29 Alan Modra <amodra@gmail.com>
7796 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7797 unspec plus offset. Tidy macho code.
7799 2011-04-29 Martin Jambor <mjambor@suse.cz>
7801 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7802 node instead of a decl. Update all callers.
7803 * cgraph.h: Update declaration.
7805 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7807 PR tree-optimization/48765
7808 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7809 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7810 to indicate if loop aware SLP is being used. Scan the statements
7811 and update the vectorization factor according to the type of
7812 vectorization before statement analysis.
7813 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7814 pass it to vect_analyze_loop_operations.
7815 (vectorizable_reduction): Set number of copies to 1 in case of pure
7817 * tree-vect-stmts.c (vectorizable_conversion,
7818 vectorizable_assignment, vectorizable_shift,
7819 vectorizable_operation, vectorizable_type_demotion,
7820 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7822 (vectorizable_condition): Move the check that it is not SLP
7823 vectorization before the number of copies check.
7824 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7825 to vectorize the loop using SLP.
7827 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7830 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7833 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7835 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7836 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7837 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7838 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7839 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7841 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7842 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7843 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7844 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7845 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7846 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7848 * config/i386/linux.h (REG_NAME): Don't define.
7849 * config/i386/linux64.h (REG_NAME): Don't define.
7850 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7851 Undefine before defining.
7853 2011-04-28 Jan Hubicka <jh@suse.cz>
7855 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7856 nonconstant_names array.
7857 (estimate_function_body_sizes): Build nonconstant_names array; handle
7858 BUILT_IN_CONSTANT_P.
7860 2011-04-28 Richard Guenther <rguenther@suse.de>
7864 2011-04-28 Richard Guenther <rguenther@suse.de>
7866 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7867 as late as possible.
7869 2011-04-28 Richard Guenther <rguenther@suse.de>
7871 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7872 (debug_constraint): Do it here.
7873 (dump_constraints): And here.
7874 (rewrite_constraints): And here.
7875 (dump_constraint_edge): Remove.
7876 (dump_constraint_graph): Rewrite to produce DOT output.
7877 (solve_constraints): Build succ graph as late as possible.
7878 Dump constraint graphs before and after solving.
7880 2011-04-28 Richard Guenther <rguenther@suse.de>
7882 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7883 New function split out from ...
7884 (find_func_aliases): ... here. Call it.
7885 (find_func_aliases_for_call): Likewise.
7887 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7889 * internal-fn.h (internal_fn_name_array): Declare.
7890 (internal_fn_flags_array): Likewise.
7892 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7894 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7895 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7897 (ssemodefsuffix): Remove.
7898 (ssevecmodesuffix): New mode attribute.
7899 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7900 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7901 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7902 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7903 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7904 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7905 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7906 ssemodesuffix mode attribute.
7907 (float splitters): Use ssevecmodesuffix mode attribute.
7908 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7909 (sseinsmode): Rename from avxvecmode.
7910 (avxsizesuffix): Rename from avxmodesuffix.
7911 (sseintvecmode): Rename from avxpermvecmode.
7912 (ssedoublevecmode): Rename from ssedoublesizemode.
7913 (ssehalfvecmode): Rename from avxhalfvecmode.
7914 (ssescalarmode): Rename from avxscalarmode.
7915 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7916 templates for ssemodesuffix mode attribute.
7917 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7920 Adjust RTX patterns globally for renamed mode attributes.
7922 2011-04-27 Jan Hubcika <jh@suse.cz>
7924 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7925 * ipa-inline-analysis.c: Include alloc-pool.h.
7926 (edge_predicate_pool): New.
7927 (trye_predicate_p): New function
7928 (false_predicate_p): New function.
7929 (add_clause): Sanity check that false clauses are "optimized";
7930 never add clauses to predicate that is already known to be false.
7931 (and_predicate): Use flase_predicate_p.
7932 (evaulate_predicate): Rename to ...
7933 (evaluate_predicate): ... this one; update all callers; assert
7934 that false is not listed among possible truths.
7935 (dump_predicate): Use true_predicate_p.
7936 (account_size_time): Use false_predicate_p.
7937 (evaulate_conditions_for_edge): Rename to ...
7938 (evaluate_conditions_for_edge) ... this one.
7939 (edge_set_predicate): New function.
7940 (inline_edge_duplication_hook): Duplicate edge predicates.
7941 (inline_edge_removal_hook): Free edge predicates.
7942 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7943 (dump_inline_summary): Update.
7944 (estimate_function_body_sizes): Set edge predicates.
7945 (estimate_calls_size_and_time): Handle predicates.
7946 (estimate_callee_size_and_time): Update.
7947 (remap_predicate): Add toplev_predicate; update comment.
7948 (remap_edge_predicates): New function.
7949 (inline_merge_summary): Compute toplev predicate; update.
7950 (read_predicate): New function.
7951 (read_inline_edge_summary): Use it.
7952 (inline_read_section): Likewise.
7953 (write_predicate): New function.
7954 (write_inline_edge_summary): Use it.
7955 (inline_write_summary): Likewise.
7956 (inline_free_summary): Free alloc pool and edge summary vec.
7958 2011-04-27 Richard Guenther <rguenther@suse.de>
7960 * tree-ssa-structalias.c (changed_count): Remove.
7961 (changed): Use a bitmap.
7962 (unify_nodes): Adjust.
7963 (do_sd_constraint): Likewise.
7964 (do_ds_constraint): Likewise.
7965 (do_complex_constraint): Likewise.
7966 (solve_graph): Likewise.
7968 2011-04-27 Jan Hubicka <jh@suse.cz>
7970 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7972 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7974 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7975 (avx_vperm2f128_*_operand): Ditto.
7976 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7977 Use avx_vpermilp_parallel in insn condition.
7978 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7979 Use avx_vperm2f128_parallel in insn condition.
7981 2011-04-27 Richard Guenther <rguenther@suse.de>
7983 * Makefile.in (tree-ssa-structalias.o): Remove
7984 gt-tree-ssa-structalias.h dependency.
7985 (GTFILES): Remove tree-ssa-structalias.c.
7986 * tree.c (allocate_decl_uid): New function.
7987 (make_node_stat): Use it.
7988 (copy_node_stat): Likewise.
7989 * tree.h (allocate_decl_uid): Declare.
7990 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7991 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7992 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7993 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7994 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7995 (struct heapvar_map): Likewise.
7996 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7997 heapvar_insert): Likewise.
7998 (make_heapvar_for): Rename to ...
7999 (make_heapvar): ... this. Simplify.
8000 (fake_var_decl_obstack): New global var.
8001 (build_fake_var_decl): New function.
8002 (make_constraint_from_heapvar): Adjust.
8003 (handle_lhs_call): Likewise.
8004 (create_function_info_for): Likewise.
8005 (intra_create_variable_infos): Likewise.
8006 (init_alias_vars): Allocate fake_var_decl_obstack.
8007 (init_alias_heapvars, delete_alias_heapvars): Remove.
8008 (compute_points_to_sets): Do not call init_alias_heapvars.
8009 (ipa_pta_execute): Likewise.
8010 (delete_points_to_sets): Free fake_var_decl_obstack.
8012 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8014 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8015 (si_from_UTItype, si_to_UTItype): New functions.
8016 (__udivmodti4): Use them to implement type-punning.
8017 * config/spu/multi3.c (union qword_TItype): New data type.
8018 (si_from_TItype, si_to_TItype): New functions.
8019 (__multi3): Use them to implement type-punning.
8021 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8023 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8025 2011-04-27 Jan Hubicka <jh@suse.cz>
8027 * ipa-prop.c (function_insertion_hook_holder): New holder.
8028 (ipa_add_new_function): New function.
8029 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8030 Register/deregister holder.
8032 2011-04-27 Richard Guenther <rguenther@suse.de>
8034 PR tree-optimization/48772
8035 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8037 2011-04-27 Richard Guenther <rguenther@suse.de>
8039 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8040 TARGET_MEM_REF handling.
8042 2011-04-27 Nick Clifton <nickc@redhat.com>
8044 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8045 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8046 (REG_CLASS_NAMES): Likewise.
8047 (REG_CLASS_CONTENTS): Likewise.
8048 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8049 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8050 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8051 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8052 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8053 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8054 duplicate register classes.
8055 (frv_class_likely_spilled_p): Likewise.
8056 (frv_register_move_cost): Likewise.
8058 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8059 end of the regno_reg_class array.
8061 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8064 * c-typeck.c (build_binary_op): Don't wrap arguments if
8065 int_operands is true.
8067 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8070 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8071 targetm.calls.must_pass_in_stack for void type.
8073 2011-04-26 Jan Hubicka <jh@suse.cz>
8075 * cgraphbuild.c (build_cgraph_edges): Update call
8076 of cgraph_create_edge and cgraph_create_indirect_edge.
8077 * cgraph.c (cgraph_create_edge_including_clones,
8078 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8079 cgraph_update_edges_for_call_stmt_node): Do not take nest
8080 argument; do not initialize call_stmt_size/time.
8081 (dump_cgraph_node): Do not dump nest.
8082 (cgraph_clone_edge): Do not take loop_nest argument;
8083 do not propagate it; do not clone call_stmt_size/time.
8084 (cgraph_clone_node): Likewise.
8085 (cgraph_create_virtual_clone): Update.
8086 * cgraph.h (struct cgraph_edge): Remove
8087 call_stmt_size/call_stmt_time/loop_nest.
8088 (cgraph_create_edge, cgraph_create_indirect_edge,
8089 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8091 * tree-emutls.c (gen_emutls_addr): Update.
8092 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8093 loop_nest; handle indirect calls, too.
8094 (clone_inlined_nodes): Do not care about updating inline summaries.
8095 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8096 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8097 stream call_stmt_size/call_stmt_time/loop_nest.
8098 * ipa-inline.c (edge_badness): Update.
8099 (ipa_inline): dump summaries after inlining.
8100 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8102 (inline_edge_summary): New function.
8103 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8104 (inline_edge_removal_hook): Handle edge summaries.
8105 (inline_edge_duplication_hook): New hook.
8106 (inline_summary_alloc): Alloc hooks.
8107 (initialize_growth_caches): Do not register removal hooks.
8108 (free_growth_caches); Do not free removal hook.
8109 (dump_inline_edge_summary): New function.
8110 (dump_inline_summary): Use it.
8111 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8112 (inline_update_callee_summaries): New function.
8113 (inline_merge_summary): Use it.
8114 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8115 (read_inline_edge_summary): New function.
8116 (inline_read_section): Use it.
8117 (write_inline_edge_summary): New function.
8118 (inline_write_summary): Use it.
8119 (inline_free_summary): Free edge new holders.
8120 * tree-inline.c (copy_bb): Update.
8122 2011-04-26 Jason Merrill <jason@redhat.com>
8124 * tree-eh.c (lower_try_finally_switch): Create the label along with
8125 the CASE_LABEL_EXPR.
8127 2011-04-26 David S. Miller <davem@davemloft.net>
8128 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8130 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8131 * configure: Regenerate.
8133 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8136 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8138 (VEC_reduc): New code iterator and splitters for vector reduction.
8139 (VEC_reduc_name): Ditto.
8140 (VEC_reduc_rtx): Ditto.
8141 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8142 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8144 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8145 support for extracting SF on VSX.
8147 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8148 generating xscvspdp.
8149 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8150 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8151 double add, minimum, maximum vector reduction.
8152 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8153 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8154 optimize double vector reduction.
8155 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8157 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8159 * config/fr30/fr30.h (inhibit_libc): Don't define.
8160 * config/m32r/m32r-protos.h: Correct comment.
8161 * config/v850/v850.h (GHS_default_section_names,
8162 GHS_current_section_names): Use tree, not union tree_node *.
8164 2011-04-26 Xinliang David Li <davidxl@google.com>
8166 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8167 * c-family/c-opts.c (c_common_handle_option): Set
8168 warn_maybe_uninitialized.
8169 * opts.c (common_handle_option): Ditto.
8170 * common.opt: New option.
8171 * tree-ssa.c (warn_uninit): Add one more parameter.
8172 (warn_uninitialized_var): Pass warning code.
8173 * tree-flow.h: Interface change.
8175 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8177 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8178 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8179 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8181 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8183 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8184 * config/mips/mips.opt (mmips-tfile): Remove.
8186 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8187 mips-tdump reference to ...
8188 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8189 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8190 reference by Tru64 UNIX.
8192 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8195 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8196 is error_mark_node, set value to NULL.
8198 PR tree-optimization/48734
8199 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8200 if return value from maybe_fold_*_comparsions isn't something
8201 the code is prepared to handle.
8203 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8205 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8207 (ext_QIreg_nomode_operands): Remove.
8208 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8212 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8214 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8216 2011-04-26 Richard Guenther <rguenther@suse.de>
8218 * c-typeck.c (build_unary_op): Do not expand array-refs via
8219 pointer arithmetic. Only adjust qualifiers for function types.
8221 2011-04-26 Richard Guenther <rguenther@suse.de>
8224 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8225 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8226 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8227 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8229 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8231 * doc/extend.texi: Document __underlying_type.
8233 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8235 * config/rs6000/titan.md (automata_option "progress"): Remove.
8237 2011-04-25 Jeff Law <law@redhat.com>
8239 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8241 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8243 * system.h (ENUM_BITFIELD): Remove.
8245 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8246 Eric Botcazou <ebotcazou@adacore.com>
8248 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8249 for STORE_FLAG_VALUE==-1 case.
8251 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8254 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8255 LEGITIMATE_PIC_OPERAND_P.
8257 2011-04-24 Jan Hubicka <jh@suse.cz>
8259 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8261 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8262 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8263 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8264 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8265 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8266 Sanity check predicate length.
8267 (remap_predicate): Likewise; sanity check jump functions.
8268 (inline_read_section, inline_write_summary): Sanity check
8271 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8274 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8275 __is_literal_type, and __is_trivial; update throughout about
8276 possibly cv-qualified void types.
8278 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8280 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8281 testsuite and make it version agnostic.
8283 2011-04-22 Jan Hubicka <jh@suse.cz>
8285 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8287 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8290 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8291 to VOID_TYPE even around MODIFY_EXPR.
8293 2011-04-22 Mike Stump <mikestump@comcast.net>
8295 * gensupport.c (read_md_rtx): Fix typo in comment.
8296 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8299 2011-04-22 Jan Hubicka <jh@suse.cz>
8301 * gengtype.c (open_base_files): Add ipa-inline.h include.
8302 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8303 ipa-prop.c; update all uses.
8304 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8305 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8306 merge summary of inlined function into former caller.
8307 * ipa-inline.c (max_benefit): Remove.
8308 (edge_badness): Compensate for removal of benefits.
8309 (update_caller_keys): Use
8310 reset_node_growth_cache/reset_edge_growth_cache.
8311 (update_callee_keys): Likewise.
8312 (update_all_callee_keys): Likewise.
8313 (inline_small_functions): Do not collect max_benefit; do not reset
8314 estimated_growth; call free_growth_caches and initialize_growth_caches.
8315 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8316 struct size_time_entry): New structures.
8317 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8318 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8319 and estimated_growth.
8320 (edge_growth_cache_entry): New structure.
8321 (node_growth_cache, edge_growth_cache): New global vars.
8322 (estimate_growth): Turn into inline.
8323 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8324 initialize_growth_caches, free_growth_caches): Declare.
8325 (estimate_edge_growth): Rewrite.
8326 (estimate_edge_time): Implement as inline cache lookup.
8327 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8329 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8330 (NUM_CONDITIONS): New constant.
8331 (predicate_conditions): New enum.
8332 (IS_NOT_CONSTANT): New constant.
8333 (edge_removal_hook_holder): New var.
8334 (node_growth_cache, edge_growth_cache): New global vars.
8335 (true_predicate, single_cond_predicate, false_predicate,
8336 not_inlined_predicate, add_condition, add_clause, and_predicates,
8337 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8338 dump_clause, dump_predicate, account_size_time,
8339 evaulate_conditions_for_edge): New functions.
8340 (inline_summary_alloc): Move to heap.
8341 (inline_node_removal_hook): Clear condition and entry vectors.
8342 (inline_edge_removal_hook): New function.
8343 (initialize_growth_caches, free_growth_caches): New function.
8344 (dump_inline_summary): Update.
8345 (edge_execution_predicate): New function.
8346 (will_be_nonconstant_predicate): New function.
8347 (estimate_function_body_sizes): Compute BB and constantness predicates.
8348 (compute_inline_parameters): Do not clear estimated_growth.
8349 (estimate_edge_size_and_time): New function.
8350 (estimate_calls_size_and_time): New function.
8351 (estimate_callee_size_and_time): New function.
8352 (remap_predicate): New function.
8353 (inline_merge_summary): New function.
8354 (do_estimate_edge_time): New function based on...
8355 (estimate_edge_time): ... this one.
8356 (do_estimate_edge_growth): New function.
8357 (do_estimate_growth): New function based on....
8358 (estimate_growth): ... this one.
8359 (inline_analyze_function): Analyze after deciding on jump functions.
8360 (inline_read_section): New function.
8361 (inline_read_summary): Use it.
8362 (inline_write_summary): Write all the new data.
8363 * ipa-prop.c (ipa_get_param_decl_index): Export.
8364 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8365 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8367 (ipa_get_lattice): Move here from ipa-cp.c
8368 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8369 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8370 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8371 cgraph_edge_inlinable_p): Remove.
8372 * cgraphunit.c: Include ipainline.h
8373 (cgraph_process_new_functions): Update call of
8374 compute_inline_parameters.
8376 2011-04-22 Richard Guenther <rguenther@suse.de>
8378 * tree.c (build_int_cst): Properly create canonicalized integer
8380 (build_int_cst_type): Remove scary comments.
8382 2011-04-22 Xinliang David Li <davidxl@google.com>
8384 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8385 by default when -Wno-error is not specified.
8386 * opts-global.c (decode_options): Remove call to
8387 control_warning_options.
8389 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8391 PR tree-optimization/48717
8392 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8393 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8395 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8397 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8398 definition where used.
8400 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8403 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8404 TREE_STATIC variables declared inside of some OpenMP construct.
8406 2011-04-22 Martin Jambor <mjambor@suse.cz>
8409 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8411 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8414 * c-typeck.c (pop_init_level): Do not warn about initializing
8417 2011-04-22 Alan Modra <amodra@gmail.com>
8419 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8420 when returning call_cookie.
8421 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8422 pointers, to functions with no more vector args than the current
8423 function, and some non-local calls for ABI_V4.
8424 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8425 sibcall_nonlocal_aix64): Combine to ..
8426 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8427 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8428 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8429 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8430 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8432 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8433 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8434 sibcall_value_symbolic_64): Delete.
8436 2011-04-21 Xinliang David Li <davidxl@google.com>
8438 * cgraph.h: Remove pid.
8439 * cgraph.c: Remove pid.
8440 * value-prof.c (init_node_map): New function.
8441 (del_node_map): New function.
8442 (find_func_by_funcdef_no): New function.
8443 (gimple_ic_transform): Call new function.
8444 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8445 * function.c (get_last_funcdef_no): New function.
8446 * function.h (get_last_funcdef_no): New function.
8447 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8448 to libgcov function.
8449 (tree-profiling): Call node map init and delete function.
8451 2011-04-21 Ian Lance Taylor <iant@google.com>
8453 * godump.c (go_format_type): Use exported Go name for anonymous
8456 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8458 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8459 Call builtin_function_type_list instead of builtin_function_type.
8460 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8462 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8464 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8465 build_function_type_list instead of build_function_type.
8466 Delete variable `endlink'.
8468 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8470 * config/s390/s390.c (s390_init_builtins): Call
8471 build_function_type_list instead of build_function_type.
8473 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8475 * config/ia64/ia64.c (ia64_init_builtins): Call
8476 build_function_type_list instead of builtin_function_type.
8478 2011-04-21 Easwaran Raman <eraman@google.com>
8480 * cfgexpand.c (stack_var): Remove OFFSET...
8481 (add_stack_var): ...and its reference here...
8482 (expand_stack_vars): ...and here.
8483 (stack_var_cmp): Sort by descending order of size.
8484 (partition_stack_vars): Change heuristic.
8485 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8486 (dump_stack_var_partition): Add newline after each partition.
8488 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8489 Jeff Law <law@redhat.com>
8491 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8492 * gengtype.c (matching_file_name_substitute): Likewise.
8494 2011-04-21 Richard Guenther <rguenther@suse.de>
8497 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8499 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8501 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8503 2011-04-21 Richard Guenther <rguenther@suse.de>
8505 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8508 2011-04-21 Richard Guenther <rguenther@suse.de>
8510 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8511 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8512 Use DECL_P, not SSA_VAR_P.
8513 (ptr_derefs_may_alias_p): Likewise.
8514 (ptr_deref_may_alias_ref_p_1): Likewise.
8515 (decl_refs_may_alias_p): Likewise.
8516 (refs_may_alias_p_1): Likewise.
8517 (ref_maybe_used_by_call_p_1): Likewise.
8518 (call_may_clobber_ref_p_1): Likewise.
8519 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8520 are either MEM_REF or TARGET_MEM_REF.
8521 (indirect_refs_may_alias_p): Likewise.
8522 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8523 for MEM_EXPR of indirect calls.
8525 2011-04-21 Tristan Gingold <gingold@adacore.com>
8527 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8528 (dst_file_info_struct): Remove flen field.
8529 (lookup_filename): Remove code that set flen field.
8531 2011-04-21 Tristan Gingold <gingold@adacore.com>
8533 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8535 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8538 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8539 vec_extract and vec_concat for non-SSE4_1 targets.
8541 2011-04-21 Richard Guenther <rguenther@suse.de>
8543 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8546 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8548 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8550 (FILE): Don't undefine.
8552 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8554 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8556 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8558 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8559 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8560 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8562 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8563 definitions where used.
8564 * config/microblaze/microblaze.h (struct microblaze_args): Use
8565 rtx, not struct rtx_def *.
8566 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8568 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8569 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8570 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8571 not struct rtx_def *.
8572 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8574 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8576 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8578 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8580 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8581 operand_equal_p to compare DR_BASE_ADDRESSes.
8582 (vect_check_interleaving): Likewise.
8584 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8587 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8588 for all Neon struct constants.
8590 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8592 * target.def (legitimate_constant_p): New hook.
8593 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8594 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8595 * doc/tm.texi: Regenerate.
8596 * hooks.h (hook_bool_mode_rtx_true): Declare.
8597 * hooks.c (hook_bool_mode_rtx_true): Define.
8598 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8599 * calls.c (precompute_register_parameters): Replace uses of
8600 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8601 (emit_library_call_value_1): Likewise.
8602 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8603 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8604 * ira-costs.c (scan_one_insn): Likewise.
8605 * recog.c (general_operand, immediate_operand): Likewise.
8606 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8607 * reload1.c (init_eliminable_invariants): Likewise.
8609 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8611 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8612 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8614 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8615 * config/alpha/predicates.md (input_operand): Update call to
8616 alpha_legitimate_constant_p.
8618 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8619 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8620 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8621 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8622 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8623 (arm_legitimate_constant_p): New functions.
8624 (arm_cannot_force_const_mem): Make static.
8626 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8628 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8629 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8630 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8631 instead of bfin_legitimate_constant_p.
8632 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8633 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8635 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8637 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8639 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8640 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8641 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8642 (frv_legitimate_constant_p): Make static. Add a mode argument.
8644 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8645 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8646 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8648 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8649 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8650 * config/i386/i386.c (legitimate_constant_p): Rename to...
8651 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8653 (ix86_cannot_force_const_mem): Update accordingly.
8654 (ix86_legitimate_address_p): Likewise.
8655 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8656 * config/i386/i386.md: Update commentary.
8658 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8659 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8660 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8661 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8663 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8665 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8666 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8667 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8668 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8670 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8671 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8672 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8674 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8675 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8676 (m32r_legitimate_constant_p): New function.
8678 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8679 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8680 LEGITIMATE_CONSTANT_P.
8681 (LEGITIMATE_CONSTANT_P): Delete.
8682 * config/m68k/m68k.c (m68k_expand_prologue): Call
8683 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8684 (m68k_legitimate_constant_p): New function.
8685 * config/m68k/m68k.md: Update comments.
8687 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8688 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8689 (mcore_legitimate_constant_p): New function.
8691 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8692 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8693 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8694 Add a mode argument.
8695 (mep_legitimate_address): Update accordingly.
8696 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8698 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8700 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8701 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8702 static. Check OP's mode for VOIDmode.
8703 (microblaze_legitimate_constant_p): New function.
8704 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8706 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8707 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8708 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8709 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8710 * config/mips/predicates.md: Update comments.
8712 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8713 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8714 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8715 (mmix_legitimate_constant_p): Make static, return a bool, and take
8717 (mmix_print_operand_address): Update accordingly.
8719 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8721 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8722 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8723 static. Add a mode argument.
8724 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8726 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8728 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8729 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8730 (pa_legitimate_constant_p): New function.
8732 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8734 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8735 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8736 (pdp11_legitimate_constant_p): New function.
8738 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8739 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8740 (rs6000_legitimate_constant_p): New function.
8742 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8743 (rx_legitimate_constant_p): ...this.
8744 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8745 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8746 (rx_legitimate_constant_p): ...this.
8747 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8748 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8750 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8751 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8752 * config/s390/s390.c (legitimate_constant_p): Rename to...
8753 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8754 and add a mode argument.
8755 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8757 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8759 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8760 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8761 (sh_legitimate_constant_p): New function.
8763 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8764 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8765 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8766 (legitimate_constant_p): Rename to...
8767 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8769 (constant_address_p): Update accordingly.
8771 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8772 argument and return a bool.
8773 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8774 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8775 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8776 (spu_rtx_costs): Update accordingly.
8777 * config/spu/predicates.md (vec_imm_operand): Likewise.
8779 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8781 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8782 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8783 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8785 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8786 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8787 * config/vax/vax.c (legitimate_constant_p): Likewise.
8789 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8790 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8791 (xtensa_legitimate_constant_p): New function.
8793 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8795 * target.def (cannot_force_const_mem): Add a mode argument.
8796 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8797 * doc/tm.texi: Regenerate.
8798 * hooks.h (hook_bool_mode_rtx_false): Declare.
8799 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8800 (hook_bool_mode_const_rtx_true): Likewise.
8801 (hook_bool_mode_rtx_false): New function.
8802 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8803 to be non-VOID. Update call to cannot_force_const_mem.
8804 (find_reloads): Update accordingly.
8805 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8806 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8808 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8809 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8810 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8811 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8812 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8813 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8814 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8815 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8816 (m68k_cannot_force_const_mem): ...this new function.
8817 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8819 (mips_const_insns, mips_legitimize_const_move): Update calls.
8820 (mips_secondary_reload_class): Likewise.
8821 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8822 (pa_cannot_force_const_mem): ...this new function.
8823 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8824 (rs6000_cannot_force_const_mem): ...this new function.
8825 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8827 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8828 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8830 (xtensa_cannot_force_const_mem): ...this new function.
8832 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8834 * config/mips/mips.c (mips16_build_function_stub): Call
8835 build_function_type_list instead of build_function_type.
8836 (mips16_build_call_stub): Likewise.
8838 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8840 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8841 instead of build_function_type.
8843 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8845 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8846 instead of build_function_type.
8848 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8851 * config/i386/i386.md (insv): Change operand 0 constraint to
8852 "register_operand". Change operand 1 and 2 constraint to
8853 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8854 * config/i386/sse.md (sse4_1_pinsrb): Export.
8855 (sse2_pinsrw): Ditto.
8856 (sse4_1_pinsrd): Ditto.
8857 (sse4_1_pinsrq): Ditto.
8858 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8859 * config/i386/i386.c (ix86_expand_pinsr): New.
8861 2011-04-20 Easwaran Raman <eraman@google.com>
8863 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8864 containing union type only with -fstrict-aliasing.
8866 2011-04-20 Jim Meyering <meyering@redhat.com>
8868 Remove useless if-before-free tests.
8869 * calls.c (expand_call, save_area): Likewise.
8870 * cfgcleanup.c (try_forward_edges): Likewise.
8871 * collect2.c (collect_execute): Likewise.
8872 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8873 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8874 * coverage.c (coverage_checksum_string): Likewise.
8875 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8876 * cselib.c (cselib_init): Likewise.
8877 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8878 (df_set_clean_cfg): Likewise.
8879 * function.c (free_after_compilation): Likewise.
8880 * gcc.c (do_spec_1, main): Likewise.
8881 * gcov.c (create_file_names): Likewise.
8882 * gensupport.c (identify_predicable_attribute): Likewise.
8883 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8884 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8885 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8886 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8887 * ipa-pure-const.c (local_pure_const): Likewise.
8888 * ipa-reference.c (propagate): Likewise.
8889 * ira-costs.c (free_ira_costs): Likewise.
8890 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8891 * matrix-reorg.c (mat_free): Likewise.
8892 * prefix.c (get_key_value): Likewise.
8893 * profile.c (compute_value_histograms): Likewise.
8894 * reload1.c (free_reg_equiv): Likewise.
8895 * sched-deps.c (free_deps): Likewise.
8896 * sel-sched-ir.c (fence_clear): Likewise.
8897 * sese.c (set_rename, if_region_set_false_region): Likewise.
8898 * tree-data-ref.c (free_rdg): Likewise.
8899 * tree-eh.c (lower_try_finally): Likewise.
8900 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8901 * tree-ssa-live.c (delete_var_map): Likewise.
8902 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8903 * tree-ssa-pre.c (phi_trans_add): Likewise.
8905 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8907 PR tree-optimization/48611
8908 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8909 beyond ERT_MUST_NOT_THROW region.
8911 2011-04-20 Catherine Moore <clm@codesourcery.com>
8913 * config/mips/mips.opt (mfix-24k): New.
8914 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8915 * config/mips/mips.md (length): Increase by 4 for stores if
8917 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8918 all noreorder if fixing 24K errata.
8919 * doc/invoke.texi: Document mfix-24k.
8921 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8923 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8924 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8926 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8928 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8929 (const_ok_for_op): ... to here.
8931 2011-04-20 Kai Tietz <ktietz@redhat.com>
8933 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8934 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8936 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8938 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8940 2011-04-20 Richard Guenther <rguenther@suse.de>
8942 PR tree-optimization/47892
8943 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8946 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8948 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8950 2011-04-20 Tristan Gingold <gingold@adacore.com>
8952 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8954 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8958 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8959 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8960 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8961 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8962 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8964 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8967 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8968 (avr_asm_named_section, avr_asm_output_aligned_common,
8969 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8970 New functions to update...
8971 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8972 (avr_asm_init_sections): Overwrite section callbacks for
8973 data_section, bss_section.
8974 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8976 (avr_file_end): ...here.
8978 2011-04-20 Richard Guenther <rguenther@suse.de>
8981 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8982 objects and types here. Adjust for their offset before comparing.
8984 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8986 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8989 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8991 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8992 (GIMPLE_H): Include $(INTERNAL_FN_H).
8993 (OBJS-common): Add internal-fn.o.
8994 (internal-fn.o): New rule.
8995 * internal-fn.def: New file.
8996 * internal-fn.h: Likewise.
8997 * internal-fn.c: Likewise.
8998 * gimple.h: Include internal-fn.h.
8999 (GF_CALL_INTERNAL): New gf_mask.
9000 (gimple_statement_call): Put fntype into a union with a new
9002 (gimple_build_call_internal): Declare.
9003 (gimple_build_call_internal_vec): Likewise.
9004 (gimple_call_same_target_p): Likewise.
9005 (gimple_call_internal_p): New function.
9006 (gimple_call_internal_fn): Likewise.
9007 (gimple_call_fntype): Return null for internal calls.
9008 (gimple_call_set_fntype): Assert that the function is not internal.
9009 (gimple_call_set_fn): Likewise.
9010 (gimple_call_set_fndecl): Likewise.
9011 (gimple_call_set_internal_fn): New function.
9012 (gimple_call_addr_fndecl): Handle null functions.
9013 (gimple_call_return_type): Likewise null types.
9014 * gimple.c (gimple_build_call_internal_1): New function.
9015 (gimple_build_call_internal): Likewise.
9016 (gimple_build_call_internal_vec): Likewise.
9017 (gimple_call_same_target_p): Likewise.
9018 (gimple_call_flags): Handle calls to internal functions.
9019 (gimple_call_fnspec): New function.
9020 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9021 (gimple_has_side_effects): Handle null functions.
9022 (gimple_rhs_has_side_effects): Likewise.
9023 (gimple_call_copy_skip_args): Handle calls to internal functions.
9024 * cfgexpand.c (expand_call_stmt): Likewise.
9025 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9026 * gimple-fold.c (gimple_fold_call): Handle null functions.
9027 (gimple_fold_stmt_to_constant_1): Don't fold
9028 calls to internal functions.
9029 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9031 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9032 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9033 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9034 (do_warn_unused_result): Likewise.
9035 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9036 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9037 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9038 the target of a call.
9039 (initialize_hash_element): Update accordingly.
9040 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9041 (iterative_hash_hashable_expr): Handle calls to internal functions.
9042 (print_expr_hash_elt): Likewise.
9043 * tree-ssa-pre.c (can_value_number_call): Likewise.
9044 (eliminate): Handle null functions.
9045 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9046 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9047 (find_func_aliases): Likewise.
9048 * value-prof.c (gimple_ic_transform): Likewise.
9049 (gimple_indirect_call_to_profile): Likewise.
9050 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9051 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9053 2011-04-19 Jan Hubicka <jh@suse.cz>
9055 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9056 * ipa-inline.c (inline_small_functions): Compute summaries first,
9057 populate heap later.
9059 2011-04-19 Jan Hubicka <jh@suse.cz>
9061 * cgraph.h (save_inline_function_body): Remove.
9062 * ipa-inline-transform.c: New file, broke out of...
9063 * ipa-inline.c: ... this one; Update toplevel comment.
9064 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9066 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9067 (cgraph_mark_inline_edge): Rename to inline_call; move to
9068 ipa-inline-transform.c.
9069 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9070 move to ipa-inline-transform.c
9071 (recursive_inlining, inline_small_functions, flatten_function,
9072 ipa_inline, inline_always_inline_functions,
9073 early_inline_small_functions): Update.
9074 (inline_transform): Move to ipa-inline-transform.c.
9075 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9077 * Makefile.in (ipa-inline-transform.o): New file.
9078 * cgraphunit.c (save_inline_function_body): Move to
9079 ipa-inline-transform.c
9081 2011-04-19 DJ Delorie <dj@redhat.com>
9083 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9084 registers if we already know there aren't any.
9085 (m32c_emit_epilogue): Don't emit a barrier here.
9086 (m32c_emit_eh_epilogue): Likewise.
9087 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9088 operands at expand time.
9089 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9091 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9092 duplicates. Provide aliases instead.
9093 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9094 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9097 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9099 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9100 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9101 (general_or_i64_p, sparc_register_move_cost): New function.
9103 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9105 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9106 Add lynx, mipssde. Sort table.
9108 2011-04-19 Xinliang David Li <davidxl@google.com>
9110 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9113 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9116 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9117 is a SUBREG with non-MODE_INT mode inside of it.
9119 2011-04-19 Martin Jambor <mjambor@suse.cz>
9121 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9122 also according to actual contants.
9123 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9124 (gimple_fold_call): Use it.
9125 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9127 2011-04-19 Martin Jambor <mjambor@suse.cz>
9129 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9130 non-pointer assignments.
9132 2011-04-19 Martin Jambor <mjambor@suse.cz>
9134 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9135 account anc_offset and otr_type from the indirect edge info.
9136 * ipa-prop.c (get_ancestor_addr_info): New function.
9137 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9138 get_ancestor_addr_info, call it.
9139 (ipa_note_param_call): Do not initialize information about polymorphic
9140 calls, return the indirect call graph edge. Remove the last
9141 parameter, adjust all callers.
9142 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9143 parameters. Initialize polymorphic information in the indirect edge.
9145 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9148 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9149 the types if they have different enumeration identifiers.
9151 2011-04-19 Jan Hubicka <jh@suse.cz>
9153 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9154 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9155 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9156 (optimize_function_for_size_p) ... here.
9158 2011-04-19 Richard Guenther <rguenther@suse.de>
9161 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9164 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9166 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9167 if DECL_NO_INLINE_WARNING_P is set on the function.
9169 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9172 * reload1.c (inc_for_reload): Return void. All callers changed.
9173 (emit_input_reload_insns): Don't try to delete previous output
9174 reloads to a register, or record spill_reg_store for autoincs.
9176 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9178 * gengtype.h: Updated copyright year.
9179 (struct input_file_st): Add inpisplugin field.
9180 (type_fileloc): New function.
9182 (write_typed_struct_alloc_def): Add gcc_assert.
9183 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9184 (write_typed_alloc_defns): Don't output for plugin files.
9185 (input_file_by_name): Clear inpisplugin field.
9186 (main): Set inpisplugin field for plugin files.
9188 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9190 * gengtype-state.c (string_eq): New.
9191 (read_state): Use string_eq instead of strcmp when creating the
9194 2011-04-19 Wei Guozhi <carrot@google.com>
9197 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9198 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9200 * config/arm/constraints.md (Uu): New constraint.
9201 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9203 2011-04-19 Tristan Gingold <gingold@adacore.com>
9205 * config.gcc (-*-*-*vms): Added.
9206 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9208 * config/vms/vms-ld.c: New file.
9209 * config/vms/vms-ar.c: New file.
9210 * config/vms/t-vmsnative: New file.
9212 2011-04-18 Xinliang David Li <davidxl@google.com>
9214 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9216 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9219 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9220 if TREE_TYPE (v) is non-NULL.
9222 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9223 gimple_get_virt_mehtod_for_binfo.
9224 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9225 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9227 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9229 2011-04-18 Michael Matz <matz@suse.de>
9230 Steve Ellcey <sje@cup.hp.com>
9232 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9233 use its mode as source mode if it isn't VOIDmode.
9235 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9237 * doc/passes.texi: Fill crossref nodes.
9239 2011-04-18 Jim Meyering <meyering@redhat.com>
9241 Fix doubled-word typos in comments and strings
9242 * config/alpha/vms-unwind.h: s/for for/for/
9243 * config/arm/unwind-arm.h: Likewise.
9244 * config/microblaze/microblaze.c: Likewise.
9245 * config/sh/constraints.md: s/in in/in/
9246 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9248 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9250 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9251 (AVX_FLOAT_MODE_P): Ditto.
9252 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9253 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9254 (AVX_VEC_FLOAT_MODE_P): Ditto.
9255 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9256 (UNSPEC_MASKSTORE): Ditto.
9257 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9258 Merge from <sse>_movmsk<ssemodesuffix> and
9259 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9260 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9262 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9263 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9264 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9266 2011-04-18 Jan Hubicka <jh@suse.cz>
9268 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9270 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9271 (want_inline_function_called_once_p): Break out the logic from
9273 (edge_badness): Ensure that profile is not misupdated.
9274 (lookup_recursive_calls): Prioritize by call frequencies.
9275 (inline_small_functions): Move program size estimates here;
9276 actually process whole queue even when unit growth has been
9277 met. (to properly compute inline_failed reasons and for the
9278 case unit size decrease.) Revisit comments on recursive inlining.
9279 (ipa_inline): Remove unit summary code; first inline hot calls
9280 of functions called once, cold calls next.
9281 (order, nnodes): Remove unused variables.
9282 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9283 (GTFILES): Remove ipa-inline.c
9284 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9286 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9288 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9290 2011-04-18 Jie Zhang <jie@codesourcery.com>
9291 Richard Earnshaw <rearnsha@arm.com>
9293 * arm.c (neon_builtin_type_bits): Remove.
9294 (typedef enum neon_builtin_mode): New.
9295 (T_MAX): Don't define.
9296 (typedef enum neon_builtin_datum): Remove bits, codes[],
9297 num_vars and base_fcode. Add mode, code and fcode.
9298 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9299 VAR10): Change accordingly.
9300 (neon_builtin_data[]): Change accordingly
9301 (arm_init_neon_builtins): Change accordingly.
9302 (neon_builtin_compare): Remove.
9303 (locate_neon_builtin_icode): Remove.
9304 (arm_expand_neon_builtin): Change accordingly.
9306 * arm.h (enum arm_builtins): Move to ...
9307 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9309 * arm.c (arm_builtin_decl): Declare.
9310 (TARGET_BUILTIN_DECL): Define.
9311 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9312 (arm_builtin_decls[]): New.
9313 (arm_init_neon_builtins): Store builtin declarations in
9314 arm_builtin_decls[].
9315 (arm_init_tls_builtins): Likewise.
9316 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9317 (arm_builtin_decl): New.
9319 2011-04-18 Richard Guenther <rguenther@suse.de>
9321 * tree.c (upper_bound_in_type): Build properly canonicalized
9323 (lower_bound_in_type): Likewise.
9325 2011-04-18 Richard Guenther <rguenther@suse.de>
9327 * gimple.h (gimple_call_addr_fndecl): New function.
9328 (gimple_call_fndecl): Use it.
9329 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9331 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9332 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9334 2011-04-18 Richard Guenther <rguenther@suse.de>
9337 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9339 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9342 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9343 DECL_IN_CONSTANT_POOL without RTL.
9345 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9346 Ira Rosen <ira.rosen@linaro.org>
9349 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9350 to match neon_vzip/vuzp/vtrn_internal.
9351 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9352 outputs explicitly dependent on both inputs.
9353 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9355 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9357 PR tree-optimization/48616
9358 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9359 whether the shift is by scalar or vector based on whether all SLP
9360 scalar stmts have the same rhs.
9362 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9364 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9367 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9370 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9373 2011-04-17 Jan Hubicka <jh@suse.cz>
9375 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9376 * cgrpahunit.c (cgraph_finalize_function): Do not set
9377 finalized_by_frontend.
9378 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9379 finalized_by_frontend.
9381 2011-04-17 Jan Hubicka <jh@suse.cz>
9383 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9384 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9385 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9386 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9388 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9390 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9392 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9395 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9396 is non-null before accessing it.
9397 (input_cgraph): Remove trailing spaces.
9399 2011-04-17 Revital Eres <revital.eres@linaro.org>
9401 * params.def (sms-min-sc): New param flag.
9402 * modulo-sched.c (sms_schedule): Use it.
9403 * doc/invoke.texi (sms-min-sc): Document it.
9405 2011-04-17 Jan Hubicka <jh@suse.cz>
9407 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9408 present, also set gimple_call_set_cannot_inline.
9409 * ipa-inline.c: Update toplevel comment.
9411 (cgraph_clone_inlined_nodes): Fix linebreaks.
9412 (cgraph_check_inline_limits): Restructure to ...
9413 (caller_growth_limits): ... this one; be more tolerant
9414 on growth in nested inline chains; add explanatory comment;
9415 fix stack accounting thinko introduced by previous patch.
9416 (cgraph_default_inline_p): Remove.
9417 (report_inline_failed_reason): New function.
9418 (can_inline_edge_p): New function.
9419 (can_early_inline_edge_p): New function.
9420 (leaf_node_p): Move upwards in file.
9421 (want_early_inline_function_p): New function.
9422 (want_inline_small_function_p): New function.
9423 (want_inline_self_recursive_call_p): New function.
9424 (cgraph_edge_badness): Rename to ...
9425 (edge_badness) ... this one; fix linebreaks.
9426 (update_edge_key): Update call of edge_baddness; add
9427 detailed dump about queue updates.
9428 (update_caller_keys): Use can_inline_edge_p and
9429 want_inline_small_function_p.
9430 (cgraph_decide_recursive_inlining): Rename to...
9431 (recursive_inlining): Use can_inline_edge_p and
9432 want_inline_self_recursive_call_p; simplify and remove no longer
9434 (cgraph_set_inline_failed): Remove.
9435 (add_new_edges_to_heap): Use can_inline_edge_p and
9436 want_inline_small_function_p.
9437 (cgraph_decide_inlining_of_small_functions): Rename to ...
9438 (inline_small_functions): ... this one; cleanup; use
9439 can/want predicates; cleanup debug ouput; work edges till fibheap
9440 is exhausted and do not stop once unit growth is reached; remove
9441 later loop processing remaining edges.
9442 (cgraph_flatten): Rename to ...
9443 (flatten_function): ... this one; use can_inline_edge_p
9444 and can_early_inline_edge_p predicates.
9445 (cgraph_decide_inlining): Rename to ...
9446 (ipa_inline): ... this one; remove unreachable nodes before
9447 inlining functions called once; simplify the pass.
9448 (cgraph_perform_always_inlining): Rename to ...
9449 (inline_always_inline_functions): ... this one; use
9450 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9451 (cgraph_decide_inlining_incrementally): Rename to ...
9452 (early_inline_small_functions): ... this one; simplify
9453 using new predicates; cleanup; make dumps prettier.
9454 (cgraph_early_inlining): Rename to ...
9455 (early_inliner): newer inline regular functions into always-inlines;
9456 fix updating of call stmt summaries.
9457 (pass_early_inline): Update for new names.
9458 (inline_transform): Fix formating.
9459 (gate_cgraph_decide_inlining): Rename to ...
9460 (pass_ipa_inline): ... this one.
9461 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9462 * ipa-inline-analysis.c (dump_inline_summary): Update.
9463 (compute_inline_parameters): Do not compute disregard_inline_limits;
9464 look for mismatching arguments.
9465 (estimate_growth): Fix handlig of non-trivial self recursion.
9466 (inline_read_summary): Do not read info->disregard_inline_limits.
9467 (inline_write_summary): Do not write info->disregard_inline_limits.
9468 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9469 and move all checks into can_inline_edge_p predicate; re-enable code
9470 comparing optimization levels.
9471 (expand_call_inline): Do not test inline_forbidden_into_p.
9472 * Makefile.in (ipa-inline.o): Update arguments.
9474 2011-04-17 Revital Eres <revital.eres@linaro.org>
9476 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9478 2011-04-17 Revital Eres <revital.eres@linaro.org>
9480 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9482 2011-04-17 Michael Matz <matz@suse.de>
9484 PR tree-optimization/48622
9486 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9487 in same order as they're written.
9489 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9491 * config/pa/predicates.md: Reorganize and simplify predicates.
9492 Eliminate duplicate code checks.
9493 (arith_operand): Rename to arith14_operand
9494 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9495 * config/pa/pa.md: Use renamed operands.
9496 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9497 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9498 arith11_operand, adddi3_operand, indexed_memory_operand,
9499 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9500 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9501 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9502 move_dest_operand, move_src_operand, prefetch_cc_operand,
9503 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9504 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9505 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9506 div_operand, int5_operand, movb_comparison_operator,
9507 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9508 arith_double_operand, ireg_operand, lhs_lshift_operand,
9509 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9510 integer_store_memory_operand): Likewise.
9511 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9512 (integer_store_memory_operand, read_only_operand,
9513 function_label_operand, borx_reg_operand,
9514 non_hard_reg_operand): Likewise.
9515 (eq_neq_comparison_operator): Delete unused operator.
9516 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9517 function_label_operand.
9518 (emit_move_sequence): Likewise.
9520 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9522 * config/i386/sse.md (sseunpackmode): New mode attribute.
9523 (ssepackmode): Ditto.
9524 (vec_pack_trunc_<mode>): Macroize expander from
9525 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9526 (vec_unpacks_lo_<mode>): Macroize expander from
9527 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9528 (vec_unpacks_hi_<mode>): Macroize expander from
9529 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9530 (vec_unpacku_lo_<mode>): Macroize expander from
9531 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9532 (vec_unpacku_hi_<mode>): Macroize expander from
9533 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9534 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9535 ix86_expand_sse4_unpack.
9536 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9538 2011-04-16 Jan Hubicka <jh@suse.cz>
9540 * cgraphbuild.c: Include ipa-inline.h.
9541 (reset_inline_failed): Use initialize_inline_failed.
9542 * cgraph.c: Include ipa-inline.h.
9543 (cgraph_create_node_1): Do not initialize estimated_growth.
9544 (initialize_inline_failed): More to ipa-inline-analysis.c
9545 (dump_cgraph_node): Do not dump inline flags.
9546 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9547 and disregard_inline_limits flags.
9548 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9549 time, size, estimated_growth.
9550 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9552 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9553 DECL_DISREGARD_INLINE_LIMITS.
9554 (cgraph_analyze_function): Do not initialize
9555 node->local.disregard_inline_limits.
9556 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9557 inlinable, versionable and disregard_inline_limits.
9558 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9559 cgraph_check_inline_limits, cgraph_default_inline_p,
9560 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9561 add_new_edges_to_heap): Update.
9562 (cgraph_decide_inlining_of_small_function): Update; set
9563 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9564 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9565 cgraph_decide_inlining_incrementally): Update.
9566 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9567 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9568 time, size and estimated_growth parameters.
9569 (estimate_edge_growth): Update.
9570 (initialize_inline_failed): Declare.
9571 * ipa-split.c: Include ipa-inline.h
9572 (execute_split_functions): Update.
9573 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9574 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9575 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9576 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9577 estimated_growth to INT_MIN.
9578 (inline_node_duplication_hook): Likewise.
9579 (dump_inline_summary): Dump new fields.
9580 (compute_inline_parameters): Update.
9581 (estimate_edge_time, estimate_time_after_inlining,
9582 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9583 inline_write_summary):
9584 (initialize_inline_failed): Move here from cgraph.c.
9585 * tree-sra.c: Include ipa-inline.h.
9586 (ipa_sra_preliminary_function_checks): Update.
9587 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9590 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9592 * config/i386/sse.md (V16): New mode iterator.
9594 (AVXMODEQI, AVXMODEDI): Remove.
9595 (sse2, sse3): New mode attribute.
9596 (mov<mode>): Use V16 mode iterator.
9597 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9598 (push<mode>1): Use V16 mode iterator.
9599 (movmisalign<mode>): Ditto.
9600 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9601 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9602 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9603 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9604 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9605 avx_movdqu<avxmodesuffix>.
9606 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9607 *avx_movdqu<avxmodesuffix>.
9608 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9609 avx_lddqu<avxmodesuffix>.
9610 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9611 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9612 avx_movnt<AVXMODEDI:mode>.
9613 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9614 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9616 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9619 * haifa-sched.c (prune_ready_list, schedule_block): Use
9620 sched_pressure_p rather than flag_sched_pressure.
9622 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9624 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9625 cgraph_get_node instead of cgraph_get_create_node.
9627 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9629 * cfgexpand.c (expand_debug_expr): Use
9630 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9632 2011-04-15 Michael Matz <matz@suse.de>
9634 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9635 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9636 * function.c (gimplify_parameters): Ditto.
9637 * gimplify.c (gimplify_vla_decl): Ditto.
9639 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9640 (gimple_call_set_alloca_for_var): New inline function.
9641 (gimple_call_alloca_for_var_p): Ditto.
9642 * gimple.c (gimple_build_call_from_tree): Remember
9643 CALL_ALLOCA_FOR_VAR_P state.
9644 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9646 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9647 calls if they were for VLA objects.
9649 2011-04-15 Martin Jambor <mjambor@suse.cz>
9651 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9654 2011-04-15 Martin Jambor <mjambor@suse.cz>
9657 * tree-emutls.c (lower_emutls_function_body): Call
9658 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9661 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9663 * c-decl.c (detect_field_duplicates): Call
9664 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9666 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9668 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9669 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9670 * ipa-pure-const.c (check_stmt): Call it.
9671 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9673 2011-04-15 Richard Guenther <rguenther@suse.de>
9675 PR tree-optimization/48290
9676 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9677 Properly decide inhibiting propagation based on the valueized
9678 operand. Do loop-closed SSA form preserving here ...
9679 (init_copy_prop): ... not here.
9681 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9684 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9685 (*ieee_smax<mode>3): Likewise.
9687 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9689 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9690 Replace match_operand with match_dup for the third operand in
9693 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9695 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9696 to track processing of conditionals. Update all callers.
9697 (try_combine, simplify_if_then_else): Update.
9699 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9701 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9704 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9706 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9707 instead of match_operand for operand 3.
9709 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9711 * recog.h (insn_operand_data): Add an "allows_mem" field.
9712 * genoutput.c (output_operand_data): Initialize it.
9713 * optabs.c (maybe_legitimize_operand_same_code): New function.
9714 (maybe_legitimize_operand): Use it when matching the original
9717 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9719 * gimplify.c: Fix issues in comments throughout.
9720 (voidify_wrapper_expr): Fix long line.
9721 (build_stack_save_restore): Likewise.
9722 (gimplify_loop_expr): Likewise.
9723 (gimplify_compound_lval): Likewise.
9724 (gimplify_init_ctor_eval): Likewise.
9725 (gimplify_modify_expr_rhs): Likewise.
9726 (omp_notice_threadprivate_variable): Likewise.
9728 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9730 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9731 original one if this is not a builtin function.
9733 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9736 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9737 offset it as needed based on top 2 bits in operands[3], change
9738 MEM mode to SFmode and mask those 2 bits away from operands[3].
9740 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9742 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9743 change from objc_declare_protocols() to objc_declare_protocol().
9745 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9747 * config/i386/sse.md (sse4_1): New mode attribute.
9748 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9749 avx_blend<ssemodesuffix><avxmodesuffix> and
9750 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9751 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9752 avx_blendv<ssemodesuffix><avxmodesuffix> and
9753 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9754 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9755 avx_dp<ssemodesuffix><avxmodesuffix> and
9756 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9757 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9758 (sse4_1_packusdw): Merge with *avx_packusdw.
9759 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9760 (sse4_1_pblendw): Merge with *avx_pblendw.
9761 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9762 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9763 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9765 (sse4_1_round<ssescalarmodesuffix>): Merge with
9766 *avx_round<ssescalarmodesuffix>.
9767 (aesenc): Merge with *avx_aesenc.
9768 (aesenclast): Merge with *avx_aesenclast.
9769 (aesdec): Merge with *avx_aesdec.
9770 (aesdeclast): Merge with *avx_aesdeclast.
9771 (pclmulqdq): Merge with *pclmulqdq.
9772 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9774 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9776 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9779 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9780 (align_local_variable): This. Update DECL_ALIGN.
9781 (add_stack_var): Updated.
9782 (expand_one_stack_var): Likewise.
9784 2011-04-14 Richard Guenther <rguenther@suse.de>
9786 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9788 (dse_initialize_block_local_data, dse_leave_block,
9789 record_voperand_set, get_stmt_uid): Likewise.
9790 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9791 (dse_optimize_stmt): Remove voperand set handling code.
9792 Simplify and improve to handle any kind of killing stmt.
9793 (dse_record_phi): Remove.
9794 (dse_enter_block): Simplify.
9795 (tree_ssa_dse): Likewise.
9796 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9798 2011-04-14 Jan Hubicka <jh@suse.cz>
9800 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9801 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9802 (cgraph_local_info): Remove inline_summary.
9803 * ipa-cp.c: Include ipa-inline.h.
9804 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9805 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9807 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9808 (input_overwrite_node): Do not set inline summary.
9809 (input_node): Do not stream inline summary.
9810 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9811 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9812 growth; we do not have inline parameters computed for that anyway.
9813 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9814 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9815 (inline_summary_t): New type and VECtor.
9816 (debug_inline_summary, dump_inline_summaries): Declare.
9817 (inline_summary): Use VOCtor.
9818 (estimate_edge_growth): Kill hack computing call stmt size directly.
9819 * lto-section-in.c (lto_section_name): Add inline section.
9820 * ipa-inline-analysis.c: Include lto-streamer.h
9821 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9822 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9823 (inline_summary_vec): Define.
9824 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9825 dump_inline_summaries): New functions.
9826 (estimate_function_body_sizes): Properly compute size/time of outgoing
9828 (compute_inline_parameters): Alloc inline_summary; do not compute
9829 size/time of incomming calls.
9830 (estimate_edge_time): Avoid missing time summary hack.
9831 (inline_read_summary): Read inline summary info.
9832 (inline_write_summary): Write inline summary info.
9833 (inline_free_summary): Free all hooks and inline summary vector.
9834 * lto-streamer.h: Add LTO_section_inline_summary section.
9835 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9836 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9838 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9840 * tree-vectorizer.h (vect_strided_store_supported): Add a
9841 HOST_WIDE_INT argument.
9842 (vect_strided_load_supported): Likewise.
9843 (vect_permute_store_chain): Return void.
9844 (vect_transform_strided_load): Likewise.
9845 (vect_permute_load_chain): Delete.
9846 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9847 count argument. Check that the count is a power of two.
9848 (vect_strided_load_supported): Likewise.
9849 (vect_permute_store_chain): Return void. Update after above changes.
9850 Assert that the access is supported.
9851 (vect_permute_load_chain): Likewise.
9852 (vect_transform_strided_load): Return void.
9853 * tree-vect-stmts.c (vectorizable_store): Update calls after
9854 above interface changes.
9855 (vectorizable_load): Likewise.
9856 (vect_analyze_stmt): Don't check for strided powers of two here.
9858 2011-04-14 Richard Guenther <rguenther@suse.de>
9860 PR tree-optimization/48590
9861 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9862 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9863 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9864 BUILT_IN_STACK_SAVE.
9865 * tree-ssa-dce.c (propagate_necessity): Handle
9866 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9868 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9870 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9873 2011-04-14 Richard Guenther <rguenther@suse.de>
9875 * tree.h (get_object_alignment_1): Declare.
9876 * builtins.c (get_object_alignment_1): Split out worker from ...
9877 (get_object_alignment): ... here.
9878 * fold-const.c (get_pointer_modulus_and_residue): Use
9879 get_object_alignment_1.
9881 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9883 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9885 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9886 parameter. Generalise code to handle arrays as well as vectors.
9887 (vect_setup_realignment): Update accordingly.
9888 * tree-vect-stmts.c (vectorizable_store): Likewise.
9889 (vectorizable_load): Likewise.
9891 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9893 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9894 within the per-copy loop.
9896 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9898 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9901 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9903 * doc/options.texi (Negative): Explicitly mention that the
9904 Negative chain must be circular.
9906 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9908 * function.h (block_chainon): Declare.
9909 * function.c (block_chainon): Define.
9911 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9912 Eric Weddington <eric.weddington@atmel.com>
9913 Georg-Johann Lay <avr@gjlay.de>
9915 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9917 (avr_init_builtins, avr_expand_builtin,
9918 avr_expand_delay_cycles, avr_expand_unop_builtin,
9919 avr_expand_binop_builtin ): New functions.
9920 (avr_builtin_id): New enum
9921 (struct avr_builtin_description): New struct
9922 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9923 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9925 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9926 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9927 UNSPECV_DELAY_CYCLES): new enumeration values
9928 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9929 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9930 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9931 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9932 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9933 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9934 "fmulsu"): New insns
9936 * config/avr/avr-c.c: fix line endings
9937 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9938 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9939 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9940 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9941 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9943 * doc/extend.texi (AVR Built-in Functions): New node
9944 (Target Builtins): Add documentation of AVR
9947 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9950 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9951 alone. Error if non-const data has attribute progmem.
9953 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9955 * tree.h (struct tree_constructor): Include tree_typed instead of
9957 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9958 TS_TYPED instead of TS_COMMON.
9960 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9962 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9963 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9964 (sse2_psadbw): Merge with *avx_psadbw.
9965 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9966 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9967 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9968 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9969 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9970 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9971 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9972 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9973 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9974 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9975 (ssse3_palignrti): Merge with *avx_palignrti.
9977 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9979 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9980 * tree-ssanames.c (fini_ssanames): VEC_free it.
9981 (make_ssa_name_fn): Update for VECness of free_ssanames.
9982 (release_ssa_name, release_dead_ssa_names): Likewise.
9983 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9985 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9986 TS_TYPED instead of TS_COMMON.
9988 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9990 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9991 statistics_counter_event.
9992 * tree-ssa-copyrename.c (stats): Define.
9993 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9994 statistics_counter_event.
9995 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9996 (bswap_stats, widen_mul_stats): Define.
9997 (insert_reciprocals): Increment rdivs_inserted.
9998 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9999 rfuncs_inserted. Add calls to statistics_counter_event.
10000 (execute_cse_sincos_1): Increment inserted.
10001 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10002 statistics_counter_event.
10003 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10004 of bswap_stats. Add calls to statistics_counter_event.
10005 (convert_mult_to_widen): Increment widen_mults_inserted.
10006 (convert_plusminus_to_widen): Increment maccs_inserted.
10007 (convert_mult_to_fma): Increment fmas_inserted.
10008 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10009 calls to statistics_counter_event.
10011 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10013 PR rtl-optimization/48455
10014 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10015 `temp_costs->mem_cost'.
10017 2011-04-13 Jan Hubicka <jh@suse.cz>
10019 * ipa-inline.h: New file.
10020 * ipa-inline-analysis.c: New file. Broken out of ...
10021 * ipa-inline.c: ... this file; update toplevel comment;
10022 include ipa-inline.h
10023 (inline_summary): Move to ipa-inline.h
10024 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10025 ipa-inline-analysis.c.
10026 (cgraph_estimate_time_after_inlining): Rename to
10027 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10028 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10029 to estimate_edge_growth.
10030 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10031 rename to estimate_size_after_inlining.
10032 (cgraph_mark_inline_edge): Update for new naming convention.
10033 (cgraph_check_inline_limits): Likewise.
10034 (cgraph_edge_badness): Likewise.
10035 (cgraph_decide_recursive_inlining): Likewise.
10036 (cgraph_decide_inlining_of_small_functions): Likewise.
10037 (cgraph_decide_inlining_incrementally): Likewise.
10038 (cgraph_estimate_growth): Rename to estimate_growth; move to
10039 ipa-inline-analysis.c.
10040 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10041 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10042 (compute_inline_parameters): Likewise.
10043 (compute_inline_parameters_for_current): Likewise.
10044 (pass_inline_parameters): Likewise.
10045 (inline_indirect_intraprocedural_analysis): Likewise.
10046 (analyze_function): Rename to inline_analyze_function; likewise.
10047 (add_new_function): Move to ipa-inline-analysis.c.
10048 (inline_generate_summary): Likewise.
10049 (inline_read_summary): Likewise.
10050 (inline_write_summary): Likewise.
10051 * Makefile.in (ipa-inline-analysis.c): New file.
10053 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10055 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10056 * configure: Regenerate.
10058 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10060 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10061 instead of tree_common.
10062 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10064 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10065 TS_TYPED rather than TS_COMMON.
10066 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10068 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10071 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10072 r20 around calls of __tablejump_elpm__
10074 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10076 PR middle-end/48591
10077 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10079 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10081 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10083 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10084 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10085 (cfi_vec): New typedef.
10086 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10087 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10088 (cie_cfi_vec): New static variable.
10089 (cie_cfi_head): Delete.
10090 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10091 declaration changed. Use vector rather than list operations.
10092 (new_cfi): Don't initialize the dw_cfi_next field.
10093 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10094 rather than list operations.
10095 (lookup_cfa): Use vector rather than list operations.
10096 (output_cfis): New argument upto. Accept a cfi_vec rather than
10097 a dw_cfi_ref list head as argument. All callers changed.
10098 Iterate over the vector using upto as a maximum index.
10099 (output_all_cfis): New static function.
10100 (output_fde): Use vector rather than list operations. Use the
10101 new upto argument for output_cfis rather than manipulating a
10103 (dwarf2out_begin_prologue): Change initializations to match
10104 new struct members.
10105 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10106 from the vector length rather than searching for the end of a list.
10107 Use output_all_cfis.
10108 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10110 2011-04-13 Nick Clifton <nickc@redhat.com>
10112 * config/rx/rx.md (movmemsi): Do not use this pattern when
10113 volatile pointers are involved.
10115 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10117 * config/i386/sse.md (pinsrbits): Remove.
10118 (sse2_packsswb): Merge with *avx_packsswb.
10119 (sse2_packssdw): Merge with *avx_packssdw.
10120 (sse2_packuswb): Merge with *avx_packuswb.
10121 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10122 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10123 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10124 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10125 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10126 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10127 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10128 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10129 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10130 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10131 (sse2_loadld): Merge with *avx_loadld.
10132 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10133 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10134 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10135 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10136 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10138 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10140 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10141 calling TREE_CHAIN.
10142 * print-tree.c (print_node): Likewise.
10143 * tree-inline.c (copy_tree_r): Likewise.
10144 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10145 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10146 instead of TS_COMMON.
10147 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10148 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10149 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10150 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10151 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10153 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10155 (TREE_CHAIN): Check for a TS_COMMON structure.
10156 (TREE_TYPE): Check for a TS_TYPED structure.
10158 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10160 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10161 cgraph_get_create_node instead of cgraph_node.
10163 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10165 * c-parser.c (c_parser_initelt): Updated call to
10166 objc_build_message_expr.
10167 (c_parser_postfix_expression): Likewise.
10169 2011-04-12 Kai Tietz <ktietz@redhat.com>
10171 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10172 MASK_MS_BITFIELD_LAYOUT bit.
10174 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10176 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10177 assert it is always true.
10178 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10181 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10183 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10184 compiling Objective-C to be more efficient.
10186 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10188 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10191 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10193 * recog.h, genoutput.c, optabs.c: Revert last patch.
10195 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10198 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10200 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10202 * recog.h (insn_operand_data): Add an "allows_mem" field.
10203 * genoutput.c (output_operand_data): Initialize it.
10204 * optabs.c (maybe_legitimize_operand_same_code): New function.
10205 (maybe_legitimize_operand): Use it when matching the original
10208 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10210 * genpreds.c (process_define_predicate): Move most processing
10211 to gensupport.c. Continue to validate the expression.
10212 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10213 (process_define_predicate): Move processing to gensupport.c.
10214 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10215 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10216 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10218 (valid_predicate_name_p): New function, split out from old
10219 genpreds.c:process_define_predicate.
10220 (process_define_predicate): New function, combining code from
10221 old genpreds.c and genrecog.c functions.
10222 (process_rtx): Call it for DEFINE_PREDICATE and
10223 DEFINE_SPECIAL_PREDICATE.
10225 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10227 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10228 size of a '%A' memory reference.
10229 (T_DREG, T_QREG): New neon_builtin_type_bits.
10230 (arm_init_neon_builtins): Assert that the load and store operands
10231 are neon_struct_operands.
10232 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10233 (NEON_ARG_MEMORY): New builtin_arg.
10234 (neon_dereference_pointer): New function.
10235 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10236 Handle NEON_ARG_MEMORY.
10237 (arm_expand_neon_builtin): Update after above interface changes.
10238 Use NEON_ARG_MEMORY for loads and stores.
10239 * config/arm/predicates.md (neon_struct_operand): New predicate.
10240 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10241 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10242 (V_four_elem): Tweak formatting.
10243 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10244 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10245 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10246 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10247 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10248 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10249 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10250 Use %A in the output template.
10251 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10252 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10253 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10254 the width of the memory access. Remove post-increment.
10255 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10257 2011-04-12 Nick Clifton <nickc@redhat.com>
10259 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10260 instruction for interrupt handlers if the target is the basic V850
10262 (expand_epilogue): Likewise.
10264 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10266 PR rtl-optimization/48549
10267 * combine.c (propagate_for_debug): Also stop after BB_END of
10268 this_basic_block. Process LAST and just stop processing after it.
10269 (combine_instructions): If last_combined_insn has been deleted,
10270 set last_combined_insn to its PREV_INSN.
10272 2011-04-12 Richard Guenther <rguenther@suse.de>
10274 PR tree-optimization/46076
10275 * gimple.h (struct gimple_statement_call): Add fntype field.
10276 (gimple_call_fntype): Adjust.
10277 (gimple_call_set_fntype): New function.
10278 * gimple.c (gimple_build_call_1): Set the call function type.
10279 * gimplify.c (gimplify_call_expr): Preserve the function
10280 type the frontend used for the call.
10281 (gimplify_modify_expr): Likewise.
10282 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10284 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10286 * tree-ssa.c (useless_type_conversion_p): Function pointer
10287 conversions are useless.
10289 2011-04-12 Martin Jambor <mjambor@suse.cz>
10291 * cgraph.h (cgraph_node): Remove function declaration.
10292 (cgraph_create_node): Declare.
10293 (cgraph_get_create_node): Likewise.
10294 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10295 Updated all callers.
10296 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10297 the decl does not already exist. Call cgraph_get_create_node instead
10299 (cgraph_get_create_node): New function.
10300 (cgraph_same_body_alias): Update comment.
10301 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10302 assert it does not return NULL.
10303 (cgraph_update_edges_for_call_stmt): Likewise.
10304 (cgraph_clone_edge): Likewise.
10305 (cgraph_create_virtual_clone): Likewise.
10306 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10307 instead of cgraph_node.
10308 (cgraph_add_new_function): Call cgraph_create_node or
10309 cgraph_get_create_node instead of cgraph_node.
10310 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10311 instead of cgraph_node.
10312 (record_eh_tables): Likewise.
10313 (mark_address): Likewise.
10314 (mark_load): Likewise.
10315 (build_cgraph_edges): Call cgraph_get_create_node instead
10317 (rebuild_cgraph_edges): Likewise.
10318 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10319 instead of cgraph_node.
10320 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10322 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10323 cgraph_create_node instead of cgraph_node.
10324 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10326 * lto-cgraph.c (input_node): Likewise.
10327 * lto-streamer-in.c (input_function): Likewise.
10328 * varasm.c (mark_decl_referenced): Likewise.
10329 (assemble_alias): Likewise.
10331 2011-04-12 Martin Jambor <mjambor@suse.cz>
10333 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10334 instead of cgraph_node and assert it does not return NULL.
10335 * lto-streamer-in.c (lto_read_body): Likewise.
10336 * omp-low.c (new_omp_context): Likewise.
10337 (create_task_copyfn): Likewise.
10338 * tree-emutls.c (lower_emutls_function_body): Likewise.
10339 * matrix-reorg.c (transform_allocation_sites): Likewise.
10341 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10344 * c-typeck.c (build_asm_expr): Error out on attempts to use
10345 void type outputs or inputs for constraints that allow reg or
10346 don't allow memory.
10348 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10349 Richard Earnshaw <rearnsha@arm.com>
10352 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10353 to use sign-magnitude offsets. Reject unsupported unaligned
10354 cases. Add detailed description in comments.
10355 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10356 condition from TARGET_32BIT to TARGET_ARM.
10358 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10360 * tree.h (struct typed_tree): New.
10361 (struct tree_common): Include it instead of tree_base.
10362 (TREE_TYPE): Update for new location of type field.
10363 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10364 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10365 (union tree_node): Add typed field.
10366 * treestruct.def (TS_TYPED): New.
10367 * lto-streamer.c (check_handled_ts_structures): Handle it.
10368 * tree.c (MARK_TS_TYPED): New macro.
10369 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10371 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10373 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10374 (force_nonfallthru): Do not alter the loop nest if no basic block
10377 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10379 * config/i386/sse.md (VI): New mode iterator.
10380 (SSEMODEI): Remove.
10381 (AVX256MODEI): Ditto.
10382 (AVXMODEF4P): Ditto.
10383 (avxvecpsmode): Ditto.
10384 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10385 (sse2_andnot<mode>3): New expander.
10386 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10387 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10388 (<any_logic:code><mode>3): Use VI mode iterator.
10389 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10390 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10391 (*andnottf3): Handle AVX three-operand constraints.
10392 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10394 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10395 Robert Millan <rmh@gnu.org>
10397 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10398 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10399 GNU_USER_DYNAMIC_LINKER64): Define.
10400 (REG_NAME): Don't undefine.
10401 (MD_UNWIND_SUPPORT): Undefine.
10402 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10403 (REG_NAME): Don't undefine.
10404 (MD_UNWIND_SUPPORT): Undefine.
10405 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10407 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10409 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10410 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10412 2011-04-11 Xinliang David Li <davidxl@google.com>
10414 * value-profile.c (check_ic_target): New function.
10415 (gimple_ic_transform): Sanity check indirect call target.
10416 * gimple-low.c (gimple_check_call_args): Interface change.
10417 (gimple_check_call_matching_types): New function.
10418 * tree-inline.c (tree_can_inline_p): Call new function.
10420 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10422 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10423 tree-pretty-print.h & realmpfr.h.
10425 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10427 PR middle-end/48464
10428 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10429 (setup_allocno_and_important_classes): Ditto.
10431 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10433 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10434 GNU_USER_DYNAMIC_LINKER.
10435 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10436 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10437 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10438 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10439 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10440 GNU_USER_TARGET_OS_CPP_BUILTINS.
10441 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10442 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10443 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10444 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10445 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10446 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10447 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10448 GNU_USER_TARGET_OS_CPP_BUILTINS.
10449 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10450 GNU_USER_DYNAMIC_LINKER.
10451 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10452 GNU_USER_TARGET_OS_CPP_BUILTINS.
10453 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10454 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10455 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10456 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10457 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10458 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10459 GNU_USER_DYNAMIC_LINKER64): Remove.
10460 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10461 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10462 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10463 GNU_USER_DYNAMIC_LINKER.
10464 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10465 GNU_USER_TARGET_OS_CPP_BUILTINS.
10466 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10467 GNU_USER_TARGET_OS_CPP_BUILTINS.
10468 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10469 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10470 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10471 GNU_USER_TARGET_OS_CPP_BUILTINS.
10472 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10473 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10474 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10475 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10476 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10477 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10478 GNU_USER_DYNAMIC_LINKER.
10479 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10480 GNU_USER_TARGET_OS_CPP_BUILTINS.
10481 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10483 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10484 GNU_USER_DYNAMIC_LINKER.
10485 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10486 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10487 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10488 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10489 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10490 GNU_USER_DYNAMIC_LINKER.
10491 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10492 GNU_USER_DYNAMIC_LINKERN32.
10493 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10494 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10495 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10496 GNU_USER_DYNAMIC_LINKER32.
10497 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10498 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10499 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10500 GNU_USER_DYNAMIC_LINKER.
10501 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10502 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10503 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10504 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10505 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10506 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10507 GNU_USER_DYNAMIC_LINKER32.
10508 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10509 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10510 GNU_USER_DYNAMIC_LINKER.
10511 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10512 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10513 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10514 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10515 GNU_USER_DYNAMIC_LINKER64.
10516 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10517 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10518 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10519 GNU_USER_DYNAMIC_LINKER.
10520 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10521 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10522 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10523 GNU_USER_DYNAMIC_LINKER.
10524 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10525 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10526 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10527 GNU_USER_DYNAMIC_LINKER32.
10528 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10529 GNU_USER_DYNAMIC_LINKER64.
10530 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10531 GNU_USER_DYNAMIC_LINKER64.
10532 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10533 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10534 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10535 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10536 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10538 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10540 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10541 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10542 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10543 GNU_USER_DYNAMIC_LINKER.
10544 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10545 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10546 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10547 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10548 GNU_USER_DYNAMIC_LINKER64.
10549 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10550 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10551 GNU_USER_LINK_EMULATION.
10552 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10553 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10554 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10555 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10556 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10557 CPP_SPEC, CC1_SPEC): Remove.
10558 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10559 (GNU_USER_DYNAMIC_LINKER): Define.
10560 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10561 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10562 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10563 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10564 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10565 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10566 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10567 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10568 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10569 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10570 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10571 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10572 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10573 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10574 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10575 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10576 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10577 GNU_USER_DYNAMIC_LINKER.
10578 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10579 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10580 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10581 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10582 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10583 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10584 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10585 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10586 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10587 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10589 2011-04-11 Kai Tietz <ktietz@redhat.com>
10593 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10594 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10596 (ix86_is_msabi_thiscall): Removed.
10597 (ix86_is_type_thiscall): Likewise.
10598 (ix86_get_callcvt): New function.
10599 (ix86_comp_type_attributes): Simplify check.
10600 (ix86_function_regparm): Use ix86_get_callcvt for calling
10601 convention attribute checks.
10602 (ix86_return_pops_args): Likewise.
10603 (ix86_static_chain): Likewise.
10604 (x86_this_parameter): Likewise.
10605 (x86_output_mi_thunk): Likewise.
10606 (ix86_function_type_abi): Optimize check for types without attributes.
10607 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10608 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10609 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10611 (IX86_BASE_CALLCVT): Helper macro.
10612 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10613 Use ix86_get_callcvt for calling convention attribute checks and avoid
10614 symbol-decoration for stdcall in TARGET_RTD case.
10615 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10617 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10620 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10622 * config/i386/sse.md (VI_128): New mode iterator.
10623 (VI12_128): Rename from SSEMODE12.
10624 (VI14_128): Rename from SSEMODE14.
10625 (VI124_128): New mode iterator.
10626 (VI24_128): Rename from SSEMODE248.
10627 (VI248_128): Rename from SSEMODE248.
10628 (SSEMODE124C8): Remove.
10629 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10630 (*sse2_<plusminus_insn><mode>3): Merge with
10631 *avx_<plusminus_insn><mode>3.
10632 (*mulv8hi3): Merge with *avx_mulv8hi3.
10633 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10634 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10635 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10636 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10637 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10638 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10639 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10640 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10641 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10642 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10643 (*<smaxmin:code>v8hi3): Ditto.
10644 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10645 (*<smaxmin:code>v16qi3): Ditto.
10646 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10647 (*sse2_eq<mode>3): Ditto.
10648 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10649 (*sse2_gt<mode>3): Ditto.
10650 (vcondv2di): Split out of vcond<mode>.
10651 (vconduv2di): Split out of vcondu<mode>.
10653 2011-04-11 Richard Guenther <rguenther@suse.de>
10655 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10656 before calling tree_low_cst.
10658 2011-04-11 Richard Guenther <rguenther@suse.de>
10660 * stor-layout.c (layout_type): Compute all array index size operations
10661 in the original type.
10662 (initialize_sizetypes): Add comment.
10663 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10665 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10667 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10669 2011-04-11 Martin Jambor <mjambor@suse.cz>
10671 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10672 of cgraph_node, handle NULL return value.
10673 (cgraph_global_info): Likewise.
10674 (cgraph_rtl_info): Likewise.
10675 * tree-inline.c (estimate_num_insns): Likewise.
10676 * gimplify.c (unshare_body): Likewise.
10677 (unvisit_body): Likewise.
10678 (gimplify_body): Likewise.
10679 * predict.c (optimize_function_for_size_p): Likewise.
10680 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10681 (call_may_clobber_ref_p_1): Likewise.
10682 * varasm.c (function_section_1): Likewise.
10683 (assemble_start_function): Likewise.
10685 2011-04-11 Martin Jambor <mjambor@suse.cz>
10687 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10689 * final.c (rest_of_clean_state): Likewise.
10690 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10691 * passes.c (pass_init_dump_file): Likewise.
10692 (execute_all_ipa_transforms): Likewise.
10693 (function_called_by_processed_nodes_p): Likewise.
10694 * predict.c (maybe_hot_frequency_p): Likewise.
10695 (probably_never_executed_bb_p): Likewise.
10696 (compute_function_frequency): Likewise.
10697 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10698 (unnest_nesting_tree_1): Likewise.
10699 (lower_nested_functions): Likewise.
10700 * tree-optimize.c (execute_fixup_cfg): Likewise.
10701 (tree_rest_of_compilation): Likewise.
10702 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10703 * tree-sra.c (ipa_early_sra): Likewise.
10704 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10705 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10706 * ipa.c (record_cdtor_fn): Likewise.
10707 * ipa-inline.c (cgraph_early_inlining): Likewise.
10708 (compute_inline_parameters_for_current): Likewise.
10709 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10710 * ipa-pure-const.c (local_pure_const): Likewise.
10711 * ipa-split.c (split_function): Likewise.
10712 (execute_split_functions): Likewise.
10713 * cgraphbuild.c (build_cgraph_edges): Likewise.
10714 (rebuild_cgraph_edges): Likewise.
10715 (cgraph_rebuild_references): Likewise.
10716 (remove_cgraph_callee_edges): Likewise.
10717 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10718 (verify_cgraph_node): Likewise.
10719 (cgraph_analyze_functions): Likewise.
10720 (cgraph_preserve_function_body_p): Likewise.
10721 (save_inline_function_body): Likewise.
10722 (save_inline_function_body): Likewise.
10723 * tree-inline.c (copy_bb): Likewise.
10724 (optimize_inline_calls): Likewise.
10726 2011-04-11 Martin Jambor <mjambor@suse.cz>
10728 PR tree-optimization/48195
10729 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10730 ipa_check_create_edge_args.
10731 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10732 ipa_check_create_edge_args.
10733 * ipa-inline.c (inline_generate_summary): Do not call
10734 ipa_check_create_node_params and ipa_check_create_edge_args.
10735 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10736 ipa_check_create_edge_args.
10738 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10740 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10742 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10743 * function.c (record_hard_reg_sets): Likewise.
10744 * ira.c (compute_regs_asm_clobbered): Likewise.
10745 * sched-deps.c (sched_analyze_1): Likewise.
10746 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10748 2011-04-09 Xinliang David Li <davidxl@google.com>
10750 PR tree-optimization/PR48484
10751 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10752 has_valid_pred lazily
10754 2011-04-09 Duncan Sands <baldrick@free.fr>
10756 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10758 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10760 * combine.c (combine_validate_cost): Adjust comments. Set registered
10761 cost of I0 to zero at the end, if any.
10763 2011-04-08 Xinliang David Li <davidxl@google.com>
10765 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10766 to insane profile data.
10768 2011-04-08 Xinliang David Li <davidxl@google.com>
10770 * ipa-cp.c (ipcp_update_profiling): Correct
10771 negative scale factor due to insane profile data.
10773 2011-04-08 Xinliang David Li <davidxl@google.com>
10775 * final.c (dump_basic_block_info): New function.
10776 (final): Dump basic block.
10777 (final_scan_insn): Remove old dump.
10779 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10782 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10785 2011-04-08 Michael Matz <matz@suse.de>
10787 PR middle-end/48389
10788 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10790 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10791 * rtl.h (rebuild_jump_labels_chain): Declare.
10792 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10793 insns inserted on edges.
10795 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10797 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10798 * config/arm/arm-arches.def: New.
10799 * config/arm/arm-opts.h: New.
10800 * config/arm/genopt.sh: New.
10801 * config/arm/arm-tables.opt: New (generated).
10802 * config/arm/arm.c (arm_handle_option, arm_target_help,
10803 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10804 (all_architectures): Get most table contents from arm-arches.def.
10805 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10806 arm_selected_tune here.
10807 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10808 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10809 (march=, mcpu=, mtune=): Use Enum and Var.
10810 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10811 (arm.o): Update dependencies.
10813 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10815 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10817 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10818 (write_typed_alloc_defns): Likewise.
10819 (main): Calls write_typed_alloc_defns with output_header.
10821 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10823 PR inline-asm/48435
10824 * ira-color.c (setup_profitable_hard_regs): Add comments.
10825 Don't take prohibited hard regs into account.
10826 (setup_conflict_profitable_regs): Rename to
10827 get_conflict_profitable_regs.
10828 (check_hard_reg_p): Check prohibited hard regs.
10830 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10832 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10833 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10834 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10836 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10839 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10840 move from floating point to shift amount register.
10841 (emit_move_sequence): Remove secondary reload support for floating
10842 point to shift amount amount register copies.
10843 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10844 amount register copies.
10845 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10846 register, return false if mode isn't a scalar integer mode.
10847 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10849 2011-04-08 Richard Guenther <rguenther@suse.de>
10851 * gimple.c (gimple_call_flags): Remove kludge.
10853 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10855 * sel-sched.c (sel_region_init): Move call to
10856 sel_setup_region_sched_flags after setup_current_loop_nest.
10858 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10860 PR rtl-optimization/48272
10861 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10862 init_insn_reg_pressure_info. Adjust a caller.
10863 * sched-int.h (init_insn_reg_pressure_info): Declare.
10864 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10865 when sched-pressure is enabled.
10867 2011-04-08 Richard Guenther <rguenther@suse.de>
10869 * gimple.c (gimple_set_modified): Do not queue calls to
10870 MODIFIED_NORETURN_CALLS here ...
10871 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10873 2011-04-08 Richard Guenther <rguenther@suse.de>
10876 * toplev.c (lang_dependent_init): Do not open asm_out_file
10877 in WPA mode, nor perform debug machinery initialization.
10878 (finalize): Do not unlink asm_out_file in WPA mode.
10880 2011-04-08 Richard Guenther <rguenther@suse.de>
10882 * gimple.h (gimple_call_fntype): New function.
10883 (gimple_call_return_type): Use it.
10884 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10885 * gimple-low.c (gimple_check_call_args): Likewise.
10886 * gimple.c (gimple_call_flags): Likewise.
10887 (gimple_call_arg_flags): Likewise.
10888 (gimple_call_return_flags): Likewise.
10889 * tree-cfg.c (verify_gimple_call): Likewise.
10890 (do_warn_unused_result): Likewise.
10891 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10892 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10894 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10896 PR rtl-optimization/48235
10897 * sel-sched.c (code_motion_process_successors): Recompute the last
10898 insn in basic block if control flow changed.
10899 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10900 Update condition for ilist_remove.
10902 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10904 PR rtl-optimization/48302
10905 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10906 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10907 it to record added preheader blocks.
10908 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10909 on to sel_add_loop_preheaders.
10910 (sel_region_init): Move call to setup_current_loop_nest after
10913 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10916 * cfgloop.h (loop_has_exit_edges): New helper.
10917 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10919 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10920 that have no exit edges.
10922 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10924 PR rtl-optimization/48442
10925 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10926 all callers. Adjust assert.
10928 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10930 PR tree-optimization/48377
10931 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10932 is_packed to true even for types with smaller TYPE_ALIGN than
10935 2011-04-08 Richard Guenther <rguenther@suse.de>
10938 * doc/tm.texi: Re-generate.
10940 2011-04-08 Wei Guozhi <carrot@google.com>
10943 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10944 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10945 * config/arm/arm.md (*push_multi): Change the length computation to
10948 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10950 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10951 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10952 * doc/tm.texi: Regenerate.
10953 * system.h (ASM_OUTPUT_BSS): Poison.
10954 * varasm.c (asm_output_bss): Remove function.
10955 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10957 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10958 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10959 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10960 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10962 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10964 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10966 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10968 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10970 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10973 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10975 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10976 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10977 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10979 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10980 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10981 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10982 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10983 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10984 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10985 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10986 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10987 options. Don't map other m68k options manually. Don't handle
10988 old-style options as canonical.
10989 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10990 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10992 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10994 * basic-block.h (force_nonfallthru): Move to...
10995 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10996 (force_nonfallthru): ...here.
10997 * cfghooks.c (force_nonfallthru): New function.
10998 * cfgrtl.c (force_nonfallthru): Rename into...
10999 (rtl_force_nonfallthru): ...this.
11000 (commit_one_edge_insertion): Do not set AUX field.
11001 (commit_edge_insertions): Do not discover new basic blocks.
11002 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11003 (cfg_layout_rtl_cfg_hooks): Likewise.
11004 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11005 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11006 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11008 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11010 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11013 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11015 * config/i386/sse.md: Update copyright year.
11016 (avxcvtvecmode): Remove.
11017 (sse_movhlps): Merge with *avx_movhlps.
11018 (sse_movlhps): Merge with *avx_movlhps.
11019 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11020 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11021 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11022 (sse_loadhps): Merge with *avx_loadhps.
11023 (sse_storelps): Merge with *avx_storelps.
11024 (sse_loadlps): Merge with *avx_loadlps.
11025 (sse_movss): Merge with *avx_movss.
11026 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11027 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11028 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11029 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11030 (vec_set<mode>_0): Ditto.
11031 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11032 (sse4_1_insertps): Merge with *avx_insertps.
11033 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11034 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11035 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11036 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11037 (sse2_storehpd): Merge with *avx_storehpd.
11038 (sse2_loadhpd): Merge with *avx_loadhpd.
11039 (sse2_loadlpd): Merge with *avx_loadlpd.
11040 (sse2_movsd): Merge with *avx_movsd.
11041 (*vec_concatv2df): Merge with *vec_concatv2df.
11043 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11046 * combine.c (combine_instructions): Add last_combined_insn,
11047 update it if insn is after it, pass it to all try_combine calls.
11048 (try_combine): Add last_combined_insn parameter, pass it instead of
11049 i3 to propagate_for_debug.
11051 2011-04-07 Nick Clifton <nickc@redhat.com>
11053 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11054 to handle MDR <-> data register transfers.
11055 (movhi_internal): Likewise.
11057 2011-04-07 Alan Modra <amodra@gmail.com>
11059 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11060 previous stack info.
11062 2011-04-07 Tom de Vries <tom@codesourcery.com>
11065 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11066 flow_find_cross_jump. Swap variables to implement backward replacement.
11067 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11069 2011-04-07 Tom de Vries <tom@codesourcery.com>
11072 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11073 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11075 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11076 src1 or src2. Redirect edges to the last basic block. Update
11077 frequency and count on multiple basic blocks in case of fallthru.
11079 2011-04-07 Tom de Vries <tom@codesourcery.com>
11082 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11084 (old_insns_match_p): Change return type. Replace return false/true
11085 with return dir_none/dir_both. Use can_replace_by.
11086 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11087 direction from dir_p. Register replacement direction in dir, last_dir
11088 and afterlast_dir. Handle new return type of old_insns_match_p using
11089 merge_dir. Return replacement direction in dir_p.
11090 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11091 return type of old_insns_match_p.
11092 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11093 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11094 flow_find_cross_jump.
11095 * basic-block.h (enum replace_direction): New type.
11096 (flow_find_cross_jump): Add parameter to declaration.
11098 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11100 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11101 (AVXMODEDCVTPS2DQ): Ditto.
11102 (VEC_FLOAT_MODE): Ditto.
11103 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11104 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11105 (<any_logic:code><mode>3): Use VF mode iterator.
11106 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11107 Use VF mode iterator.
11108 (copysign<mode>3): Use VF mode iterator.
11109 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11110 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11111 (*<any_logic:code><MODEF:mode>3): Merge with
11112 *avx_<any_logic:code><MODEF:mode>3.
11113 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11114 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11115 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11116 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11117 (sse2_cvtdq2ps): Use %v modifier.
11118 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11119 (avx_cvtps2dq<avxmodesuffix>): Remove.
11120 (sse2_cvtps2dq): Use %v modifier.
11121 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11122 (avx_cvttps2dq<avxmodesuffix>): Remove.
11123 (sse2_cvttps2dq): Use %v modifier.
11124 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11125 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11126 (sse2_cvtsd2siq): Fix insn template.
11127 (sse2_cvtsd2siq_2): Ditto.
11128 (sse2_cvttsd2siq): Ditto.
11129 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11130 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11132 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11134 * gcov-io.c: Use GCC Runtime Library Exception.
11136 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11139 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11140 as base_reg whatever register reg has been eliminated to, instead
11141 of hardcoding STACK_POINTER_REGNUM.
11143 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11145 * doc/tm.texi.in: Document C target hooks as separate from general
11147 * doc/tm.texi: Regenerate.
11148 * genhooks.c (struct hook_desc): Add docname field.
11149 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11151 (hook_array): Include c-target.def.
11152 (emit_documentation): Use docname field in output.
11153 (emit_init_macros): Take docname argument. Only emit definitions
11154 for hooks matching docname.
11155 (main): Expect additional arguments in all cases. Pass argument
11156 to emit_init_macros.
11157 * target.def: Move initial macro definitions and comments to
11158 target-hooks-macros.h.
11159 (gcc_targetcm): Move to c-family/c-target.def.
11160 * target.h (targetcm): Move declaration to c-family/c-target.h.
11161 * targhooks.c (default_handle_c_option): Move to
11163 * targhooks.h (default_handle_c_option): Move declaration to
11164 c-family/c-common.h.
11165 * target-hooks-macros.h: New file.
11166 * config.gcc (target_has_targetcm): Define and use to add to
11167 c_target_objs and cxx_target_objs.
11168 * config/default-c.c: New file.
11169 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11170 of target.h and target-def.h.
11171 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11172 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11173 darwin_check_cfstring_format_arg): Make static.
11174 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11175 TARGET_STRING_OBJECT_REF_TYPE_P,
11176 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11177 * config/darwin-protos.h (darwin_objc_construct_string,
11178 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11180 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11181 TARGET_STRING_OBJECT_REF_TYPE_P,
11182 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11183 * config/t-darwin (darwin-c.o): Update dependencies.
11184 * system.h (TARGET_HAS_TARGETCM): Poison.
11185 * Makefile.in (TARGET_H): Update.
11186 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11187 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11188 (default-c.o): New target.
11189 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11190 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11191 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11193 (build/genhooks.o): Update dependencies.
11195 2011-04-06 Richard Guenther <rguenther@suse.de>
11197 * ipa-inline.c (enum inlining_mode): Remove.
11198 (cgraph_flatten): Use some other token.
11199 (cgraph_edge_early_inlinable_p): New function, split out from ...
11200 (cgraph_perform_always_inlining): New function, split out from ...
11201 (cgraph_decide_inlining_incrementally): ... here.
11202 (cgraph_mark_inline_edge): Adjust.
11203 (cgraph_early_inlining): Re-structure.
11204 (pass_early_inline): Require SSA form.
11206 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11207 Julian Brown <julian@codesourcery.com>
11208 Mark Shinwell <shinwell@codesourcery.com>
11210 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11211 LO_REGS only for Thumb-1.
11212 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11213 be used in short instructions when optimising for size on Thumb-2.
11215 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11217 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11218 associated with user returns to be preserved.
11220 2011-04-06 Tristan Gingold <gingold@adacore.com>
11222 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11223 symbol_queue_size, DBXOUT_DECR_NESTING,
11224 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11225 if XCOFF_DEBUGGING_INFO.
11227 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11229 * config/i386/i386.md (attribute isa): New.
11230 (attribute enabled): New.
11231 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11232 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11233 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11234 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11235 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11236 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11237 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11238 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11240 * config/i386/sse.md (VF): New mode iterator.
11244 (SSEMODEF4): Remove.
11245 (attribute sse): Handle V8SF and V4DF modes.
11246 (<absneg:code><mode>2): Use VF mode iterator.
11247 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11249 (<plusminus_insn><mode>3): Use VF mode iterator.
11250 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11251 Use VF mode iterator.
11252 (<sse>_vm<plusminus_insn><mode>3): Merge with
11253 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11254 (mul<mode>3): Use VF mode iterator.
11255 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11256 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11258 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11259 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11260 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11261 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11263 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11264 Use VF1 mode iterator.
11265 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11266 (sqrt<VF2:mode>2): New expander.
11267 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11268 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11269 and sqrtv2df2. Use VF mode iterator.
11270 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11272 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11273 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11274 Use VF1 mode iterator.
11275 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11276 (<smaxmin:code><mode>3): Use VF mode iterator.
11277 (*<smaxmin:code><mode>3_finite): Merge with
11278 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11279 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11280 (<sse>_vm<smaxmin:code><mode>2): Merge with
11281 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11282 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11284 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11286 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11287 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11288 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11289 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11290 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11292 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11293 Use VF_128 mode iterator.
11294 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11296 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11297 VF_128 mode iterator.
11298 (vcond<mode>): Use VF mode iterator.
11299 * config/i386/predicates.md (sse_comparison_operator): Merge with
11300 avx_comparison_float_operator. Do not declare as special_predicate.
11301 * config/i386/i386.c (struct builtin_description): Update for renamed
11303 (ix86_expand_args_builtin): Ditto.
11304 (ix86_expand_sse_compare_mask): Ditto.
11306 2011-04-06 Richard Guenther <rguenther@suse.de>
11308 * tree-inline.c (estimate_num_insns): For calls simply account
11309 for all passed arguments and a used return value.
11311 2011-04-06 Richard Guenther <rguenther@suse.de>
11313 PR tree-optimization/47663
11314 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11315 call_stmt_time fields.
11316 (cgraph_edge_inlinable_p): Declare.
11317 (cgraph_edge_recursive_p): New inline function.
11318 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11319 (cgraph_clone_edge): Copy it.
11320 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11321 Account for call stmt time.
11322 (cgraph_estimate_time_after_inlining): Take edge argument.
11323 (cgraph_estimate_edge_growth): Account call stmt size.
11324 (cgraph_estimate_size_after_inlining): Take edge argument.
11325 (cgraph_mark_inline_edge): Adjust.
11326 (cgraph_check_inline_limits): Likewise.
11327 (cgraph_recursive_inlining_p): Remove.
11328 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11329 (cgraph_decide_recursive_inlining): Take edge argument and
11331 (cgraph_decide_inlining_of_small_functions): Do not avoid
11332 diags for recursive inlining here.
11333 (cgraph_flatten): Adjust.
11334 (cgraph_decide_inlining_incrementally): Likewise.
11335 (estimate_function_body_sizes): Remove call cost handling.
11336 (compute_inline_parameters): Initialize caller edge call costs.
11337 (cgraph_estimate_edge_growth): New function.
11338 (cgraph_estimate_growth): Use it.
11339 (cgraph_edge_badness): Likewise.
11340 (cgraph_check_inline_limits): Take an edge argument.
11341 (cgraph_decide_inlining_of_small_functions): Adjust.
11342 (cgraph_decide_inlining): Likewise.
11343 * tree-inline.c (estimate_num_insns): Only account for call
11344 return value if it is used.
11345 (expand_call_inline): Avoid diagnostics on recursive inline
11347 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11348 (input_edge): Input edge call costs.
11350 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11352 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11354 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11356 * doc/invoke.texi (Spec Files): Fix typo.
11358 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11360 * profile.c (branch_prob): Move declaration of local variable. Remove
11361 obsolete ??? comment. Expand the location explicitly instead of using
11362 the LOCATION_FILE and LOCATION_LINE macros.
11364 2011-04-06 Wei Guozhi <carrot@google.com>
11367 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11368 (arm_cond_branch): Likewise.
11369 (arm_cond_branch_reversed): Likewise.
11370 (arm_jump): Likewise.
11371 (push_multi): Likewise.
11372 * config/arm/constraints.md (Py): New constraint.
11374 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11377 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11379 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11380 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11381 #ifdef DBX_DEBUGGING_INFO.
11383 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11386 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11387 if old and new states differ.
11389 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11391 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11392 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11393 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11394 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11395 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11396 mcfv4e): Use Alias.
11397 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11398 ColdFire options to -mcpu= options.
11400 2011-04-05 Jeff Law <law@redhat.com>
11402 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11403 check if BB is a successor of LOOP->header and return
11404 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11406 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11408 * cprop.c (struct reg_use): Remove.
11409 (reg_use_table): Make an array of RTX.
11410 (find_used_regs, constprop_register, local_cprop_pass,
11411 bypass_block): Simplify users of reg_use_table.
11412 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11413 on one of the uses found by find_used_regs.
11415 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11418 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11421 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11423 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11425 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11427 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11429 PR middle-end/48441
11430 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11432 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11434 * combine.c: Include obstack.h.
11435 (struct insn_link): Define.
11436 (uid_log_links): Adjust type.
11437 (FOR_EACH_LOG_LINK): New macro.
11438 (insn_link_obstack): Declare.
11439 (alloc_insn_link): Define.
11440 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11441 type of link variables.
11442 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11443 (try_combine, record_promoted_values, distribute_notes): Likewise.
11444 (distribute_links): Likewise. Tweak prototype.
11445 (clear_log_links): Delete.
11446 (adjust_for_new_dest): Call alloc_insn_link.
11447 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11449 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11451 * gcse.c (modify_mem_list): Convert to an array of VECs.
11452 (canon_modify_mem_list, compute_transp): Tweak formatting.
11453 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11454 (load_killed_in_block_p): Likewise.
11455 (record_last_mem_set_info): Likewise.
11456 (clear_modify_mem_tables): Likewise.
11458 2011-04-05 Tom de Vries <tom@codesourcery.com>
11460 PR middle-end/48461
11461 * function.c (emit_use_return_register_into_block): Only define if
11464 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11466 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11468 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11470 * config/rx/rx-opts.h: New.
11471 * config/rx/rx.c (rx_cpu_type): Remove.
11472 (rx_handle_option): Don't assert that global structures are in
11473 use. Access variables via opts pointer. Defer most handling of
11474 OPT_mint_register_. Use error_at.
11475 (rx_option_override): Handle deferred OPT_mint_register_ here.
11476 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11477 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11478 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11479 (rx_cpu_types): New Enum and EnumValue entries.
11480 (mint-register=): Use Defer and use Var accordingly.
11482 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11484 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11485 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11486 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11488 (debug_free_queue, debug_nesting, symbol_queue_index):
11490 * dbxout.c: ...to here. Make static.
11492 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11494 * gcse.c (modify_pair): Define. Define a VEC of it.
11495 (canon_modify_mem_list): Convert to an array of VECs.
11496 (free_insn_expr_list_list): Delete.
11497 (clear_modify_mem_tables): Call VEC_free instead.
11498 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11499 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11500 (canon_list_insert, compute_transp): Likewise.
11502 2011-04-05 Tom de Vries <tom@codesourcery.com>
11505 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11508 2011-04-05 Tom de Vries <tom@codesourcery.com>
11511 * function.c (emit_use_return_register_into_block): New function.
11512 (thread_prologue_and_epilogue_insns): Use
11513 emit_use_return_register_into_block.
11515 2011-04-05 Tom de Vries <tom@codesourcery.com>
11518 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11521 2011-04-05 Tom de Vries <tom@codesourcery.com>
11523 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11525 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11527 * config/arm/arm.md (define_constants for unspec): Replace with
11529 (define_constants for unspecv): Replace with define_c_enum.
11530 * config/arm/neon.md (define_constants for unspec): Replace with
11533 2011-04-04 Richard Henderson <rth@redhat.com>
11536 * dwarf2out.c (output_line_info): Always emit line info from
11537 at least one section.
11538 (dwarf2out_init): Create text_section_line_info here ...
11539 (set_cur_line_info_table): ... not here.
11541 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11544 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11547 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11549 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11551 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11552 (expr_equiv_p): Remove.
11553 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11554 (hash_scan_set): Update call to insert_set_in_table.
11555 (dump_hash_table): Dump <dest, src> pair.
11556 (lookup_set): Simplify. Lookup <dest, src> pair.
11557 (compute_transp): Remove, fold heavily simplified code into...
11558 (compute_local_properties): ...here. Expect COMP and TRANSP
11560 (find_avail_set): Take set directly from struct expr.
11561 (find_bypass-set): Likewise.
11562 (bypass_block): Likewise.
11563 (cprop_insn): Likewise. Remove redundant INSN_P test.
11565 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11566 checks on form of COND from find_implicit_sets to here.
11567 (find_implicit_sets): Cleanup control flow. Split critical edges
11568 if it exposes implicit sets. Allocate/resize implicit_sets as
11570 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11571 changed something. Run df_analyze after find_implicit_sets if any
11572 edges were split. Do not allocate implicit_sets here.
11574 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11575 (gcse_obstack): Renamed to cprop_obstack.
11576 (GNEW, GNEWVEC, GNEWVAR): Remove.
11578 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11579 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11580 (gcse_alloc): Likewise, and rename to cprop_alloc.
11581 (alloc_gcse_men, free_gcse_mem): Remove.
11582 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11583 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11584 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11586 * cprop.c (oprs_not_set_p): Remove.
11587 (mark_set, mark_clobber): Remove.
11588 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11589 (reg_not_set_p): New function.
11590 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11591 (cprop_insn): Likewise.
11592 (cprop_jump): Use FOR_EACH_EDGE.
11594 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11597 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11598 (rank_for_schedule): Use scheduled_insns vector instead of
11599 last_scheduled_insn.
11600 (ok_for_early_queue_removal): Likewise.
11601 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11603 (choose_ready): Likewise.
11604 (commit_schedule): Use VEC_iterate.
11605 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11606 a dbg_cnt, use it and ensure the first insn is in the ready list.
11607 (haifa_sched_init): Allocate scheduled_insns.
11608 (sched_extend_ready_list): Don't allocate it; reserve space.
11609 (haifa_sched_finish): Free it.
11611 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11613 * optc-gen.awk: Always remove type from Variable entry before
11614 recording in var_seen.
11616 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11618 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11619 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11620 call to tidy_fallthru_edges.
11622 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11624 * doc/options.texi (ToLower): Document.
11625 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11626 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11627 * opts.h (cl_option): Add cl_tolower field.
11628 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11629 arguments with lowercase strings.
11630 * config/rx/rx.opt (mcpu=): Add ToLower.
11631 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11634 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11636 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11638 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11640 * config/vax/vax.c: Include reload.h.
11642 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11644 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11645 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11646 (sparc_preferred_reload_class): New function.
11648 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11651 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11652 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11654 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11656 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11657 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11659 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11661 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11662 (ASM_OUTPUT_ALIGNED_BSS): Define.
11664 2011-04-03 Michael Matz <matz@suse.de>
11666 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11667 and next_slot members.
11668 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11669 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11670 (lto_streamer_cache_append): Declare.
11671 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11672 unsigned index, remove offset parameter, ensure that we append
11673 or update existing entries.
11674 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11675 parameter, update next_slot for append.
11676 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11678 (lto_streamer_cache_insert_at): Likewise.
11679 (lto_streamer_cache_append): New function.
11680 (lto_streamer_cache_lookup): Use unsigned index.
11681 (lto_streamer_cache_get): Likewise.
11682 (lto_record_common_node): Don't test tree_node_can_be_shared.
11683 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11684 (lto_streamer_cache_delete): Don't free offsets member.
11685 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11686 (lto_output_string_with_length): Use lto_output_data_stream.
11687 (lto_output_tree_header): Remove ix parameter, don't write it.
11688 (lto_output_builtin_tree): Likewise.
11689 (lto_write_tree): Adjust callers to above, don't track and write
11690 offset, write unsigned index.
11691 (output_unreferenced_globals): Don't emit all global vars.
11692 (write_global_references): Use unsigned indices.
11693 (lto_output_decl_state_refs): Likewise.
11694 (write_symbol): Likewise.
11695 * lto-streamer-in.c (lto_input_chain): Move earlier.
11696 (input_function): Use unsigned index.
11697 (input_alias_pairs): Don't read and then ignore all global vars.
11698 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11699 don't pass it back, use lto_streamer_cache_append.
11700 (lto_register_var_decl_in_symtab): Use unsigned index.
11701 (lto_register_function_decl_in_symtab): Likewise.
11702 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11704 (lto_get_builtin_tree): Don't read index, use
11705 lto_streamer_cache_append.
11706 (lto_read_tree): Adjust call to lto_materialize_tree.
11708 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11709 don't use function calls in arguments to MIN.
11711 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11714 * gimple.c (gimple_type_leader_entry): Mark deletable.
11716 2011-04-03 Alan Modra <amodra@gmail.com>
11718 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11720 2011-04-03 Michael Matz <matz@suse.de>
11722 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11724 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11726 2011-04-03 Michael Matz <matz@suse.de>
11728 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11729 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11730 without function context.
11731 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11732 current_function_decl and cfun.
11734 2011-04-03 Michael Matz <matz@suse.de>
11736 * tree.c (decl_init_priority_insert): Don't create entry for
11738 (decl_fini_priority_insert): Ditto.
11739 (fields_compatible_p, find_compatible_field): Remove.
11740 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11741 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11743 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11745 * combine.c (try_combine): Remove useless local variable.
11747 2011-04-03 Richard Guenther <rguenther@suse.de>
11748 Ira Rosen <ira.rosen@linaro.org>
11750 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11751 non-variable offsets and compare the remaining bases of the two
11752 accesses instead of looking for exact same data-ref.
11754 2011-04-02 Kai Tietz <ktietz@redhat.com>
11757 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11759 * i386.c (ix86_is_msabi_thiscall): New helper function.
11760 (ix86_is_type_thiscall): New helper function.
11761 (ix86_comp_type_attributes): Handle thiscall for method-functions
11763 (init_cumulative_args): Likewise.
11764 (find_drap_reg): Likewise.
11765 (ix86_static_chain): Likewise.
11766 (x86_this_parameter): Likewise.
11767 (x86_output_mi_thunk): Likewise.
11769 2011-04-01 Olivier Hainque <hainque@adacore.com>
11770 Nicolas Setton <setton@adacore.com>
11771 Eric Botcazou <ebotcazou@adacore.com>
11773 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11774 (add_gnat_descriptive_type_attribute): New function.
11775 (gen_array_type_die): Call it.
11776 (gen_enumeration_type_die): Likewise.
11777 (gen_struct_or_union_type_die): Likewise.
11778 (modified_type_die): Likewise.
11779 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11780 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11781 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11783 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11786 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11787 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11790 2011-03-17 Richard Guenther <rguenther@suse.de>
11793 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11794 origin for decls in other ltrans units.
11795 (input_varpool_node): Likewise.
11797 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11799 PR middle-end/48335
11800 * expr.c (expand_assignment): Handle all possibilities
11801 if TO_RTX is CONCAT.
11802 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11803 (store_split_bit_field): If SUBREG_REG (op0) or
11804 op0 itself has smaller mode than word, return it
11805 for offset 0 and const0_rtx for out-of-bounds stores.
11806 If word is const0_rtx, skip it.
11808 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11810 * config/h8300/h8300.c (print_operand_address): Rename to...
11811 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11812 Call h8300_print_operand and h8300_print_operand_address instead of
11813 print_operand and print_operand_address. Declare.
11814 (print_operand): Renake to...
11815 (h8300_print_operand): ...this. Make static. Adjust comments.
11816 Call h8300_print_operand instead of print_operand. Declare.
11817 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11818 (h8300_register_move_cost): Likewise.
11819 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11820 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11821 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11822 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11823 * config/h8300/h8300-protos.h (print_operand): Delete.
11824 (print_operand_address): Delete.
11826 2011-04-01 Richard Henderson <rth@redhat.com>
11829 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11830 in strict mode before dwarf4. Re-order tests to early out
11831 before switching sections.
11833 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11835 * config/h8300/constraints.md: New file.
11836 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11837 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11838 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11839 * config/h8300/predicates.md (bit_operand): Likewise.
11840 (incdec_operand): Use satisfies_constraint_M and
11841 satisfies_constraint_O. Don't use C code block.
11842 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11843 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11844 (compute_mov_length): Use satisfies_constraint_G.
11845 (fix_bit_operand): Use satisfies_constraint_U.
11846 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11847 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11848 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11849 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11850 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11851 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11852 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11853 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11854 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11855 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11856 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11857 (EXTRA_MEMORY_CONSTRAINT): Delete.
11859 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11860 Michael Meissner <meissner@linux.vnet.ibm.com>
11863 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11864 operands, as per the specifications.
11866 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11867 (vec_extract_evenv4sf): Ditto.
11868 (vec_extract_evenv8hi): Ditto.
11869 (vec_extract_evenv16qi): Ditto.
11870 (vec_extract_oddv4si): Ditto.
11872 2011-03-31 Mark Wielaard <mjw@redhat.com>
11874 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11875 high_pc attribute if the CU has no associated code. Only output
11876 DW_AT_entry_pc for CU if not generating strict dwarf and
11879 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11881 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11882 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11884 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11885 * final.c (final_start_function): Call the new function rather
11886 than using a NULL argument for dwarf2out_frame_debug.
11888 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11889 that contains the prologue.
11891 * haifa-sched.c (queue_insn): New arg REASON. All callers
11892 changed. Print it in debugging output.
11894 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11896 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11897 Split most of the code into...
11898 (begin_move_insn): ... here. New function.
11899 (ebb_sched_info): Add a pointer to it.
11900 * haifa-sched.c (scheduled_insns): New static variable.
11901 (sched_extend_ready_list): Allocate it.
11902 (schedule_block): Use it to record the order of scheduled insns.
11903 Perform RTL changes to move insns only after all scheduling
11904 decisions have been made.
11905 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11906 begin_move_insn field.
11907 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11908 * sched-int.h (struct haifa_sched_info): Remove second argument
11909 from begin_schedule_ready hook. Add new member begin_move_insn.
11910 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11911 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11913 * haifa-sched.c (prune_ready_list): New function, broken out of
11915 (schedule_block): Use it.
11917 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11919 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11921 2011-04-01 Kai Tietz <ktietz@redhat.com>
11923 * config.gcc (*-*-mingw*): Allow as option the
11924 posix threading model.
11925 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11926 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11928 (CPP_SPEC): Add pthread/no-pthread handling.
11929 (LIB_SPEC): Likewise.
11930 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11931 (LIB_SPEC): Likewise.
11932 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11933 flag to pass -pthread option for shared libgcc build.
11934 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11935 for shared libgcc build.
11936 * config/i386/t-mingw-pthread: New file.
11937 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11938 New define to enable use of library pthread by default.
11939 * config/i386/mingw.opt (pthread): New driver option.
11940 (no-pthread): New driver option.
11941 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11942 * config/i386/mingw-w64.opt: Likewise.
11944 2011-04-01 Gary Funck <gary@intrepid.com>
11946 * c-decl.c (grokdeclarator): Fix formatting.
11948 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11950 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11951 instead of n_operands.
11952 (set_storage_via_setmem): Likewise.
11953 * optabs.c (maybe_gen_insn): Likewise.
11954 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11955 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11956 (mips_expand_builtin_direct): Likewise.
11957 * config/spu/spu.c (expand_builtin_args): Likewise.
11959 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11961 * recog.h (insn_data_d): Add n_generator_args.
11962 * genoutput.c (data): Likewise.
11963 (output_insn_data): Print it.
11964 (max_opno, num_dups): Delete.
11965 (scan_operands): Just fill in "d->operand[...]".
11966 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11968 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11970 * gensupport.h (pattern_stats): New structure.
11971 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11972 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11973 (max_operand_1, max_operand_vec): Delete.
11974 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11976 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11978 * emit-rtl.c (emit_pattern_after_setloc): New function.
11979 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11980 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11981 (emit_pattern_after): New function.
11982 (emit_insn_after, emit_jump_insn_after): Call it.
11983 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11984 (emit_pattern_before_setloc): New function.
11985 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11986 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11988 (emit_pattern_before): New function.
11989 (emit_insn_before, emit_jump_insn_before): Call it.
11990 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11992 2011-03-31 Richard Henderson <rth@redhat.com>
11994 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11995 (dw_separate_line_info_entry): Remove.
11996 (enum dw_line_info_opcode): New.
11997 (dw_line_info_entry): Use it.
11998 (dw_line_info_table, dw_line_info_table_p): New.
11999 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12000 (line_info_table, line_info_label_num): Remove.
12001 (line_info_table_in_use): Remove.
12002 (separate_line_info_table): Remove.
12003 (separate_line_info_table_allocated): Remove.
12004 (separate_line_info_table_in_use): Remove.
12005 (LINE_INFO_TABLE_INCREMENT): Remove.
12006 (line_info_label_num): New.
12007 (cur_line_info_table): New.
12008 (text_section_line_info, cold_text_section_line_info): New.
12009 (separate_line_info): New.
12010 (SEPARATE_LINE_CODE_LABEL): Remove.
12011 (print_dwarf_line_table): Remove.
12012 (debug_dwarf): Don't dump it.
12013 (output_one_line_info_table): New.
12014 (output_line_info): Use it.
12015 (new_line_info_table): New.
12016 (set_cur_line_info_table): New.
12017 (dwarf2out_switch_text_section): Use it.
12018 (dwarf2out_begin_function): Likewise.
12019 (push_dw_line_info_entry): New.
12020 (dwarf2out_source_line): Rewrite for new line info tables.
12021 (dwarf2out_init): Remove dead initailizations.
12023 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12025 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12027 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12028 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12029 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12030 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12031 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12032 * opt-functions.awk (flag_init, switch_bit_fields): New.
12033 (switch_flags): Don't handle flags moved to bit-fields. Don't
12034 generate CL_MISSING_OK or CL_SAVE.
12035 * optc-gen.awk: Update to generate bit-field output as well as
12037 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12038 bit-field instead of CL_REJECT_DRIVER flag.
12039 * opts-common.c (generate_canonical_option,
12040 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12041 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12042 instead of CL_REJECT_NEGATIVE flag.
12043 * toplev.c (print_switch_values): Use cl_report bit-field instead
12046 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12048 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12049 a zero minimum index only if it is redundant.
12051 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12053 PR rtl-optimization/48381
12054 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12055 instead of ira_class_hard_reg_index for calculating conflicting
12058 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12060 * cprop.c: Clean up hash table building.
12061 (reg_avail_info): Remove.
12062 (oprs_available_p): Remove.
12063 (record_last_reg_set_info): Remove.
12064 (record_last_set_info): Remove.
12065 (reg_available_p): New function.
12066 (gcse_constant_p): Do not treat unfolded conditions as constants.
12067 (make_set_regs_unavailable): New function.
12068 (hash_scan_set): Simplify with new reg_available_p.
12069 (compute_hash_table_work): Traverse insns stream only once.
12070 Do not compute reg_avail_info. Traverse insns in reverse order.
12071 Record implicit sets after recording explicit sets from the block.
12073 2011-03-31 Michael Matz <matz@suse.de>
12075 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12077 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12079 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12080 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12081 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12082 (h8300_mode_dependent_address_p): New function.
12083 (h8300_get_index): Make static.
12085 2011-03-31 Jeff Law <law@redhat.com>
12087 * reload1.c (elimination_effects): Fix typo in recent change.
12089 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12090 typo potentially leading to null pointer dereference.
12092 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12093 (setup_save_areas): Corresponding changes to avoid useless
12096 * jump.c (reversed_comparison_code_parts): Avoid successive return
12097 statements when REVERSE_CONDITION is defined.
12099 * expr.c (expand_assignment): Avoid useless assignments.
12100 (expand_expr_real_1): Likewise.
12101 (expand_expr_real_2): Avoid useless statements.
12103 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12105 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12107 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12110 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12112 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12115 * doc/tm.texi.in (TARGET_VERSION): Remove.
12116 * doc/tm.texi: Regenerate.
12117 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12118 * collect2.c (main): Don't use TARGET_VERSION.
12119 * mips-tdump.c (main): Don't use TARGET_VERSION.
12120 * mips-tfile.c (main): Don't use TARGET_VERSION.
12121 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12122 * config/rs6000/vxworksae.h: Remove.
12123 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12124 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12125 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12126 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12127 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12128 * config/arm/arm.h (TARGET_VERSION): Remove.
12129 * config/arm/coff.h (TARGET_VERSION): Remove.
12130 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12131 * config/arm/elf.h (TARGET_VERSION): Remove.
12132 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12133 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12134 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12135 * config/arm/pe.h (TARGET_VERSION): Remove.
12136 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12137 * config/arm/semi.h (TARGET_VERSION): Remove.
12138 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12139 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12140 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12141 * config/avr/avr.h (TARGET_VERSION): Remove.
12142 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12143 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12144 * config/frv/frv.h (TARGET_VERSION): Remove.
12145 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12146 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12147 * config/i386/darwin.h (TARGET_VERSION): Remove.
12148 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12149 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12150 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12151 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12152 * config/i386/gnu.h (TARGET_VERSION): Remove.
12153 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12154 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12155 * config/i386/linux.h (TARGET_VERSION): Remove.
12156 * config/i386/linux64.h (TARGET_VERSION): Remove.
12157 * config/i386/lynx.h (TARGET_VERSION): Remove.
12158 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12159 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12160 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12161 * config/i386/netware.h (TARGET_VERSION): Remove.
12162 * config/i386/nto.h (TARGET_VERSION): Remove.
12163 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12164 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12165 * config/ia64/elf.h (TARGET_VERSION): Remove.
12166 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12167 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12168 * config/ia64/linux.h (TARGET_VERSION): Remove.
12169 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12170 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12171 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12172 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12173 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12174 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12175 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12176 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12177 * config/m68k/linux.h (TARGET_VERSION): Remove.
12178 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12179 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12180 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12181 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12182 * config/mep/mep.h (TARGET_VERSION): Remove.
12183 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12184 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12185 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12186 * config/mips/linux.h (TARGET_VERSION): Remove.
12187 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12188 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12189 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12190 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12191 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12192 * config/pa/pa.h (TARGET_VERSION): Remove.
12193 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12194 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12195 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12196 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12197 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12198 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12199 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12200 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12201 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12202 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12203 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12204 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12205 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12206 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12207 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12208 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12209 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12210 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12211 * config/s390/linux.h (TARGET_VERSION): Remove.
12212 * config/s390/s390.h (TARGET_VERSION): Remove.
12213 * config/s390/tpf.h (TARGET_VERSION): Remove.
12214 * config/score/score.h (TARGET_VERSION): Remove.
12215 * config/sh/linux.h (TARGET_VERSION): Remove.
12216 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12217 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12218 * config/sh/sh.h (TARGET_VERSION): Remove.
12219 * config/sh/sh64.h (TARGET_VERSION): Remove.
12220 * config/sh/superh.h (TARGET_VERSION): Remove.
12221 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12222 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12223 * config/sparc/linux.h (TARGET_VERSION): Remove.
12224 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12225 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12226 TARGET_NAME32, TARGET_NAME): Remove.
12227 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12228 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12229 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12230 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12231 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12232 * config/spu/spu.h (TARGET_VERSION): Remove.
12233 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12234 * config/v850/v850.h (TARGET_VERSION): Remove.
12235 * config/vax/linux.h (TARGET_VERSION): Remove.
12236 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12237 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12238 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12240 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12243 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12244 frame-related from frame-unrelated adjustments to the stack pointer.
12246 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12248 * common.opt (fdebug-types-section): Move earlier.
12249 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12251 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12253 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12256 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12258 * tree.h (CASE_CHAIN): Define.
12259 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12260 (gimple_redirect_edge_and_branch): Likewise.
12262 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12264 PR middle-end/48367
12265 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12268 2011-03-30 Jeff Law <law@redhat.com>
12270 * PR bootstrap/48371
12271 * reload1.c (reload): Fix botch in last change.
12273 * reload.h (struct reload): Fix typo introduced in last change.
12275 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12277 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12278 Undocumented. Remove help text.
12279 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12282 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12284 * doc/options.texi (NegativeAlias): Document.
12285 (Alias): Mention NegativeAlias.
12286 * opt-functions.awk: Handle NegativeAlias.
12287 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12288 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12289 * opts.h (CL_NEGATIVE_ALIAS): Define.
12290 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12291 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12293 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12295 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12296 mno-spe and mno-isel instead of mspe=no and -misel=no.
12298 2011-03-29 Mark Wielaard <mjw@redhat.com>
12300 * common.opt (fdebug-types-section): New flag.
12301 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12302 * dwarf2out.c (use_debug_types): New define.
12303 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12304 (print_die): Guard output of type unit signatures using
12306 (build_abbrev_table): Replace assert of dwarf_version >= 4
12307 with assert on use_debug_types.
12308 (size_of_die): Likewise.
12309 (unmark_dies): Likewise.
12310 (value_format): Decide AT_ref_external form on use_debug_types.
12311 (output_die): Replace dwarf_version version check guard with
12312 use_debug_types where appropriate.
12313 (modified_type_die): Likewise.
12314 (gen_reference_type_die): Likewise.
12315 (dwarf2out_start_source_file): Likewise.
12316 (dwarf2out_end_source_file): Likewise.
12317 (prune_unused_types_walk_attribs): Likewise.
12318 (dwarf2out_finish): Likewise.
12320 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12322 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12324 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12326 PR rtl-optimization/48332
12327 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12328 mode of input operand N and modeN to its actual mode.
12330 2011-03-30 Jeff Law <law@redhat.com>
12332 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12333 define accessor macro.
12334 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12335 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12336 (reg_equiv_init): Likewise.
12337 (reg_equivs_size): New variable.
12338 (reg_equiv_init_size): Remove.
12339 (allocate_initial_values): Move prototype to here from....
12340 * integrate.h (allocate_initial_values): Remove prototype.
12341 * integrate.c: Include reload.h.
12342 (allocate_initial_values): Corresponding changes.
12343 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12344 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12345 (update_equiv_regs): Corresponding changes.
12346 (ira): Corresponding changes.
12347 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12348 (push_secondary_reload): Corresponding changes.
12349 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12350 (make_memloc, find_reloads_address): Corresponding changes.
12351 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12352 (find_reloads_address_1): Corresponding changes.
12353 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12354 (refers_to_regno_for_reload_p): Corresponding changes.
12355 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12356 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12357 * reload1.c: Include ggc.h.
12358 (grow_reg_equivs): New function.
12359 (replace_pseudos_in, reload): Corresponding changes.
12360 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12361 (eliminate_regs_1, elimination_effects): Corresponding changes.
12362 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12363 (delete_output_reload): Likewise.
12364 * caller-save.c (mark_referenced_regs): Corresponding changes.
12365 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12366 * frv/predicates.md (frv_load_operand): Corresponding changes.
12367 * microblaze/microblaze.c (double_memory_operand): Corresponding
12369 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12370 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12371 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12372 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12373 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12375 * pa/pa.c (emit_move_sequence): Corresponding changes.
12376 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12378 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12381 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12382 structure modes. Don't check neon_vector_mem_operand for
12383 vector or structure modes.
12385 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12386 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12389 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12390 operand 1 and reshuffle the operands to match.
12391 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12393 2011-03-30 Christian Schüler <cschueler@gmx.de>
12396 * config/c.opt (F): Added 'Driver' to -F option.
12399 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12401 * config/darwin.opt: Added '-arch' option.
12403 2011-03-30 Nick Clifton <nickc@redhat.com>
12405 * config/rx/rx.md: Add peepholes and patterns to combine
12406 extending loads and simple arithmetic instructions.
12407 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12408 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12409 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12410 modes to use pre-decrement and post-increment addressing.
12411 (rx_is_restricted_memory_address): Add range checking of REG+INT
12413 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12414 (rx_memory_move_cost): Adjust cost of stores.
12415 (rx_adjust_insn_length): New function.
12417 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12420 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12421 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12422 matching arg00/arg01 types.
12424 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12426 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12427 last_location to UNKNOWN_LOCATION.
12429 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12432 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12435 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12436 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12439 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12440 Init(PROCESSOR_V7).
12441 (sparc_cpu): Likewise.
12442 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12445 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12448 PR middle-end/48342
12449 PR rtl-optimization/48345
12450 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12451 hard regs for given mode from profitable regs when doing secondary
12454 2011-03-29 Jeff Law <law@redhat.com>
12457 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12458 do_not_duplicate field.
12459 (lookup_redirection_data): Corresponding changes.
12460 (create_duplicates): Always create a template block.
12461 (redirect_edges): Remove code which reused the original block
12462 when it was going to become unreachable code.
12463 (thread_block): Don't set do_not_duplicate field.
12465 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12467 * lto-opts.c (register_user_option_p, lto_register_user_option):
12468 Make type argument unsigned.
12469 * lto-streamer.h (lto_register_user_option): Make type argument
12471 * opth-gen.awk: Make CL_* macros unsigned.
12472 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12473 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12474 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12475 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12476 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12477 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12478 (find_opt): Make lang_mask argument unsigned.
12480 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12482 PR rtl-optimization/48331
12483 PR rtl-optimization/48334
12484 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12485 for any used algorithm.
12487 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12489 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12492 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12494 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12495 (alpha_option_override): Don't set alpha_sr_alias_set.
12496 (emit_frame_store_1): Use gen_frame_mem rather than calling
12498 (alpha_expand_epilogue): Ditto.
12500 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12502 PR tree-optimization/48290
12503 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12504 vectorization, check that relevant phis in the basic block after
12505 the inner loop are really inner loop's exit phis.
12507 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12510 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12511 (cached_dw_loc_list_def): New structure.
12512 (cached_dw_loc_list): New typedef.
12513 (cached_dw_loc_list_table): New variable.
12514 (cached_dw_loc_list_table_hash): New function.
12515 (cached_dw_loc_list_table_eq): Likewise.
12516 (add_location_or_const_value_attribute): Take a bool cache_p.
12517 Cache the list when the parameter is true.
12518 (gen_formal_parameter_die): Update caller.
12519 (gen_variable_die): Likewise.
12520 (dwarf2out_finish): Likewise.
12521 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12522 while generating debug info for the decl.
12523 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12524 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12525 (resolve_addr): Cache the result of resolving a chain of
12528 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12530 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12531 conflict object hard regset nodes have intersecting hard reg sets.
12533 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12534 after regstat_init_n_sets_and_refs.
12536 * ira.c: Add more comments at the top.
12537 (setup_stack_reg_pressure_class, setup_pressure_classes):
12538 Add comments how we compute the register pressure classes.
12539 (setup_allocno_and_important_classes): Add more comments.
12540 (setup_class_translate_array, reorder_important_classes)
12541 (setup_reg_class_relations): Add comments.
12543 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12546 * ira-color.c: Add 2011 to the Copyright line.
12547 (assign_hard_reg): Add more comments.
12548 (improve_allocation): Ditto.
12550 * ira-costs.c: Add 2011 to the Copyright line.
12551 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12553 (setup_regno_cost_classes_by_mode): Ditto.
12555 Initial patches from ira-improv branch:
12557 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12559 * ira-build.c (ira_create_object): Remove initialization of
12560 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12561 (ira_create_allocno): Remove initialization of
12562 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12563 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12564 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12565 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12566 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12567 Initialize ALLOCNO_ADD_DATA.
12568 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12569 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12571 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12572 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12574 * ira.c (ira_reallocate): Remove.
12575 (setup_pressure_classes): Call
12576 ira_init_register_move_cost_if_necessary. Use
12577 ira_register_move_cost instead of ira_get_register_move_cost.
12578 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12579 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12581 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12582 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12583 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12584 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12585 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12586 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12588 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12589 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12590 (struct allocno_color_data): New.
12591 (allocno_color_data_t): New typedef.
12592 (allocno_color_data): New definition.
12593 (ALLOCNO_COLOR_DATA): New macro.
12594 (struct object_color_data): New.
12595 (object_color_data_t): New typedef.
12596 (object_color_data): New definition.
12597 (OBJECT_COLOR_DATA): New macro.
12598 (update_copy_costs, calculate_allocno_spill_cost): Call
12599 ira_init_register_move_cost_if_necessary. Use
12600 ira_register_move_cost instead of ira_get_register_move_cost.
12601 (move_spill_restore, update_curr_costs): Ditto.
12602 (allocno_spill_priority): Make it inline.
12603 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12604 (struct coalesce_data, coalesce_data_t): New.
12605 (allocno_coalesce_data): New definition.
12606 (ALLOCNO_COALESCE_DATA): New macro.
12607 (merge_allocnos, coalesced_allocno_conflict_p): Use
12608 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12609 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12610 (coalesce_allocnos): Ditto.
12611 (setup_coalesced_allocno_costs_and_nums): Ditto.
12612 (collect_spilled_coalesced_allocnos): Ditto.
12613 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12614 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12615 (coalesce_spill_slots): Ditto.
12616 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12617 free allocno_coalesce_data.
12619 * ira-conflicts.c: Fix formatting.
12620 (process_regs_for_copy): Call
12621 ira_init_register_move_cost_if_necessary. Use
12622 ira_register_move_cost instead of ira_get_register_move_cost.
12623 (build_object_conflicts): Optimize.
12625 * ira-costs.c (record_reg_classes): Optimize. Call
12626 ira_init_register_move_cost_if_necessary. Use
12627 ira_register_move_cost, ira_may_move_in_cost, and
12628 ira_may_move_out_cost instead of ira_get_register_move_cost and
12629 ira_get_may_move_cost.
12630 (record_address_regs): Ditto.
12631 (scan_one_insn): Optimize.
12632 (find_costs_and_classes): Optimize.
12633 (process_bb_node_for_hard_reg_moves): Call
12634 ira_init_register_move_cost_if_necessary. Use
12635 ira_register_move_cost instead of ira_get_register_move_cost.
12637 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12638 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12639 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12640 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12642 (ira_initiate_emit_data, ira_finish_emit_data)
12643 (create_new_allocno): New functions.
12644 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12645 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12646 Use ira_register_move_cost instead of ira_get_register_move_cost.
12648 * ira-int.h: Fix some comments.
12649 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12650 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12651 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12652 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12654 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12655 bitfield after mode. Make hard_regno a short int. Make
12656 hard_regno short. Remove first_coalesced_allocno and
12657 next_coalesced_allocno. Move mem_optimized_dest_p,
12658 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12659 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12660 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12661 temp, colorable_p. Add new member add_data.
12662 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12663 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12664 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12665 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12666 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12667 (ALLOCNO_ADD_DATA): New macro.
12668 (ira_emit_data_t): New typedef.
12669 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12670 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12671 from struct ira_allocno.
12672 (ALLOCNO_EMIT_DATA): New macro.
12673 (ira_allocno_emit_data, allocno_emit_reg): New.
12674 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12675 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12676 (OBJECT_ADD_DATA): New macro.
12677 (ira_reallocate): Remove.
12678 (ira_initiate_emit_data, ira_finish_emit_data): New.
12679 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12680 (ira_init_register_move_cost_if_necessary): New.
12681 (ira_object_conflict_iter_next): Merge into
12682 ira_object_conflict_iter_cond.
12683 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12685 * ira-live.c (process_single_reg_class_operands): Call
12686 ira_init_register_move_cost_if_necessary. Use
12687 ira_register_move_cost instead of ira_get_register_move_cost.
12689 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12691 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12693 * ira-costs.c: Fix formatting.
12694 (cost_classes, cost_classes_num): Remove.
12695 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12696 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12697 (cost_classes_del, cost_classes_htab): New.
12698 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12699 (initiate_regno_cost_classes, setup_cost_classes): New.
12700 (setup_regno_cost_classes_by_aclass): New.
12701 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12702 (record_reg_classes): Use regno_cost_classes instead of
12703 cost_classes. Move checking opposite operand up.
12704 (record_address_regs): Use regno_cost_classes
12705 instead of cost_classes.
12706 (scan_one_insn): Ditto. Use always general register.
12707 (print_allocno_costs): Use regno_cost_classes instead of
12709 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12710 (find_costs_and_classes): Set up cost classes for each registers.
12711 Use also their mode for this. Use regno_cost_classes instead of
12713 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12715 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12716 (ira_costs, ira_set_pseudo_classes): Call
12717 initiate_regno_cost_classes and finish_regno_cost_classes.
12719 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12721 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12723 * target.def (ira_cover_classes): Remove.
12725 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12727 * doc/tm.texi.in: Ditto.
12729 * ira-conflicts.c: Remove mentioning cover classes from the file.
12730 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12731 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12733 * targhooks.c (default_ira_cover_classes): Remove.
12735 * targhooks.h (default_ira_cover_classes): Ditto.
12737 * haifa-sched.c: Remove mentioning cover classes from the file.
12738 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12739 ira_pressure_classes and ira_pressure_classes_num instead of
12740 ira_reg_class_cover_size and ira_reg_class_cover. Use
12741 sched_regno_pressure_class instead of sched_regno_cover_class.
12742 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12743 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12745 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12746 classes from the file.
12747 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12748 (struct object_hard_regs, struct object_hard_regs_node): New.
12749 (struct ira_object): New members profitable_hard_regs,
12750 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12751 (struct ira_allocno): Rename cover_class to aclass. Rename
12752 cover_class_cost and updated_cover_class_cost to class_cost and
12753 updated_class_cost. Remove splay_removed_p and
12754 left_conflict_size. Add new members colorable_p.
12755 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12756 (ALLOCNO_COLORABLE_P): New macro.
12757 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12758 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12759 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12760 (OBJECT_...): Rename parameter C to O.
12761 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12762 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12763 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12764 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12765 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12766 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12767 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12768 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12769 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12770 x_ira_reg_class_subunion.
12771 (ira_max_memory_move_cost, ira_max_register_move_cost)
12772 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12773 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12774 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12775 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12776 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12777 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12778 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12779 (ira_tune_allocno_costs_and_cover_classes): Rename to
12780 ira_tune_allocno_costs.
12781 (ira_debug_hard_regs_forest): New.
12782 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12783 (ira_object_conflict_iter_next): Fix comments.
12784 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12785 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12786 cover_class to aclass.
12787 (ira_allocate_and_accumulate_costs): Ditto.
12788 (ira_allocate_and_set_or_copy_costs): Ditto.
12790 * opts.c (decode_options): Remove ira_cover_class check.
12792 * ira-color.c: Remove mentioning cover classes from the file. Use
12793 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12794 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12795 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12796 (splay-tree.h): Remove include.
12797 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12798 before copy_freq_compare_func.
12799 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12800 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12802 (hard_regs_roots, hard_regs_node_vec): Ditto.
12803 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12804 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12805 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12806 (create_new_object_hard_regs_node): Ditto.
12807 (add_new_object_hard_regs_node_to_forest): Ditto.
12808 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12809 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12811 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12812 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12813 (remove_unused_object_hard_regs_nodes): Ditto.
12814 (enumerate_object_hard_regs_nodes): Ditto.
12815 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12816 (object_hard_regs_subnode_t): Ditto.
12817 (struct object_hard_regs_subnode): Ditto.
12818 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12819 (setup_object_hard_regs_subnode_index): Ditto.
12820 (get_object_hard_regs_subnodes_num): Ditto.
12821 (form_object_hard_regs_nodes_forest): Ditto.
12822 (finish_object_hard_regs_nodes_tree): Ditto.
12823 (finish_object_hard_regs_nodes_forest): Ditto.
12824 (allocnos_have_intersected_live_ranges_p): Rename to
12825 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12826 (pseudos_have_intersected_live_ranges_p): Rename to
12827 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12828 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12829 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12830 (update_copy_costs): Remove assert. Skip cost update if the hard
12831 reg does not belong the class.
12832 (assign_hard_reg): Process only profitable hard regs.
12833 (uncolorable_allocnos_num): Make it scalar.
12834 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12835 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12836 and ira_reg_class_max_nregs.
12837 (bucket_allocno_compare_func): Check frequency first.
12838 (sort_bucket): Add compare function as a parameter.
12839 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12840 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12841 (push_allocno_to_stack): Rewrite for checking new allocno
12843 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12844 (push_only_colorable): Pass new parameter to sort_bucket.
12845 (push_allocno_to_spill): Remove.
12846 (allocno_spill_priority_compare): Make it inline and rewrite.
12847 (splay_tree_allocate, splay_tree_free): Remove.
12848 (allocno_spill_sort_compare): New function.
12849 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12850 build and use splay tree. Choose first allocno in uncolorable
12851 allocno bucket to spill. Remove setting spill cost.
12852 (all_conflicting_hard_regs): Remove.
12853 (setup_allocno_available_regs_num): Check only profitable hard
12854 regs. Print info about hard regs nodes.
12855 (setup_allocno_left_conflicts_size): Remove.
12856 (put_allocno_into_bucket): Don't call
12857 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12858 (improve_allocation): New.
12859 (color_allocnos): Call setup_profitable_hard_regs,
12860 form_object_hard_regs_nodes_forest, improve_allocation,
12861 finish_object_hard_regs_nodes_forest. Setup spill cost.
12862 (print_loop_title): Use pressure classes.
12863 (color_allocnso): Ditto.
12864 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12865 and allocnos_for_spilling.
12866 (ira_sort_regnos_for_alter_reg): Don't setup members
12867 {first,next}_coalesced_allocno.
12868 (color): Remove allocating and freeing removed_splay_allocno_vec.
12869 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12870 prohibited_class_mode_regs.
12872 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12874 (update_allocno_pressure_excess_length): Use pressure classes.
12875 (inc_register_pressure, dec_register_pressure): Check for pressure
12877 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12878 pressure class. Use ira_reg_class_nregs instead of
12879 ira_reg_class_max_nregs.
12880 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12881 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12882 (single_reg_class): Use ira_reg_class_nregs instead of
12883 ira_reg_class_max_nregs.
12884 (process_bb_node_lives): Use pressure classes.
12886 * ira-emit.c: Remove mentioning cover classes from the file. Use
12887 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12888 (change_loop): Use pressure classes.
12889 (modify_move_list): Call ira_set_allocno_class instead of
12890 ira_set_allocno_cover_class.
12892 * ira-build.c: Remove mentioning cover classes from the file. Use
12893 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12894 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12895 ALLOCNO_UPDATED_CLASS_COST instead of
12896 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12897 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12898 (ira_create_allocno): Remove initialization of
12899 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12900 ALLOCNO_COLORABLE_P.
12901 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12902 Update conflict regs for the objects.
12903 (create_cap_allocno): Remove assert. Don't propagate
12904 ALLOCNO_AVAILABLE_REGS_NUM.
12905 (ira_free_allocno_costs): New function.
12906 (finish_allocno): Change a part of code into call of
12907 ira_free_allocno_costs.
12908 (low_pressure_loop_node_p): Use pressure classes.
12909 (object_range_compare_func): Don't compare classes.
12910 (setup_min_max_conflict_allocno_ids): Ditto.
12912 * loop-invariant.c: Remove mentioning cover classes from the file.
12913 Use ira_pressure_classes and ira_pressure_classes_num instead of
12914 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12915 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12916 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12917 Use reg_allocno_class instead of reg_cover_class.
12918 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12919 STACK_REG_COVER_CLASS.
12920 (get_regno_cover_class): Rename to get_regno_pressure_class.
12921 (move_loop_invariants): Initialize and finalize regstat.
12923 * ira.c: Remove mentioning cover classes from the file. Add
12924 comments about coloring without cover classes. Use ALLOCNO_CLASS
12925 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12926 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12927 setup_class_subset_and_memory_move_costs.
12928 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12929 (setup_cover_and_important_classes): Rename to
12930 setup_allocno_and_important_classes.
12931 (setup_class_translate_array): New.
12932 (setup_class_translate): Call it for allocno and pressure classes.
12933 (cover_class_order): Rename to allocno_class_order.
12934 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12935 of ira_class_translate.
12936 (reorder_important_classes): Set up ira_important_class_nums.
12937 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12938 (print_class_cover): Rename to print_classes. Add parameter.
12939 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12940 Print pressure classes too.
12941 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12942 setup_reg_subclasses.
12943 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12944 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12945 (setup_prohibited_class_mode_regs): Use
12946 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12947 (clarify_prohibited_class_mode_regs): New function.
12948 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12949 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12950 (ira_init_once): Initialize them.
12951 (free_register_move_costs): Process them.
12952 (ira_init): Move calls of find_reg_classes and
12953 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12954 Call clarify_prohibited_class_mode_regs.
12955 (ira_no_alloc_reg): Remove.
12956 (too_high_register_pressure_p): Use pressure classes.
12958 * sched-deps.c: Remove mentioning cover classes from the file.
12959 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12960 ira_pressure_classes and ira_pressure_classes_num instead of
12961 ira_reg_class_cover_size and ira_reg_class_cover.
12962 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12963 sched_regno_pressure_class instead of sched_regno_cover_class.
12964 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12965 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12967 * ira.h: Add 2010 to Copyright.
12968 (ira_no_alloc_reg): Remove external.
12969 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12970 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12971 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12972 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12973 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12974 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12975 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12976 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12977 x_ira_no_alloc_regs.
12978 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12979 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12980 ira_allocno_classes_num and ira_allocno_classes.
12981 (ira_class_translate): Rename to ira_allocno_class_translate.
12982 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12983 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12984 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12985 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12986 (ira_no_alloc_regs): New.
12988 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12989 classes from the file. Use ALLOCNO_CLASS instead of
12990 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12991 ALLOCNO_COVER_CLASS_COST.
12992 (regno_cover_class): Rename to regno_aclass.
12993 (record_reg_classes): Use ira_reg_class_subunion instead of
12994 ira_reg_class_union.
12995 (record_address_regs): Check overflow.
12996 (scan_one_insn): Ditto.
12997 (print_allocno_costs): Print total mem cost fore regional allocation.
12998 (print_pseudo_costs): Use REG_N_REFS.
12999 (find_costs_and_classes): Use classes intersected with them on the
13000 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13001 ira_reg_class_union. Use ira_allocno_class_translate and
13002 regno_aclass instead of ira_class_translate and regno_cover_class.
13003 Modify code for finding regno_aclass. Setup preferred classes for
13005 (setup_allocno_cover_class_and_costs): Rename to
13006 setup_allocno_class_and_costs. Use regno_aclass instead of
13007 regno_cover_class. Use ira_set_allocno_class instead of
13008 ira_set_allocno_cover_class.
13009 (init_costs, finish_costs): Use regno_aclass instead of
13011 (ira_costs): Use setup_allocno_class_and_costs instead of
13012 setup_allocno_cover_class_and_costs.
13013 (ira_tune_allocno_costs_and_cover_classes): Rename to
13014 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13015 by processing objects. Use ira_reg_class_max_nregs instead of
13016 ira_reg_class_nregs.
13018 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13020 * sched-int.h: Remove mentioning cover classes from the file.
13021 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13023 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13024 classes from the file.
13025 (struct reg_pref): Rename coverclass into allocnoclass.
13026 (reg_cover_class): Rename to reg_allocno_class.
13028 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13030 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13032 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13034 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13036 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13038 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13040 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13042 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13044 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13046 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13048 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13049 (i386_ira_cover_classes): Ditto.
13051 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13053 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13055 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13057 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13059 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13061 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13063 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13064 (mips_ira_cover_classes): Ditto.
13066 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13068 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13070 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13072 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13074 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13076 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13077 (IRA_COVER_CLASSES_VSX): Ditto.
13079 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13080 (rs6000_ira_cover_classes): Ditto.
13082 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13084 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13086 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13088 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13090 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13092 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13094 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13096 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13098 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13100 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13102 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13105 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13106 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13107 dw_fde_unlikely_section_end_label, cold_in_std_section,
13108 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13109 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13111 (output_fde): Use dw_fde_second_{begin,end} if second is
13112 true, otherwise dw_fde_{begin,end}.
13113 (output_call_frame_info): Test dw_fde_second_begin != NULL
13114 instead of dw_fde_switched_sections.
13115 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13116 fields, initialize new fields. Initialize in_std_section
13117 unconditionally from the first partition.
13118 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13119 dw_fde_second_begin is non-NULL.
13120 (dwarf2out_switch_text_section): Stop initializing removed
13121 dw_fde_struct fields, initialize new fields, initialize
13122 also dw_fde_end here. Set dw_fde_switch_cfi even when
13123 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13124 (struct var_loc_list_def): Add last_before_switch field.
13125 (arange_table, arange_table_allocated, arange_table_in_use,
13126 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13127 (size_of_aranges): Count !in_std_section and !second_in_std_section
13128 hunks in fdes, instead of looking at arange_table_in_use.
13129 (output_aranges): Add aranges_length argument, don't call
13130 size_of_aranges here. Instead of using aranges_table*
13131 emit ranges for fdes when !in_std_section resp.
13132 !second_in_std_section.
13133 (dw_loc_list): Break ranges crossing section switch.
13134 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13135 use dw_fde_second_end instead of dw_fde_end as end of last range.
13136 (gen_subprogram_die): Don't call add_arange. Use
13137 dw_fde_{begin,end} for first partition and if switched
13138 section dw_fde_second_{begin,end} for the second.
13139 (var_location_switch_text_section_1,
13140 var_location_switch_text_section): New functions.
13141 (dwarf2out_begin_function): Initialize cold_text_section even
13142 when function_section () isn't text_section.
13143 (prune_unused_types): Don't walk arange_table.
13144 (dwarf2out_finish): Don't needlessly test
13145 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13146 If info_section_emitted, call size_of_aranges and if it indicates
13147 non-empty .debug_aranges, call output_aranges with the computed
13148 size. Stop using removed dw_fde_struct fields, use
13149 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13153 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13154 create ENTRY_VALUE if incoming or address of incoming's MEM
13156 * dwarf2out.c (mem_loc_descriptor): Don't emit
13157 DW_OP_GNU_entry_value of DW_OP_fbreg.
13158 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13159 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13160 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13161 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13163 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13164 is a REG_P or MEM_P with REG_P address, compute hash directly
13165 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13166 (preserve_only_constants): Don't clear VALUES forwaring
13167 ENTRY_VALUE to some other VALUE.
13169 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13171 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13172 instead of GEN_INT.
13174 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13176 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13177 block before expanding the statement.
13178 (expand_gimple_stmt_1): Likewise. Set them here...
13179 (expand_gimple_stmt): ...and not here. Tidy.
13180 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13183 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13185 * Makefile.in: New rule for cprop.o.
13186 * gcse.c: Move constant/copy propagation to cprop.c.
13187 (compute_local_properties): Only handle expression tables.
13188 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13189 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13190 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13191 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13192 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13193 compute_cprop_data, find_used_regs, try_replace_reg,
13194 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13195 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13196 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13197 find_bypass_set, reg_killed_on_edge, bypass_block,
13198 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13199 execute_rtl_cprop, pass_rtl_cprop): Move to...
13200 * cprop.c: ...here. New file, constant/copy propagation for RTL
13201 moved from gcse.c to here with minor cleanups in duplicated code.
13203 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13205 * config/i386/i386.c (flag_opts): Fix a typo in
13206 -mavx256-split-unaligned-store.
13208 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13210 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13211 LIBCALL_VALUE): Remove macros.
13212 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13213 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13214 (h8300_function_value, h8300_libcall_value,
13215 h8300_function_value_regno_p): New functions.
13217 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13219 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13221 2011-03-28 Jeff Law <law@redhat.com>
13223 * tree-ssa-threadupdate.c (redirect_edges): Call
13224 create_edge_and_update_destination_phis as needed.
13225 (create_edge_and_update_destination_phis): Accept new BB argument.
13226 All callers updated.
13227 (thread_block): Do not update the profile when threading around
13228 intermediate blocks.
13229 (thread_single_edge): Likewise.
13230 (determine_bb_domination_status): If BB is not a successor of the
13231 loop header, return NONDOMINATING.
13232 (register_jump_thread): Note when we register a jump thread around
13233 an intermediate block.
13234 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13235 (thread_across_edge): Use it.
13237 2011-03-28 Tristan Gingold <gingold@adacore.com>
13239 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13240 when for_return is 2.
13242 2011-03-28 Jeff Law <law@redhat.com>
13244 * var-tracking.c (canonicalize_values_mark): Delete unused
13246 (canonicalize_values_star, set_variable_part): Likewise.
13247 (clobber_variable_part, delete_variable_part): Likewise.
13249 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13251 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13253 2011-03-28 Martin Jambor <mjambor@suse.cz>
13255 * tree-inline.c (expand_call_inline): Do not check that destination
13257 (optimize_inline_calls): Assert that destination node is analyzed.
13258 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13259 not call tree_lowering_passes.
13260 * cgraph.h (cgraph_analyze_function): Declare.
13261 * cgraphunit.c (cgraph_analyze_function): Make public.
13263 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13265 * config/sparc/sparc-opts.h: New.
13266 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13267 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13268 (sparc_option_override): Store processor_type enumeration rather
13269 than string in cpu_default. Remove name and enumeration from
13270 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13271 without using sparc_select. Use target_flags_explicit instead of
13273 * config/sparc/sparc.h (enum processor_type): Move to
13275 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13276 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13277 HeaderInclude entry.
13278 (mcpu=, mtune=): Use Var and Enum.
13279 (sparc_processor_type): New Enum and EnumValue entries.
13281 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13282 Iain Sandoe <iains@gcc.gnu.org>
13285 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13287 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13289 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13290 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13291 Insert new statements at it in lieu of STMT.
13292 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13293 * tree-vect-stmts.c (vectorizable_store): Likewise.
13294 (vectorizable_load): Likewise.
13296 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13298 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13303 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13305 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13306 unaligned 256bit load/store.
13307 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13308 (*avx_movdqu<avxmodesuffix>): Likewise.
13310 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13313 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13314 * config/pa/pa.md (iordi3): Use new predicate in expander.
13315 (iorsi3): Likewise.
13317 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13319 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13320 FUNCTION_VALUE_REGNO_P): Remove macros.
13321 * config/mips/mips-protos.h (mips_function_value): Remove.
13322 * config/mips/mips.c (mips_function_value): Rename to...
13323 (mips_function_value_1): ... this. Make static. Handle receiving
13324 the function type in 'fn_decl_or_type' argument.
13325 (mips_function_value, mips_libcall_value,
13326 mips_function_value_regno_p): New function.
13327 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13328 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13330 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13332 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13333 and -mavx256-split-unaligned-store.
13334 (ix86_option_override_internal): Split 32-byte AVX unaligned
13335 load/store by default.
13336 (ix86_avx256_split_vector_move_misalign): New.
13337 (ix86_expand_vector_move_misalign): Use it.
13339 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13340 -mavx256-split-unaligned-store.
13342 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13343 256bit load/store. Generate unaligned store on misaligned memory
13345 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13347 (*avx_movdqu<avxmodesuffix>): Likewise.
13349 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13350 -mavx256-split-unaligned-store.
13352 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13355 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13358 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13360 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13361 opno arguments with an expand_operand. Use create_input_operand.
13362 (mips_prepare_builtin_target): Delete.
13363 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13365 (mips_expand_builtin_direct): Use create_output_operand and
13366 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13367 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13368 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13370 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13372 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13374 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13376 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13378 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13379 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13380 basic blocks and call commit_edge_insertions directly.
13381 (fixup_abnormal_edges): Move from here to...
13382 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13383 on the edges and return whether some have actually been inserted.
13384 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13387 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13389 PR rtl-optimization/48144
13390 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13391 (merge_expr_data): ... here.
13392 (av_set_intersect): Rename to av_set_code_motion_filter.
13393 Update all callers. Call merge_history_vect when an expression
13394 is found in both sets.
13395 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13397 2011-03-26 Alan Modra <amodra@gmail.com>
13399 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13400 cmodel medium addresses.
13401 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13402 64-bit gpr loads and stores.
13403 (rs6000_secondary_reload_ppc64): New function.
13404 * config/rs6000/rs6000-protos.h: Declare it.
13405 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13407 2011-03-26 Alan Modra <amodra@gmail.com>
13410 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13411 GNU Go in traceback table.
13413 2011-03-25 Richard Henderson <rth@redhat.com>
13415 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13416 if there are exactly 6 operands.
13417 (set_storage_via_setmem): Similarly.
13419 2011-03-25 Kai Tietz <ktietz@redhat.com>
13421 * collect2.c (write_c_file_stat): Handle backslash
13422 as right-hand directory separator.
13423 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13424 checking just for slash.
13425 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13426 instead of checking for trailing slash.
13427 * gcc.c (record_temp_file): Use filename_cmp instead
13429 (do_spec_1): Likewise.
13430 (replace_outfile_spec_function): Likewise.
13431 (is_directory): Use filename_ncmp instead of strncmp.
13432 (print_multilib_info): Likewise.
13433 * gcov.c (find_source): Use filename_cmp instead
13435 (make_gcov_file_name): Fix order of slash/backslash
13437 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13438 (add_standard_paths): Likewise.
13439 * mips-tfile.c (saber_stop): Handle backslash.
13440 * prefix.c (update_path): Use filename_ncmp instead of
13442 * profile.c (output_location): Use filename_cmp instead
13444 * read-md.c (handle_toplevel_file): Handle backslash.
13445 * tlink.c (frob_extension): Likewise.
13446 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13448 * tree-dump.c (dequeue_and_dump): Handle backslash.
13449 * tree.c (get_file_function_name): Likewise.
13450 * gengtype.c (read_input_list): Likewise.
13451 (get_file_realbasename): Likewise.
13452 (get_output_file_with_visibility): Use filename_cmp
13455 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13457 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13460 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13462 * fold-const.c (expr_location_or): New function.
13463 (fold_truth_not_expr): Call it.
13465 2011-03-25 Jeff Law <law@redhat.com>
13467 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13469 * c-family/c-common.c (def_fn_type): Likewise.
13470 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13471 * emit-rtl.c (gen_rtvec): Likewise.
13472 * lto/lto-lang.c (def_fn_type): Likewise.
13474 2011-03-25 Richard Guenther <rguenther@suse.de>
13476 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13477 also generate copies.
13478 (fini_copy_prop): Handle constant values properly.
13480 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13482 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13483 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13484 (hash_loc_operands, compare_loc_operands): Handle
13485 DW_OP_GNU_entry_value.
13487 2011-03-25 Kai Tietz <ktietz@redhat.com>
13489 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13490 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13491 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13492 comment and use macro TARGET_64BIT_MS_ABI instead.
13493 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13494 and change default behavior for 32-bit MS_ABI.
13495 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13496 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13498 (ix86_cfun_abi): Likewise.
13499 (ix86_maybe_switch_abi): Adjust comment.
13500 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13501 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13502 instead of checking for SYSV_ABI.
13503 (ix86_nsaved_sseregs): Likewise.
13504 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13506 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13507 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13508 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13509 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13510 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13512 2011-03-25 Richard Guenther <rguenther@suse.de>
13514 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13515 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13516 (verify_gimple): Remove.
13517 * tree-cfg.c (verify_gimple_call): Merge verification
13519 (verify_gimple_phi): Merge verification from verify_stmts.
13520 (verify_gimple_label): New function.
13521 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13522 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13523 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13524 (verify_stmts): Rename to verify_gimple_in_cfg.
13525 (verify_gimple_in_cfg): New function.
13526 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13527 * tree-ssa.c (verify_ssa): Likewise.
13528 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13530 2011-03-25 Richard Guenther <rguenther@suse.de>
13532 * passes.c (init_optimization_passes): Add FRE pass after
13535 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13536 Andrew Stubbs <ams@codesourcery.com>
13538 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13540 (arm_movdi_vfp_cortexa8): New pattern.
13541 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13542 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13543 instructions when tuning for Cortex-A8. Set attribute "arch".
13544 * config/arm/arm.md: Move include arm-tune.md up a bit.
13545 (define_attr "arch"): Add "onlya8" and "nota8" values.
13546 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13548 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13552 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13554 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13555 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13556 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13557 * passes.c (init_optimization_passes): Move
13558 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13560 2011-03-25 Kai Tietz <ktietz@redhat.com>
13562 * c-typeck.c (comptypes_internal): Replace target
13563 hook call of comp_type_attributes by version in tree.c file.
13564 * gimple.c (gimple_types_compatible_p_1): Likewise.
13565 * tree-ssa.c (useless_type_conversion_p): Likewise.
13566 * tree.c (build_type_attribute_qual_variant): Likewise.
13567 (attribute_value_equal): New static helper function.
13568 (comp_type_attributes): New function.
13569 (merge_attributes): Use attribute_value_equal for comparison.
13570 (attribute_list_contained): Likewise.
13571 * tree.h (comp_type_attributes): New prototype.
13573 2011-03-25 Richard Guenther <rguenther@suse.de>
13575 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13576 of complex types at -O0.
13577 (verify_gimple_assign_binary): Likewise.
13578 (verify_gimple_assign_ternary): Likewise.
13580 2011-03-24 Mark Wielaard <mjw@redhat.com>
13582 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13583 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13585 2011-03-24 Mark Wielaard <mjw@redhat.com>
13588 * dwarf2out.c (output_abbrev_section): Only write table when
13589 abbrev_die_table_in_use > 1.
13591 2011-02-24 Richard Henderson <rth@redhat.com>
13593 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13594 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13595 (alpha_expand_unaligned_load_words): Use extql.
13596 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13597 (emit_insxl): Handle all modes for consistency.
13599 2011-02-24 Richard Henderson <rth@redhat.com>
13601 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13602 (alpha_expand_unaligned_load): Likewise.
13603 (alpha_expand_unaligned_store): Likewise.
13604 (alpha_expand_unaligned_load_words): Likewise.
13605 (alpha_expand_unaligned_store_words): Likewise.
13606 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13607 (alpha_split_lock_test_and_set_12): Likewise.
13608 (print_operand, alpha_fold_builtin_extxx): Likewise.
13609 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13610 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13611 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13612 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13613 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13614 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13615 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13616 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13617 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13618 (extwl, extll, extql): Similarly.
13619 (inswh, inslh, insqh): Similarly.
13620 (mskbl, mskwl, mskll, mskql): Similarly.
13621 (mskwh, msklh, mskqh): Similarly.
13623 2011-02-24 Richard Henderson <rth@redhat.com>
13625 * config/alpha/alpha.md (attribute isa): Add er, ner.
13626 (attribute enabled): Handle them.
13627 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13629 2011-02-24 Richard Henderson <rth@redhat.com>
13631 * config/alpha/alpha.md (attribute isa): Add vms.
13632 (attribute enabled): Handle it.
13633 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13634 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13635 (*movtf): Rename from *movtf_internal for consistency.
13636 (*movsi): Merge with *movsi_nt_vms.
13637 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13638 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13639 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13640 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13642 2011-02-24 Richard Henderson <rth@redhat.com>
13644 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13645 (extendqisi2, extendhisi2): Likewise.
13646 (extendqidi2): Simplify BWX/non-BWX expansions.
13647 (extendhidi2): Similarly.
13649 2011-02-24 Richard Henderson <rth@redhat.com>
13651 * config/alpha/alpha.md (attribute isa): New.
13652 (attribute enabled): New.
13653 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13654 (zero_extendqisi2, zero_extendqidi2): Similarly.
13655 (zero_extendhisi2, zero_extendhidi2): Similarly.
13656 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13658 2011-02-24 Richard Henderson <rth@redhat.com>
13660 * config/alpha/predicates.md (input_operand): Revert last change;
13661 update comment to mention 32-bit VMS rather than Windows.
13663 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13665 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13666 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13667 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13668 * passes.c (init_optimization_passes): Move
13669 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13671 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13673 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13675 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13677 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13680 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13683 * simplify-rtx.c (simplify_const_unary_operation): Call
13684 real_convert when changing mode class with FLOAT_EXTEND.
13686 2011-03-24 Nick Clifton <nickc@redhat.com>
13688 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13689 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13690 * config/rx/rx.c (rx_option_override): Set align_jumps,
13691 align_loops and align_labels if not set by the user.
13692 (rx_align_for_label): New function.
13693 (rx_max_skip_for_label): New function.
13694 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13695 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13696 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13697 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13698 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13700 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13702 PR rtl-optimization/48263
13703 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13704 and original commutative_p handling. Use maybe_gen_insn.
13706 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13708 * reload.c (find_reloads_subreg_address): Add address_reloaded
13709 parameter and return true there if the full address has been
13711 (find_reloads_toplev): Pass address_reloaded flag.
13712 (find_reloads_address_1): Don't use address_reloaded parameter.
13714 2011-03-24 Jeff Law <law@redhat.com>
13716 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13717 unused variable "ann".
13718 (remove_unused_locals): Likewise.
13720 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13723 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13726 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13728 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13729 for invalid symbolic addresses.
13730 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13733 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13735 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13736 the argument in calls to fold_truth_not_expr.
13738 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13740 * tree.c (record_node_allocation_statistics): New function.
13741 (make_node_stat, copy_node_stat, build_string): Call it.
13742 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13743 (build1_stat, build_omp_clause): Likewise.
13745 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13747 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13750 2011-03-24 Richard Guenther <rguenther@suse.de>
13752 PR tree-optimization/48271
13753 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13754 blocks that still exist.
13756 2011-03-24 Richard Guenther <rguenther@suse.de>
13758 PR tree-optimization/48270
13759 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13760 not free datarefs before ddrs.
13762 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13764 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13765 from the address built for a reference with variable offset.
13767 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13770 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13771 alternatives that can be handled with movq or movabsq insn.
13772 (*movdf_internal): Disable for !TARGET_64BIT.
13773 (*movdf_internal_nointeger): Ditto.
13774 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13776 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13778 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13779 (FUNCTION_ARG_ADVANCE): Likewise.
13780 * tm.texi.in: Change references to them to hook references.
13781 * tm.texi: Regenerate.
13782 * targhooks.c (default_function_arg): Eliminate check for target macro.
13783 (default_function_incoming_arg): Likewise.
13784 (default_function_arg_advance): Likewise.
13785 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13786 (function_arg_advance): Likewise.
13787 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13789 2011-03-24 Richard Guenther <rguenther@suse.de>
13791 PR middle-end/48269
13792 * tree-object-size.c (addr_object_size): Do not double-account
13793 for MEM_REF offsets.
13795 2011-03-24 Diego Novillo <dnovillo@google.com>
13797 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13798 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13799 (lto_input_data_block): Move from lto-opts.c. Make extern.
13801 (lto_input_string): Rename from input_string. Make extern.
13803 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13804 output_string_with_length.
13805 Output 0 to indicate a non-NULL string. Update all callers to
13807 (lto_output_string): Rename from output_string. Make extern.
13809 (lto_output_decl_state_streams): Make extern.
13810 (lto_output_decl_state_refs): Make extern.
13811 * lto-streamer.h (lto_input_string): Declare.
13812 (lto_input_data_block): Declare.
13813 (lto_output_string): Declare.
13814 (lto_output_string_with_length): Declare.
13815 (lto_output_decl_state_streams): Declare.
13816 (lto_output_decl_state_refs): Declare.
13818 2011-03-24 Richard Guenther <rguenther@suse.de>
13820 PR tree-optimization/46562
13821 * tree.c (build_invariant_address): New function.
13822 * tree.h (build_invariant_address): Declare.
13823 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13824 a renamed function moved ...
13825 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13826 Take valueization callback parameter.
13827 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13828 * gimple-fold.h: New file.
13829 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13830 (ccp_fold, fold_const_aggregate_ref,
13831 fold_ctor_reference, fold_nonarray_ctor_reference,
13832 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13833 get_base_constructor): Move ...
13834 * gimple-fold.c: ... here.
13835 (gimple_fold_stmt_to_constant_1): New function
13836 split out from ccp_fold. Take a valueization callback parameter.
13837 Valueize all operands.
13838 (gimple_fold_stmt_to_constant): New wrapper function.
13839 (fold_const_aggregate_ref_1): New function split out from
13840 fold_const_aggregate_ref. Take a valueization callback parameter.
13841 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13842 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13843 invariant POINTER_PLUS_EXPRs to invariant form.
13844 (vn_valueize): New function.
13845 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13846 * tree-vrp.c (vrp_valueize): New function.
13847 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13848 to fold statements to constants.
13849 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13850 function declarations.
13851 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13852 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13854 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13856 * config/h8300/predicates.md (jump_address_operand): Fix register
13859 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13861 * doc/invoke.texi (max-stores-to-sink): Document.
13862 * params.h (MAX_STORES_TO_SINK): Define.
13863 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13864 if either vectorization or if-conversion is disabled.
13865 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13866 tree-vect-data-refs.c vect_equal_offsets.
13867 (dr_equal_offsets_p): New function.
13868 (find_data_references_in_bb): Remove static.
13869 * tree-data-ref.h (find_data_references_in_bb): Declare.
13870 (dr_equal_offsets_p): Likewise.
13871 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13872 (vect_drs_dependent_in_basic_block): Update calls to
13873 vect_equal_offsets.
13874 (vect_check_interleaving): Likewise.
13875 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13876 (cond_if_else_store_replacement): Rename to...
13877 (cond_if_else_store_replacement_1): ... this. Change arguments and
13879 (cond_if_else_store_replacement): New function.
13880 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13881 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13883 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13886 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13887 to subtract lower bound instead of GEN_INT().
13889 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13894 * doc/extend.texi (Alignment): Move section to match order in TOC.
13895 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13896 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13898 2011-03-23 Jeff Law <law@redhat.com>
13900 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13901 before removing the edge.
13903 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13904 it may have been freed by redirect_branch_edge or
13905 redirect_edge_succ_nodup.
13907 2011-03-23 Richard Guenther <rguenther@suse.de>
13909 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13910 (check_va_list_escapes): Likewise.
13911 (check_all_va_list_escapes): Likewise.
13913 2011-03-23 Richard Guenther <rguenther@suse.de>
13915 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13916 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13917 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13918 (alias.o): Likewise.
13919 (ipa-type-escape.o): Remove.
13920 (ipa-struct-reorg.o): Likewise.
13921 (GTFILES): Remove ipa-struct-reorg.c.
13922 * alias.c: Do not include ipa-type-escape.h.
13923 * tree-ssa-alias.c: Likewise.
13924 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13925 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13926 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13927 and ipa-type-escape passes.
13928 * tree-pass.h (pass_ipa_type_escape): Remove.
13929 (pass_ipa_struct_reorg): Likewise.
13930 * ipa-struct-reorg.h: Remove.
13931 * ipa-struct-reorg.c: Likewise.
13932 * ipa-type-escape.h: Likewise.
13933 * ipa-type-escape.c: Likewise.
13934 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13935 (--param struct-reorg-cold-struct-ratio): Likewise.
13936 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13937 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13938 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13940 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13942 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13943 cpu attribute value.
13944 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13945 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13946 * config/s390/s390.c (processor_flags_table): New constant array.
13947 (s390_handle_arch_option): Remove.
13948 (s390_handle_option): Remove s390_handle_arch_option invocations
13949 and OPT_mwarn_framesize_ handling.
13950 (s390_option_override): Remove s390_handle_arch_option invocation.
13951 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13953 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13954 * config/s390/s390.opt (s390_tune, s390_arch)
13955 (march=): Replace s390_arch_option enum and values with
13956 processor_type. Set variable name to s390_arch. Set
13957 initialization value.
13958 (mtune=): Replace s390_arch_option with processor_type. Set
13959 variable name to s390_tune. Set initialization value.
13961 2011-03-23 Julian Brown <julian@codesourcery.com>
13963 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13964 accesses which are not naturally aligned.
13966 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13969 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13971 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13973 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13974 parameter from "int" to "enum insn_code".
13975 (expand_operand_type): New enum.
13976 (expand_operand): New structure.
13977 (create_expand_operand): New function.
13978 (create_fixed_operand, create_output_operand): Likewise
13979 (create_input_operand, create_convert_operand_to): Likewise.
13980 (create_convert_operand_from, create_address_operand): Likewise.
13981 (create_integer_operand): Likewise.
13982 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13983 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13984 (expand_insn, expand_jump_insn): Likewise.
13985 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13986 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13987 (expand_movstr, expand_builtin___clear_cache): Likewise.
13988 (expand_builtin_lock_release): Likewise.
13989 * explow.c (allocate_dynamic_stack_space): Likewise.
13990 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13991 and use the default handling in that case.
13992 * expmed.c (check_predicate_volatile_ok): Delete.
13993 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13994 (emit_cstore): Likewise.
13995 * expr.c (emit_block_move_via_movmem): Likewise.
13996 (set_storage_via_setmem, expand_assignment): Likewise.
13997 (emit_storent_insn, try_casesi): Likewise.
13998 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13999 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14000 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14001 (expand_twoval_unop, expand_twoval_binop): Likewise.
14002 (expand_unop_direct, emit_indirect_jump): Likewise.
14003 (emit_conditional_move, vector_compare_rtx): Likewise.
14004 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14005 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14006 (expand_sync_lock_test_and_set): Likewise.
14007 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14008 (emit_unop_insn): Likewise.
14009 (expand_copysign_absneg): Change icode to an insn_code.
14010 (create_convert_operand_from_type): New function.
14011 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14012 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14013 (expand_insn, expand_jump_insn): Likewise.
14014 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14015 than const_int_operand for operand 2.
14017 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14019 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14022 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14024 * emit-rtl.c (emit_pattern_before_noloc): New function.
14025 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14026 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14027 (emit_pattern_after_noloc): New function.
14028 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14029 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14031 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14033 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14034 (__ffsDI2): Likewise.
14036 2011-03-22 Richard Henderson <rth@redhat.com>
14038 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14039 of !TARGET_ABI_OPEN_VMS.
14040 (alpha_trampoline_init, alpha_start_function): Likewise.
14041 (alpha_expand_epilogue, alpha_file_start): Likewise.
14042 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14043 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14044 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14045 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14046 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14048 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14050 * config/s390/s390-opts.h: New.
14051 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14052 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14053 s390_stack_guard): Remove.
14054 (s390_handle_arch_option): Return void. Take enum
14055 s390_arch_option value instead of string and searching array.
14056 (s390_handle_option): Don't assert that global structures are in
14057 use. Access variables via opts pointer. Use error_at. Don't use
14058 sscanf for -mstack-guard= or -mstack-size=. Update call to
14059 s390_handle_arch_option.
14060 (s390_option_override): Update call to s390_handle_arch_option.
14061 (s390_emit_prologue): Use %d format for s390_stack_size in
14062 diagnostic. Use %wd for HOST_WIDE_INT.
14063 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14064 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14065 * config/s390/s390.opt (config/s390/s390-opts.h): New
14066 HeaderInclude entry.
14067 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14068 s390_arch_flags, s390_warn_framesize): New Variable entries.
14069 (s390_arch_option): New Enum and EnumValue entries.
14070 (march=): Use Enum instead of Var.
14071 (mstack-guard=, mstack-size=): Use UInteger and Var.
14072 (mtune=): Use Enum.
14074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14076 * config/score/score.c (score_handle_option): Don't assert that
14077 global structures are in use. Access target_flags via opts
14078 pointer. Use value of -march= option to determine target_flags
14080 * config/score/score.opt (march=): Use Enum.
14081 (score_arch): New Enum and EnumValue entries.
14083 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14085 * config/mep/mep.c (option_mtiny_specified): Remove.
14086 (mep_option_override): Move register handling for -mivc2 from
14087 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14088 instead of option_mtiny_specified.
14089 (mep_handle_option): Access target_flags via opts pointer. Don't
14090 assert that global structures are in use. Defer part of -mivc2
14091 handling and move it to mep_option_override.
14092 * config/mep/mep.opt (IVC2): New Mask entry.
14093 (mivc2): Use Var and Defer instead of Mask.
14095 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14097 * config/v850/v850-opts.h: New.
14098 * config/v850/v850.c (small_memory): Replace with
14099 small_memory_physical_max array. Make that array static const.
14100 (v850_handle_memory_option): Take integer value of argument. Take
14101 gcc_options pointer, option text and location. Return void.
14102 Update for changes to small memory structures.
14103 (v850_handle_option): Access target_flags via opts pointer. Don't
14104 assert that global structures are in use. Update calls to
14105 v850_handle_memory_option.
14106 (v850_encode_data_area): Update references to small memory settings.
14107 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14108 (enum small_memory_type): Move to v850-opts.h.
14109 * config/v850/v850.opt (config/v850/v850-opts.h): New
14110 HeaderInclude entry.
14111 (small_memory_max): New Variable entry.
14112 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14113 (mtda, mzda): Likewise.
14115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14117 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14118 pointer. Don't assert that global structures are in use.
14120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14122 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14123 via opts pointer. Don't assert that global structures are in use.
14125 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14127 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14128 (munix=93): Use Var.
14129 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14130 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14131 * config/pa/pa-opts.h: New.
14132 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14133 (pa_handle_option): Don't assert that global structures are in
14134 use. Access target_flags via opts pointer. Don't handle
14135 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14137 (pa_option_override): Handle deferred OPT_mfixed_range_.
14139 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14141 * config/mn10300/mn10300-opts.h: New.
14142 * config/mn10300/mn10300.c (mn10300_processor,
14143 mn10300_tune_string): Remove.
14144 (mn10300_handle_option): Don't assert that global structures are
14145 in use. Access mn10300_processor via opts pointer. Don't handle
14147 * config/mn10300/mn10300.h (enum processor_type): Move to
14149 (mn10300_processor): Remove.
14150 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14151 HeaderInclude entry.
14152 (mn10300_processor): New Variable entry.
14155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14157 * config/microblaze/microblaze.c: Don't include opts.h.
14158 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14159 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14160 (mno-clearbss): Use Var and Warn.
14162 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14164 * config/m32r/m32r-opts.h: New.
14165 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14166 (m32r_handle_option): Don't assert that global structures are in
14167 use. Access target_flags and m32r_cache_flush_func via opts
14168 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14169 OPT_mno_flush_trap here.
14170 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14171 include of m32r-opts.h.
14172 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14173 HeaderInclude entry.
14174 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14175 (mmodel=): Use Enum and Var.
14176 (m32r_model): New Enum and EnumValue entries.
14177 (mno-flush-trap): Use Var.
14178 (msdata=): Use Enum and Var.
14179 (m32r_sdata): New Enum and EnumValue entries.
14181 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14183 * config/m32c/m32c.c: Don't include opts.h.
14184 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14185 m32c_handle_option): Remove.
14186 (m32c_option_override): Check global_options_set.x_target_memregs
14187 instead of target_memregs_set.
14188 * config/m32c/m32c.h (target_memregs): Remove.
14189 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14192 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14194 * config/iq2000/iq2000-opts.h: New.
14195 * config/iq2000/iq2000.c: Don't include opts.h.
14196 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14197 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14198 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14199 HeaderInclude entry.
14200 (iq2000_tune): New Variable entry.
14201 (march=): Add comment. Use Enum.
14202 (iq2000_arch): New Enum and EnumValue entries.
14203 (mcpu=): Use Enum and Var.
14204 (iq2000_tune): New Enum and EnumValue entries.
14206 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14208 * config/ia64/ia64-opts.h: New.
14209 * config/ia64/ia64.c (ia64_tune): Remove.
14210 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14211 here. Use error_at.
14212 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14213 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14214 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14215 HeaderInclude entry.
14216 (ia64_tune): New Variable entry.
14217 (mfixed-range=): Use Defer and Var.
14218 (mtune=): Use Enum and Var.
14219 (ia64_tune): New Enum and EnumValue entries.
14221 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14223 * config/frv/frv-opts.h: New.
14224 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14226 (frv_cpu_type): Remove.
14227 * config/frv/frv.c: Don't include opts.h.
14228 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14229 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14230 (frv_cpu_type): New Variable entry.
14231 (frv_cpu): New Enum and EnumValue entries.
14233 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14235 * config/cris/cris.c (cris_handle_option): Access target_flags via
14236 opts pointer. Don't assert that global structures are in use.
14237 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14238 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14240 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14242 * config/bfin/bfin-opts.h: New.
14243 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14244 bfin_si_revision, bfin_workarounds): Remove.
14245 (bfin_cpus): Make static const.
14246 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14247 not bfin_lib_id_given.
14248 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14249 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14250 pointer. Use error_at. Don't assert that global structures are in use.
14251 * config/bfin/bfin.h: Include bfin-opts.h.
14252 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14253 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14254 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14255 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14260 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14261 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14262 or -msoft-float here.
14263 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14264 -msoft-float and -mhard-float.
14265 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14266 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14268 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14270 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14271 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14273 (LIBGCC_SPEC): Don't handle -msoft-float.
14274 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14276 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14278 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14279 -mfloat-abi=*, not -msoft-float and -mhard-float.
14280 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14282 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14283 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14284 mhard-float and msoft-float.
14285 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14286 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14287 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14288 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14290 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14291 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14293 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14295 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14298 2011-03-22 Richard Henderson <rth@redhat.com>
14300 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14301 TARGET_ABI_WINDOWS_NT.
14302 (alpha_output_function_end_prologue): Likewise.
14303 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14304 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14305 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14306 (trap, *movsi_nt_vms): Likewise.
14307 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14308 (*tablejump_osf_nt_internal): Remove.
14309 * config/alpha/predicates.md (input_operand): Only test Pmode.
14311 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14313 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14314 via opts pointer. Use error_at. Don't assert that global
14315 structures are in use.
14317 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14319 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14320 (ix86_handle_option): Access ix86_isa_flags and
14321 ix86_isa_flags_explicit via opts pointer. Don't assert that
14322 global structures are in use.
14323 (ix86_function_specific_save, ix86_function_specific_restore):
14324 Update ix86_isa_flags_explicit field name.
14325 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14326 (ix86_isa_flags_explicit): Rename TargetSave entry to
14327 x_ix86_isa_flags_explicit.
14329 2011-03-22 Richard Henderson <rth@redhat.com>
14331 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14332 (alpha_option_override, direct_return): Likewise.
14333 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14334 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14335 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14336 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14337 (alpha_expand_epilogue, alpha_end_function): Likewise.
14338 (alpha_init_libfuncs): Likewise.
14339 (struct machine_function): Remove unicosmk members.
14340 (print_operand) ['t']: Remove.
14341 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14342 unicosmk_output_module_name, unicosmk_output_common,
14343 current_section_align, unicosmk_output_text_section_asm_op,
14344 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14345 unicosmk_section_type_flags, unicosmk_unique_section,
14346 unicosmk_asm_named_section, unicosmk_insert_attributes,
14347 unicosmk_output_align, unicosmk_defer_case_vector,
14348 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14349 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14350 unicosmk_output_ssib, unicosmk_add_call_info_word,
14351 unicosmk_extern_head, unicosmk_output_default_externs,
14352 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14353 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14354 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14355 * config/alpha/alpha-protos.h: Update.
14356 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14357 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14358 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14359 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14360 (*mulsi_se, mulvsi3): Likewise.
14361 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14362 (*divmodsi_internal, call, call_value, realign): Likewise.
14363 (moddi3, umoddi3): Likewise; remove duplicate expander.
14364 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14365 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14366 (*movdi_nofix): Remove r/U alternative.
14367 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14368 * config/alpha/constraints.md ("U"): Remove.
14369 * config/alpha/predicates.md (call_operand"): Don't test
14370 TARGET_ABI_UNICOSMK.
14372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14374 * target.def (handle_option): Take gcc_options and
14375 cl_decoded_option pointers and location_t.
14376 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14377 * doc/tm.texi: Regenerate.
14378 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14379 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14380 * lto-opts.c (lto_reissue_options): Generate option structure for
14381 targetm.handle_option call.
14382 * opts.c (target_handle_option): Update call to
14383 targetm.handle_option. Remove assertions about values now passed
14385 * targhooks.c (default_target_handle_option): New.
14386 * targhooks.h (default_target_handle_option): Declare.
14387 * config/alpha/alpha.c: Include opts.h.
14388 (alpha_handle_option): Update to new hook interface.
14389 * config/arm/arm.c: Include opts.h.
14390 (arm_handle_option): Update to new hook interface.
14391 * config/arm/t-arm (arm.o): Update dependencies.
14392 * config/bfin/bfin.c: Include opts.h.
14393 (bfin_handle_option): Update to new hook interface.
14394 * config/cris/cris.c: Include opts.h.
14395 (cris_handle_option): Update to new hook interface.
14396 * config/frv/frv.c: Include opts.h.
14397 (frv_handle_option): Update to new hook interface.
14398 * config/i386/i386.c: Include opts.h.
14399 (ix86_handle_option): Update to new hook interface.
14400 (ix86_valid_target_attribute_inner_p): Generate option structure
14401 for call to ix86_handle_option.
14402 * config/i386/t-i386 (i386.o): Update dependencies.
14403 * config/ia64/ia64.c: Include opts.h.
14404 (ia64_handle_option): Update to new hook interface.
14405 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14406 * config/iq2000/iq2000.c: Include opts.h.
14407 (iq2000_handle_option): Update to new hook interface.
14408 * config/m32c/m32c.c: Include opts.h.
14409 (m32c_handle_option): Update to new hook interface.
14410 * config/m32r/m32r.c: Include opts.h.
14411 (m32r_handle_option): Update to new hook interface.
14412 * config/m68k/m68k.c: Include opts.h.
14413 (m68k_handle_option): Update to new hook interface.
14414 * config/mep/mep.c: Include opts.h.
14415 (mep_handle_option): Update to new hook interface.
14416 * config/microblaze/microblaze.c: Include opts.h.
14417 (microblaze_handle_option): Update to new hook interface.
14418 * config/mips/mips.c: Include opts.h.
14419 (mips_handle_option): Update to new hook interface.
14420 * config/mn10300/mn10300.c: Include opts.h.
14421 (mn10300_handle_option): Update to new hook interface.
14422 * config/pa/pa.c: Include opts.h.
14423 (pa_handle_option): Update to new hook interface.
14424 * config/pdp11/pdp11.c: Include opts.h.
14425 (pdp11_handle_option): Update to new hook interface.
14426 * config/rs6000/rs6000.c: Include opts.h.
14427 (rs6000_handle_option): Update to new hook interface.
14428 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14429 * config/rx/rx.c: Include opts.h.
14430 (rx_handle_option): Update to new hook interface.
14431 * config/s390/s390.c: Include opts.h.
14432 (s390_handle_option): Update to new hook interface.
14433 * config/score/score.c: Include opts.h.
14434 (score_handle_option): Update to new hook interface.
14435 * config/sh/sh.c: Include opts.h.
14436 (sh_handle_option): Update to new hook interface.
14437 * config/sparc/sparc.c: Include opts.h.
14438 (sparc_handle_option): Update to new hook interface.
14439 * config/v850/v850.c: Include opts.h.
14440 (v850_handle_option): Update to new hook interface.
14442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14444 * gcc.c (driver_unknown_option_callback): Only permit and save
14445 unknown -Wno- options.
14446 (driver_wrong_lang_callback): Save options directly instead of via
14447 driver_unknown_option_callback.
14449 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14451 * combine.c (simplify_set): Try harder to find the best CC mode when
14452 simplifying a nested COMPARE on the RHS.
14454 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14456 * config/alpha/gnu.h: Remove.
14457 * config/arc: Remove directory.
14458 * config/arm/netbsd.h: Remove.
14459 * config/arm/t-pe: Remove.
14460 * config/crx: Remove directory.
14461 * config/i386/netbsd.h: Remove.
14462 * config/m68hc11: Remove directory.
14463 * config/m68k/uclinux-oldabi.h: Remove.
14464 * config/mcore/mcore-pe.h: Remove.
14465 * config/mcore/t-mcore-pe: Remove.
14466 * config/netbsd-aout.h: Remove.
14467 * config/rs6000/gnu.h: Remove.
14468 * config/sh/sh-symbian.h: Remove.
14469 * config/sh/symbian-base.c: Remove.
14470 * config/sh/symbian-c.c: Remove.
14471 * config/sh/symbian-cxx.c: Remove.
14472 * config/sh/symbian-post.h: Remove.
14473 * config/sh/symbian-pre.h: Remove.
14474 * config/sh/t-symbian: Remove.
14475 * config/svr3.h: Remove.
14476 * config/vax/netbsd.h: Remove.
14477 * config.build: Don't handle i[34567]86-*-pe.
14478 * config.gcc: Remove handling of deprecations for most deprecated
14480 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14481 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14482 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14483 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14484 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14485 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14487 * config.host: Don't handle i[34567]86-*-pe.
14488 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14489 (ASM_SPEC32): Don't handle -mcall-gnu.
14490 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14492 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14493 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14494 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14495 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14496 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14497 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14498 conditional on SYMBIAN.
14499 * configure.ac: Don't handle powerpc*-*-gnu*.
14500 * configure: Regenerate.
14501 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14502 * doc/install-old.texi (m6811, m6812): Don't mention.
14503 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14504 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14505 (m68k-uclinuxoldabi): Don't mention.
14506 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14508 (-mcall-gnu): Remove.
14509 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14510 families): Remove constraint documentation.
14512 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14514 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14515 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14516 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14518 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14521 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14522 vector when peeking at the next token for vector, don't expand the
14525 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14527 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14528 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14529 * config/avr/avr.c (init_cumulative_args)
14530 (avr_function_arg_advance): Use it.
14531 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14533 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14534 (avr_function_ok_for_sibcall): ...this new function.
14535 (avr_lookup_function_attribute1): New static Function.
14536 (avr_naked_function_p, interrupt_function_p)
14537 (signal_function_p, avr_OS_task_function_p)
14538 (avr_OS_main_function_p): Use it.
14539 * config/avr/avr.md ("sibcall", "sibcall_value")
14540 ("sibcall_epilogue"): New expander.
14541 ("*call_insn", "*call_value_insn"): New insn.
14542 ("call_insn", "call_value_insn"): Remove
14543 ("call", "call_value", "epilogue"): Change expander to handle
14546 2011-03-21 Nick Clifton <nickc@redhat.com>
14548 * doc/invoke.texi (Overall Options): Move closing brace to end of
14550 (Optimization Options): Add missing @gol.
14551 (Directory Options): Likewise.
14552 (i386 and x86-64 Options): Likewise.
14553 (RS6000 and PowerPC Options): Likewise.
14554 (i386 and x86-64 Windows Options): Likewise.
14555 (V850 Options): Add text missing from descriptions.
14557 2011-03-22 Richard Henderson <rth@redhat.com>
14559 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14560 (avr_incoming_return_addr_rtx): New.
14561 (emit_push_byte): New.
14562 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14563 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14564 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14565 (emit_pop_byte): New.
14566 (expand_epilogue): Use it. Pop frame pointer by bytes.
14567 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14568 (INCOMING_RETURN_ADDR_RTX): New.
14569 (INCOMING_FRAME_SP_OFFSET): New.
14570 (ARG_POINTER_CFA_OFFSET): New.
14571 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14572 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14575 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14577 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14579 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14580 (FUNCTION_ARG_ADVANCE): Likewise.
14581 * tm.texi.in: Change references to them to hook references.
14582 * tm.texi: Regenerate.
14583 * targhooks.c (default_function_arg): Eliminate check for target
14585 (default_function_incoming_arg): Likewise.
14586 (default_function_arg_advance): Likewise.
14587 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14588 (function_arg_advance): Likewise.
14589 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14591 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14593 * tree.c (build_call_1): New function.
14594 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14596 2011-03-22 Richard Guenther <rguenther@suse.de>
14598 PR tree-optimization/48228
14599 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14600 for single-arg PHIs.
14602 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14604 PR rtl-optimization/48143
14605 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14606 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14607 sse2_cvtps2pd): Likewise.
14609 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14611 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14613 2011-03-22 Richard Guenther <rguenther@suse.de>
14615 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14616 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14617 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14618 and REALIGN_LOAD_EXPR.
14619 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14620 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14621 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14622 DOT_PROD_EXPR case ...
14623 (expand_expr_real_2): ... here.
14624 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14625 and REALIGN_LOAD_EXPR.
14626 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14627 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14628 (vect_create_epilog_for_reduction): Likewise.
14629 (vectorizable_reduction): Likewise.
14630 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14631 * tree-vect-stmts.c (vectorizable_load): Likewise.
14633 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14635 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14637 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14639 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14640 handling for PLTOFF/GOTOFF.
14642 2011-03-22 Nick Clifton <nickc@redhat.com>
14644 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14645 trailing backslash from the end of the macro definition.
14647 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14649 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14652 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14654 * expr.h (prepare_operand): Move to...
14655 * optabs.h (prepare_operand): ...here and change the insn code
14656 parameter from "int" to "enum insn_code".
14657 (insn_operand_matches): Declare.
14658 * expr.c (init_expr_target): Use insn_operand_matches.
14659 (compress_float_constant): Likewise.
14660 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14661 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14662 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14663 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14665 (gen_cond_trap): Likewise.
14666 (prepare_operand): Likewise. Change icode to an insn_code.
14667 (insn_operand_matches): New function.
14668 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14669 * reload1.c (gen_reload): Likewise.
14670 * targhooks.c (default_secondary_reload): Likewise.
14672 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14674 * config/alpha/alpha.md (unspec): New define_c_enum.
14677 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14680 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14681 between a call and its CALL_ARG_LOCATION note.
14683 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14685 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14687 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14691 * c-common.c (shorten_compare): If primopN is first sign-extended
14692 to opN and then zero-extended to result type, set primopN to opN.
14694 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14696 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14697 for barrier handlers.
14699 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14701 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14702 UNSPEC constants to be in the unspec enumeration, and redefine
14703 all UNSPECV constants to be in the unspecv enumeration, so that
14704 dumps print which unspec/unspec_volatile this is.
14705 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14706 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14707 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14708 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14709 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14711 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14712 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14713 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14714 * config/rs6000/sync.md (isync, lwsync): Ditto.
14716 2011-03-21 Richard Guenther <rguenther@suse.de>
14718 * params.def (lto-min-partition): Fix typo.
14720 2011-03-21 Richard Guenther <rguenther@suse.de>
14723 * c-decl.c (grokdeclarator): Drop to the main variant only
14724 for array types. Drop flag_gen_aux_info check.
14726 2011-03-21 Richard Guenther <rguenther@suse.de>
14728 PR translation/47911
14729 * params.def (lto-partitions): Fix typo.
14730 (lto-min-partition): Fix wording.
14732 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14734 * config/rs6000/t-freebsd: Remove duplication from file.
14736 2011-03-21 Richard Guenther <rguenther@suse.de>
14738 PR middle-end/47661
14739 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14741 2011-03-21 Richard Guenther <rguenther@suse.de>
14744 * params.def (lto-partitions): Require at least 1 partition.
14746 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14748 * gthr-solaris.h: Remove.
14749 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14750 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14751 (LIB_SPEC): Likewise.
14752 * config/sol2.opt (threads): Remove.
14753 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14754 (sparc*-*-solaris2*): Likewise.
14755 * configure.ac (enable_threads): Enable solaris support.
14756 * configure: Regenerate.
14757 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14758 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14761 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14763 * config.gcc: Obsolete *-*-solaris2.8*.
14764 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14766 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14769 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14770 reference. Solaris 8 perl works.
14772 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14775 * doc/install.texi (Prerequisites): Move jar etc. up.
14776 Explain support library version requirements.
14778 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14781 * doc/install.texi (Prerequisites): Move Perl to build
14782 requirements. Always necessary on Solaris 2 with Sun ld.
14784 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14786 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14788 (Specific, i?86-*-solaris2.[89]): Likewise.
14789 (Specific, i?86-*-solaris2.10): Likewise.
14790 (Specific, mips-sgi-irix6): Likewise.
14791 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14792 Update for binutils 2.21.
14794 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14796 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14797 Allow -fuse-linker-plugin for non-default plugin linker.
14798 * configure: Regenerate.
14800 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14803 * gengtype.c (files_rules): Added rule for cp/parser.h.
14805 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14808 * config/s390/s390.c (s390_delegitimize_address): Don't call
14809 lowpart_subreg if orig_x has BLKmode.
14811 2011-03-21 Kai Tietz <ktietz@redhat.com>
14814 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14815 * tree.h (attribute_spec): Add new member affects_type_identity.
14816 * attribs.c (empty_attribute_table): Adjust attribute_spec
14818 * config/alpha/alpha.c: Likewise.
14819 * config/arc/arc.c: Likewise.
14820 * config/arm/arm.c: Likewise.
14821 * config/avr/avr.c: Likewise.
14822 * config/bfin/bfin.c: Likewise.
14823 * config/crx/crx.c: Likewise.
14824 * config/darwin.h: Likewise.
14825 * config/h8300/h8300.c: Likewise.
14826 * config/i386/cygming.h: Likewise.
14827 * config/i386/i386.c: Likewise.
14828 * config/ia64/ia64.c: Likewise.
14829 * config/m32c/m32c.c: Likewise.
14830 * config/m32r/m32r.c: Likewise.
14831 * config/m68hc11/m68hc11.c: Likewise.
14832 * config/m68k/m68k.c: Likewise.
14833 * config/mcore/mcore.c: Likewise.
14834 * config/mep/mep.c: Likewise.
14835 * config/microblaze/microblaze.c: Likewise.
14836 * config/mips/mips.c: Likewise.
14837 * config/rs6000/rs6000.c: Likewise.
14838 * config/rx/rx.c: Likewise.
14839 * config/sh/sh.c: Likewise.
14840 * config/sol2.h: Likewise.
14841 * config/sparc/sparc.c: Likewise.
14842 * config/spu/spu.c: Likewise.
14843 * config/stormy16/stormy16.c: Likewise.
14844 * config/v850/v850.c: Likewise.
14846 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14848 * simplify-rtx.c (simplify_binary_operation_1): Handle
14849 (xor (and A B) C) case when B and C are both constants.
14851 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14853 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14855 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14858 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14860 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14862 PR rtl-optimization/48156
14863 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14864 assume df and df_lr are not NULL.
14866 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14869 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14870 between a call and its CALL_ARG_LOCATION note.
14872 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14875 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14876 between a call and its corresponding CALL_ARG_LOCATION note.
14878 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14880 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14881 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14882 * haifa-sched.c (setup_ref_regs): Ditto.
14883 * caller-save.c (add_used_regs_1): Ditto.
14884 * dse.c (look_for_hardregs): Ditto.
14885 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14886 * sched-rgn.c (check_live_1): Ditto.
14888 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14890 * c-decl.c (diagnose_mismatched_decls): Give an error for
14891 redefining a typedef with variably modified type.
14893 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14895 * c-decl.c (grokfield): Don't allow typedefs for structures or
14896 unions with no tag by default.
14897 * doc/extend.texi (Unnamed Fields): Update.
14899 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14901 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14902 Rewrite using indirect functions.
14903 (lwp_slwpcb): Ditto.
14904 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14905 (avx_vinsertf128<mode>): Ditto.
14907 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14909 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14912 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14914 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14915 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14917 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14919 PR rtl-optimization/48170
14920 * gcse.c (hoist_code): Remove bogus asserts.
14922 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14924 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14925 computation for prologue/epilogue.
14927 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14929 * Makefile.in (check-consistency): Remove.
14931 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14934 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14935 arange_table_in_use is 0, but either text_section_used or
14936 cold_text_section_used is true. Don't call it if
14937 !info_section_emitted.
14939 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14941 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14942 FUNCTION_VALUE_REGNO_P): Remove.
14943 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14945 * config/avr/avr.c (avr_ret_register): Make static inline.
14946 (avr_function_value_regno_p): New function.
14947 (avr_libcall_value): Make static. Add 'func' argument.
14948 (avr_function_value): Make static. Rename 'func' argument to
14949 'fn_decl_or_type', forward it to avr_libcall_value. Call
14950 avr_ret_register function instead of RET_REGISTER macro.
14951 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14953 2011-03-18 Jason Merrill <jason@redhat.com>
14956 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14958 2011-03-18 Richard Guenther <rguenther@suse.de>
14960 * doc/install.texi (--enable-gold): Remove.
14961 (--with-plugin-ld): Document.
14962 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14964 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14966 PR middle-end/47790
14967 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14968 again after expansion changes.
14970 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14972 * combine.c (try_combine): Do simplification only call of
14973 subst() on i2 even when i1 is present. Update comments.
14975 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14977 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14978 and UNSPEC_PCREL_SYMOFF.
14980 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14982 * config/s390/s390.md: Use define_c_enum for the unspec constant
14985 2011-03-18 Richard Henderson <rth@redhat.com>
14986 Jakub Jelinek <jakub@redhat.com>
14989 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14990 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14992 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14994 PR middle-end/47725
14995 * combine.c (cant_combine_insn_p): Don't check zero/sign
14996 extended hard registers.
14998 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15000 PR middle-end/47725
15001 * combine.c (cant_combine_insn_p): Check zero/sign extended
15004 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15006 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15007 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15008 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15009 Change return type to bool.
15010 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15012 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15015 * var-tracking.c (prepare_call_arguments): If CALL target
15016 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15017 pc instead of looking it up using cselib_lookup and use
15018 Pmode for it if x has VOIDmode.
15019 * dwarf2out.c (gen_subprogram_die): If also both first and
15020 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15023 * function.c (assign_parms): For data.passed_pointer parms
15024 use MEM of data.entry_parm instead of data.entry_parm itself
15025 as DECL_INCOMING_RTL.
15026 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15027 also when passed and declared mode is the same, DECL_RTL
15028 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15031 2011-03-16 Jeff Law <law@redhat.com>
15033 PR rtl-optimization/37273
15034 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15035 handle them like argument loads from stack slots. Do not double
15036 count memory for memory constants and argument loads from stack slots.
15038 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15041 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15043 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15046 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15048 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15051 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15053 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15054 Clear call_arg_locations and call_arg_loc_last always.
15056 PR middle-end/48152
15057 * var-tracking.c (prepare_call_arguments): If argument needs to be
15058 passed by reference, adjust argtype and mode.
15060 2011-03-17 Richard Guenther <rguenther@suse.de>
15062 PR middle-end/48134
15063 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15064 a value make sure to fold the statement.
15066 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15069 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15070 return condition with !cfun->calls_alloca.
15072 2011-03-17 Richard Guenther <rguenther@suse.de>
15075 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15076 origin for decls in other ltrans units.
15077 (input_varpool_node): Likewise.
15079 2011-03-17 Richard Guenther <rguenther@suse.de>
15081 PR middle-end/48165
15082 * tree-object-size.c (compute_object_offset): Properly return
15083 the offset operand of MEM_REFs as sizetype.
15085 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15087 PR rtl-optimization/48141
15088 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15089 * dse.c: Include params.h.
15090 (active_local_stores_len): New variable.
15091 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15093 (record_store, check_mem_read_rtx): Decrease it when removing
15095 (scan_insn): Likewise. Increase it when adding to chain, if it
15096 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15097 set active_local_stores to NULL before the addition.
15098 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15100 PR rtl-optimization/48141
15101 * dse.c (record_store): If no positions are needed in an insn
15102 that cannot be deleted, at least unchain it from active_local_stores.
15104 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15107 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15108 (lookup_type_die_strip_naming_typedef): ... here.
15109 (get_context_die): Use it.
15110 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15111 the anonymous struct named by the naming typedef.
15113 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15116 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15117 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15119 2011-03-16 Jeff Law <law@redhat.com>
15121 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15122 check for operands of conditional. Allow type to be a pointer.
15124 2011-03-16 Richard Guenther <rguenther@suse.de>
15126 PR tree-optimization/48149
15127 * fold-const.c (fold_binary_loc): Fold
15128 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15130 2011-03-16 Richard Guenther <rguenther@suse.de>
15132 PR tree-optimization/26134
15133 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15134 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15135 (non_rewritable_mem_ref_base): Handle complex type component
15136 accesses, constrain offsets for vector and complex extracts
15139 2011-03-16 Richard Guenther <rguenther@suse.de>
15141 PR tree-optimization/48146
15142 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15143 operands avoiding the need for renaming.
15145 2011-03-16 Richard Guenther <rguenther@suse.de>
15147 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15148 constant folding. Move MEM_REF canonicalization first.
15149 Rely on fold_const_aggregate_ref for initializer folding.
15150 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15152 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15154 PR middle-end/48136
15155 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15156 arg0/arg1 or their arguments are always fold converted to matching
15159 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15162 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15165 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15166 Handle in-tree gold.
15167 (ld_vers): Extract binutils version for gold.
15168 (gcc_cv_ld_hidden): Handle gold here.
15169 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15170 * configure: Regenerate.
15171 * config.in: Regenerate.
15172 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15173 -fuse-linker-plugin otherwise.
15174 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15175 (LINK_COMMAND_SPEC): Use it.
15176 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15178 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15180 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15181 * calls.c: Remove debug.h include.
15182 (emit_call_1): Don't call virtual_call_token debug hook.
15183 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15184 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15185 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15186 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15187 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15188 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15189 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15190 dwarf2out_virtual_call): Remove.
15191 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15192 copy_call_info and virtual_call hooks.
15193 (dwarf2out_init): Don't initialize vcall_insn_table,
15194 debug_dcall_section and debug_vcall_section.
15195 (prune_unused_types): Don't mark nodes from dcall_table.
15196 (dwarf2out_finish): Don't output dcall or vcall tables.
15197 * final.c (final_scan_insn): Don't call direct_call or
15198 virtual_call debug hooks.
15199 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15200 virtual_call_token, copy_call_info and virtual_call hooks.
15201 (debug_nothing_uid): Remove prototype.
15202 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15203 copy_call_info and virtual_call hooks.
15204 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15205 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15206 * debug.c (do_nothing_debug_hooks): Likewise.
15207 (debug_nothing_uid): Remove.
15208 * doc/invoke.texi (-fenable-icf-debug): Remove.
15209 * common.opt (-fenable-icf-debug): Likewise.
15211 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15212 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15213 call's MEM. Handle functions returning aggregate through a hidden
15214 first pointer. For virtual calls add clobbered pc to call arguments
15216 * dwarf2out.c (gen_subprogram_die): Emit
15217 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15221 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15222 * rtl.h (ENTRY_VALUE_EXP): Define.
15223 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15224 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15225 * print-rtl.c (print_rtx): Likewise.
15226 * gengtype.c (adjust_field_rtx_def): Likewise.
15227 * var-tracking.c (vt_add_function_parameter): Adjust
15228 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15229 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15230 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15231 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15232 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15234 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15235 Call var_location debug hook even on CALL_INSNs.
15236 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15237 * rtl.def (ENTRY_VALUE): New.
15238 * dwarf2out.c: Include cfglayout.h.
15239 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15240 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15241 (struct call_arg_loc_node): New type.
15242 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15243 tail_call_site_count): New variables.
15244 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15245 DW_TAG_GNU_call_site_parameter.
15246 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15247 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15248 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15249 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15250 and DW_AT_GNU_all_source_call_sites.
15251 (mem_loc_descriptor): Handle ENTRY_VALUE.
15252 (add_src_coords_attributes): Don't add enything if
15253 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15254 (dwarf2out_abstract_function): Save and clear call_arg_location,
15255 call_site_count and tail_call_site_count around dwarf2out_decl call.
15256 (gen_call_site_die): New function.
15257 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15258 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15259 (dwarf2out_function_decl): Clear call_arg_locations,
15260 call_arg_loc_last, set call_site_count and tail_call_site_count
15261 to -1 and free block_map.
15262 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15263 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15264 followed by any real instructions.
15265 (dwarf2out_begin_function): Set call_site_count and
15266 tail_call_site_count to 0.
15267 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15268 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15269 attempt to force a DIE for it and worst case remove the attribute.
15270 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15271 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15273 * var-tracking.c: Include tm_p.h.
15274 (vt_stack_adjustments): For calls call note_register_arguments.
15275 (argument_reg_set): New variable.
15276 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15277 ensure the VALUE is resolved.
15278 (call_arguments): New variable.
15279 (prepare_call_arguments): New function.
15280 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15281 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15282 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15283 always use the best expression.
15284 (vt_expand_loc): Add ignore_cur_loc argument.
15285 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15286 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15287 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15288 note for all calls.
15289 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15290 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15291 argument. Don't call cselib_preserve_only_values and
15292 cselib_reset_table.
15293 (note_register_arguments): New function.
15294 (vt_initialize): Compute argument_reg_set. Call
15295 vt_add_function_parameters before processing basic blocks instead of
15296 afterwards. For calls call prepare_call_arguments before calling
15297 cselib_process_insn.
15298 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15299 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15300 (var-tracking.o): Depend on $(TM_P_H).
15301 * cfglayout.h (insn_scope): New prototype.
15302 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15303 * cfglayout.c (insn_scope): No longer static.
15304 * insn-notes.def (CALL_ARG_LOCATION): New.
15305 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15306 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15307 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15308 nothing for DECL_EXTERNAL BLOCK_VARS.
15310 2011-03-16 Alan Modra <amodra@gmail.com>
15313 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15314 create invalid offset address for vsx splat insn.
15315 * config/rs6000/predicates.md (splat_input_operand): New.
15316 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15318 2011-03-15 Xinliang David Li <davidxl@google.com>
15321 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15322 (normalize_preds): New function.
15323 (is_use_properly_guarded): Normalize def predicates.
15325 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15328 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15329 in the output template.
15331 2011-03-15 Richard Guenther <rguenther@suse.de>
15333 PR middle-end/47650
15334 * tree-pretty-print.c (dump_function_declaration): Properly
15335 dump unprototyped and varargs function types.
15337 2011-03-15 Richard Guenther <rguenther@suse.de>
15339 PR tree-optimization/13954
15340 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15343 2011-03-15 Richard Guenther <rguenther@suse.de>
15345 PR tree-optimization/48037
15346 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15347 selects into BIT_FIELD_REFs.
15348 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15351 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15353 PR tree-optimization/48129
15354 * builtins.c (fold_builtin_snprintf): Convert to type of
15355 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15356 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15358 2011-03-15 Richard Guenther <rguenther@suse.de>
15360 PR tree-optimization/41490
15361 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15362 value but with VUSE.
15363 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15365 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15366 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15367 * tree-tailcall.c (find_tail_calls): Ignore returns.
15369 2011-03-15 Richard Guenther <rguenther@suse.de>
15371 PR middle-end/48031
15372 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15373 or variable-indexed array accesses when in gimple form.
15375 2011-03-15 Richard Guenther <rguenther@suse.de>
15377 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15379 2011-03-15 Alan Modra <amodra@gmail.com>
15382 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15383 presume symbol_refs without a symbol_ref_decl are suitably
15384 aligned, nor other trees we may see here. Handle anchor symbols.
15385 (legitimate_constant_pool_address_p): Comment. Add mode param.
15386 Check cmodel=medium addresses. Adjust all calls.
15387 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15388 creating cmodel=medium optimized access to locals.
15389 * config/rs6000/constraints.md (R): Pass QImode to
15390 legitimate_constant_pool_address_p.
15391 * config/rs6000/predicates.md (input_operand): Pass mode to
15392 legitimate_constant_pool_address_p.
15393 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15396 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15399 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15400 64-bit constants being loaded into registers other than GPRs such
15401 as loading 0 into a VSX register.
15403 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15405 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15407 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15409 PR middle-end/47917
15410 * builtins.c (fold_builtin_snprintf): New function.
15411 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15412 (fold_builtin_4): Likewise.
15414 PR middle-end/38878
15415 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15416 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15417 and C - X == X also strip nops from +/-/p+ operand.
15418 When optimizing -X == C, fold C to arg0's type.
15421 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15422 emit it as add_AT_int instead of add_AT_unsigned.
15424 2011-03-14 Tom Tromey <tromey@redhat.com>
15426 * unwind-dw2.c: Include sys/sdt.h if it exists.
15427 (_Unwind_DebugHook): Use STAP_PROBE2.
15428 * config.in, configure: Rebuild.
15429 * configure.ac: Check for sys/sdt.h.
15431 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15433 * config/i386/i386.md (ROUND_FLOOR): New constant.
15434 (ROUND_CEIL): Ditto.
15435 (ROUND_TRUNC): Ditto.
15436 (ROUND_MXCSR): Ditto.
15437 (ROUND_NO_EXC): Ditto.
15438 (rint<mode>2): Use new defines instead of numerical constants.
15439 (floor<mode>2): Ditto.
15440 (ceil<mode>2): Ditto.
15441 (btrunc<mode>2): Ditto.
15442 * config/i386/i386-builtin-types.def: Define ROUND function type
15444 * config/i386/i386.c (enum ix86_builtins): Add
15445 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15446 (struct builtin_description): Add
15447 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15448 (ix86_expand_sse_round): New static function.
15449 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15451 (ix86_builtin_vectorized_function): Handle
15452 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15454 2011-03-14 Tom Tromey <tromey@redhat.com>
15456 * c-parser.c (c_parser_asm_string_literal): Clear
15457 warn_overlength_strings.
15459 2011-03-14 Tom Tromey <tromey@redhat.com>
15461 * c-parser.c (disable_extension_diagnostics): Save
15462 warn_overlength_strings.
15463 (restore_extension_diagnostics): Restore warn_overlength_strings.
15465 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15467 * BASE-VER: Change to 4.7.0.
15469 2011-03-14 Richard Guenther <rguenther@suse.de>
15471 PR middle-end/48098
15472 * tree.c (build_vector_from_val): Adjust assert to requirements
15475 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15478 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15480 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15482 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15483 terms of target_flags_explicit. Adjust copyright year.
15485 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15486 * config/rs6000/t-freebsd: New file. Add override for
15489 2011-03-13 Chris Demetriou <cgd@google.com>
15491 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15492 (-fno-diagnostics-show-option): this, to reflect current default.
15493 (-Werror=): Update text about -fno-diagnostics-show-option.
15495 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15498 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15499 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15500 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15501 mode is not V2DImode or V2DFmode.
15502 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15503 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15504 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15506 (movdi_internal64): Likewise.
15508 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15510 PR tree-optimization/47127
15511 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15513 (set_cloog_options): Same.
15514 (scop_to_clast): Same.
15515 (print_clast_stmt): Do not call cloog_state_malloc and
15517 (print_generated_program): Same.
15519 * graphite-clast-to-gimple.h (cloog_state): Declared.
15520 (scop_to_clast): Adjust declaration.
15521 * graphite.c (cloog_state): Defined here.
15522 (graphite_initialize): Call cloog_state_malloc.
15523 (graphite_finalize): Call cloog_state_free.
15525 2011-03-11 Jason Merrill <jason@redhat.com>
15527 * attribs.c (lookup_attribute_spec): Take const_tree.
15530 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15532 * config/sparc/sparc.c (sparc_option_override): Use
15533 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15535 2011-03-11 Richard Guenther <rguenther@suse.de>
15537 PR tree-optimization/48067
15538 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15539 multiplication result will be only used once on the target
15542 2011-03-11 Richard Guenther <rguenther@suse.de>
15544 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15546 2011-03-11 Richard Guenther <rguenther@suse.de>
15549 * tree.c (find_decls_types_r): Do not walk types only reachable
15550 from IDENTIFIER_NODEs.
15552 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15554 PR middle-end/48044
15555 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15556 all vnode->force_output nodes as needed.
15558 2011-03-11 Jason Merrill <jason@redhat.com>
15561 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15562 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15564 2011-03-11 Martin Jambor <mjambor@suse.cz>
15566 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15569 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15571 PR tree-optimization/48063
15572 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15573 inline functions called once if !tree_can_inline_p (node->callers).
15575 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15577 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15579 * config/score/score3.c: Delete.
15580 * config/score/score3.h: Delete.
15581 * config/score/mul-div.S: Delete.
15582 * config/score/sfp-machine.h: Add new file.
15583 * config/score/constraints.md: Add new file.
15584 * config/score/t-score-softfp: Add new file.
15585 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15586 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15587 (score7_extra_constraint): Delete.
15588 (score7_option_override): Remove unused code.
15589 * config/score/score.c: Remove score3 and score5 define and code.
15590 * config/score/score.h: Remove score3 and score5 define and code.
15591 * config/score/score.md: Remove score3 template and unusual insn.
15592 * config/score/score.opt: Remove score3 and score5 options.
15594 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15596 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15597 when _HPUX_SOURCE is defined.
15598 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15600 2011-03-10 Jason Merrill <jason@redhat.com>
15603 * stor-layout.c (layout_type): Don't set structural equality
15604 on arrays of incomplete type.
15605 * tree.c (type_hash_eq): Handle comparing them properly.
15607 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15610 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15611 result mode matches original rtl mode.
15613 2011-03-10 Nick Clifton <nickc@redhat.com>
15615 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15616 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15618 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15620 PR rtl-optimization/47866
15621 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15622 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15623 if target wasn't scalar.
15624 * function.c (assign_stack_temp_for_type): Assert that neither
15625 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15626 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15628 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15630 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15632 * config/s390/s390-protos.h (s390_label_align): New prototype.
15633 * config/s390/s390.c (s390_label_align): New function.
15634 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15636 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15639 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15640 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15641 (output_vec_const_move): Ditto.
15643 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15645 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15646 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15647 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15648 Change 'rclass' argument and result type to reg_class_t.
15649 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15651 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15653 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15654 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15655 (TARGET_MEMORY_MOVE_COST): Define.
15656 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15658 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15661 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15664 PR tree-optimization/48022
15665 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15668 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15671 * var-tracking.c (find_use_val): Return NULL for
15672 cui->sets && cui->store_p BLKmode MEMs.
15674 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15676 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15678 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15679 xstormy16_print_operand_address): Remove.
15680 * config/stormy16/stormy16.c (xstormy16_print_operand,
15681 xstormy16_print_operand_address): Make static.
15682 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15684 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15687 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15688 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15691 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15694 * cfgloopmanip.c (fix_bb_placements): Return immediately
15695 if FROM is BASE_LOOP's header.
15697 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15699 * gimplify.c (gimplify_function_tree): Fix building calls
15700 to __builtin_return_address.
15702 2011-03-07 Alan Modra <amodra@gmail.com>
15704 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15705 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15706 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15707 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15709 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15710 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15711 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15712 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15713 * config/rs6000/rs6000.c
15714 (rs6000_elf_end_indicate_exec_stack): Rename to..
15715 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15716 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15717 (rs6000_file_start): ..here.
15718 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15719 file scope variables.
15720 (call_ABI_of_interest): New function.
15721 (init_cumulative_args): Set above vars when function return value
15722 is a float, vector, or small struct.
15723 (rs6000_function_arg_advance_1): Likewise for function args.
15724 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15725 references float args.
15727 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15729 * doc/cfg.texi: Remove "See" before @ref.
15730 * doc/invoke.texi: Likewise.
15732 2011-03-05 Jason Merrill <jason@redhat.com>
15734 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15736 2011-03-05 Anthony Green <green@moxielogic.com>
15738 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15740 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15742 PR rtl-optimization/47899
15743 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15744 to flow_loop_nested_p when moving the loop upward.
15746 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15749 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15751 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15753 PR tree-optimization/47967
15754 * ipa-cp.c (build_const_val): Return NULL instead of creating
15755 VIEW_CONVERT_EXPR for mismatching sizes.
15756 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15757 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15758 give up on versioning.
15760 2011-03-05 Alan Modra <amodra@gmail.com>
15763 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15764 full cmodel medium/large lo_sum + high addresses.
15766 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15768 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15769 pool references in UNSPEC_LTREL_OFFSET.
15771 2011-03-04 Jan Hubicka <jh@suse.cz>
15774 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15775 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15776 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15778 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15779 cgraph_add_thunk): Add node pointers.
15780 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15781 associated to right node.
15782 (input_node): Update use of cgraph_same_body_alias
15783 and cgraph_add_thunk.
15785 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15787 * config/i386/i386.opt (mprefer-avx128): New flag.
15788 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15789 modes when the flag -mprefer-avx128 is on.
15791 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15793 * dwarf2out.c (compare_loc_operands): Fix address handling.
15795 2011-03-04 Alan Modra <amodra@gmail.com>
15797 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15799 2011-03-04 Richard Guenther <rguenther@suse.de>
15801 PR middle-end/47968
15802 * expmed.c (extract_bit_field_1): Prefer vector modes that
15803 vec_extract patterns can handle.
15805 2011-03-04 Richard Guenther <rguenther@suse.de>
15807 PR middle-end/47975
15808 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15810 2011-03-04 Richard Henderson <rth@redhat.com>
15812 * explow.c (emit_stack_save): Remove 'after' parameter.
15813 (emit_stack_restore): Likewise.
15814 * expr.h: Update to match.
15815 * builtins.c, calls.c, stmt.c: Likewise.
15816 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15817 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15818 * function.c (expand_function_end): Insert the emit_stack_save
15819 sequence before parm_birth_insn instead of after.
15821 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15823 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15824 (ssse3_pmaddubsw128): Ditto.
15825 (ssse3_pmaddubsw): Ditto.
15827 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15829 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15831 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15834 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15835 on TYPE_SIZE_UNIT if it is a DECL.
15838 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15839 first operand is not is_gimple_mem_ref_addr, try to fold it.
15840 If the operand still isn't is_gimple_mem_ref_addr, clear
15843 2011-03-03 Richard Guenther <rguenther@suse.de>
15845 PR middle-end/47283
15846 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15848 (refs_may_alias_p_1): For release branches return true if
15849 we are confused by our input.
15851 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15853 * config/s390/s390.c (s390_function_value): Rename to ...
15854 (s390_function_and_libcall_value): ... this.
15855 (s390_function_value): New function.
15856 (s390_libcall_value): New function.
15857 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15858 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15859 target macro definitions.
15860 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15862 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15864 * config/i386/freebsd64.h (CC1_SPEC): Define.
15865 * config/i386/linux64.h (CC1_SPEC): Define.
15866 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15868 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15870 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15872 * config/stormy16/stormy16.c: Include reload.h.
15873 (xstormy16_memory_move_cost): New function.
15874 (TARGET_MEMORY_MOVE_COST): Define.
15876 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15878 PR rtl-optimization/47925
15879 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15880 with side effects. Remove the more-specific check for volatile asms.
15882 2011-03-02 Alan Modra <amodra@gmail.com>
15885 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15886 toc relative addresses for valid offsets.
15888 2011-03-01 Richard Guenther <rguenther@suse.de>
15890 PR tree-optimization/47890
15891 * tree-vect-loop.c (get_initial_def_for_induction): Set
15892 related stmt properly.
15894 2011-03-01 Richard Guenther <rguenther@suse.de>
15897 * lto-streamer.c (lto_record_common_node): Also register
15898 the canonical type.
15900 2011-03-01 Richard Guenther <rguenther@suse.de>
15903 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15904 Do not stream DECL_ABSTRACT_ORIGIN.
15905 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15906 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15907 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15908 Do not stream DECL_ABSTRACT_ORIGIN.
15909 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15910 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15912 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15914 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15915 FUNCTION_VALUE_REGNO_P): Remove.
15916 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15917 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15918 Add 'outgoing' argument.
15919 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15921 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15922 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15924 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15927 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15928 (lookup_filename): Likewise.
15929 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15931 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15932 Jakub Jelinek <jakub@redhat.com>
15934 PR middle-end/47893
15935 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15936 (assign_stack_local_1): Change last argument type to int.
15937 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15938 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15939 don't record padding space into frame_space_list nor use those areas.
15940 (assign_stack_local): Adjust caller.
15941 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15942 of assign_stack_local, pass 0 as last argument.
15943 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15946 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15949 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15950 Use target address_mode and pointer_mode hooks instead of hardcoded
15951 Pmode and ptr_mode. Handle some simple cases of extending if
15952 POINTERS_EXTEND_UNSIGNED < 0.
15953 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15954 Call convert_debug_memory_address.
15955 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15956 convert_debug_memory_address.
15958 PR middle-end/46790
15959 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15960 * configure: Regenerated.
15961 * config.in: Regenerated.
15962 * varasm.c (default_function_section): Return NULL
15963 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15965 2011-02-28 Martin Jambor <mjambor@suse.cz>
15967 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15968 the description to match the printed values.
15970 2011-02-28 Richard Guenther <rguenther@suse.de>
15972 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15973 of the copied scope tree.
15975 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15977 * doc/extend.texi (Function Attributes): Avoid deeply (and
15978 wrongly) nested tables.
15980 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15982 PR middle-end/47903
15983 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15984 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15985 r isn't op0 nor op1.
15987 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15989 * config/avr/avr.md: Remove magic comment for emacs.
15991 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15994 * config/avr/avr.c (avr_option_override): Use error on bad options.
15995 (avr_help): New function.
15996 (TARGET_HELP): Define.
15998 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16001 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16002 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16004 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16006 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16007 (ARM Options): Ditto.
16008 (i386 and x86-64 Options): Ditto.
16009 (RX Options): Ditto.
16010 (SPARC Options): Ditto.
16012 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16014 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16015 FreeBSD 6 and later. Generally use cpu generic.
16017 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16019 * doc/cpp.texi: Update copyright years.
16021 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16024 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16026 2011-02-25 Jon Beniston <jon@beniston.com>
16029 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16030 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16031 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16032 (lm32_block_move_inline): Add type cast to remove warning.
16033 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16034 (gen_int_relational): Move declarations to start of function.
16036 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16038 PR tree-optimization/45470
16039 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16040 can throw internally only.
16041 * tree-vect-stmts.c (vectorizable_call): Likewise.
16043 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16045 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16046 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16047 * config/stormy16/stormy16-protos.h
16048 (xstormy16_preferred_reload_class): Remove.
16049 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16050 static. Change 'rclass' argument and return type to reg_class_t.
16051 (TARGET_PREFERRED_RELOAD_CLASS,
16052 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16054 2011-02-24 Richard Guenther <rguenther@suse.de>
16056 * lto-streamer-in.c (input_bb): Do not find referenced vars
16057 in debug statements.
16059 2011-02-23 Jason Merrill <jason@redhat.com>
16061 * common.opt (fabi-version): Document v5 and v6.
16063 2011-02-23 Richard Guenther <rguenther@suse.de>
16065 PR tree-optimization/47849
16066 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16068 2011-02-23 Jie Zhang <jie@codesourcery.com>
16070 * opts-common.c (decode_cmdline_option): Print empty string
16071 argument as "" in decoded->orig_option_with_args_text.
16072 * gcc.c (execute): Print empty string argument as ""
16073 in the verbose output.
16074 (do_spec_1): Keep empty string argument.
16076 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16078 * config.gcc: Declare score-* and crx-* obsolete.
16080 2011-02-23 Jie Zhang <jie@codesourcery.com>
16082 PR rtl-optimization/47763
16083 * web.c (web_main): Ignore naked clobber when replacing register.
16085 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16087 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16090 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16093 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16095 2011-02-22 Mike Stump <mikestump@comcast.net>
16097 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16099 * configure: Regenerate.
16101 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16103 PR rtl-optimization/46002
16104 * ira-color.c (update_copy_costs): Change class intersection
16105 test to reg_class_contents[] test of 'hard_regno'.
16107 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16109 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16110 than Driver option.
16111 * config/hpux11.opt (mt): Likewise.
16112 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16113 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16114 * config/vax/elf.opt (mno-asm-pic): Likewise.
16115 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16117 2011-02-21 Mike Stump <mikestump@comcast.net>
16120 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16121 tree so we can get save the type.
16122 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16123 for CFString instead of trying to use past the end of the builtins.
16124 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16125 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16126 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16127 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16128 Rename to darwin_builtin_cfstring.
16129 (darwin_init_cfstring_builtins): Return the built type.
16131 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16134 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16135 (_mm256_insert_epi64): Use _mm_insert_epi64.
16137 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16139 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16140 * config/stormy16/stormy16-protos.h
16141 (xstormy16_mode_dependent_address_p): Remove.
16142 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16143 Make static. Change return type to bool. Change argument type to
16144 const_rtx. Remove dead code.
16145 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16147 2011-02-21 Richard Guenther <rguenther@suse.de>
16150 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16151 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16152 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16154 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16155 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16157 2011-02-20 Richard Guenther <rguenther@suse.de>
16160 * tree.c (free_lang_data_in_decl): Clean builtins from
16161 the TU decl BLOCK_VARS.
16163 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16167 * haifa-sched.c (fix_tick_ready): Skip tick computation
16170 2011-02-19 Richard Guenther <rguenther@suse.de>
16173 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16174 Remove lazy BLOCK_VARS streaming.
16175 (lto_input_ts_block_tree_pointers): Likewise.
16176 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16178 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16180 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16182 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16184 * config/i386/biarch32.h, config/i386/mach.h,
16185 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16187 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16190 * config/i386/i386.md (peephole2 for shift and plus): Use
16191 operands[1] original mode in the first insn.
16193 2011-02-18 Mike Stump <mikestump@comcast.net>
16195 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16197 2011-02-18 Jan Hubicka <jh@suse.cz>
16199 PR middle-end/47788
16200 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16201 to zero when the function is not inlinable at all.
16203 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16205 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16206 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16207 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16208 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16209 * config/pa/t-pa64: Likewise.
16210 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16212 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16215 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16217 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16220 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16222 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16224 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16225 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16226 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16227 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16228 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16229 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16230 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16231 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16232 m32r_legitimate_address_p): New functions.
16233 * config/m32r/constraints.md (constraint "S"): Don't use
16234 STORE_PREINC_PREDEC_P.
16235 (constraint "U"): Don't use LOAD_POSTINC_P.
16237 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16239 PR rtl-optimization/46178
16240 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16241 compute ira_hard_regno_cover_class[].
16243 2011-02-18 Richard Guenther <rguenther@suse.de>
16246 * lto-streamer.h (lto_global_var_decls): Declare.
16247 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16248 statics for global var processing.
16250 2011-02-18 Richard Guenther <rguenther@suse.de>
16252 PR tree-optimization/47737
16253 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16254 edge dominance check.
16256 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16259 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16260 avoid invalid rtx sharing.
16262 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16264 * doc/cpp.texi (Obsolete Features): Add background on the
16265 origin of assertions.
16267 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16269 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16271 * config/darwin.c (output_objc_section_asm_op): Added support for
16273 (is_objc_metadata): New.
16274 (darwin_objc2_section): New.
16275 (darwin_objc1_section): New.
16276 (machopic_select_section): Added support for ABI v1 and v2.
16277 (darwin_emit_objc_zeroed): New.
16278 (darwin_output_aligned_bss): Detect objc metadata and treat it
16280 (darwin_asm_output_aligned_decl_common): Same.
16281 (darwin_asm_output_aligned_decl_local): Same.
16282 * config/darwin-sections.def: Updated for ABI v1 and v2.
16283 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16284 compiling Objective-C code for the NeXT runtime, default to using
16285 ABI version 0 for 32-bit, and version 2 for 64-bit.
16287 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16289 * common.opt (optimize_fast): New Variable.
16290 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16291 instead of local variable ofast.
16293 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16295 * doc/invoke.texi (fobjc-abi-version): Documented.
16296 (fobjc-nilcheck): Documented.
16297 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16300 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16303 * common.opt (export-dynamic): New Driver option.
16304 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16306 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16308 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16310 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16311 Jan Hubicka <jh@suse.cz>
16315 * cfgexpand.c (account_used_vars_for_block): Remove.
16316 (estimated_stack_frame_size): Use referenced vars.
16317 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16318 that were referenced in the original function. Test src_fn
16319 rather than cfun. Drop redundant get_var_ann.
16320 (setup_one_parameter): Drop redundant get_var_ann.
16321 (declare_return_variable): Likewise.
16322 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16323 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16324 * ipa-inline.c (compute_inline_parameters): Do not compute
16325 disregard_inline_limits here.
16326 (compute_inlinable_for_current, pass_inlinable): New.
16327 (pass_inline_parameters): Require PROP_referenced_vars.
16328 * cgraphunit.c (cgraph_process_new_functions): Don't run
16329 compute_inline_parameters explicitly unless function is in SSA form.
16330 (cgraph_analyze_function): Set .disregard_inline_limits.
16331 * tree-sra.c (convert_callers): Compute inliner parameters
16332 only for functions already in SSA form.
16334 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16336 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16337 -mlittle-endian-data.
16339 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16341 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16342 -mno-fpu, not -fpu and -no-fpu.
16343 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16344 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16346 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16349 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16350 input reload with PLUS RTX.
16352 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16354 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16355 of InverseVar(MDMX).
16357 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16359 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16362 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16364 * config/mn10300/mn10300.opt (mno-crt0): New.
16366 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16368 * config/m68k/uclinux.opt (static-libc): New Driver option.
16370 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16372 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16374 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16376 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16377 %{muser-extend-enabled}.
16379 2011-02-16 Richard Guenther <rguenther@suse.de>
16381 PR tree-optimization/47738
16382 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16383 the TODO from tree_predictive_commoning.
16385 2011-02-15 Jeff Law <law@redhat.com>
16388 2011-01-25 Jeff Law <law@redhat.com>
16390 PR rtl-optimization/37273
16391 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16392 handle them like argument loads from stack slots. Do not double
16393 count memory for memory constants and argument loads from stack slots.
16395 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16397 PR middle-end/47725
16398 * combine.c (cant_combine_insn_p): Revert the last change.
16400 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16403 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16404 mode for vector constants. Remove code that checks for TImode.
16406 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16410 * cgraph.h (compute_inline_parameters): Return void.
16411 * ipa-inline.c (compute_inline_parameters): Adjust.
16413 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16417 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16419 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16420 * ipa-inline.c (compute_inline_parameters): Adjust.
16422 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16426 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16427 Adjust all users. Pass FN to...
16428 * tree-flow-inline.h (first_referenced_var): ... this. Add
16430 * ipa-struct-reorg.c: Adjust.
16431 * tree-dfa.c: Adjust.
16432 * tree-into-ssa.c: Adjust.
16433 * tree-sra.c: Adjust.
16434 * tree-ssa-alias.c: Adjust.
16435 * tree-ssa-live.c: Adjust.
16436 * tree-ssa.c: Adjust.
16437 * tree-ssanames.c: Adjust.
16438 * tree-tailcall.c: Adjust.
16440 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16444 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16445 Adjust all callers.
16446 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16447 * tree-flow-inline.h: Adjust.
16448 * gimple-pretty-print.c: Adjust.
16449 * tree-into-ssa.c: Adjust.
16450 * tree-ssa.c: Adjust.
16451 * cfgexpand.c: Adjust.
16453 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16455 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16456 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16457 (EXTRA_CONSTRAINT): Delete.
16458 * config/iq2000/constraints.md: New file.
16459 * config/iq2000/iq2000.md: Include it.
16460 (define_insn ""): Delete.
16461 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16462 unsupported constraint letters from patterns.
16463 (call_value, call_value_internal1): Likewise.
16464 (call_value_multiple_internal1): Likewise.
16466 2011-02-15 Nick Clifton <nickc@redhat.com>
16468 * config/mn10300/mn10300.c: Include tm-constrs.h.
16469 (struct liw_data): New data structure describing an LIW candidate
16471 (extract_bundle): Use struct liw_data. Allow small integer
16472 operands for some instructions.
16473 (check_liw_constraints): Use struct liw_data. Remove swapped
16474 parameter. Add comments describing the checks. Fix bug when
16475 assigning the source of liw1 to the source of liw2.
16476 (liw_candidate): Delete. Code moved into extract_bundle.
16477 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16479 * config/mn10300/predicates.md (liw_operand): New predicate.
16480 Allows registers and small integer constants.
16481 * config/mn10300/constraints.md (O): New constraint. Accetps
16482 integers in the range -8 to +7 inclusive.
16483 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16484 for moving a small integer into a register. Give this alternative
16486 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16487 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16488 using the J,K,L and M constraints,
16489 (liw): Remove SI mode on second operands to allow for HI and QI
16491 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16494 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16496 PR middle-end/47725
16497 * combine.c (cant_combine_insn_p): Check zero/sign extended
16500 2011-02-15 Richard Guenther <rguenther@suse.de>
16502 PR tree-optimization/47743
16503 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16504 for a non-type-compatible VN lookup bail out.
16506 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16508 * config/fr30/constraints.md: New file.
16509 * config/fr30/fr30.md: Include it.
16510 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16511 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16512 (EXTRA_CONSTRAINT): Delete.
16514 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16516 * config/frv/constraints.md: New file.
16517 * config/frv/predicates.md: Include it.
16518 * config/frv/frv.c (reg_class_from_letter): Delete.
16519 (frv_option_override): Don't initialize it.
16520 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16521 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16522 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16523 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16524 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16525 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16526 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16527 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16528 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16529 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16530 (REG_CLASS_FROM_CONSTRAINT): Delete.
16532 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16534 PR middle-end/47581
16535 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16536 if frame size is 0 in a leaf function.
16538 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16541 * config/alpha/host-osf.c: New file.
16542 * config/alpha/x-osf: New file.
16543 * config.host (alpha*-dec-osf*): Use it.
16545 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16547 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16548 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16549 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16550 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16552 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16554 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16556 * config/stormy16/constraints.md: New file.
16557 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16558 Use satisfies_constraint_Q and satisfies_constraint_R.
16559 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16561 (xstormy16_legitiamte_address_p): Declare.
16562 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16563 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16564 (EXTRA_CONSTRAINT): Delete.
16565 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16567 (xstormy16_extra_constraint_p): Delete.
16569 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16571 PR tree-optimization/46494
16572 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16573 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16574 (pass_rtl_loop_done): Add TODO_verify_flow.
16575 * fwprop.c (pass_rtl_fwprop): Likewise.
16576 * modulo-sched.c (pass_sms): Likewise.
16577 * tree-ssa-dom.c (pass_dominator): Likewise.
16578 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16579 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16580 (pass_tree_loop_done): Likewise.
16581 * tree-ssa-pre.c (execute_pre): Likewise.
16582 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16583 * tree-ssa-sink.c (pass_sink_code): Likewise.
16584 * tree-vrp.c (pass_vrp): Likewise.
16586 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16588 * config/v850/constraints.md: New file.
16589 * config/v850/v850.md: Include it.
16590 * config/v850/predicates.md (reg_or_0_operand): Use
16591 satisfies_constraint_G.
16592 (special_symbolref_operand): Use satisfies_constraint_K.
16593 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16594 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16595 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16596 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16597 (EXTRA_CONSTRAINT): Delete.
16598 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16599 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16600 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16602 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16605 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16608 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16610 * config/mcore/constraints.md: New file.
16611 * config/mcore/mcore.md: Include it.
16612 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16613 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16614 (REG_CLASS_FROM_LETTER): Delete.
16615 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16616 insn_const_int_ok_for_constraint.
16617 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16618 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16619 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16620 (EXTRA_CONSTRAINT): Delete.
16622 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16625 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16626 (IS_SIGHANDLER): Define.
16627 (sparc64_is_sighandler): New function, split off from
16628 sparc64_fallback_frame_state.
16629 (sparc_is_sighandler): New function, split off from
16630 sparc_fallback_frame_state.
16631 (sparc64_fallback_frame_state): Merge with ...
16632 (sparc_fallback_frame_state): ... this into ...
16633 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16634 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16635 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16636 stack instead of hardcoded offsets.
16638 2011-02-14 Andriy Gapon <avg@freebsd.org>
16641 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16643 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16645 * configure: Regenerate.
16647 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16650 * gcc.c (asm_options): Correct spec matching --target-help.
16652 2011-02-12 Martin Jambor <mjambor@suse.cz>
16654 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16655 to gimple call error.
16657 2011-02-12 Mike Stump <mikestump@comcast.net>
16659 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16660 comments in backslash regions.
16662 2011-02-12 Mike Stump <mikestump@comcast.net>
16663 Jakub Jelinek <jakub@redhat.com>
16664 Iain Sandoe <iains@gcc.gnu.org>
16667 * dwarf2out.c (output_cfa_loc): When required, apply the
16668 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16669 (output_loc_sequence): Likewise.
16670 (output_loc_operands_raw): Likewise.
16671 (output_loc_sequence_raw): Likewise.
16672 (output_cfa_loc): Likewise.
16673 (output_loc_list): Suppress register number adjustment when
16674 calling output_loc_sequence()
16675 (output_die): Likewise.
16677 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16679 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16681 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16682 xtensa_memory_move_cost): New functions.
16683 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16685 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16688 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16689 in the current directory.
16690 * configure: Rebuilt.
16692 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16694 * config/darwin.c (darwin_override_options): Add a hunk missed
16695 from the commit of r168571. Trim comment line lengths and
16696 correct indents of the preceding block.
16698 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16700 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16703 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16705 * common.opt (nostartfiles): New Driver option.
16707 2011-02-11 Xinliang David Li <davidxl@google.com>
16709 PR tree-optimization/47707
16710 * tree-chrec.c (convert_affine_scev): Keep type precision.
16712 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16714 PR tree-optimization/47420
16715 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16717 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16719 PR rtl-optimization/47614
16720 * rtl.h (check_for_inc_dec): Declare.
16721 * dse.c (check_for_inc_dec): Externalize...
16722 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16723 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16725 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16728 * gcc.c (main): Do not compile inputs if there were errors in
16730 * opts-common.c (read_cmdline_option): Check for wrong language
16731 after other error checks.
16733 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16735 * cgraph.c: Fix comment typos.
16736 * cgraph.h: Likewise.
16737 * cgraphunit.c: Likewise.
16738 * ipa-cp.c: Likewise.
16739 * ipa-inline.c: Likewise.
16740 * ipa-prop.c: Likewise.
16741 * ipa-pure-const.c: Likewise.
16742 * ipa-ref.c: Likewise.
16743 * ipa-reference.c: Likewise.
16745 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16748 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16750 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16753 * doc/sourcebuild.texi (Require Support): Document
16754 dg-require-ascii-locale.
16756 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16758 * doc/lto.texi (Write summary): Fix missing parentheses.
16760 2011-02-10 DJ Delorie <dj@redhat.com>
16762 * config/m32c/m32c.c (m32c_option_override): Disable
16763 -fcombine-stack-adjustments until flag value tracking and compare
16764 optimization can be rewritten.
16766 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16768 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16770 (PROCESSOR_DEFAULT64): Likewise.
16772 2011-02-10 Richard Henderson <rth@redhat.com>
16774 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16775 change from 2011-02-03.
16776 * config/rx/rx.c (flags_from_code): Likewise.
16777 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16778 is valid, n/pz otherwise.
16779 (rx_select_cc_mode): Return CCmode if Y is not zero.
16781 2011-02-10 Richard Guenther <rguenther@suse.de>
16783 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16785 2011-02-10 Richard Guenther <rguenther@suse.de>
16787 PR tree-optimization/47677
16788 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16790 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16793 * combine.c (make_compound_operation): Only change shifts into
16794 multiplication for SCALAR_INT_MODE_P.
16796 2011-02-10 Jie Zhang <jie@codesourcery.com>
16800 2011-02-05 Jie Zhang <jie@codesourcery.com>
16802 * web.c (entry_register): Don't clobber the number of the
16803 first uninitialized reference in used[].
16805 2011-02-09 Richard Guenther <rguenther@suse.de>
16807 PR tree-optimization/47664
16808 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16811 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16815 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16817 (PROCESSOR_DEFAULT64): Same.
16818 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16820 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16822 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16824 2011-02-09 Martin Jambor <mjambor@suse.cz>
16826 PR middle-end/45505
16827 * tree-sra.c (struct access): New flags grp_scalar_read and
16828 grp_scalar_write. Changed description of assignment read and write
16830 (dump_access): Dump new flags, reorder all of them.
16831 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16832 to detect multiple scalar reads.
16833 (analyze_access_subtree): Use the new scalar read write flags instead
16834 of the old flags. Adjusted comments.
16836 2011-02-08 DJ Delorie <dj@redhat.com>
16839 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16842 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16844 * config/m68k/uclinux.opt: New.
16845 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16847 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16849 * config/cris/elf.opt (sim): New Driver option.
16851 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16853 * config/xtensa/elf.opt: New.
16854 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16856 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16858 * config/vax/elf.opt: New.
16859 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16861 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16863 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16865 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16867 * config/gnu-user.opt: New.
16868 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16869 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16870 *-*-uclinux*): Use gnu-user.opt.
16872 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16874 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16875 * config/i386/gnu.h (CPP_SPEC): Likewise.
16877 2011-02-08 Ian Lance Taylor <iant@google.com>
16879 * common.opt (fcx-limited-range): Add SetByCombined flag.
16880 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16881 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16882 (fassociative-math, freciprocal-math): Likewise.
16883 (funsafe-math-optimizations): Likewise.
16884 * opth-gen.awk: Handle SetByCombined.
16885 * optc-gen.awk: Likewise.
16886 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16887 (set_unsafe_math_optimizations_flags): Likewise.
16888 * doc/options.texi (Option properties): Document SetByCombined.
16890 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16892 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16893 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16894 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16895 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16896 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16898 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16900 PR tree-optimization/46834
16901 PR tree-optimization/46994
16902 PR tree-optimization/46995
16903 * graphite-sese-to-poly.c (used_outside_reduction): New.
16904 (detect_commutative_reduction): Call used_outside_reduction.
16905 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16906 translate_scalar_reduction_to_array only when at least one
16907 loop-phi/close-phi tuple has been detected.
16909 2011-02-08 Richard Guenther <rguenther@suse.de>
16911 PR middle-end/47639
16912 * tree-vect-generic.c (expand_vector_operations_1): Update
16914 (expand_vector_operations): ... not here. Cleanup EH info
16915 and the CFG if required.
16917 2011-02-08 Richard Guenther <rguenther@suse.de>
16919 PR tree-optimization/47641
16920 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16921 require type compatibility.
16923 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16925 * gimple-low.c (lower_function_body): Don't remove the location of
16926 the return statement here.
16927 (lower_gimple_return): Do it here instead but only if the return
16928 statement is actually used twice.
16930 2011-02-08 Richard Guenther <rguenther@suse.de>
16932 PR tree-optimization/47632
16933 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16934 unused up_to_stmt parameter, return whether cfg-cleanup is
16935 necessary, remove EH info properly.
16936 (forward_propagate_into_gimple_cond): Adjust caller.
16937 (forward_propagate_into_cond): Likewise.
16938 (forward_propagate_comparison): Likewise.
16939 (tree_ssa_forward_propagate_single_use_vars): Make
16940 forward_propagate_comparison case similar to the two others.
16942 2011-02-08 Nick Clifton <nickc@redhat.com>
16944 * config/mn10300/mn10300.opt (mliw): New command line option.
16945 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16946 (liw_bundling): New automaton.
16947 (liw): New attribute.
16948 (liw_op): New attribute.
16949 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16950 (movsi_internal): Add LIW attributes.
16951 (andsi3): Likewise.
16952 (iorsi3): Likewise.
16953 (xorsi3): Likewise.
16954 (addsi3): Separate register and immediate alternatives.
16955 Add LIW attributes.
16956 (subsi3): Likewise.
16958 (aslsi3): Likewise.
16959 (lshrsi3): Likewise.
16960 (ashrsi3): Likewise.
16961 (liw): New pattern.
16962 * config/mn10300/mn10300.c (liw_op_names): New
16963 (mn10300_print_operand): Handle 'W' operand descriptor.
16964 (extract_bundle): New function.
16965 (check_liw_constraints): New function.
16966 (liw_candidate): New function.
16967 (mn10300_bundle_liw): New function.
16968 (mn10300_reorg): New function.
16969 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16970 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16971 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16972 __LIW__ or __NO_LIW__.
16973 * doc/invoke.texi: Describe the -mliw command line option.
16975 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16977 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16978 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16979 pthread_mutex_unlock): Remove.
16980 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16981 * config/pa/t-pa64: Likewise.
16982 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16983 shared libc if not linking against libpthread.
16984 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16986 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16989 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16990 on 10.6 and later to ensure that we always use the unwinder from
16991 the system. Only add -no_compact_unwind when tarteting darwin
16994 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16997 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16998 (vec_interleave_lowv2sf): Ditto.
16999 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17000 (vec_extract_oddv2sf): Ditto.
17002 2011-02-07 Mike Stump <mikestump@comcast.net>
17005 Add __ieee_divdc3 entry point.
17006 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17008 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17009 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17010 * config/darwin.c (darwin_rename_builtins): Add.
17011 * config/darwin-protos.h (darwin_rename_builtins): Add.
17013 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17016 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17019 2011-02-07 Mike Stump <mikestump@comcast.net>
17021 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17023 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17026 * config/avr/libgcc.S (exit): Move .endfunc
17028 2011-02-07 Richard Guenther <rguenther@suse.de>
17030 PR tree-optimization/47615
17031 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17032 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17033 (run_scc_vn): Initialize it.
17034 (visit_reference_op_load): Use it.
17035 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17037 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17039 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17040 DImode trapping arithmetic libfuncs.
17042 2011-02-07 Richard Guenther <rguenther@suse.de>
17044 PR tree-optimization/47621
17045 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17047 (execute_update_addresses_taken): ... here. Make it more
17048 conservative in what we accept.
17050 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17052 * config/sparc/freebsd.h (ASM_SPEC): Define.
17053 * config/sparc/vxworks.h (ASM_SPEC): Define.
17055 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17057 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17059 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17061 * doc/invoke.texi: Remove reference to compiler internals from
17062 user documentation.
17064 * reg-notes.def: Remove REG_VALUE_PROFILE.
17065 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17067 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17069 PR middle-end/47610
17070 * varasm.c (default_section_type_flags): If decl is NULL,
17071 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17073 2011-02-05 Jie Zhang <jie@codesourcery.com>
17076 * web.c (entry_register): Don't clobber the number of the
17077 first uninitialized reference in used[].
17079 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17081 PR tree-optimization/46194
17082 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17083 (build_classic_dist_vector_1): Do not represent classic distance
17084 vectors when the access functions are variating in different loops.
17086 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17088 * config/mips/iris6.opt: New.
17089 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17091 2011-02-04 Richard Henderson <rth@redhat.com>
17092 Steve Ellcey <sje@cup.hp.com>
17095 * config/ia64/predicates.md (mux1_brcst_element): New.
17096 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17097 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17098 (ia64_unpack_sign): New.
17099 (ia64_expand_unpack): Rewrite using new routines.
17100 (ia64_expand_widen_sum): Ditto.
17101 (ia64_expand_dot_prod_v8qi): Ditto.
17102 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17103 routines, add endian check.
17104 (pmpy2_even): Rename from pmpy2_r, add endian check.
17105 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17106 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17107 (vec_widen_smult_hi_v4hi): Ditto.
17108 (vec_widen_umult_lo_v4hi): Ditto.
17109 (vec_widen_umult_hi_v4hi): Ditto.
17110 (mulv2si3): Change endian checks.
17111 (sdot_prodv4hi): Rewrite with new calls.
17112 (udot_prodv4hi): New.
17113 (vec_pack_ssat_v4hi): Add endian check.
17114 (vec_pack_usat_v4hi): Ditto.
17115 (vec_pack_ssat_v2si): Ditto.
17116 (max1_even): Rename from max1_r, add endian check.
17117 (max1_odd): Rename from max1_l, add endian check.
17118 (*mux1_rev): Format change.
17119 (*mux1_mix): Ditto.
17120 (*mux1_shuf): Ditto.
17121 (*mux1_alt): Ditto.
17122 (*mux1_brcst_v8qi): Use new predicate.
17123 (vec_extract_evenv8qi): Remove endian check.
17124 (vec_extract_oddv8qi): Ditto.
17125 (vec_interleave_lowv4hi): Format change.
17126 (vec_interleave_highv4hi): Ditto.
17127 (mix2_even): Rename from mix2_r, add endian check.
17128 (mix2_odd): Rename from mux2_l, add endian check.
17129 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17130 (vec_extract_evenodd_helper): Format change.
17131 (vec_extract_evenv4hi): Remove endian check.
17132 (vec_extract_oddv4hi): Remove endian check.
17133 (vec_interleave_lowv2si): Format change.
17134 (vec_interleave_highv2si): Format change.
17135 (vec_initv2si): Remove endian check.
17136 (vecinit_v2si): Add endian check.
17137 (reduc_splus_v2sf): Add endian check.
17138 (reduc_smax_v2sf): Ditto.
17139 (reduc_smin_v2sf): Ditto.
17140 (vec_initv2sf): Remove endian check.
17141 (fpack): Add endian check.
17142 (fswap): Add endian check.
17143 (vec_interleave_highv2sf): Add endian check.
17144 (vec_interleave_lowv2sf): Add endian check.
17145 (fmix_lr): Add endian check.
17146 (vec_setv2sf): Format change.
17147 (*vec_extractv2sf_0_be): Use shift to extract operand.
17148 (*vec_extractv2sf_1_be): New.
17149 (vec_pack_trunc_v4hi): Add endian check.
17150 (vec_pack_trunc_v2si): Format change.
17152 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17154 PR inline-asm/23200
17155 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17156 do bb, locus and block comparison and disallow loads if it is not set.
17157 (stmt_is_replaceable_p): New function.
17158 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17160 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17161 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17163 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17165 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17167 * config/rs6000/xilinx.opt: New.
17168 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17170 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17172 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17174 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17176 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17177 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17178 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17179 secondary_reload_info, xtensa_secondary_reload): Remove.
17180 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17181 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17182 (xtensa_preferred_reload_class): Make static. Change return and
17183 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17184 Use CONST_DOUBLE_P predicate.
17185 (xtensa_preferred_output_reload_class): New function.
17186 (xtensa_secondary_reload): Make static.
17188 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17190 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17191 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17192 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17194 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17196 PR middle-end/31490
17197 * output.h (SECTION_RELRO): Define.
17198 (SECTION_MACH_DEP): Adjust.
17199 (get_variable_section): New prototype.
17200 * varpool.c (varpool_finalize_named_section_flags): New function.
17201 (varpool_assemble_pending_decls): Call it.
17202 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17203 * cgraphunit.c (cgraph_output_in_order): Call
17204 varpool_finalize_named_section_flags.
17205 * varasm.c (get_section): Allow section flags conflicts between
17206 relro and read-only sections if the section hasn't been declared yet.
17207 Set SECTION_OVERRIDE after diagnosing section type conflict.
17208 (get_variable_section): No longer static.
17209 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17210 readonly sections that need relocations.
17211 (decl_readonly_section_1): New function.
17212 (decl_readonly_section): Use it.
17215 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17216 Steve Ellcey <sje@cup.hp.com>
17218 PR middle-end/31490
17219 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17220 if section attribute used.
17222 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17224 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17225 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17226 (darwin_init_sections): Remove assertion.
17228 2011-02-03 Nick Clifton <nickc@redhat.com>
17230 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17232 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17233 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17234 instead of "n" and "pz".
17235 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17238 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17241 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17242 fma, expand FMA_EXPR as fma{,f,l} call.
17245 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17246 copy them into a unsigned char variable and pass address of it to
17247 lto_output_data_stream.
17250 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17251 around backend_init_target and lang_dependent_init_target calls.
17252 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17253 (verify_cgraph_node): Don't call set_cfun here. Use
17254 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17255 Set error_found for incorrectly represented calls to thunks.
17257 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17260 PR rtl-optimization/43494
17261 * rtl.h (for_each_inc_dec_fn): New type.
17262 (for_each_inc_dec): Declare.
17263 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17264 (for_each_inc_dec_find_inc_dec): New fn.
17265 (for_each_inc_dec_find_mem): New fn.
17266 (for_each_inc_dec): New fn.
17267 * dse.c (struct insn_size): Remove.
17268 (replace_inc_dec, replace_inc_dec_mem): Remove.
17269 (emit_inc_dec_insn_before): New fn.
17270 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17271 (canon_address): Pass mem modes to cselib_lookup.
17272 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17273 (cselib_lookup_from_insn): Likewise.
17274 (cselib_subst_to_values): Likewise.
17275 * cselib.c (find_slot_memmode): New var.
17276 (cselib_find_slot): New fn. Use it instead of
17277 htab_find_slot_with_hash everywhere.
17278 (entry_and_rtx_equal_p): Use find_slot_memmode.
17279 (autoinc_split): New fn.
17280 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17281 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17282 Deal with autoinc. Special-case recursion into MEMs.
17283 (cselib_hash_rtx): Likewise.
17284 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17285 address and MEM modes.
17286 (cselib_subst_to_values): Add memmode, pass it on.
17288 (cselib_lookup): Add memmode argument, pass it on.
17289 (cselib_lookup_from_insn): Add memmode.
17290 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17291 (struct cselib_record_autoinc_data): New.
17292 (cselib_record_autoinc_cb): New fn.
17293 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17294 mode to cselib_lookup. Reset autoinced REGs here instead of...
17295 (cselib_process_insn): ... here.
17296 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17298 (add_uses): Likewise, also to cselib_subst_to_values.
17299 (add_stores): Likewise.
17300 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17301 cselib_subst_to_values.
17302 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17303 * gcse.c (do_local_cprop): Adjusted.
17304 * postreload.c (reload_cse_simplify_set): Adjusted.
17305 (reload_cse_simplify_operands): Adjusted.
17306 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17308 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17310 PR tree-optimization/45122
17311 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17312 unsafe assumptions when there's more than one loop exit.
17314 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17317 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17318 Document using vector double with the load/store builtins, and
17319 that the load/store builtins always use Altivec instructions.
17321 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17322 to use altivec memory instructions, even on VSX.
17323 (vector_altivec_store_<mode>): Ditto.
17325 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17328 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17329 V2DF, V2DI support to load/store overloaded builtins.
17331 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17332 altivec load/store builtins for V2DF/V2DI types.
17334 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17335 set avoid indexed addresses on power6 if -maltivec.
17336 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17337 vector_altivec_load/vector_altivec_store builtins.
17338 (altivec_expand_st_builtin): Ditto.
17339 (altivec_expand_builtin): Add VSX memory builtins.
17340 (rs6000_init_builtins): Add V2DI types to internal types.
17341 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17342 load/store builtins.
17343 (rs6000_address_for_altivec): Insure memory address is appropriate
17346 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17347 vec_vsx_ld and vec_vsx_st.
17348 (vsx_store_<mode>): Ditto.
17350 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17351 variables to hold long long types for VSX vector memory builtins.
17352 (RS6000_BTI_unsigned_long_long): Ditto.
17353 (long_long_integer_type_internal_node): Ditti.
17354 (long_long_unsigned_type_internal_node): Ditti.
17356 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17357 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17358 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17360 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17362 (vec_vsx_st): Ditto.
17364 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17366 * config/pa/pa-hpux10.opt: New.
17367 * config/hpux11.opt (pthread): New Driver option.
17368 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17369 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17371 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17373 * config/ia64/vms.opt: New.
17374 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17376 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17379 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17380 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17381 generator functions.
17382 (vsx_floatuns<VSi><mode>2): Ditto.
17383 (vsx_fix_trunc<mode><VSi>2): Ditto.
17384 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17386 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17388 * config/i386/djgpp.opt (posix): New Driver option.
17390 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17392 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17393 Move to the unsupported targets list.
17395 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17397 PR rtl-optimization/47525
17398 * df-scan.c: Update copyright years.
17399 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17400 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17402 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17404 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17405 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17406 (ASM_OUTPUT_ASCII): Remove.
17407 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17409 2011-02-02 Jeff Law <law@redhat.com>
17411 PR middle-end/47543
17412 * reload.c (find_reloads_address): Handle reg+d address where both
17413 components are invalid by reloading the entire address.
17415 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17416 Richard Guenther <rguenther@suse.de>
17418 PR tree-optimization/40979
17420 * passes.c (init_optimization_passes): After LIM call copy_prop
17421 and DCE to clean up.
17422 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17424 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17426 PR tree-optimization/47576
17427 PR tree-optimization/47555
17428 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17429 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17430 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17431 * tree-scalar-evolution.c (follow_ssa_edge): Use
17432 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17434 2011-02-02 Richard Guenther <rguenther@suse.de>
17436 PR tree-optimization/47566
17437 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17439 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17443 * tree-inline.c (declare_return_variable): Remove unused caller
17448 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17449 * cfgexpand.c (account_used_vars_for_block): Use them.
17450 * tree-nrv.c (tree_nrv): Likewise.
17451 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17452 (dump_scope_block): Likewise.
17453 (remove_unused_locals): Likewise.
17457 * tree-inline.c (declare_return_variable): Add result decl to
17458 local decls only once.
17459 * gimple-low.c (record_vars_into): Mark newly-created variables
17462 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17468 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17470 (no_real_insns_p, schedule_block, set_priorities): Drop special
17471 treatment of boundary debug insns.
17472 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17473 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17474 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17475 (BOUNDARY_DEBUG_INSN_P): Likewise.
17476 (SCHEDULE_DEBUG_INSN_P): Likewise.
17477 * sched-rgn.c (init_ready_list): Drop special treatment of
17478 boundary debug insns.
17479 * final.c (rest_of_clean_state): Clear notes' BB.
17481 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17483 * config/openbsd.opt (assert=): New Driver option.
17485 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17487 * config/i386/nto.opt: New.
17488 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17490 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17492 * config/i386/netware.opt: New.
17493 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17495 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17497 * config/interix.opt (posix): New Driver option.
17499 2011-02-01 DJ Delorie <dj@redhat.com>
17501 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17503 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17506 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17508 PR tree-optimization/47561
17509 * toplev.c (process_options): Print the Graphite flags. Add
17510 flag_loop_flatten to the list of options requiring Graphite.
17512 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17514 * config/i386/cygming.opt (posix): New Driver option.
17516 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17518 * config/arm/vxworks.opt: New.
17519 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17521 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17523 * config/alpha/elf.opt: New.
17524 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17525 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17527 2011-02-01 Richard Guenther <rguenther@suse.de>
17529 PR tree-optimization/47559
17530 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17531 store-motion on references that can throw.
17533 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17535 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17536 * tree-pass.h (TDF_CSELIB): New macro.
17537 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17538 cselib_lookup): Check for it rather than for TDF_DETAILS.
17540 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17543 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17544 is HOST_BIT_BUCKET.
17546 * opts.c (finish_options): Don't add x_aux_base_name if it is
17549 2011-02-01 Richard Guenther <rguenther@suse.de>
17551 PR tree-optimization/47555
17553 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17555 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17557 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17560 * config/lm32/t-lm32: Add multilib for all CPU options.
17562 2011-02-01 Richard Guenther <rguenther@suse.de>
17564 PR tree-optimization/47541
17565 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17566 sure to have a field at offset zero.
17568 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17570 * config/arc/arc.opt (EB, EL): New Driver options.
17572 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17574 * config/alpha/osf5.opt: New.
17575 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17577 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17579 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17581 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17583 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17584 -floop-interchange.
17585 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17586 is an alias of -floop-interchange and that it requires the
17587 Graphite infrastructure.
17588 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17589 flag_loop_interchange based on the value of flag_tree_loop_linear.
17591 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17592 Richard Guenther <rguenther@suse.de>
17594 PR tree-optimization/47538
17595 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17596 type instead of r1type, except for comparisons. For right
17597 shifts and comparisons punt if there are mismatches in
17598 sizetype vs. non-sizetype types.
17600 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17602 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17605 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17607 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17609 * configure: Regenerate.
17611 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17613 * configure.ac (gcc_cv_ld_static_option): Define.
17614 (gcc_cv_ld_dynamic_option): Define.
17615 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17617 (HAVE_LD_STATIC_DYNAMIC): Update message.
17618 (LD_STATIC_OPTION): Define.
17619 (LD_DYNAMIC_OPTION): Define.
17620 * configure: Regenerate.
17621 * config.in: Regenerate.
17622 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17623 HAVE_LD_STATIC_DYNAMIC]: Use them.
17625 2011-01-31 Nick Clifton <nickc@redhat.com>
17627 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17628 registers inside interrupt handlers if the handler is not a leaf
17631 2011-01-31 Nick Clifton <nickc@redhat.com>
17633 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17634 reg_renumber returning an INVALID_REGNUM.
17636 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17639 * doc/install.texi: Document host options discarded when cross
17640 configuring target libraries.
17642 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17645 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17648 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17650 (no_real_insns_p, schedule_block, set_priorities): Drop special
17651 treatment of boundary debug insns.
17652 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17653 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17654 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17655 (BOUNDARY_DEBUG_INSN_P): Likewise.
17656 (SCHEDULE_DEBUG_INSN_P): Likewise.
17657 * sched-rgn.c (init_ready_list): Drop special treatment of
17658 boundary debug insns.
17659 * final.c (rest_of_clean-state): Clear notes' BB.
17661 2011-01-31 Alan Modra <amodra@gmail.com>
17663 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17664 toc relative expressions as we do in print_operand_address.
17666 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17668 * doc/extend.texi: Follow spelling conventions.
17669 * doc/invoke.texi: Fix a typo.
17671 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17673 * config/hpux11.opt: New.
17674 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17675 ia64*-*-hpux*): Use hpux11.opt.
17677 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17679 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17682 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17684 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17687 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17689 * doc/install.texi (Binaries): Remove outdated reference for
17690 Motorola 68HC11/68HC12 downloads.
17692 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17694 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17697 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17700 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17703 2011-01-28 Ahmad Sharif <asharif@google.com>
17705 * value-prof.c (check_counter): Corrected error message.
17707 2011-01-29 Jie Zhang <jie@codesourcery.com>
17709 * config/arm/arm.c (arm_legitimize_reload_address): New.
17710 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17711 arm_legitimize_reload_address.
17712 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17714 2011-01-28 Ian Lance Taylor <iant@google.com>
17716 * godump.c (go_define): Ignore macros whose definitions include
17717 two adjacent operands.
17719 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17722 * varasm.c (force_const_mem): Store copy of x in desc->constant
17723 instead of x itself.
17724 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17725 itself into REG_EQUAL note.
17727 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17729 * config/freebsd.opt (posix, rdynamic): New Driver options.
17731 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17733 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17734 -Bstatic/-Bdynamic.
17735 * configure: Regenerate.
17737 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17739 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17740 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17742 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17744 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17745 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17746 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17747 (s390_preferred_reload_class): Make static. Change return and
17748 'rclass' argument type to reg_class_t.
17750 2011-01-27 Jan Hubicka <jh@suse.cz>
17752 PR middle-end/46949
17753 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17754 (process_function_and_variable_attributes): Check defined weakrefs.
17756 2011-01-27 Martin Jambor <mjambor@suse.cz>
17758 PR tree-optimization/47228
17759 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17760 build_ref_for_offset.
17762 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17764 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17766 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17768 PR rtl-optimization/46856
17769 * postreload.c (reload_combine_recognize_const_pattern): Do not
17770 separate cc0 setter and user on cc0 targets.
17772 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17775 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17776 passed a VOID_TYPE expression, immediately emit an error and
17777 return error_mark_node.
17779 2011-01-26 Jeff Law <law@redhat.com>
17781 PR rtl-optimization/47464
17782 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17783 rather than may_trap_p as needed.
17785 2011-01-26 DJ Delorie <dj@redhat.com>
17787 PR rtl-optimization/46878
17788 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17789 setter/user dependency as well.
17791 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17793 PR rtl-optimization/44469
17794 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17795 after removing trivially dead basic blocks.
17797 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17799 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17800 * config/frv/frv.h (LINK_SPEC): Likewise.
17801 * config/i386/netware.h (LINK_SPEC): Likewise.
17802 * config/m68k/linux.h (ASM_SPEC): Likewise.
17803 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17804 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17805 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17806 * config/sparc/linux.h (ASM_SPEC): Likewise.
17807 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17808 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17810 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17812 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17813 * config/frv/frv.h (ASM_SPEC): Likewise.
17814 * config/m68k/linux.h (ASM_SPEC): Likewise.
17815 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17816 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17817 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17818 * config/sparc/linux.h (ASM_SPEC): Likewise.
17819 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17820 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17822 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17824 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17825 * config/frv/frv.h (LINK_SPEC): Likewise.
17826 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17828 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17830 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17831 * config/frv/frv.h (ASM_SPEC): Likewise.
17832 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17833 * config/m68k/linux.h (ASM_SPEC): Likewise.
17834 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17835 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17836 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17837 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17838 * config/sparc/linux.h (ASM_SPEC): Likewise.
17839 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17840 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17841 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17843 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17846 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17848 (vec_extract_evenodd_help): Ditto.
17849 (vec_extract_evenv4hi): Ditto.
17850 (vec_extract_oddv4hi): Ditto.
17851 (vec_interleave_lowv2si): Ditto.
17852 (vec_interleave_highv2si): Ditto.
17853 (vec_extract_evenv2si): Ditto.
17854 (vec_extract_oddv2si: Ditto.
17855 (vec_pack_trunc_v2si): Ditto.
17857 2011-01-22 Jan Hubicka <jh@suse.cz>
17860 * cgraph.h (cgraph_local_info): New field can_change_signature.
17861 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17862 signature can change.
17863 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17865 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17866 (cgraph_function_versioning): We can not change signature of functions
17867 that don't allow that.
17868 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17869 (lto_input_node): Likewise.
17870 * ipa-inline.c (compute_inline_parameters): Compute
17871 local.can_change_signature.
17872 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17873 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17874 functions that can not change signature.
17875 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17876 init_cumulative_args): Do not use local calling conventions
17877 for functions that can not change signature.
17879 2011-01-22 Jan Hubicka <jh@suse.cz>
17881 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17883 2011-01-26 Richard Guenther <rguenther@suse.de>
17885 PR tree-optimization/47190
17886 * cgraphunit.c (process_common_attributes): New function.
17887 (process_function_and_variable_attributes): Use it.
17889 2011-01-26 Richard Guenther <rguenther@suse.de>
17892 * cgraphbuild.c (record_eh_tables): Record reference to personality
17895 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17898 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17899 non-debug insns from moving up.
17901 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17904 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17905 t-dlldir{,-x} fragment for build and add it to tmake_file.
17906 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17907 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17908 * config/i386/t-dlldir: New file.
17909 (SHLIB_DLLDIR): Define.
17910 * config/i386/t-dlldir-x: New file.
17911 (SHLIB_DLLDIR): Define.
17912 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17913 (SHLIB_INSTALL): Use it.
17915 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17918 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17919 lower bound of the allowed Thumb-2 coprocessor load/store
17920 index range to -256. Add explaining comment.
17922 2011-01-25 Ian Lance Taylor <iant@google.com>
17924 * godump.c (go_define): Improve lexing of macro expansion to only
17925 accept expressions which match Go spec.
17927 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17930 * tree.c (handle_dll_attribute): Handle it.
17931 * doc/extend.texi (@item dllexport): Mention it.
17932 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17934 2011-01-25 Ian Lance Taylor <iant@google.com>
17936 PR tree-optimization/26854
17937 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17938 (decl_jump_unsafe): Move higher in file, with no other change.
17939 (bind): Set has_jump_unsafe_decl if appropriate.
17940 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17941 (check_earlier_gotos): Likewise.
17942 (c_check_switch_jump_warnings): Likewise.
17944 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17946 * doc/invoke.texi (Warning Options): Add missing hyphen.
17947 (-fprofile-dir): Minor grammatical fixes.
17948 (-fbranch-probabilities): Likewise.
17950 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17954 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17956 (no_real_insns_p, schedule_block, set_priorities): Drop special
17957 treatment of boundary debug insns.
17958 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17959 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17960 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17961 (BOUNDARY_DEBUG_INSN_P): Likewise.
17962 (SCHEDULE_DEBUG_INSN_P): Likewise.
17963 * sched-rgn.c (init_ready_list): Drop special treatment of
17964 boundary debug insns.
17965 * final.c (rest_of_clean-state): Clear notes' BB.
17967 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17969 * Makefile.in (LAMBDA_H): Removed.
17970 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17971 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17972 lambda-trans.o, and tree-loop-linear.o.
17973 (lto-symtab.o): Remove dependence on LAMBDA_H.
17974 (tree-loop-linear.o): Remove rule.
17975 (lambda-mat.o): Same.
17976 (lambda-trans.o): Same.
17977 (lambda-code.o): Same.
17978 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17979 (tree-vect-slp.o): Same.
17980 * hwint.h (gcd): Moved here.
17981 (least_common_multiple): Same.
17982 * lambda-code.c: Removed.
17983 * lambda-mat.c: Removed.
17984 * lambda-trans.c: Removed.
17985 * lambda.h: Removed.
17986 * tree-loop-linear.c: Removed.
17987 * lto-symtab.c: Do not include lambda.h.
17988 * omega.c (gcd): Removed.
17989 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17990 * tree-data-ref.c (print_lambda_vector): Moved here.
17991 (lambda_vector_copy): Same.
17992 (lambda_matrix_copy): Same.
17993 (lambda_matrix_id): Same.
17994 (lambda_vector_first_nz): Same.
17995 (lambda_matrix_row_add): Same.
17996 (lambda_matrix_row_exchange): Same.
17997 (lambda_vector_mult_const): Same.
17998 (lambda_vector_negate): Same.
17999 (lambda_matrix_row_negate): Same.
18000 (lambda_vector_equal): Same.
18001 (lambda_matrix_right_hermite): Same.
18002 * tree-data-ref.h: Do not include lambda.h.
18003 (lambda_vector): Moved here.
18004 (lambda_matrix): Same.
18005 (dependence_level): Same.
18006 (lambda_transform_legal_p): Removed declaration.
18007 (lambda_collect_parameters): Same.
18008 (lambda_compute_access_matrices): Same.
18009 (lambda_vector_gcd): Same.
18010 (lambda_vector_new): Same.
18011 (lambda_vector_clear): Same.
18012 (lambda_vector_lexico_pos): Same.
18013 (lambda_vector_zerop): Same.
18014 (lambda_matrix_new): Same.
18015 * tree-flow.h (least_common_multiple): Removed declaration.
18016 * tree-parloops.c (lambda_trans_matrix): Moved here.
18017 (LTM_MATRIX): Same.
18018 (LTM_ROWSIZE): Same.
18019 (LTM_COLSIZE): Same.
18020 (LTM_DENOMINATOR): Same.
18021 (lambda_trans_matrix_new): Same.
18022 (lambda_matrix_vector_mult): Same.
18023 (lambda_transform_legal_p): Same.
18024 * tree-pass.h (pass_linear_transform): Removed declaration.
18025 * tree-ssa-loop.c (tree_linear_transform): Removed.
18026 (gate_tree_linear_transform): Removed.
18027 (pass_linear_transform): Removed.
18028 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18029 flag_loop_interchange.
18031 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18033 PR tree-optimization/47265
18034 PR tree-optimization/47443
18035 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18036 if name still has some uses.
18038 2011-01-25 Martin Jambor <mjambor@suse.cz>
18040 PR tree-optimization/47382
18041 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18042 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18044 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18046 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18047 sjlj_except_unwind_info.
18049 2011-01-25 Richard Guenther <rguenther@suse.de>
18051 PR tree-optimization/47426
18052 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18053 visible functions results escape.
18055 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18058 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18059 (arm_get_frame_offsets): Use it.
18061 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18062 Jakub Jelinek <jakub@redhat.com>
18064 PR tree-optimization/47271
18065 * tree-if-conv.c (bb_postdominates_preds): New.
18066 (if_convertible_bb_p): Call bb_postdominates_preds.
18067 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18068 (predicate_scalar_phi): Call bb_postdominates_preds.
18070 2011-01-25 Nick Clifton <nickc@redhat.com>
18072 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18073 * config/rx/rx.c (rx_function_value): Likewise.
18074 (rx_promote_function_mode): Likewise.
18075 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18076 in order to make it legitimate.
18077 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18078 make sure that the first operand is the same as the result register.
18079 (addsi3_unspec): Delete.
18080 (subdi3): Do not accept immediate operands.
18081 (subdi3_internal): Likewise.
18083 2011-01-25 Jeff Law <law@redhat.com>
18085 PR rtl-optimization/37273
18086 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18087 handle them like argument loads from stack slots. Do not double
18088 count memory for memory constants and argument loads from stack slots.
18090 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18092 PR tree-optimization/47427
18093 PR tree-optimization/47428
18094 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18095 coalesce if the new root var would be TREE_READONLY.
18097 2011-01-25 Richard Guenther <rguenther@suse.de>
18099 PR middle-end/47414
18100 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18101 correct type for TBAA.
18103 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18105 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18106 (close_phi_written_to_memory): Call for_each_index with
18107 dr_indices_valid_in_loop.
18109 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18111 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18112 when it is initialized.
18114 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18116 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18117 call to graphite_find_data_references_in_stmt.
18118 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18119 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18120 call to graphite_find_data_references_in_stmt.
18121 (analyze_drs_in_stmts): Same.
18122 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18123 in which the scalar analysis of indices is performed.
18124 (create_data_ref): Same. Update call to dr_analyze_indices.
18125 (find_data_references_in_stmt): Update call to create_data_ref.
18126 (graphite_find_data_references_in_stmt): Same.
18127 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18129 (create_data_ref): Same.
18130 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18131 call to create_data_ref.
18133 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18135 * graphite-sese-to-poly.c (build_poly_scop): Move
18136 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18138 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18140 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18141 VAR_DECL, PARM_DECL, and RESULT_DECL.
18143 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18145 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18146 in a reduction PBB.
18147 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18148 that have already been marked as PBB_IS_REDUCTION.
18150 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18152 * graphite-scop-detection.c (same_close_phi_node): New.
18153 (remove_duplicate_close_phi): New.
18154 (make_close_phi_nodes_unique): New.
18155 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18157 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18159 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18160 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18161 of both data references to be the same.
18163 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18165 * graphite-dependences.c (build_lexicographical_constraint): Remove
18166 the gdim parameter.
18167 (build_lexicographical_constraint): Adjust call to
18168 ppl_powerset_is_empty.
18169 (dependence_polyhedron): Same.
18170 (graphite_legal_transform_dr): Same.
18171 (graphite_carried_dependence_level_k): Same.
18172 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18174 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18176 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18178 * graphite-sese-to-poly.c
18179 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18180 (close_phi_written_to_memory): New.
18181 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18184 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18186 * doc/install.texi: Update the expected version number of PPL to 0.11.
18187 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18188 #if PPL_VERSION_MINOR < 11.
18190 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18192 * graphite-dependences.c: Include graphite-cloog-util.h.
18193 (new_poly_ddr): Inlined into dependence_polyhedron.
18194 (free_poly_ddr): Moved close by new_poly_ddr.
18195 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18196 Early return NULL when ppl_powerset_is_empty returns true.
18197 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18198 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18199 (graphite_legal_transform_dr): Call new_poly_ddr.
18200 (graphite_carried_dependence_level_k): Same.
18201 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18202 (dot_transformed_deps_stmt_1): Removed.
18203 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18204 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18205 (dot_deps_1): Call dot_deps_2.
18206 * Makefile.in (graphite-dependences.o): Add missing dependence on
18207 graphite-cloog-util.h.
18209 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18211 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18212 (build_lexicographical_constraint): Same.
18213 (dependence_polyhedron_1): Same.
18214 (graphite_legal_transform_dr): Same.
18215 (graphite_carried_dependence_level_k): Same.
18216 * graphite-ppl.c (ppl_powerset_is_empty): New.
18217 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18218 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18222 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18223 the "a followed by b" relation and document it.
18225 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18227 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18228 iteration when the bag of constraints is empty.
18230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18232 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18234 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18236 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18237 nest and two loop depths as parameters.
18238 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18239 lst_perfect_nestify.
18241 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18243 * graphite-dependences.c (print_pddr): Call
18244 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18246 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18248 * graphite-ppl.c (debug_gmp_value): New.
18249 * graphite-ppl.h (debug_gmp_value): Declared.
18251 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18253 * doc/install.texi: Document availability of cloog-0.16.
18255 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18257 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18258 invalid postdominance info.
18260 2011-01-24 Jan Hubicka <jh@suse.cz>
18263 * doc/extend.texi (weak pragma): Drop claim that it must
18264 appear before definition.
18265 * varasm.c (merge_weak, declare_weak): Only sanity check
18266 that DECL is not output at a time it is declared weak.
18268 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18270 * machmode.def: Fixed comments.
18272 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18274 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18276 2011-01-24 Paul Koning <ni1d@arrl.net>
18278 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18281 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18284 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18285 (block_info): Add scanned and prev.
18286 (move_or_delete_vzeroupper_2): Return if the basic block
18287 has been scanned and the upper 128bit state is unchanged
18288 from the last scan.
18289 (move_or_delete_vzeroupper_1): Return true if the exit
18291 (move_or_delete_vzeroupper): Visit basic blocks using the
18292 work-list based algorithm based on vt_find_locations in
18295 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18297 2011-01-24 Nick Clifton <nickc@redhat.com>
18299 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18300 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18301 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18302 then define __v850e1__.
18303 * doc/invoke.texi: Document -mv850es.
18305 2011-01-24 Richard Henderson <rth@redhat.com>
18307 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18308 compound unordered comparisons.
18309 * config/rx/rx.c (rx_split_fp_compare): Remove.
18310 * config/rx/rx-protos.h: Update.
18311 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18312 (cbranchsf4): Don't call rx_split_fp_compare.
18313 (*cbranchsf4): Use rx_split_cbranch.
18314 (*cmpsf): Don't accept "i" constraint.
18315 (*conditional_branch): Only valid after reload.
18316 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18318 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18321 * config/rs6000/altivec.md (vector constant splitters): Add
18322 support for creating vector single precision constants if -mvsx is
18323 used and we would create the constant using Altivec primitives.
18325 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18326 Richard Sandiford <rdsandiford@googlemail.com>
18328 PR rtl-optimization/47166
18329 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18330 mechanism for PRE_MODIFY and POST_MODIFY.
18331 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18334 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18336 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18338 2011-01-22 Jan Hubicka <jh@suse.cz>
18341 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18343 2011-01-22 Jan Hubicka <jh@suse.cz>
18345 PR tree-optimization/43884
18347 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18348 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18350 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18352 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18353 * config/s390/s390.c (s390_register_move_cost,
18354 s390_memory_move_cost): New.
18355 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18357 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18359 PR middle-end/47401
18360 * except.c (sjlj_assign_call_site_values): Move setting the
18361 crtl->uses_eh_lsda flag to ...
18362 (sjlj_mark_call_sites): ... here.
18363 (sjlj_emit_function_enter): Support NULL dispatch label.
18364 (sjlj_build_landing_pads): In a function with no landing pads
18365 that still has must-not-throw regions, generate code to register
18366 a personality function with empty LSDA.
18368 2011-01-21 Richard Henderson <rth@redhat.com>
18370 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18372 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18374 * compare-elim.c: New file.
18375 * Makefile.in (OBJS-common): Add it.
18376 (compare-elim.o): New.
18377 * common.opt (fcompare-elim): New.
18378 * opts.c (default_options_table): Add OPT_fcompare_elim.
18379 * tree-pass.h (pass_compare_elim_after_reload): New.
18380 * passes.c (init_optimization_passes): Add it.
18381 * recog.h: Protect against re-inclusion.
18382 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18383 * doc/invoke.texi (-fcompare-elim): Document it.
18384 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18385 * doc/tm.texi: Rebuild.
18387 2011-01-22 Nick Clifton <nickc@redhat.com>
18389 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18390 rx_split_fp_compare.
18392 2011-01-22 Nick Clifton <nickc@redhat.com>
18394 * config/rx/rx.md (UNSPEC_CONST): New.
18395 (deallocate_and_return): Wrap the amount popped off the stack in
18396 an UNSPEC_CONST in order to stop it being rejected by
18397 -mmax-constant-size.
18398 (pop_and_return): Add a "(return)" rtx.
18399 (call): Drop the immediate operand.
18400 (call_internal): Likewise.
18401 (call_value): Likewise.
18402 (call_value_internal): Likewise.
18403 (sibcall_internal): Likewise.
18404 (sibcall_value_internal): Likewise.
18405 (sibcall): Likewise. Generate an explicit call using
18407 (sibcall_value): Likewise.
18408 (mov<>): FAIL if a constant operand is not legitimate.
18409 (addsi3_unpsec): New pattern.
18411 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18412 (ok_for_max_constant): New function.
18413 (gen_safe_add): New function.
18414 (rx_expand_prologue): Use gen_safe_add.
18415 (rx_expand_epilogue): Likewise.
18416 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18419 2011-01-21 Jeff Law <law@redhat.com>
18421 PR tree-optimization/47053
18422 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18423 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18424 statements are deleted.
18425 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18426 is nonempty, then purge dead edges and cleanup the CFG.
18428 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18431 Temporarily revert:
18432 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18434 * tree-dfa.c (create_var_ann): Mark variable as used.
18436 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18438 PR middle-end/45566
18439 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18440 notes from other section in hot/cold partitioning even if
18441 last_action is -3. Increment call_site_base.
18443 PR rtl-optimization/47366
18444 * fwprop.c (forward_propagate_into): Return bool. If
18445 any changes are made, -fnon-call-exceptions is used and
18446 REG_EH_REGION note is present, call purge_dead_edges
18447 and return true if it purged anything.
18448 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18449 any EH edges were purged.
18451 2011-01-21 Jeff Law <law@redhat.com>
18453 PR rtl-optimization/41619
18454 * caller-save.c (setup_save_areas): Break out code to determine
18455 which hard regs are live across calls by examining the reload chains
18456 so that it is always used.
18457 Eliminate code which checked REG_N_CALLS_CROSSED.
18459 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18461 PR tree-optimization/47355
18462 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18463 NOP has non-debug uses beyond PHIs in new_bb.
18465 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18468 * cfgexpand.c (account_used_vars_for_block): Only account vars
18469 that are annotated as used.
18470 (estimated_stack_frame_size): Don't set TREE_USED.
18471 * tree-dfa.c (create_var_ann): Mark variable as used.
18473 2011-01-21 Richard Guenther <rguenther@suse.de>
18475 PR middle-end/47395
18476 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18478 2011-01-21 Richard Guenther <rguenther@suse.de>
18480 PR tree-optimization/47365
18481 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18482 (vn_reference_lookup_pieces): Adjust.
18483 (vn_reference_lookup): Likewise.
18484 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18485 (vn_reference_lookup_3): Only look through kills if in
18486 VN_WALKREWRITE mode.
18487 (vn_reference_lookup_pieces): Adjust.
18488 (vn_reference_lookup): Likewise.
18489 (visit_reference_op_load): Likewise.
18490 (visit_reference_op_store): Likewise.
18491 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18492 (compute_avail): Likewise.
18493 (eliminate): Likewise.
18495 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18497 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18498 DECL_IGNORED_P non-reg vars if they are used.
18500 PR tree-optimization/47391
18501 * varpool.c (const_value_known_p): Return false if
18504 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18507 * config/i386/i386.c (ix86_local_alignment): Handle
18508 case for va_list_type_node is nil.
18509 (ix86_canonical_va_list_type): Likewise.
18511 2011-01-21 Alan Modra <amodra@gmail.com>
18513 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18514 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18516 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18518 * config/arm/arm.md (define_attr type): Rename f_load
18519 and f_store to f_fpa_load and f_fpa_store. Update.
18520 (write_conflict): Deal with rename fallout.
18521 (*push_fp_multi): Likewise.
18522 * config/arm/fpa.md (f_load): Use f_fpa_load.
18523 (f_store): Use f_fpa_store.
18524 (*movsf_fpa): Likewise.
18525 (*movdf_fpa): Likewise.
18526 (*movxf_fpa): Likewise.
18527 (*thumb2_movsf_fpa): Likewise.
18528 (*thumb2_movdf_fpa): Likewise.
18529 (*thumb2_movxf_fpa): Likewise.
18530 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18531 f_loadd and f_stored.
18532 (*thumb2_movdi_vfp): Likewise.
18533 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18534 (*thumb2_movsi_vfp): Likewise.
18535 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18536 Use f_loads instead of f_load.
18537 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18539 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18541 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18542 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18543 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18544 (xtensa_mode_dependent_address_p): New function.
18545 (constantpool_address_p): Make static. Change return type to bool.
18546 Change argument type to const_rtx. Use CONST_INT_P predicate.
18548 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18551 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18553 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18556 * cfgexpand.c (expand_debug_expr): Instead of generating
18557 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18560 2011-01-20 Richard Guenther <rguenther@suse.de>
18562 PR middle-end/47370
18563 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18564 the pointer operand of MEM_REFs.
18566 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18568 PR tree-optimization/46130
18569 * ipa-split.c (consider_split): If return_bb contains non-virtual
18570 PHIs other than for retval or if split_function would not adjust it,
18573 2011-01-20 Richard Guenther <rguenther@suse.de>
18575 PR tree-optimization/47167
18576 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18577 Revert previous change, only avoid enumeral type changes.
18579 2011-01-19 Mike Stump <mikestump@comcast.net>
18581 * doc/tm.texi.in (BRANCH_COST): Englishify.
18582 * doc/tm.texi (BRANCH_COST): Likewise.
18584 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18587 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18588 (gen_scheduled_generic_parms_dies): New functions.
18589 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18590 generation for the end of CU compilation.
18591 (dwarf2out_finish): Generate template parameters DIEs here.
18593 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18596 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18597 debug bind stmt on merge edges.
18599 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18603 * function.c (instantiate_expr): Instantiate incoming rtl of
18604 implicit arguments, and recurse on VALUE_EXPRs.
18605 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18606 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18608 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18610 * c-parser.c (c_parser_for_statement): Initialize
18611 collection_expression.
18613 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18615 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18617 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18619 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18620 (LINK_SHLIB_SPEC): Don't use %(link_path).
18621 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18623 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18625 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18626 (NO_SHARED_LIB_SUPPORT): Remove.
18627 (LINK_SHLIB_SPEC): Remove one conditional definition.
18629 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18631 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18633 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18634 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18635 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18636 %{call_shared} and conditionals on these options not being passed.
18637 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18640 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18642 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18645 * ipa-split.c: Spelling fixes.
18647 2011-01-19 Richard Henderson <rth@redhat.com>
18649 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18650 (*mulsi3): Likewise.
18652 * longlong.h [__mn10300__] (count_leading_zeros): New.
18653 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18654 [__mn10300__] (add_ssaaaa, subddmmss): New.
18655 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18656 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18658 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18660 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18662 2011-01-19 Richard Henderson <rth@redhat.com>
18664 * config/mn10300/mn10300.md (addsi3_flags): New.
18665 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18666 (subsi3_flags, subc_internal, subdi3): New.
18667 (subdi3_internal, *subdi3_degenerate): New.
18668 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18670 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18671 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18672 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18673 * config/mn10300/mn10300-protos.h: Update.
18674 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18675 (return_ret): Likewise. Rename from return_internal_regs.
18676 (return_internal): Remove.
18678 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18679 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18680 (mn10300_legitimate_constant_p): Likewise.
18681 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18682 (mn10300_frame_size): New.
18683 (mn10300_expand_prologue): Use it.
18684 (mn10300_expand_epilogue): Likewise.
18685 (mn10300_initial_offset): Likewise.
18686 * config/mn10300/mn10300-protos.h: Update.
18687 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18688 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18689 (prologue, epilogue, return_internal): Tidy output code.
18690 (mn10300_store_multiple_operation, return): Likewise.
18691 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18692 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18693 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18694 (load_pic, am33_load_pic): New.
18695 (mn10300_load_pic0, mn10300_load_pic1): New.
18697 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18698 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18699 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18700 (cc_flags_for_mode, cc_flags_for_code): New.
18701 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18702 overflow flag is not valid. Validate that the flags we need
18703 for the comparison are valid.
18704 (mn10300_output_cmp): Remove.
18705 (mn10300_output_add): New.
18706 (mn10300_select_cc_mode): Use cc_flags_for_code.
18707 (mn10300_split_cbranch): New.
18708 (mn10300_match_ccmode): New.
18709 (mn10300_split_and_operand_count): New.
18710 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18712 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18713 (addsi3): ... here. Use mn10300_output_add.
18714 (*addsi3_flags): New.
18715 (*am33_subsi3, *mn10300_subsi3): Merge...
18716 (subsi3): ... here. Use attribute isa.
18717 (*subsi3_flags): New.
18718 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18720 (*am33_andsi3, *mn10300_andsi3): Merge...
18721 (andsi3): ... here.
18722 (*andsi3_flags): New.
18723 (andsi3 splitters): New.
18724 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18725 (iorsi3): ... here.
18726 (*iorsi3_flags): New.
18727 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18728 (xorsi3): ... here.
18729 (*xorsi3_flags): New.
18730 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18731 (one_cmplsi2): ... here.
18732 (*one_cmplsi2_flags): New.
18733 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18734 instead of "dax" in constraints. Use mn10300_split_cbranch.
18735 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18736 use matching constraints to eliminate a self-comparison.
18737 (*integer_conditional_branch): Rename from integer_conditional_branch.
18738 Use int_mode_flags to match CC_REG.
18739 (*cbranchsi4_btst, *btstsi): New.
18740 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18741 mn10300_split_cbranch.
18742 (*am33_cmpsf): Rename from am33_cmpsf.
18743 (*float_conditional_branch): Rename from float_conditional_branch.
18744 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18745 (zero_extendqisi2): ... here.
18746 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18747 (zero_extendhisi2): ... here.
18748 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18749 (extendqisi2): ... here.
18750 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18751 (extendhisi2): ... here.
18752 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18753 (ashlsi3): ... here.
18754 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18755 (lshrsi3): ... here.
18756 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18757 (ashrsi3): ... here.
18758 (consecutive add peephole): Remove.
18759 * config/mn10300/predicates.md (label_ref_operand): New.
18760 (int_mode_flags): New.
18761 (CCZN_comparison_operator): New.
18763 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18764 (throughput_42_latency_43): New reservation.
18765 (mulsidi3, umulsidi3): New expanders.
18766 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18767 the MDR register to allocation; separately allocate the low and
18768 high parts of the DImode result.
18769 (umulsidi3_internal): Similarly.
18770 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18771 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18772 (udivsi3, umodsi3): Remove.
18773 (udivmodsi4, divmodsi4): New expanders.
18774 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18775 (*divmodsi4): Simiarly.
18776 (ext_internal): New.
18778 * config/mn10300/constraints.md ("z"): New constraint.
18779 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18780 (FIXED_REGISTERS): Don't fix MDR.
18781 (CALL_USED_REGSITERS): Reformat nicely.
18782 (REG_ALLOC_ORDER): Add MDR.
18783 (enum regclass): Add MDR_REGS.
18784 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18785 (IRA_COVER_CLASSES): Add MDR_REGS.
18786 (REGNO_REG_CLASS): Handle MDR_REG.
18787 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18788 (mn10300_register_move_cost): Likewise.
18789 * config/mn10300/mn10300.md (MDR_REG): New.
18790 (*movsi_internal): Handle moves to/from MDR_REGS.
18792 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18794 (mn10300_secondary_reload): Tidy combination reload classes.
18795 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18796 addresses for AM33. Allow symbolic offsets for reg+imm.
18797 (mn10300_regno_in_class_p): New.
18798 (mn10300_legitimize_reload_address): New.
18799 * config/mn10300/mn10300.h (enum reg_class): Remove
18800 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18801 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18802 SP_OR_GENERAL_REGS.
18803 (REG_CLASS_NAMES): Update to match.
18804 (REG_CLASS_CONTENTS): Likewise.
18805 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18806 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18807 (REGNO_IN_RANGE_P): Remove.
18808 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18809 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18810 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18811 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18812 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18813 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18814 (REGNO_GENERAL_P): New.
18815 (HAVE_POST_MODIFY_DISP): New.
18816 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18817 (LEGITIMIZE_RELOAD_ADDRESS): New.
18818 * config/mn10300/mn10300-protos.h: Update.
18820 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18821 DATA_REGS for AM33 stack-pointer destination.
18822 (mn10300_preferred_output_reload_class): Likewise.
18823 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18824 into a form appropriate for ...
18825 (TARGET_SECONDARY_RELOAD): New.
18826 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18827 * config/mn10300/mn10300-protos.h: Update.
18828 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18829 reload_insi; use the "A" constraint for the scratch; handle AM33
18830 moves of sp to non-address registers.
18832 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18833 (*movqi_internal): ... here.
18834 (*am33_movhi, *mn10300_movhi): Merge into...
18835 (*movhi_internal): ... here.
18836 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18837 as the source/destination of moves from/to SP.
18838 (movsf): Only allow for AM33-2.
18839 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18840 any integer constant constraint. Only allow for AM33-2. Tidy
18841 all of the alternative outputs.
18842 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18843 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18845 (udivsi3, umodsi3): New patterns for MN103 only.
18847 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18849 * doc/tm.texi.in: Spell out that a lack of register class unions
18851 * doc/tm.texi: Regenerate.
18853 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18855 PR rtl-optimization/47337
18856 * dce.c (check_argument_store): New function.
18857 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18859 PR tree-optimization/47290
18860 * tree-eh.c (infinite_empty_loop_p): New function.
18861 (cleanup_empty_eh): Use it.
18863 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18866 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18867 (a64_expand_widen_sum): Ditto.
18868 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18869 (vec_extract_evenodd_help): Ditto.
18870 (vec_extract_evenv4hi): Ditto.
18871 (vec_extract_oddv4hi): Ditto.
18872 (vec_extract_evenv2si): Ditto.
18873 (vec_extract_oddv2si): Ditto.
18874 (vec_extract_evenv2sf): Ditto.
18875 (vec_extract_oddv2sf): Ditto.
18876 (vec_pack_trunc_v4hi: Ditto.
18877 (vec_pack_trunc_v2si): Ditto.
18878 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18879 (vec_interleave_highv8qi): Ditto.
18881 (vec_extract_oddv8qi): Ditto.
18882 (vec_interleave_lowv4hi): Ditto.
18883 (vec_interleave_highv4hi): Ditto.
18884 (vec_interleave_lowv2si): Ditto.
18885 (vec_interleave_highv2si): Ditto.
18887 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18889 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18890 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18891 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18892 (pa_c_mode_for_suffix): New.
18893 (TARGET_EXPAND_BUILTIN): Define.
18894 (TARGET_C_MODE_FOR_SUFFIX): Define.
18895 (pa_builtins): Define.
18896 (pa_init_builtins): Register __float128 type and init new support
18898 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18899 * config/pa/quadlib.c (_U_Qfcopysign): New.
18901 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18903 PR middle-end/46894
18904 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18905 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18908 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18910 PR tree-optimization/47179
18911 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18912 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18914 2011-01-18 Richard Guenther <rguenther@suse.de>
18916 PR rtl-optimization/47216
18917 * emit-rtl.c: Include tree-flow.h.
18918 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18919 of replicating it with different semantics.
18920 * Makefile.in (emit-rtl.o): Adjust.
18922 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18924 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18925 (cortex_a9_dp): Handle neon types correctly.
18927 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18929 PR rtl-optimization/47299
18930 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18931 subtarget. Use normal multiplication if both operands are constants.
18932 * expmed.c (expand_widening_mult): Don't try to optimize constant
18933 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18936 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18938 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18939 spacing after 'e.g.', typos, comma, hyphenation.
18941 2011-01-17 Richard Henderson <rth@redhat.com>
18943 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18944 (rx_restricted_mem_operand): New.
18945 (rx_shift_operand): Use register_operand.
18946 (rx_source_operand, rx_compare_operand): Likewise.
18947 * config/rx/rx.md (addsi3_flags): New expander.
18948 (adddi3): Rewrite as expander.
18949 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18950 (subsi3_flags): New expander.
18951 (subdi3): Rewrite as expander.
18952 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18954 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18955 (rx_init_builtins): Remove sat builtin.
18956 (rx_expand_builtin): Likewise.
18957 * config/rx/rx.md (ssaddsi3): New.
18958 (*sat): Rename from sat. Represent the CC_REG input.
18960 * config/rx/predicates.md (rshift_operator): New.
18961 * config/rx/rx.c (rx_expand_insv): Remove.
18962 * config/rx/rx-protos.h: Update.
18963 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18964 operand to the canonical position.
18965 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18966 (*bitclr, *bitclr_in_memory): Similarly.
18967 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18968 (insv): Retain the zero_extract in the expansion.
18970 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18971 (bswaphi2, bitinvert, revw): Likewise.
18973 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18974 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18975 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18976 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18977 (bitset, bitset_in_memory): Likewise.
18978 (bitinvert, bitinvert_in_memory): Likewise.
18979 (bitclr, bitclr_in_memory): Likewise.
18980 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18981 (rx_strend, rx_cmpstrn): Likewise.
18982 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18983 (bitop peep2 patterns): Remove.
18985 * config/rx/rx.c (rx_match_ccmode): New.
18986 * config/rx/rx-protos.h: Update.
18987 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18988 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18989 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18990 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18991 (fix_truncsfsi2, floatsisf2): Likewise.
18992 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18993 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18994 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18995 (*subsi3_flags, *xorsi3_flags): New.
18997 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18999 * config/rx/rx.c (rx_print_operand): Remove workaround for
19000 unsplit comparison operations.
19002 * config/rx/rx.md (movsicc): Split after reload.
19003 (*movsicc): Merge *movsieq and *movsine via match_operator.
19004 (*stcc): New pattern.
19006 * config/rx/rx.c (rx_float_compare_mode): Remove.
19007 * config/rx/rx.h (rx_float_compare_mode): Remove.
19008 * config/rx/rx.md (cstoresi4): Split after reload.
19009 (*sccc): New pattern.
19011 * config/rx/predicates.md (label_ref_operand): New.
19012 (rx_z_comparison_operator): New.
19013 (rx_zs_comparison_operator): New.
19014 (rx_fp_comparison_operator): New.
19015 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19016 Validate that the flags are set properly for the comparison.
19017 (rx_gen_cond_branch_template): Remove.
19018 (rx_cc_modes_compatible): Remove.
19019 (mode_from_flags): New.
19020 (flags_from_code): Rename from flags_needed_for_conditional.
19021 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19022 (rx_select_cc_mode): Likewise.
19023 (rx_split_fp_compare): New.
19024 (rx_split_cbranch): New.
19025 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19026 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19027 (*cbranchsf4): Similarly.
19028 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19029 match_operator and rx_split_cbranch.
19030 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19031 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19032 (*cmpsi): Rename from cmpsi.
19033 (*tstsi): Rename from tstsi.
19034 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19035 (*conditional_branch): Rename from conditional_branch.
19036 (*reveresed_conditional_branch): Remove.
19037 (b<code>): Remove expander.
19038 * config/rx/rx-protos.h: Update.
19040 * config/rx/rx.c (rx_compare_redundant): Remove.
19041 * config/rx/rx.md (cmpsi): Don't use it.
19042 * config/rx/rx-protos.h: Update.
19044 * config/rx/rx-modes.def (CC_F): New mode.
19045 * config/rx/rx.c (rx_select_cc_mode): New.
19046 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19047 * config/rx/rx-protos.h: Update.
19049 2011-01-17 Richard Henderson <rth@redhat.com>
19051 * except.c (dump_eh_tree): Fix stray ; after for statement.
19053 2011-01-17 Richard Guenther <rguenther@suse.de>
19055 PR tree-optimization/47313
19056 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19057 handling before copying the body. Properly deal with
19058 by-reference result in SSA form.
19060 2011-01-17 Ian Lance Taylor <iant@google.com>
19063 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19064 (struct_value_alias_set): Don't define.
19065 (sparc_option_override): Don't set sparc_sr_alias_set and
19066 struct_value_alias_set.
19067 (save_or_restore_regs): Use gen_frame_mem rather than calling
19069 (sparc_struct_value_rtx): Likewise.
19071 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19074 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19075 (_mm_maskstore_pd): Likewise.
19076 (_mm_maskload_ps): Likewise.
19077 (_mm_maskstore_ps): Likewise.
19078 (_mm256_maskload_pd): Change mask to __m256i.
19079 (_mm256_maskstore_pd): Likewise.
19080 (_mm256_maskload_ps): Likewise.
19081 (_mm256_maskstore_ps): Likewise.
19083 * config/i386/i386-builtin-types.def: Updated.
19084 (ix86_expand_special_args_builtin): Likewise.
19086 * config/i386/i386.c (bdesc_special_args): Update
19087 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19088 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19089 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19090 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19092 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19093 Use <avxpermvecmode> on mask register.
19094 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19096 2011-01-17 Olivier Hainque <hainque@adacore.com>
19097 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19098 Eric Botcazou <ebotcazou@adacore.com>
19101 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19102 if <= USHRT_MAX in 32-bit mode.
19104 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19106 * doc/install.texi (Configuration, Specific): Wrap long
19107 lines in examples. Allow line wrapping in long options
19108 and URLs where beneficial for PDF output.
19110 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19112 * config/mips/mips.c (mips_classify_symbol): Don't return
19113 SYMBOL_PC_RELATIVE for nonlocal labels.
19115 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19117 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19119 2011-01-15 Jan Hubicka <jh@suse.cz>
19121 PR tree-optimization/47276
19122 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19123 declarations as needed.
19125 2011-01-15 Martin Jambor <mjambor@suse.cz>
19127 * common.opt (fdevirtualize): New flag.
19128 * doc/invoke.texi (Option Summary): Document it.
19129 * opts.c (default_options_table): Add devirtualize flag.
19130 * ipa-prop.c (detect_type_change): Return immediately if
19131 devirtualize flag is not set.
19132 (detect_type_change_ssa): Likewise.
19133 (compute_known_type_jump_func): Likewise.
19134 (ipa_analyze_virtual_call_uses): Likewise.
19136 2011-01-14 Martin Jambor <mjambor@suse.cz>
19138 PR tree-optimization/45934
19139 PR tree-optimization/46302
19140 * ipa-prop.c (type_change_info): New type.
19141 (stmt_may_be_vtbl_ptr_store): New function.
19142 (check_stmt_for_type_change): Likewise.
19143 (detect_type_change): Likewise.
19144 (detect_type_change_ssa): Likewise.
19145 (compute_complex_assign_jump_func): Check for dynamic type change.
19146 (compute_complex_ancestor_jump_func): Likewise.
19147 (compute_known_type_jump_func): Likewise.
19148 (compute_scalar_jump_functions): Likewise.
19149 (ipa_analyze_virtual_call_uses): Likewise.
19150 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19152 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19154 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19155 * config/i386/i386.opt (msse5): New Alias.
19157 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19159 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19160 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19161 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19162 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19164 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19166 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19168 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19169 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19170 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19171 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19173 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19175 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19177 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19179 2011-01-14 Mike Stump <mikestump@comcast.net>
19181 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19182 * config/fr30/fr30.md: Likweise
19183 (movsi_push): Likewise.
19184 (movsi_pop): Likewise.
19185 (enter_func): Likewise.
19186 * config/moxie/moxie.md (movsi_push): Likewise.
19187 (movsi_pop): Likewise.
19189 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19191 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19192 %{no_archive} %{exact_version}.
19193 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19194 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19195 %{no_archive} %{exact_version}.
19196 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19197 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19198 * config/mips/vxworks.h: Likewise.
19200 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19202 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19204 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19206 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19207 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19209 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19211 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19214 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19216 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19218 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19219 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19221 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19222 Don't handle -shlib.
19224 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19226 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19227 (CC1_SPEC): Don't handle -profile.
19229 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19231 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19232 * config/mips/mips.h (CC1_SPEC): Likewise.
19234 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19236 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19237 * config/mips/mips.h (CC1_SPEC): Likewise.
19239 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19241 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19242 * config/m32r/linux.h (LINK_SPEC): Likewise.
19243 * config/mips/linux.h (LINK_SPEC): Likewise.
19244 * config/mips/linux64.h (LINK_SPEC): Likewise.
19245 * config/sparc/linux.h (LINK_SPEC): Likewise.
19246 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19247 LINK_SPEC): Likewise.
19248 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19250 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19252 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19254 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19256 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19258 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19259 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19261 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19263 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19265 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19267 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19268 supports -Bstatic/-Bdynamic.
19269 * configure: Regenerate.
19271 2011-01-14 Jan Hubicka <jh@suse.cz>
19272 Jack Howarth <howarth@bromo.med.uc.edu>
19275 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19276 when checking debug_info_level. Test write_symbols instead of
19277 debug_hooks->var_location when setting flag_var_tracking_uninit.
19279 2011-01-14 Richard Guenther <rguenther@suse.de>
19281 PR tree-optimization/47179
19282 * target.def (ref_may_alias_errno): New target hook.
19283 * targhooks.h (default_ref_may_alias_errno): Declare.
19284 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19285 (default_ref_may_alias_errno): New function.
19286 * target.h (struct ao_ref_s): Declare.
19287 * tree-ssa-alias.c: Include target.h.
19288 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19289 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19290 (targhooks.o): Likewise.
19291 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19292 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19294 2011-01-14 Richard Guenther <rguenther@suse.de>
19296 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19298 2011-01-14 Richard Guenther <rguenther@suse.de>
19300 PR tree-optimization/47280
19301 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19302 return CFG changes.
19303 (tree_ssa_forward_propagate_single_use_vars): Deal with
19304 CFG changes from associate_plusminus.
19306 2011-01-14 Richard Guenther <rguenther@suse.de>
19308 PR middle-end/47281
19310 2011-01-11 Richard Guenther <rguenther@suse.de>
19312 PR tree-optimization/46076
19313 * tree-ssa.c (useless_type_conversion_p): Conversions from
19314 unprototyped to empty argument list function types are useless.
19316 2011-01-14 Richard Guenther <rguenther@suse.de>
19318 PR tree-optimization/47286
19319 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19321 2011-01-14 Martin Jambor <mjambor@suse.cz>
19323 PR middle-end/46823
19324 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19326 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19328 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19329 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19330 * config/xtensa/xtensa.c (xtensa_libcall_value,
19331 xtensa_function_value_regno_p): New functions.
19332 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19334 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19337 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19339 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19340 New function prototype.
19341 * config/i386/winnt.c (i386_pe_assemble_visibility):
19342 Warn only if attribute was specified by user.
19344 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19347 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19349 (floatunsdidf2_fcfidu): Ditto.
19351 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19353 * config/s390/s390.c (print_operand_address): Replace 'error' with
19354 'output_operand_lossage'.
19355 (print_operand): Likewise.
19357 2011-01-13 Jeff Law <law@redhat.com>
19359 PR rtl-optimization/39077
19360 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19361 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19362 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19363 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19364 * gcse.c (prune_insertions_deletions): New function.
19365 (compute_pre_data): Use it.
19367 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19370 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19372 (prune_unused_types_mark): Use it.
19374 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19376 PR rtl-optimization/45352
19377 * sel-sched.c: Update copyright years.
19378 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19379 in the advancing loop when we have issued issue_rate insns.
19381 2011-01-12 Richard Henderson <rth@redhat.com>
19383 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19384 (TARGET_MD_ASM_CLOBBERS): New.
19386 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19387 (TARGET_DELEGITIMIZE_ADDRESS): New.
19389 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19390 (clzsi2, *bsch): New patterns.
19392 * config/mn10300/mn10300.md (INT): New mode iterator.
19393 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19395 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19396 flag_split_wide_types.
19398 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19399 (mn10300_trampoline_init): Rewrite without a template, an immediate
19400 load and a direct branch.
19401 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19403 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19405 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19406 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19407 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19408 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19410 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19413 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19416 2011-01-12 Jan Hubicka <jh@suse.cz>
19419 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19420 (PLUGIN_COND_CLOSE): New macro.
19421 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19423 2011-01-12 Richard Guenther <rguenther@suse.de>
19426 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19427 register variables in a MEM_REF.
19429 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19431 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19432 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19433 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19434 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19435 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19436 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19437 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19438 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19439 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19440 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19441 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19442 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19443 * config/gnu-user.h: New. Copied from linux.h.
19444 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19445 GNU_USER_TARGET_STARTFILE_SPEC.
19446 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19447 GNU_USER_TARGET_ENDFILE_SPEC.
19448 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19449 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19450 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19451 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19452 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19453 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19454 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19455 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19456 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19457 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19458 * config/arm/linux-eabi.h (CC1_SPEC): Use
19459 GNU_USER_TARGET_CC1_SPEC.
19460 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19461 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19462 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19463 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19464 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19465 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19466 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19467 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19469 2011-01-12 Richard Guenther <rguenther@suse.de>
19472 * doc/invoke.texi (ffast-math): Document it is turned on
19475 2011-01-12 Jan Hubicka <jh@suse.cz>
19477 PR tree-optimization/47233
19478 * opts.c (common_handle_option): Disable ipa-reference with profile
19481 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19483 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19486 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19488 * c-parser.c (c_lex_one_token): Updated and reindented some
19489 comments. No changes in code.
19491 2011-01-11 Ian Lance Taylor <iant@google.com>
19493 * godump.c (go_output_var): Don't output the variable if there is
19494 already a type with the same name.
19496 2011-01-11 Ian Lance Taylor <iant@google.com>
19498 * godump.c (go_format_type): Don't generate float80.
19500 2011-01-11 Richard Henderson <rth@redhat.com>
19502 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19503 declaration. Rewrite for both speed and size.
19504 (mn10300_address_cost_1): Remove.
19505 (mn10300_register_move_cost): New.
19506 (mn10300_memory_move_cost): New.
19507 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19508 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19509 extensions, shifts, BSWAP, CLZ.
19510 (mn10300_wide_const_load_uses_clr): Remove.
19511 (TARGET_REGISTER_MOVE_COST): New.
19512 (TARGET_MEMORY_MOVE_COST): New.
19513 * config/mn10300/mn10300-protos.h: Update.
19514 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19516 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19517 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19518 * config/mn10300/mn10300-protos.h: Update.
19519 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19520 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19521 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19522 (*test_int_bitfield, *test_byte_bitfield): Remove.
19523 (*bit_test, *subreg_bit_test): Remove.
19524 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19526 * config/mn10300/constraints.md ("c"): Rename from "A".
19527 ("A", "D"): New constraint letters.
19528 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19529 (fmssf4, fnmasf4, fnmssf4): Likewise.
19531 * config/mn10300/mn10300.md (isa): New attribute.
19532 (enabled): New attribute.
19534 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19535 (abssf2, negsf2): Define only for hardware fp.
19536 (sqrtsf2): Reformat.
19537 (addsf3, subsf3, mulsf3): Merge expander and insn.
19539 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19540 (DEBUGGER_AUTO_OFFSET): Remove.
19541 (DEBUGGER_ARG_OFFSET): Remove.
19543 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19544 Emit register stores with the same offsets as the hardware.
19545 (mn10300_store_multiple_operation): Don't check that the register
19546 save offsets are monotonic.
19547 * config/mn10300/mn10300-protos.h: Update.
19549 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19551 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19552 in terms of the value on the stack, not the MDR register.
19554 2011-01-11 Jan Hubicka <jh@suse.cz>
19558 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19559 (symbol_alias_set_destroy, symbol_alias_set_contains,
19560 propagate_aliases_backward): Declare.
19561 * lto-streamer-out.c (struct sets): New sturcture.
19562 (trivally_defined_alias): New function.
19563 (output_alias_pair_p): Rewrite.
19564 (output_unreferenced_globals): Fix output of alias pairs.
19565 (produce_symtab): Likewise.
19566 * ipa.c (function_and_variable_visibility): Set weak alias destination
19568 * varasm.c (symbol_alias_set_t): Remove.
19569 (symbol_alias_set_destroy): Export.
19570 (propagate_aliases_forward, propagate_aliases_backward): New functions
19572 (compute_visible_aliases): ... this one; remove.
19573 (trivially_visible_alias): New
19574 (trivially_defined_alias): New.
19575 (remove_unreachable_alias_pairs): Rewrite.
19576 (finish_aliases_1): Reorganize code checking if alias is defined.
19577 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19580 2011-01-11 Richard Guenther <rguenther@suse.de>
19582 PR tree-optimization/46076
19583 * tree-ssa.c (useless_type_conversion_p): Conversions from
19584 unprototyped to empty argument list function types are useless.
19586 2011-01-11 Richard Guenther <rguenther@suse.de>
19588 PR middle-end/45235
19589 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19590 volatile MEMs as MEM_READONLY_P.
19592 2011-01-11 Richard Guenther <rguenther@suse.de>
19594 PR tree-optimization/47239
19595 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19597 2011-01-11 Jeff Law <law@redhat.com>
19599 PR tree-optimization/47086
19600 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19601 IVs from statements that might throw.
19603 2011-01-10 Jan Hubicka <jh@suse.cz>
19606 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19608 2011-01-10 Jan Hubicka <jh@suse.cz>
19611 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19612 when correcting profile.
19614 2011-01-10 Jan Hubicka <jh@suse.cz>
19617 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19618 DECL_FINI_PRIORITY.
19619 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19620 Restore DECL_FINI_PRIORITY.
19622 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19624 * doc/gimple.texi: Fix quoting of multi-word return values in
19625 @deftypefn statements. Ensure presence of return value. Wrap
19626 overlong @deftypefn lines.
19627 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19628 descriptions of removed functions.
19629 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19630 of multi-word return value in @deftypefn statement.
19632 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19634 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19635 (Conditional Expressions, Logical Operators)
19636 (Statement and operand traversals): Do not indent smallexample
19637 code. Fix duplicate function argument in example.
19639 2011-01-10 Jeff Law <law@redhat.com>
19641 PR tree-optimization/47141
19642 * ipa-split.c (split_function): Handle case where we are
19643 returning a value and the return block has a virtual operand phi.
19645 2011-01-10 Jan Hubicka <jh@suse.cz>
19647 PR tree-optimization/47234
19648 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19649 (pass_feedback_split_functions): Declare.
19650 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19652 * ipa-split.c (gate_split_functions): Update comments; disable
19653 split-functions for profile_arc_flag and branch_probabilities.
19654 (gate_feedback_split_functions): New function.
19655 (execute_feedback_split_functions): New function.
19656 (pass_feedback_split_functions): New global var.
19658 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19661 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19662 calling gimple_call_set_cannot_inline.
19664 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19666 * config/darwin-sections.def: Remove unused section.
19668 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19671 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19673 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19676 * c-parser.c (c_parser_declaration_or_fndef): Improved
19679 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19681 * config/i386/winnt.c (i386_pe_start_function): Make sure
19682 to switch back to function's section.
19684 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19688 * plugin.c: Move include of dlfcn.h from here...
19689 * system.h: ... to here.
19691 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19693 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19695 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19696 two extra empty pages in PDF output.
19698 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19701 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19702 for error recovery purposes behave as if it was not specified so
19703 that the default type is usd.
19705 2011-01-07 Jan Hubicka <jh@suse.cz>
19707 PR tree-optmization/46469
19708 * ipa.c (function_and_variable_visibility): Clear needed flags on
19709 nodes with external decls; handle weakrefs merging correctly.
19711 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19713 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19716 2011-01-07 Jan Hubicka <jh@suse.cz>
19718 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19719 and no longer claim that gold is required for linker plugin.
19720 * configure: Regenerate.
19721 * gcc.c (PLUGIN_COND): New macro.
19722 (LINK_COMMAND_SPEC): Use it.
19723 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19724 * config.in (HAVE_LTO_PLUGIN): New.
19725 * configure.ac (--with-lto-plugin): New parameter; autodetect
19728 2011-01-07 Jan Hubicka <jh@suse.cz>
19730 PR tree-optimization/46367
19731 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19732 when we can update original.
19733 (cgraph_mark_inline_edge): Sanity check.
19734 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19736 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19738 * config/spu/spu.h (ASM_COMMENT_START): Define.
19740 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19743 * gcc.c (%>S): New.
19744 (SWITCH_KEEP_FOR_GCC): Likewise.
19745 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19746 (do_spec_1): Handle "%>".
19748 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19750 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19753 * config/i386/i386.c (ix86_delegitimize_address): If
19754 simplify_gen_subreg fails, return orig_x.
19757 * value-prof.c (gimple_stringop_fixed_value): Handle
19758 lhs of the call properly.
19760 2011-01-07 Jan Hubicka <jh@suse.cz>
19763 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19765 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19767 * target.def (function_switched_text_sections): New hook.
19768 * doc/tm.texi: Regenerated.
19769 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19770 * final.c (default_function_switched_text_sections): New.
19771 (final_scan_insn): Call function_switched_text_sections when a
19772 mid-function section change occurs.
19773 * output.h (default_function_switched_text_sections): Declare.
19774 * config/darwin-protos.h (darwin_function_switched_text_sections):
19776 * config/darwin.c (darwin_function_switched_text_sections): New.
19777 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19779 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19781 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19782 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19783 the secondary code fragment when outputting for DWARF == 2.
19785 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19787 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19788 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19790 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19791 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19793 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19796 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19797 when it is not empty.
19799 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19802 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19803 (case ${target}): Add btver1.
19804 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19805 -march=native recognize btver1 processors.
19806 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19807 btver1 def_and_undef
19808 * config/i386/i386.c (struct processor_costs btver1_cost): New
19810 (m_BTVER1): New definition.
19811 (m_AMD_MULTIPLE): Includes m_BTVER1.
19812 (initial_ix86_tune_features): Add btver1 tune.
19813 (processor_target_table): Add btver1 entry.
19814 (static const char *const cpu_names): Add btver1 entry.
19815 (software_prefetching_beneficial_p): Add btver1.
19816 (ix86_option_override_internal): Add btver1 instruction sets.
19817 (ix86_issue_rate): Add btver1.
19818 (ix86_adjust_cost): Add btver1.
19819 * config/i386/i386.h (TARGET_BTVER1): New definition.
19820 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19821 (enum processor_type): Add PROCESSOR_BTVER1.
19822 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19824 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19827 * config/i386/i386.c (legitimize_tls_address)
19828 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19829 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19830 (tls_initial_exec_64_sun): New pattern.
19832 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19834 * doc/invoke.texi (Overall Options): Improve wording and markup
19835 of the description of -wrapper.
19837 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19839 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19840 rdynamic, threads): New Driver options.
19842 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19845 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19846 if coming from .tdata.
19847 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19849 2011-01-06 Jan Hubicka <jh@suse.cz>
19852 * collect2.c (main): Do not enable LTOmode when plugin is active.
19854 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19857 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19858 --version output if supported.
19859 * configure: Regenerate.
19861 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19863 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19866 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19869 * c-convert.c (convert): When converting a complex expression
19870 other than COMPLEX_EXPR to a different complex type, ensure
19871 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19872 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19873 when converting COMPLEX_TYPE.
19875 2011-01-06 Ira Rosen <irar@il.ibm.com>
19877 PR tree-optimization/47139
19878 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19879 only the last reduction value is used outside the loop. Update
19882 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19884 * config/rtems.opt: New.
19885 * config.gcc (*-*-rtems*): Use rtems.opt.
19887 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19889 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19890 processors do not support 3DNow instructions.
19892 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19894 * config/spu/spu.c (spu_option_override): Set parameter
19895 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19897 2011-01-05 Jan Hubicka <jh@suse.cz>
19899 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19900 at the command line.
19902 2011-01-05 Martin Jambor <mjambor@suse.cz>
19905 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19906 deltas on streamed outgoing edges.
19907 (output_node_opt_summary): Output info for outgoing edges only when
19908 the node is in new parameter set.
19909 (output_cgraph_opt_summary): New parameter set, passed to the two
19910 aforementioned functions. Update its forward declaration and its
19913 2011-01-05 Tom Tromey <tromey@redhat.com>
19915 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19916 operator to c_finish_omp_atomic.
19917 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19918 (build_unary_op): Update.
19919 (build_modify_expr): Update.
19920 (build_asm_expr): Update.
19922 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19924 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19925 newly inserted insns.
19926 (pad_bb): Likewise.
19927 (spu_emit_branch_hint): Likewise.
19928 (insert_hbrp_for_ilb_runout): Likewise.
19929 (spu_machine_dependent_reorg): Call df_finish_pass after
19930 schedule_insns returns.
19932 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19934 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19936 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19938 PR tree-optimization/47005
19939 * tree-sra.c (struct access): Add 'non_addressable' bit.
19940 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19941 (decide_one_param_reduction): Return 0 if the parameter is passed by
19942 reference and one of the accesses in the group is non_addressable.
19944 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19946 PR tree-optimization/47056
19947 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19948 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19949 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19951 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19953 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19954 initializer. Skip view conversions from aggregate types.
19956 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19959 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19961 2011-01-04 Philipp Thomas <pth@suse.de>
19963 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19966 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19968 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19969 on empty epilogue sequences.
19971 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19973 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19974 non-static): New Driver options.
19976 2011-01-04 Jie Zhang <jie@codesourcery.com>
19979 * gcc.c (default_compilers[]): Set combinable field to 0
19980 for all assembly languages.
19982 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19984 * config/mips/loongson3a.md: New file.
19985 * config/mips/mips.md: Include loongson3a.md.
19986 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19989 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19991 PR middle-end/47017
19992 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19993 instead of convert_memory_address_addr_space on the base expression.
19995 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19997 * config/spu/spu.c (spu_option_override): Update error text
19998 for bad -march= / -mtune= values.
20000 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20002 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20003 if branch-hint optimization will be performed.
20005 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20007 PR tree-optimization/47148
20008 * ipa-split.c (split_function): Convert arguments to
20009 DECL_ARG_TYPE if possible.
20011 PR tree-optimization/47155
20012 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20013 when computing uns.
20015 PR rtl-optimization/47157
20016 * combine.c (try_combine): If undobuf.other_insn becomes
20017 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20018 and set *new_direct_jump_p too.
20020 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20022 PR tree-optimization/47021
20023 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20025 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20027 * gcc.c (process_command): Update copyright notice dates.
20028 * gcov.c (print_version): Likewise.
20029 * gcov-dump.c (print_version): Likewise.
20030 * mips-tfile.c (main): Likewise.
20031 * mips-tdump.c (main): Likewise.
20033 2011-01-03 Martin Jambor <mjambor@suse.cz>
20035 PR tree-optimization/46801
20036 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20037 aggregate fields start at byte boundary instead of the bit-field flag.
20039 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20042 * gcc.c (main): Revert revision 168407.
20044 2011-01-03 Martin Jambor <mjambor@suse.cz>
20046 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20048 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20050 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20051 vector optab to expand vector/scalar shift, update gimple to vector.
20053 2011-01-03 Martin Jambor <mjambor@suse.cz>
20055 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20058 2011-01-03 Martin Jambor <mjambor@suse.cz>
20060 PR tree-optimization/46984
20061 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20063 (cgraph_create_indirect_edge): Fixed line length.
20064 (cgraph_indirect_call_info): Declare.
20065 (cgraph_make_edge_direct) Update declaration.
20066 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20067 (cgraph_create_indirect_edge): Use it.
20068 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20070 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20071 the new thunk_delta representation.
20072 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20074 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20075 (ipa_read_indirect_edge_info): Likewise.
20076 * lto-cgraph.c (output_edge_opt_summary): New function.
20077 (output_node_opt_summary): Call it on all outgoing edges.
20078 (input_edge_opt_summary): New function.
20079 (input_node_opt_summary): Call it on all outgoing edges.
20081 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20084 * gcc.c (main): Don't check have_o when settting combine_inputs.
20086 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20088 * regrename.c: Add general comment describing the pass.
20089 (struct du_head): Remove 'length' field.
20090 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20091 (regrename_optimize): Do not sort chains. Rework comments, add others.
20092 Force renaming to the preferred class (if any) in the first pass and do
20093 not consider registers that belong to it in the second pass.
20094 (create_new_chain): Do not set 'length' field.
20095 (scan_rtx_reg): Likewise.
20097 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20099 PR tree-optimization/47140
20100 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20101 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20102 to bit_value_binop.
20104 PR rtl-optimization/47028
20105 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20106 parm_birth_insn instead of at the beginning of first bb.
20108 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20110 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20111 Remove the word "see" before "@pxref".
20112 * doc/rtl.texi: Remove the word "see" before "@pxref".
20114 2011-01-01 Jan Hubicka <jh@suse.cz>
20116 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20119 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20122 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20125 Copyright (C) 2011 Free Software Foundation, Inc.
20127 Copying and distribution of this file, with or without modification,
20128 are permitted in any medium without royalty provided the copyright
20129 notice and this notice are preserved.