1 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
4 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
5 instead of TREE_READONLY.
7 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9 * doc/extend.texi (AVR Built-in Functions): Update documentation
10 of __builtin_avr_fmul*.
11 * config/avr/avr.c (avr_init_builtins): Don't depend on
13 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
14 * config/avr/avr.md (fmul): Rename to fmul_insn.
15 (fmuls): Rename to fmuls_insn.
16 (fmulsu): Rename to fmulsu_insn.
17 (fmul,fmuls,fmulsu): New expander.
18 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
19 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
20 * config/avr/libgcc.S (__fmul): New function.
21 (__fmuls): New function.
22 (__fmulsu,__fmulsu_exit): New function.
24 2011-07-04 Richard Guenther <rguenther@suse.de>
26 PR tree-optimization/49615
27 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
28 basic-block index check.
30 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
32 * longlong.h (count_leading_zeros, count_trailing_zeros,
33 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
36 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
38 PR tree-optimization/49610
39 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
42 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
43 Olivier Hainque <hainque@adacore.com>
44 Nicolas Setton <setton@adacore.com>
46 * tree.h (TYPE_ARTIFICIAL): New flag.
47 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
48 the DIE of the type if it is artificial.
49 (gen_array_type_die): Likewise.
50 (gen_enumeration_type_die): Likewise.
51 (gen_struct_or_union_type_die): Likewise.
52 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
53 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
55 2011-07-01 Jakub Jelinek <jakub@redhat.com>
57 * tree-object-size.c (pass_through_call): Handle
58 BUILT_IN_ASSUME_ALIGNED.
60 2011-07-01 Martin Jambor <mjambor@suse.cz>
62 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
64 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
67 * explow.c (update_nonlocal_goto_save_area): Use proper mode
69 * function.c (expand_function_start): Likewise.
71 2011-07-01 Richard Guenther <rguenther@suse.de>
74 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
75 may have unknown refs.
77 2011-07-01 Kai Tietz <ktietz@redhat.com>
79 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
81 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
83 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
84 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
85 (Specific, mips-sgi-irix6): Likewise.
87 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
90 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
92 2011-07-01 Jakub Jelinek <jakub@redhat.com>
94 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
95 [idx]= and [idx1 ... idx2]= before initializers if needed for
98 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
100 * config.gcc (score-*-elf): Remove score7.o.
101 * config/score/t-score-elf: Likewise.
102 * config/score/score.c: Merge score7 to score.c and
103 remove forwarding functions.
104 * config/score/score7.c: Deleted.
105 * config/score/score7.h: Deleted.
107 2011-07-01 Richard Guenther <rguenther@suse.de>
109 PR tree-optimization/49603
110 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
113 2011-06-30 Martin Jambor <mjambor@suse.cz>
115 * tree-sra.c (struct access): Rename total_scalarization to
116 grp_total_scalarization
117 (completely_scalarize_var): New function.
118 (sort_and_splice_var_accesses): Set total_scalarization in the
119 representative access.
120 (analyze_access_subtree): Propagate total scalarization accross the
121 tree, no holes in totally scalarized trees, simplify coverage
123 (analyze_all_variable_accesses): Call completely_scalarize_var instead
124 of completely_scalarize_record.
126 2011-06-30 Richard Henderson <rth@redhat.com>
128 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
129 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
130 * config/i386/i386.c: Don't include dwarf2out.h.
131 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
132 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
133 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
134 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
135 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
137 2011-06-30 Richard Henderson <rth@redhat.com>
139 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
140 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
141 * final.c (final_scan_insn): Look for it, and invoke
142 dwarf2out_frame_debug before the insn if found.
144 2011-06-30 Richard Henderson <rth@redhat.com>
146 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
147 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
149 2011-06-30 Richard Henderson <rth@redhat.com>
151 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
152 Define a vector of this type.
153 (regs_saved_in_regs): Use a VEC.
154 (num_regs_saved_in_regs): Remove.
155 (compare_reg_or_pc): New.
156 (record_reg_saved_in_reg): Split out from...
157 (dwarf2out_flush_queued_reg_saves): ... here.
158 (clobbers_queued_reg_save): Update for VEC.
159 (reg_saved_in): Likewise.
160 (dwarf2out_frame_debug_init): Likewise.
161 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
162 (dwarf2out_frame_debug_cfa_register): Likewise.
164 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
166 PR tree-optimization/49572
167 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
168 type of the RHS instead of that of the LHS for the expression type.
170 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
172 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
175 2011-06-30 Richard Guenther <rguenther@suse.de>
177 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
178 * tree-ssa-structalias.c (create_variable_info_for): Do not
179 add initial constraints for non-var-decls. Properly handle
180 globals in other ltrans partitions.
181 (intra_create_variable_infos): Manually create constraints for
182 the fake no-alias parameter.
183 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
184 and assert there are no clones.
186 2011-06-30 Richard Guenther <rguenther@suse.de>
188 PR tree-optimization/46787
189 * tree-data-ref.c (dr_address_invariant_p): Remove.
190 (find_data_references_in_stmt): Invariant accesses are ok now.
191 * tree-vect-stmts.c (vectorizable_load): Handle invariant
193 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
196 2011-06-30 Martin Jambor <mjambor@suse.cz>
198 PR tree-optimization/49094
199 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
200 (build_accesses_from_assign): Use it.
202 2011-06-30 Jakub Jelinek <jakub@redhat.com>
204 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
205 handling of BUILT_IN_ASSUME_ALIGNED.
208 * dwarf2out.c (output_abbrev_section): Don't return early
209 if abbrev_die_table_in_use is 1.
210 (dwarf2out_finish): Instead don't call output_abbrev_section
211 nor emit abbrev_section_label in that case.
213 2011-06-30 Nick Clifton <nickc@redhat.com>
215 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
218 2011-06-30 Jakub Jelinek <jakub@redhat.com>
220 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
221 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
223 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
225 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
226 both pattern and original statements if necessary.
227 (vect_transform_loop): Likewise.
228 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
229 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
230 Mark the pattern statement only if the original statement doesn't
232 (process_use): Call vect_mark_relevant with additional parameter.
233 (vect_mark_stmts_to_be_vectorized): Likewise.
234 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
235 (vect_analyze_stmt): Handle both pattern and original statements
237 (vect_transform_stmt): Don't store vectorized pattern statement
238 in the original statement.
239 (vect_is_simple_use_1): Use related pattern statement only if the
240 original statement is irrelevant.
241 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
243 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
245 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
247 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
249 (TARGET_AVX128_OPTIMAL): New definition.
250 * config/i386/i386.c (initial_ix86_tune_features): Initialize
251 X86_TUNE_AVX128_OPTIMAL entry.
252 (ix86_option_override_internal): Enable the generation
253 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
254 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
255 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
257 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
259 PR tree-optimization/49539
260 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
261 names by means of stmt_references_abnormal_ssa_name.
262 (associate_plusminus): Call can_propagate_from before propagating
263 from definition statements.
264 (ssa_forward_propagate_and_combine): Remove superfluous newline.
266 2011-06-29 Richard Guenther <rguenther@suse.de>
268 * doc/invoke.texi: Document -scev dump modifier.
269 * tree-pass.h (TDF_SCEV): New dump flag.
270 * tree-dump.c (dump_option_value_in): Add scev.
271 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
272 * tree-scalar-evolution.c: Likewise.
274 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
276 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
277 (cxa_type_match): Correct declaration.
278 (__gnu_unwind_pr_common): Reconstruct
279 additional indirection when __cxa_type_match returns
280 succeeded_with_ptr_to_base.
282 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
284 PR rtl-optimization/49114
285 * reload.c (struct replacement): Remove SUBREG_LOC member.
286 (push_reload): Do not set it.
287 (push_replacement): Likewise.
288 (subst_reload): Remove dead code.
289 (copy_replacements): Remove assertion.
290 (copy_replacements_1): Do not handle SUBREG_LOC.
291 (move_replacements): Likewise.
292 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
293 Detect subregs via recursive descent instead of via SUBREG_LOC.
295 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
297 * config/avr/avr.c (avr_encode_section_info): Dispatch to
298 default_encode_section_info.
300 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
302 PR tree-optimization/49545
303 * builtins.c (get_object_alignment_1): Update function comment.
304 Do not use DECL_ALIGN for functions, but test
305 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
306 * fold-const.c (get_pointer_modulus_and_residue): Don't check
308 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
310 2011-06-29 Jakub Jelinek <jakub@redhat.com>
313 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
314 for non-MODE_INT modes instead of asserting the mode has MODE_INT
317 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
320 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
321 about uninitialized data attributed 'progmem' from here...
322 (avr_encode_section_info): ...to this new function.
323 (TARGET_ENCODE_SECTION_INFO): New define.
324 (avr_section_type_flags): For data in ".progmem.data", remove
325 section flag SECTION_WRITE.
327 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
329 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
331 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
332 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
333 (__umulhisi3): Ditto.
334 * config/avr/avr.md (mulhisi3): New insn expender.
335 (umulhisi3): New insn expender.
336 (*mulhisi3_call): New insn.
337 (*umulhisi3_call): New insn.
339 2011-06-28 Joseph Myers <joseph@codesourcery.com>
341 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
343 2011-06-28 Richard Henderson <rth@redhat.com>
345 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
346 all code and arguments that handled pushes. Update all callers.
348 2011-06-28 Richard Henderson <rth@redhat.com>
350 * config/arm/arm.c (arm_output_function_prologue): Don't call
351 thumb1_output_function_prologue.
352 (arm_expand_prologue): Avoid dead store.
353 (number_of_first_bit_set): Use ctz_hwi.
354 (thumb1_emit_multi_reg_push): New.
355 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
356 to emit the entire prologue as rtl.
357 (thumb1_output_interwork): Split out from
358 thumb1_output_function_prologue.
359 (thumb1_output_function_prologue): Remove.
360 (arm_attr_length_push_multi): Handle thumb1.
361 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
362 (prologue_thumb1_interwork): New.
363 (*push_multi): Allow thumb1; use push_mult_memory_operand.
364 * config/arm/predicates.md (push_mult_memory_operand): New.
366 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
368 * config/sparc/sync.md (*stbar): Delete.
369 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
371 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
373 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
375 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
377 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
378 (TARGET_64BIT_DEFAULT): Define.
379 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
381 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
383 2011-06-28 Joseph Myers <joseph@codesourcery.com>
385 * common.opt (in_lto_p): New Variable entry.
386 * flags.h (in_lto_p): Move to common.opt.
387 * gcc.c: Include params.h.
388 (set_option_handlers): Also use common_handle_option and
389 target_handle_option.
390 (main): Call global_init_params, finish_params and
392 * opts.c (debug_type_names): Move from toplev.c.
393 (print_filtered_help): Access quiet_flag through opts pointer.
394 (common_handle_option): Return early in the driver for some
395 options. Access in_lto_p, dwarf_version and
396 warn_maybe_uninitialized through opts pointer.
397 * toplev.c (in_lto_p): Move to common.opt.
398 (debug_type_names): Move to opts.c.
399 * Makefile.in (OBJS): Remove opts.o.
400 (OBJS-libcommon-target): Add opts.o.
401 (gcc.o): Update dependencies.
403 2011-06-28 Kai Tietz <ktietz@redhat.com>
405 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
408 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
410 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
411 with '=' constraint modifier.
412 (*divdf3_vfp): Likewise.
413 ("*mulsf3_vfp"): Likewise.
414 ("*muldf3_vfp"): Likewise.
415 ("*mulsf3negsf_vfp"): Likewise.
416 ("*muldf3negdf_vfp"): Likewise.
418 2011-06-28 Nick Clifton <nickc@redhat.com>
420 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
421 relaxation when performing an incremental link.
423 2011-06-28 Kai Tietz <ktietz@redhat.com>
425 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
426 within BB from last to first.
428 2011-06-28 Joseph Myers <joseph@codesourcery.com>
430 * genattr-common.c: New. Based on genattr.c.
431 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
432 (MOSTLYCLEANFILES): Add insn-attr-common.h.
433 (opts.o): Update dependencies.
434 (.PRECIOUS): Add insn-attr-common.h.
435 (simple_rtl_generated_h): Add insn-attr-common.h.
436 (build/genattr-common.o): New.
437 (genprogrtl): Add attr-common.
438 * genattr.c (main): Include insn-attr-common.h. Don't generate
439 definitions of DELAY_SLOTS or INSN_SCHEDULING.
440 * opts.c: Include insn-attr-common.h instead of rtl.h and
443 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
445 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
446 avr-*-* and avr-*-rtems* targets.
448 * config/avr/elf.h: New file.
449 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
450 (TARGET_ASM_SELECT_SECTION): Define.
451 (INIT_SECTION_ASM_OP): Undefine.
452 (FINI_SECTION_ASM_OP): Undefine.
453 (READONLY_DATA_SECTION_ASM_OP): Undefine.
454 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
455 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
457 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
458 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
459 (MAX_OFILE_ALIGNMENT): Move to elf.h.
460 (STRING_LIMIT): Move to elf.h.
461 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
462 (ASM_DECLARE_OBJECT_NAME): Remove.
464 (ASM_OUTPUT_SKIP): Remove.
465 (DWARF2_DEBUGGING_INFO): Remove.
466 (OBJECT_FORMAT_ELF): Remove.
467 (USER_LABEL_PREFIX): Remove.
468 (ASM_OUTPUT_EXTERNAL): Remove.
469 (ASM_OUTPUT_ASCII): Remove.
470 (TYPE_ASM_OP): Remove.
471 (SIZE_ASM_OP): Remove.
472 (WEAK_ASM_OP): Remove.
473 (STRING_ASM_OP): Remove.
474 (SET_ASM_OP): Remove.
475 (ASM_WEAKEN_LABEL): Remove.
476 (TYPE_OPERAND_FMT): Remove.
477 (ASM_DECLARE_FUNCTION_SIZE): Remove.
478 (ASM_FINISH_DECLARE_OBJECT): Remove.
479 (NO_DOLLAR_IN_LABEL): Remove.
480 (ASM_GENERATE_INTERNAL_LABEL): Remove.
481 (ASM_OUTPUT_CASE_LABEL): Remove.
482 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
483 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
484 (gas_output_ascii): Remove.
485 (gas_output_limited_string): Remove.
486 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
487 * config/avr/avr-protos.h
488 (gas_output_ascii): Remove prototye.
489 (gas_output_limited_string): Remove prototype.
491 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
494 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
497 2011-06-27 Jan Hubicka <jh@suse.cz>
499 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
500 node instead of references in node.
502 2011-06-27 Richard Henderson <rth@redhat.com>
504 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
505 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
508 2011-06-27 Jakub Jelinek <jakub@redhat.com>
510 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
512 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
513 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
514 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
515 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
516 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
517 (evaluate_stmt, execute_fold_all_builtins): Handle
518 BUILT_IN_ASSUME_ALIGNED.
519 * tree-ssa-dce.c (propagate_necessity): Likewise.
520 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
521 call_may_clobber_ref_p_1): Likewise.
522 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
523 (expand_builtin_assume_aligned): New function.
524 * doc/extend.texi (__builtin_assume_aligned): Document.
527 * cselib.c (promote_debug_loc): If cselib_preserve_constants
528 and l has two DEBUG_INSN owned locs instead of just one, adjust
529 the second location's setting_insn too.
531 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
534 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
536 2011-06-27 Nick Clifton <nickc@redhat.com>
538 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
539 convert bit position of highest bit set into a count of the high
542 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
544 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
546 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
549 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
552 2011-06-27 Richard Guenther <rguenther@suse.de>
554 PR tree-optimization/49394
555 * passes.c (execute_one_pass): Restore current_pass after
556 applying IPA transforms.
558 2011-06-27 Kai Tietz <ktietz@redhat.com>
560 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
561 out of type precision after operation.
562 (find_bswap): Take for limit value the integer auto-
563 promotion into account.
565 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
567 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
568 forward scan as well.
570 2011-06-27 Tristan Gingold <gingold@adacore.com>
573 * config/vms/vms-protos.h: New file.
574 * config/vms/vms-crtlmap.map: New file.
575 * config/vms/vms.c: New file.
576 * config/vms/make-crtlmap.awk: New file.
577 * config/vms/vms-crtl.h: File removed.
578 * config/vms/vms-crtl-64.h: File removed.
579 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
580 * config/alpha/vms64.h: Do not include vms-crtl-64.h
581 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
582 clear some builtins on VMS. Calls vms_patch_builtins.
583 (avms_asm_output_external): Remove.
584 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
585 (struct crtl_name_spec): Remove
586 (DO_CTRL_NAMES): Remove.
587 * config/ia64/vms.h (struct crtl_name_spec): Remove
588 (DO_CTRL_NAMES): Remove.
589 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
590 clear some builtins on VMS. Calls vms_patch_builtins.
591 (ia64_asm_output_external): Remove DO_CRTL_NAME.
592 * config/ia64/vms64.h: Do not include vms-crtl-64.h
593 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
596 2011-06-27 Tristan Gingold <gingold@adacore.com>
598 * config/alpha/alpha.c (alpha_end_function): Always generate .end
601 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
603 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
604 the function receives nonlocal gotos.
606 2011-06-27 Richard Guenther <rguenther@suse.de>
608 PR tree-optimization/49536
609 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
610 For non-scalar inner types use a scalar type according to
611 the scalar inner mode.
613 2011-06-27 Richard Guenther <rguenther@suse.de>
615 PR tree-optimization/49365
616 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
618 2011-06-27 Richard Guenther <rguenther@suse.de>
620 PR tree-optimization/49169
621 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
622 the alignment of function decls.
624 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
627 * config/darwin.c (darwin_mergeable_string_section): Place string
628 constants in '.cstring' rather than '.const' when CF/NSStrings are
631 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
633 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
634 (emit_save_register_window): Likewise.
635 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
636 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
637 Swap back %o7/%i7 in register naming.
639 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
642 * config/darwin.c (darwin_override_options): Improve warning when
643 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
644 is given with fpie/fPIE.
645 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
646 * config/darwin9.h (PIE_SPEC): New.
648 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
650 * timevar.c (timevar_print): Increase width for display of timevar
653 2011-06-24 Jakub Jelinek <jakub@redhat.com>
656 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
657 instead of TYPE_CHAIN for chain_next for types.
659 2011-06-24 Richard Henderson <rth@redhat.com>
661 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
662 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
663 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
664 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
665 (sparc_flat_expand_prologue): Emit individual instructions
666 instead of one of the above.
668 2011-06-24 Easwaran Raman <eraman@google.com>
670 PR rtl-optimization/49429
672 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
673 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
674 used to copy y into x.
675 * calls.c (initialize_argument_information): Mark
676 an argument addressable if it is passed by invisible reference.
677 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
678 if it is passed by reference.
680 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
682 PR rtl-optimization/49504
683 * rtlanal.c (nonzero_bits1): Properly handle addition or
684 subtraction of a pointer in Pmode if pointers extend unsigned.
685 (num_sign_bit_copies1): Likewise.
687 2011-06-24 Martin Jambor <mjambor@suse.cz>
689 PR tree-optimizations/49516
690 * tree-sra.c (sra_modify_assign): Choose the safe path for
691 aggregate copies if we also did scalar replacements.
693 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
696 * config/arm/predicates.md (add_operator): New.
697 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
700 2011-06-24 Andi Kleen <ak@linux.intel.com>
702 * tree-sra.c (type_internals_preclude_sra_p): Add msg
703 parameter. Split up ifs and report reason in *msg.
705 (find_var_candiate): Add msg variable.
706 Split up ifs and report reason to reject.
707 (find_param_candidates): Add msg variable.
708 Pass msg to type_internals_preclude_sra_p.
710 2011-06-23 Jeff Law <law@redhat.com>
713 * reload.h (reload): Change to return a bool.
714 * ira.c (ira): If requested by reload, run a fast DCE pass after
715 reload has completed. Fix comment typo.
716 * reload1.c (need_dce): New file scoped static.
717 (reload): Set reload_completed here. Return whether or not a DCE
718 pass after reload is needed.
719 (delete_dead_insn): Set need_dce as needed.
722 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
723 to detect threading through joiner block. If there was already
724 an edge to the new target, then do not change the PHI nodes.
726 2011-06-23 Jakub Jelinek <jakub@redhat.com>
728 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
729 get_pointer_alignment to see if base isn't sufficiently aligned.
731 2011-06-23 Jan Hubicka <jh@suse.cz>
733 PR tree-optimize/49373
734 * tree-pass.h (all_late_ipa_passes): Declare.
735 * cgraphunit.c (init_lowered_empty_function): Fix properties.
736 (cgraph_optimize): Execute late passes; remove unreachable funcions
737 after materialization.
738 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
740 * passes.c (all_late_ipa_passes): Declare.
741 (dump_passes, register_pass): Handle late ipa passes.
742 (init_optimization_passes): Move ipa_pta to late passes; schedule
743 fixup_cfg at beggining of all_passes.
744 (apply_ipa_transforms): New function.
745 (execute_one_pass): When doing simple ipa pass, apply all transforms.
747 2011-06-23 Joseph Myers <joseph@codesourcery.com>
749 * params.c: Include common/common-target.h. Don't include tm.h.
750 (lang_independent_params): Move from toplev.c.
751 (global_init_params): New.
752 * params.h (global_init_params): Declare.
753 * target.def (default_params): Move to common-target.def.
754 * toplev.c (lang_independent_options): Remove.
755 (lang_independent_params): Move to params.c.
756 (general_init): Use global_init_params.
757 * common/common-target.def (option_default_params): Move from
759 * common/config/ia64/ia64-common.c: Include params.h.
760 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
762 * common/config/rs6000/rs6000-common.c: Include params.h.
763 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
765 * common/config/sh/sh-common.c: Include params.h.
766 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
768 * common/config/spu/spu-common.c: Include params.h.
769 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
771 * config/ia64/ia64.c (ia64_option_default_params,
772 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
773 * config/rs6000/rs6000.c (rs6000_option_default_params,
774 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
775 * config/sh/sh.c (sh_option_default_params,
776 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
777 * config/spu/spu.c (spu_option_default_params,
778 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
779 * Makefile.in (OBJS): Remove params.o.
780 (OBJS-libcommon-target): Add params.o.
781 (params.o, $(common_out_object_file)): Update dependencies.
782 * doc/tm.texi: Regenerate.
784 2011-06-23 Alan Modra <amodra@gmail.com>
787 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
788 invocation for 2011-06-09 changes.
790 2011-06-22 Jakub Jelinek <jakub@redhat.com>
793 * omp-low.c (expand_omp_for_static_nochunk): Only
794 use n ceil/ nthreads size for the first
795 n % nthreads threads in the team instead of
796 all threads except for the last few ones which
797 get less work or none at all.
800 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
803 2011-06-22 Richard Guenther <rguenther@suse.de>
805 PR tree-optimization/49493
806 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
807 Refer to the alias target of variables.
808 (associate_varinfo_to_alias_1): Remove.
809 (ipa_pta_execute): Do not associate aliases with anything.
810 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
811 (cgraph_function_node): Likewise.
812 (cgraph_function_or_thunk_node): Likewise.
813 (varpool_variable_node): Likewise.
815 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
817 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
819 * config.gcc (arm*-*-linux*): Default to gnu tls.
820 (arm*-*-*): Add --with-tls option.
821 (all_defaults): Add 'tls'.
823 2011-06-22 Richard Henderson <rth@redhat.com>
825 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
826 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
827 (dwarf2out_frame_debug_cfa_window_save): Rename from
828 dwarf2out_window_save; make static.
829 * tree.h (dwarf2out_window_save): Don't declare.
831 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
832 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
833 (emit_save_register_window): Rename from gen_save_register_window;
834 emit the insn and add REG_CFA_* notes.
835 (sparc_expand_prologue): Update to match.
836 * config/sparc/sparc.md (save_register_window_1): Simplify from
837 save_register_window<P:mode>.
839 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
842 * config/i386/i386.md (*lea_general_2): Always allow SImode.
843 (*lea_general_2_zext): Likewise.
844 (imul to lea peepholes): Use const359_operand and check
845 TARGET_PARTIAL_REG_STALL.
847 * config/i386/predicates.md (const359_operand): New.
849 2011-06-22 Michael Matz <matz@suse.de>
851 * cgraphunit.c (assemble_thunk): Use correct return type.
853 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
854 Dmitry Melnik <dm@ispras.ru>
856 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
857 (neon_output_shift_immediate): Ditto.
858 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
860 (neon_output_shift_immediate): Ditto.
861 * config/arm/neon.md (vashl<mode>3): Modified constraint.
862 (vashr<mode>3_imm): New insn pattern.
863 (vlshr<mode>3_imm): Ditto.
864 (vashr<mode>3): Modified constraint.
865 (vlshr<mode>3): Ditto.
866 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
868 (imm_for_neon_rshift_operand): Ditto.
869 (imm_lshift_or_reg_neon): Ditto.
870 (imm_rshift_or_reg_neon): Ditto.
872 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
874 2011-06-22 Jakub Jelinek <jakub@redhat.com>
876 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
877 builtin calls even if likelyvalue is not CONSTANT.
878 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
879 Return get_value_for_expr of first operand
880 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
881 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
882 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
883 their non-checking counterparts.
884 (call_may_clobber_ref_p_1): Likewise.
885 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
886 like their non-checking counterparts.
887 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
888 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
889 like their non-checking counterparts.
890 (find_func_clobbers): Likewise.
891 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
892 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
894 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
895 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
896 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
897 of base type reference as argument.
898 (resolve_addr_in_expr): Likewise. Fix keep computation.
899 (convert_descriptor_to_signed): Renamed to...
900 (convert_descriptor_to_mode): ... this. For wider types convert
901 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
903 (typed_binop): New function.
904 (scompare_loc_descriptor, ucompare_loc_descriptor,
905 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
906 default to unsigned type instead of signed.
909 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
910 (gimple_build_debug_source_bind_stat): New prototype.
911 (gimple_build_debug_source_bind): Define.
912 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
913 gimple_debug_source_bind_get_value,
914 gimple_debug_source_bind_get_value_ptr,
915 gimple_debug_source_bind_set_var,
916 gimple_debug_source_bind_set_value): New inlines.
917 * gimple.c (gimple_build_debug_source_bind_stat): New function.
918 * gimple-pretty-print.c (dump_gimple_debug): Handle
919 GIMPLE_DEBUG_SOURCE_BIND.
920 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
921 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
922 * tree-parloops.c (eliminate_local_variables,
923 separate_decls_in_region): Likewise.
924 (separate_decls_in_region_debug): Renamed from
925 separate_decls_in_region_debug_bind. Handle
926 gimple_debug_source_bind_p.
927 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
929 (DECL_HAS_DEBUG_ARGS_P): Define.
930 (struct tree_function_decl): Add has_debug_args_flag field.
931 * tree.c (debug_args_for_decl): New variable.
932 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
933 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
934 (rewrite_debug_stmt_uses): New function.
935 (rewrite_stmt): Use it to rewrite debug stmt uses.
936 * rtl.def (DEBUG_PARAMETER_REF): New.
937 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
938 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
940 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
941 * print-rtl.c (print_rtx): Likewise.
942 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
943 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
944 debug stmts in the first bb.
945 * tree-inline.c (remap_ssa_name): If remapping default def
946 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
947 a source bind debug stmt.
948 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
949 (maybe_move_debug_stmts_to_successors): Likewise.
950 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
951 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
952 debug args vector from old_decl to new_decl.
953 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
954 or modified parameters, add debug bind stmts before call
955 setting DEBUG_EXPR_DECL which is remembered in debug args
957 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
958 on DECL_DEBUG_EXPRs from debug args vector.
959 (expand_debug_source_expr): New function.
960 (expand_debug_locations): Use it for source bind insns.
961 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
962 * var-tracking.c (prepare_call_arguments): Add debug args
963 to call_arguments if any.
964 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
965 output_loc_operands, output_loc_operands_raw,
966 resolve_addr_in_expr, compare_loc_operands): Handle
967 DW_OP_GNU_parameter_ref.
968 (get_ref_die_offset, parameter_ref_descriptor): New functions.
969 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
970 (gen_subprogram_die): Handle parameters identified by
973 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
975 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
976 * doc/install.texi (Configuration): Document --with-tls.
977 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
978 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
979 (arm_tls_descseq_addr): New.
980 (legitimize_tls_address): Add tlsdesc support.
981 (arm_cannot_copy_insn_p): Check for tlscall.
982 (arm_emit_tls_decoration): Likewise.
983 * config/arm/arm.h (TARGET_GNU2_TLS): New.
984 (OPTION_DEFAULT_SPECS): Add with-tls support.
985 * config/arm/arm.md (R1_REGNUM): Define.
987 * config/arm/arm.opt (tls_type): New enumeration type and values.
988 (mtls-dialect): New switch.
989 * config/arm/arm-opts.h (enum tls_type): New.
991 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
993 * attribs.c (register_attribute): Added assert to check that all
994 attribute specs are registered with a name that is not empty and
995 does not start with '_'.
996 (decl_attributes): Avoid the lookup of the "naked" attribute spec
997 if the function has no attributes.
998 * tree.c (is_attribute_with_length_p): Removed.
999 (is_attribute_p): Removed.
1000 (private_is_attribute_p): New.
1001 (private_lookup_attribute): New.
1002 (lookup_attribute): Removed.
1003 (lookup_ident_attribute): New.
1004 (remove_attribute): Require the first argument to be in the form
1005 'text', not '__text__'. Updated asserts.
1006 (merge_attributes): Use lookup_ident_attributes instead of
1008 (merge_dllimport_decl_attributes): Use remove_attribute.
1009 (attribute_list_contained): Likewise.
1010 (attribute_list_equal): Immediately return 1 if the arguments are
1012 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1013 'int'. Require the first argument to be in the form 'text', not
1014 '__text__'. Require the second argument to be an identifier.
1015 (lookup_attribute): Made inline. Require the first argument to be
1016 in the form 'text', not '__text__'.
1017 (private_is_attribute_p, private_lookup_attribute): New.
1020 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1022 * builtins.c: Add sync_ or SYNC__ to builtin names.
1023 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1024 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1026 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1029 * config/avr/avr.md (extzv): New expander.
1031 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1032 * config/avr/constraints.md (C04): New constraint.
1033 * doc/md.texi (Machine Constraints): Document it.
1035 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1038 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1039 unsignedp argument instead of 1 for clrsb_optab.
1040 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1041 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1042 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1043 * optabs.c (widen_leading): Call widen_operand and expand_unop
1044 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1045 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1047 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1049 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1051 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1053 * gensupport.c (add_define_attr): New static function.
1054 (is_predicable): Allow multi-alternative lists for the "predicable"
1056 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1057 (process_one_cond_exec): Call alter_attrs_for_insn.
1058 * doc/md.texi (Defining Attributes): Mention some standard names.
1059 (Conditional Execution): Update documentation for "predicable".
1061 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1062 __builtin_clrsbll): Document.
1063 * doc/rtl.texi (clrsb): New entry.
1064 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1065 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1066 (expand_unop): Handle clrsb_optab.
1067 (init_optabs): Initialize it.
1068 * optabs.h (enum optab_index): New entry OTI_clrsb.
1069 (clrsb_optab): Define.
1070 * genopinit.c (optabs): Add an entry for it.
1071 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1072 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1073 BUILT_IN_CLRSBLL): New.
1074 * rtl.def (CLRSB): New code.
1075 * dwarf2out.c (mem_loc_descriptor): Handle it.
1076 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1077 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1079 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1080 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1081 (__ctzDI2): Move declaration.
1082 * config/bfin/bfin.md (clrsbsi2): New expander.
1083 (signbitssi2): Use the CLRSB rtx.
1084 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1085 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1087 2011-06-21 Richard Guenther <rguenther@suse.de>
1089 * ipa-inline-transform.c (inline_transform): Fix previous change.
1091 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1093 PR tree-optimization/49478
1094 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1095 with constant operand.
1097 2011-06-21 Richard Guenther <rguenther@suse.de>
1099 * ipa-inline-transform.c (inline_transform): Fix typo.
1101 2011-06-21 Richard Guenther <rguenther@suse.de>
1103 PR tree-optimization/49483
1104 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1105 VIEW_CONVERT_EXPR conversions.
1107 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1109 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1110 * config/avr/avr-tables.opt: New file (generated).
1111 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1112 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1114 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1115 (avr_option_override): Don't process -mmcu= argument here. Set
1116 avr_current_device using avr_mcu_index.
1117 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1118 * config/avr/avr.opt (mmcu=): Use Enum.
1119 * config/avr/t-avr (avr-devices.o): Update dependencies.
1120 ($(srcdir)/config/avr/avr-tables.opt): New.
1121 * target.def (help): Remove.
1122 * doc/tm.texi.in (TARGET_HELP): Remove.
1123 * doc/tm.texi: Regenerate.
1124 * opts.c: Don't include target.h.
1125 (common_handle_option): Don't call targetm.help.
1126 * system.h (TARGET_HELP): Poison.
1127 * Makefile.in (opts.o): Update dependencies.
1129 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1131 * config/usegld.h: New file.
1132 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1133 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1134 (LIB_SPEC): Likewise. Search /lib.
1135 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1136 (RDYNAMIC_SPEC): Handle GNU ld.
1137 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1139 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1140 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1141 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1142 (STACK_CHECK_STATIC_BUILTIN): Define.
1143 * config/sol2.opt (compat-bsd): Remove.
1144 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1145 * config/sol2-bi.h: New file.
1146 * config/sol2-gld.h: Remove.
1147 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1148 (NO_DBX_BNSYM_ENSYM): Remove.
1149 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1150 (STACK_CHECK_STATIC_BUILTIN): Remove.
1151 Test USE_GLD instead of TARGET_GNU_LD.
1152 * config/i386/sol2-10.h: Rename to ...
1153 * config/i386/sol2-bi.h .. this.
1154 (SUBTARGET_EXTRA_SPECS): Redefine.
1155 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1156 (MULTILIB_DEFAULTS): Remove.
1157 (DEFAULT_ARCH32_P): Define.
1158 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1159 (ARCH64_SUBDIR): Define.
1160 Test USE_GLD instead of TARGET_GNU_LD.
1161 (I386_EMULATION): Rename to ...
1162 (ARCH32_EMULATION): ... this.
1163 (X86_64_EMULATION): Rename to ...
1164 (ARCH64_EMULATION): ... this.
1165 (TARGET_LD_EMULATION): Remove.
1166 (LINK_ARCH_SPEC): Remove.
1167 * config/i386/sol2-gas.h: Remove.
1168 * config/i386/t-sol2-10: Rename to ...
1169 * config/i386/t-sol2-64: ... this.
1170 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1171 (AS_SPARC64_FLAG): Define.
1172 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1173 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1174 depending on TARGET_CPU_DEFAULT.
1175 (CPP_CPU_SPEC): Redefine.
1176 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1177 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1178 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1179 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1180 ASM_ARCH_DEFAULT_SPEC): Redefine.
1181 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1182 LINK_ARCH_DEFAULT_SPEC.
1183 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1184 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1185 (ARCH64_SUBDIR): Define.
1186 (LINK_ARCH64_SPEC): Redefine.
1187 (CC1_SPEC): Redefine.
1188 (OPTION_DEFAULT_SPECS): Redefine.
1189 (MULTILIB_DEFAULTS): Define.
1190 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1191 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1192 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1193 (NO_DBX_BNSYM_ENSYM): Remove.
1194 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1195 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1196 (TARGET_ASM_NAMED_SECTION): Likewise.
1197 (STACK_CHECK_STATIC_BUILTIN): Remove.
1198 * config/sparc/sol2-bi.h: Remove.
1199 * config/sparc/sol2-gas-bi.h: Remove.
1200 * config/sparc/sol2-gas.h: Remove.
1201 * config/sparc/sol2-gld-bi.h: Remove.
1202 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1204 (*-*-solaris2*): ... here.
1206 2011-06-21 Christian Bruel <christian.bruel@st.com>
1209 * ipa-inline.c (can_inline_edge_p): Check
1210 !DECL_DISREGARD_INLINE_LIMITS.
1212 2011-06-21 Christian Bruel <christian.bruel@st.com>
1215 * cgraphunit.c (process_function_and_variable_attributes): warn when
1216 always_inline functions that are not inline.
1217 * ipa-inline-transform.c (inline_transform): Always call
1219 * tree-inline.c (tree_inlinable_function_p): Use error instead
1221 (expand_call_inline): Likewise.
1223 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1225 * Makefile.in (dg_target_exps): Set.
1226 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1227 instead of 7, try to divide it more evenly.
1229 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1232 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1233 (avx256_split_unaligned_store): New definition.
1234 (ix86_option_override_internal): Enable avx256 unaligned load/store
1235 splitting only when avx256_split_unaligned_load/store is set.
1237 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1239 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1240 open chain in a smaller mode without failing the entire block.
1242 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1245 * combine.c (cant_combine_insn_p): Don't check zero/sign
1246 extended hard registers.
1248 2011-06-21 Alan Modra <amodra@gmail.com>
1250 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1251 CONST high part large-toc address.
1252 (rs6000_tls_referenced_p): Make static.
1253 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1255 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1258 * combine.c (cant_combine_insn_p): Check zero/sign extended
1261 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1264 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1265 one of the operands is a register.
1267 2011-06-20 Kai Tietz <ktietz@redhat.com>
1269 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1270 operations in combination with binary and.
1272 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1274 * regrename.c (do_replace): Don't update notes.
1276 2011-06-20 Alan Modra <amodra@gmail.com>
1278 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1279 of toc-relative address in CONST.
1280 (rs6000_delegitimize_address): Recognize changed address.
1281 (rs6000_legitimize_reload_address): Likewise.
1282 (rs6000_emit_move): Don't force these constants to memory.
1283 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1284 toc-relative address in CONST.
1285 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1286 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1288 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1290 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1291 (count_trailing_zeros): Likewise.
1293 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1296 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1297 .init_array can be used with .ctors on targets.
1298 * configure: Regenerated.
1300 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1302 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1303 if the element type is volatile.
1305 2011-06-18 Jan Hubicka <jh@suse.cz>
1307 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1309 (lto_symtab_resolve_can_prevail_p): Likewise.
1310 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1311 * cgraphbuild.c (record_reference): Remove extra body alias code.
1312 (mark_load): Likewise.
1313 (mark_store): Likewise.
1314 * cgraph.h (varpool_node): Remove extra_name filed;
1315 add alias_of and extraname_alias.
1316 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1317 (varpool_alias_aliased_node): New inline function.
1318 (varpool_variable_node): New function.
1319 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1320 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1321 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1322 (input_varpool_node): Likewise.
1323 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1324 (varpool_externally_visible_p): Remove extra body alias code.
1325 (function_and_variable_visibility): Likewise.
1326 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1327 (ipa_pta_execute): Use it.
1328 * varpool.c (varpool_remove_node): Remove extra name alias code.
1329 (varpool_mark_needed_node): Likewise.
1330 (varpool_analyze_pending_decls): Analyze aliases.
1331 (assemble_aliases): New functoin.
1332 (varpool_assemble_decl): Use it.
1333 (varpool_create_variable_alias): New function.
1334 (varpool_extra_name_alias): Rewrite.
1335 (varpool_for_node_and_aliases): New function.
1337 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1340 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1341 last_arg_constant and last argument doesn't match its predicate,
1342 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1343 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1344 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1345 spelling of error message.
1346 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1347 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1348 const_0_to_255_operand instead of const_int_operand.
1351 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1353 * config/i386/sse.md (blendbits): Remove mode attribute.
1354 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1355 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1356 Check integer value of operand 3 in insn constraint.
1358 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1360 PR rtl-optimization/48542
1361 * reload.c (find_equiv_reg): Stop looking when finding a
1363 * reload1.c (reload_as_needed): Invalidate all reload
1364 registers when crossing a setjmp-type call.
1366 2011-06-16 Jeff Law <law@redhat.com>
1368 * tree-ssa-threadupdate.c (struct redirection_data): New field
1370 (THREAD_TARGET2): Define.
1371 (redirection_data_eq): Also check that the intermediate edge is equal.
1372 (lookup_redirection_data): Drop useless argument. Extract the
1373 outgoing_edge and intermediate edge from E. Callers updated.
1374 (copy_phi_args, update_destination_phis): New functions.
1375 (fix_duplicate_block_edges): Likewise.
1376 (create_edge_and_update_destination_phis): Duplicate all the edges
1377 hung off e->aux. Use copy_phi_args.
1378 (create_duplicates): Use fix_duplicate_block_edges.
1379 (fixup_template_block): Likewise.
1380 (redirect_edges): If necessary, redirect the joiner block's incoming
1381 edge to the duplicate of the joiner block.
1382 (thread_block): Don't muck up loops when threading through a joiner
1384 (thread_through_loop_header): Handle threading through a joiner block.
1385 (mark_threaded_blocks, register_jump_thread): Likewise.
1386 * tree-flow.h (register_jump_thread): Add new argument. Callers
1388 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1389 (thread_across_edge): Handle threading through a joiner block.
1391 2011-06-16 Martin Jambor <mjambor@suse.cz>
1393 PR tree-optimization/49343
1394 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1395 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1397 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1399 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1400 inside RTX_CODE ifdef.
1402 2011-06-16 Tom de Vries <tom@codesourcery.com>
1405 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1406 Disallow NULL pointer for pointer arithmetic.
1408 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1412 2011-06-10 Wei Guozhi <carrot@google.com>
1415 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1416 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1417 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1419 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1421 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1422 (arm_legitimate_ldrd_p): New prototype.
1423 (arm_output_ldrd): New prototype.
1424 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1425 (arm_legitimate_ldrd_p): New function.
1426 (arm_output_ldrd): New function.
1428 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1431 * doc/tm.texi.in: Update Copyright date.
1432 * doc/tm.texi: Regenerate.
1433 * targhooks.c (default_setup_incoming_varargs): Replace
1434 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1435 (default_pretend_outgoing_varargs_named): Likewise.
1436 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1437 (hook_callee_copies_named): Likewise.
1438 (default_function_arg_advance): Likewise.
1439 (default_function_arg): Likewise.
1440 (default_function_incoming_arg): Likewise.
1441 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1442 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1443 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1444 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1445 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1446 * targhooks.h (default_setup_incoming_varargs): Likewise.
1447 (default_pretend_outgoing_varargs_named): Likewise.
1448 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1449 (hook_callee_copies_named): Likewise.
1450 (default_function_arg_advance): Likewise.
1451 (default_function_arg): Likewise.
1452 (default_function_incoming_arg): Likewise.
1453 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1454 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1455 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1456 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1457 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1458 * target.def (pass_by_reference): Likewise.
1459 (setup_incoming_varargs, strict_argument_naming): Likewise.
1460 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1461 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1462 (function_incoming_arg): Likewise.
1463 * target.h: Don't include "tm.h" .
1464 (cumulative_args_t): New typedef.
1465 [GCC_TM_H] (get_cumulative_args): New static inline function.
1466 [GCC_TM_H] (pack_cumulative_args): Likewise.
1467 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1468 argument type with cumulative_args_t.
1469 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1470 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1471 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1472 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1473 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1474 (frv_function_arg_1): Likewise.
1475 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1476 (s390_function_arg_advance, s390_function_arg): Likewise.
1477 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1478 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1479 (m32c_strict_argument_naming): Likewise.
1480 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1481 (spu_function_arg_advance): Likewise.
1482 (spu_setup_incoming_varargs): Likewise. Make static.
1483 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1485 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1486 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1487 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1488 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1489 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1490 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1491 (mep_pass_by_reference, mep_function_arg): Likewise.
1492 (mep_function_arg_advance): Likewise.
1493 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1494 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1495 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1496 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1497 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1498 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1499 (ix86_setup_incoming_varargs): Likewise.
1500 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1501 (sh_strict_argument_naming): Likewise.
1502 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1503 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1504 (sh_function_arg_advance, sh_function_arg): Likewise.
1505 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1506 (pdp11_function_arg_advance): Likewise.
1507 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1509 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1510 * config/avr/avr.c (avr_function_arg): Likewise.
1511 (avr_function_arg_advance): Likewise.
1512 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1513 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1514 (xtensa_function_arg_1): Likewise.
1515 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1517 (xstormy16_function_arg): Likewise.
1518 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1519 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1520 (fr30_function_arg_advance): Likewise.
1521 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1522 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1523 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1524 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1525 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1526 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1527 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1528 (cris_function_arg, cris_function_incoming_arg): Likewise.
1529 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1530 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1531 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1532 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1533 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1534 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1535 (mn10300_arg_partial_bytes): Likewise.
1536 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1537 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1538 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1539 (ia64_function_arg_1): Likewise.
1540 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1541 (m68k_function_arg): Likewise.
1542 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1543 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1544 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1545 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1546 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1547 (picochip_arg_advance): Likewise.
1548 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1549 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1550 (mcore_function_arg_advance): Likewise.
1551 * config/score/score.c (score_pass_by_reference): Likewise.
1552 (score_function_arg_advance): Likewise.
1553 (score_arg_partial_bytes): Likewise. Make static.
1554 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1555 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1556 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1557 (arm_function_arg, arm_function_arg_advance): Likewise.
1558 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1559 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1560 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1561 (pa_function_arg): Likewise.
1562 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1563 (mips_function_arg, mips_function_arg_advance): Likewise.
1564 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1565 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1566 * config/vax/vax.c (vax_function_arg): Likewise.
1567 (vax_function_arg_advance): Likewise.
1568 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1569 (h8300_function_arg_advance): Likewise.
1570 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1571 (v850_strict_argument_naming, v850_function_arg): Likewise.
1572 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1573 (v850_setup_incoming_varargs): Likewise.
1574 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1575 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1576 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1577 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1579 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1580 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1581 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1582 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1583 * calls.c (emit_call_1): Change type of args_so_far to
1584 cumulative_args_t. Changed all callers.
1585 (initialize_argument_information): Likewise.
1586 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1587 * dse.c (get_call_args): Likewise.
1588 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1589 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1590 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1591 New member args_so_far_v. Changed all users.
1592 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1593 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1594 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1595 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1596 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1597 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1599 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1600 m32r_pass_by_reference.
1602 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1604 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1605 argument to be a VEC of statements.
1606 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1607 assert that pattern statements have to have their vector type set.
1608 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1609 Change the first argument to be a VEC of statements. Update
1611 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1612 (vect_handle_widen_mult_by_const): New function.
1613 (vect_recog_widen_mult_pattern): Change the first argument to be a
1614 VEC of statements. Update documentation. Check that the constant is
1615 INTEGER_CST. Support multiplication by a constant that fits an
1616 intermediate type - call vect_handle_widen_mult_by_const.
1617 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1618 call. Handle additional pattern statements if necessary.
1620 2011-06-16 Nick Clifton <nickc@redhat.com>
1623 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1624 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1625 md_file, extra_modes, out_file and extra_options are these are all
1626 deduced from cpu_type.
1628 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1630 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1631 truncation mask to 63.
1633 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1637 * longlong.h: Add AVR support:
1638 (count_leading_zeros): New macro.
1639 (count_trailing_zeros): New macro.
1640 (COUNT_LEADING_ZEROS_0): New macro.
1641 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1642 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1643 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1644 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1645 (LIB2FUNCS_EXCLUDE): Add _clz.
1646 * config/avr/libgcc.S (XCALL): Move up in file.
1647 (XJMP): New C Macro.
1648 (DEFUN): New asm macro.
1649 (ENDF): New asm macro.
1650 (__ffssi2): New function.
1651 (__ffshi2): New function.
1652 (__loop_ffsqi2): New function.
1653 (__ctzsi2): New function.
1654 (__ctzhi2): New function.
1655 (__clzdi2): New function.
1656 (__clzsi2): New function.
1657 (__clzhi2): New function.
1658 (__paritydi2): New function.
1659 (__paritysi2): New function.
1660 (__parityhi2): New function.
1661 (__parityqi2): New function.
1662 (__popcounthi2): New function.
1663 (__popcountsi2): New function.
1664 (__popcountdi2): New function.
1665 (__popcountqi2): New function.
1666 (__bswapsi2): New function.
1667 (__bswapdi2): New function.
1668 (__ashldi3): New function.
1669 (__ashrdi3): New function.
1670 (__lshrdi3): New function.
1671 Fix suspicous lines.
1673 2011-06-16 Richard Guenther <rguenther@suse.de>
1675 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1677 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1679 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1680 equality compares against zero for the lower bit.
1682 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1684 PR tree-optimization/49419
1685 * tree-vrp.c (execute_vrp): Call init_range_assertions
1686 before estimate_numbers_of_iterations, call
1687 free_number_of_iterations_estimates before calling
1688 remove_range_assertions.
1690 2011-06-16 Revital Eres <revital.eres@linaro.org>
1692 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1693 (struct partial_schedule): Add rows_length field.
1694 (verify_partial_schedule): Check rows_length.
1695 (ps_insert_empty_row): Handle rows_length.
1696 (create_partial_schedule): Likewise.
1697 (free_partial_schedule): Likewise.
1698 (reset_partial_schedule): Likewise.
1699 (create_ps_insn): Remove rest_count argument.
1700 (remove_node_from_ps): Update rows_length.
1701 (add_node_to_ps): Update rows_length and call create_ps_insn
1702 without passing row_rest_count.
1703 (rotate_partial_schedule): Update rows_length.
1705 2011-06-16 Revital Eres <revital.eres@linaro.org>
1707 * ddg.c (add_intra_loop_mem_dep): New function.
1708 (build_intra_loop_deps): Call it.
1710 2011-06-13 Jeff Law <law@redhat.com>
1712 * df-problems.c (df_lr_local_compute): Manually CSE
1713 PIC_OFFSET_TABLE_REGNUM.
1714 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1715 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1717 2011-06-13 Jan Hubicka <jh@suse.cz>
1719 * cgraphunit.c (handle_alias_pairs): New function.
1720 (cgraph_finalize_compilation_unit): Use it.
1721 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1722 as externally visible.
1724 2011-06-15 Richard Guenther <rguenther@suse.de>
1726 * expr.c (expand_expr_real_2): Reduce all integral types to
1728 (expand_expr_real_1): Likewise.
1730 2011-06-15 Martin Jambor <mjambor@suse.cz>
1732 PR tree-optimization/48613
1733 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1734 ipa_node_params_vector is NULL.
1736 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1739 * dwarf2out.c (dw_loc_list_node): Add force field.
1740 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1741 location in the list, even if it is modified before first real insn.
1742 (output_loc_list): Emit empty ranges with force flag set.
1743 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1745 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1748 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1749 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1750 above a fence. Update comments.
1751 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1752 placed just above it. Do not allow NULL place_to_insert.
1754 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1756 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1757 (slpeel_tree_peel_loop_to_edge): Don't call
1758 remove_dead_stmts_from_loop.
1759 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1760 remove irrelevant pattern statements. For irrelevant statements
1761 check if it is the last statement of a detected pattern, use
1762 corresponding pattern statement instead.
1763 (destroy_loop_vec_info): No need to remove pattern statements,
1764 only free stmt_vec_info.
1765 (vect_transform_loop): For irrelevant statements check if it is
1766 the last statement of a detected pattern, use corresponding
1767 pattern statement instead.
1768 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1769 pattern statements. Set basic block for the new statement.
1770 (vect_pattern_recog): Update documentation.
1771 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1772 operands of pattern statements.
1773 (vectorizable_call): Fix printing. In case of a pattern statement
1774 use the lhs of the original statement when creating a dummy
1775 statement to replace the original call.
1776 (vect_analyze_stmt): For irrelevant statements check if it is
1777 the last statement of a detected pattern, use corresponding
1778 pattern statement instead.
1779 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1780 statements use gsi of the original statement.
1782 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1784 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1785 common/common-target-def.h.
1786 * target.def (default_target_flags, handle_option,
1787 supports_split_stack, optimization_table, init_struct,
1788 except_unwind_info, unwind_tables_default, have_named_sections):
1789 Move to common/common-target.def.
1790 * target.h (enum opt_levels, struct default_options): Move to
1791 common/common-target.h.
1792 * targhooks.c (default_except_unwind_info,
1793 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1794 default_target_handle_option, empty_optimization_table): Move to
1795 common/common-targhooks.c.
1796 * targhooks.h (default_except_unwind_info,
1797 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1798 default_target_handle_option, empty_optimization_table): Move to
1799 common/common-targhooks.h.
1800 * common/common-target-def.h: Include common/common-targhooks.h.
1801 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1803 * common/common-target.def (handle_option, option_init_struct,
1804 option_optimization_table, default_target_flags,
1805 except_unwind_info, supports_split_stack, unwind_tables_default,
1806 have_named_sections): Move from target.def.
1807 (HOOK_PREFIX): Undefine at end of file.
1808 * common/common-target.h: Include input.h.
1809 (enum opt_levels, struct default_options): Move from target.h.
1810 * common/common-targhooks.c, common/common-targhooks.h: New.
1811 * config.gcc (target_has_targetm_common): Default to yes.
1812 (moxie*): Set target_has_targetm_common=no.
1813 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1814 * doc/tm.texi: Regenerate.
1815 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1816 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1817 (GCC_OBJS): Remove vec.o.
1818 (OBJS): Remove hooks.o and vec.o.
1819 (OBJS-libcommon-target): Add vec.o, hooks.o and
1820 common/common-targhooks.o.
1821 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1822 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1823 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1824 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1825 Update dependencies.
1826 (common/common-targhooks.o): New.
1827 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1828 * common/config/pa/pa-common.c: Include more headers. Take
1829 copyright dates from pa.c.
1830 (pa_option_optimization_table, pa_handle_option,
1831 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1832 TARGET_HANDLE_OPTION): Move from pa.c.
1833 * common/config/alpha/alpha-common.c,
1834 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1835 common/config/bfin/bfin-common.c,
1836 common/config/cris/cris-common.c,
1837 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1838 common/config/h8300/h8300-common.c,
1839 common/config/i386/i386-common.c,
1840 common/config/ia64/ia64-common.c,
1841 common/config/iq2000/iq2000-common.c,
1842 common/config/lm32/lm32-common.c,
1843 common/config/m32c/m32c-common.c,
1844 common/config/m32r/m32r-common.c,
1845 common/config/m68k/m68k-common.c,
1846 common/config/mcore/mcore-common.c,
1847 common/config/mep/mep-common.c,
1848 common/config/microblaze/microblaze-common.c,
1849 common/config/mips/mips-common.c,
1850 common/config/mmix/mmix-common.c,
1851 common/config/mn10300/mn10300-common.c,
1852 common/config/pdp11/pdp11-common.c,
1853 common/config/picochip/picochip-common.c,
1854 common/config/rs6000/rs6000-common.c,
1855 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1856 common/config/score/score-common.c, common/config/sh/sh-common.c,
1857 common/config/sparc/sparc-common.c,
1858 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1859 common/config/vax/vax-common.c,
1860 common/config/xstormy16/xstormy16-common.c,
1861 common/config/xtensa/xtensa-common.c: New.
1862 * config/alpha/alpha.c: Include common/common-target.h.
1863 (alpha_option_optimization_table, alpha_handle_option,
1864 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1865 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1866 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1867 * config/arm/arm.c (arm_option_optimization_table,
1868 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1869 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1871 * config/avr/avr.c (avr_option_optimization_table,
1872 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1874 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1875 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1876 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1877 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1878 * config/cris/cris.c (cris_option_optimization_table,
1879 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1880 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1882 * config/fr30/fr30.c (fr30_option_optimization_table,
1883 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1885 * config/frv/frv.c (frv_option_optimization_table,
1886 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1887 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1888 * config/h8300/h8300.c (h8300_option_optimization_table,
1889 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1890 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1891 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1892 * config/i386/i386.c: Include common/common-target.h.
1893 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1894 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1895 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1896 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1897 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1898 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1899 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1900 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1901 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1902 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1903 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1904 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1905 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1906 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1907 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1908 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1909 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1910 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1911 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1912 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1913 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1914 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1915 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1916 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1917 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1918 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1919 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1920 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1921 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1922 ix86_option_optimization_table, ix86_option_init_struct,
1923 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1924 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1925 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1927 * config/i386/t-i386 (i386.o): Update dependencies.
1928 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1929 * config/ia64/ia64.c (ia64_option_optimization_table,
1930 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1931 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1932 ia64_handle_option): Move to ia64-common.c.
1933 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1934 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1935 * config/lm32/lm32.c (lm32_option_optimization_table,
1936 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1938 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1940 * config/m32r/m32r.c (m32r_option_optimization_table,
1941 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1942 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1943 m32r_handle_option): Move to m32r-common.c.
1944 (m32r_memory_move_cost): Remove comment referring to
1945 TARGET_HANDLE_OPTION.
1946 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1947 Move to m68k-common.c.
1948 * config/mcore/mcore.c (mcore_option_optimization_table,
1949 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1950 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1951 * config/mep/mep.c (mep_option_optimization_table,
1952 mep_handle_option, TARGET_HANDLE_OPTION,
1953 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1954 Move to mep-common.c.
1955 * config/microblaze/microblaze.c
1956 (microblaze_option_optimization_table,
1957 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1958 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1959 * config/mips/mips.c (mips_handle_option,
1960 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1961 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1963 * config/mmix/mmix.c (mmix_option_optimization_table,
1964 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1965 Move to mmix-common.c.
1966 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1967 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1968 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1969 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1970 * config/pa/pa.c: Include common/common-target.h.
1971 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1972 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1973 pa_handle_option): Move to pa-common.c.
1974 (pa_option_override): Use targetm_common.except_unwind_info.
1975 (pa_asm_output_mi_thunk, pa_function_section): Use
1976 targetm_common.have_named_sections.
1977 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1978 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1979 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1980 pdp11_handle_option, pdp11_option_init_struct): Move to
1982 * config/picochip/picochip.c (picochip_option_optimization_table,
1983 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1984 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1985 * config/rs6000/rs6000.c: Include common/common-target.h.
1986 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1987 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1988 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1989 rs6000_handle_option): Move to rs6000-common.c.
1990 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1991 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1992 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1993 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1994 * config/s390/s390.c (processor_flags_table,
1995 s390_option_optimization_table, s390_option_init_struct,
1996 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1997 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1998 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1999 * config/s390/s390.h (processor_flags_table): Declare.
2000 * config/score/score.c (score_option_optimization_table,
2001 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2002 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2003 score_handle_option): Move to score-common.c.
2004 * config/sh/sh.c (sh_option_optimization_table,
2005 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2006 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2007 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2008 * config/sparc/sparc.c: Include common/common-target.h.
2009 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2010 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2011 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2012 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2013 spu_option_init_struct): Move to spu-common.c.
2014 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2015 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2016 * config/v850/v850.c (small_memory_physical_max,
2017 v850_handle_memory_optionn v850_handle_option,
2018 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2019 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2021 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2022 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2023 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2024 Move to xtensa-common.c.
2025 * cfglayout.c: Include common/common-target.h.
2026 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2027 * cfgrtl.c: Include common/common-target.h.
2028 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2029 targetm_common.have_named_sections.
2030 * dbxout.c: Include common/common-target.h.
2031 (dbxout_function_end): Use targetm_common.have_named_sections.
2032 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2033 targetm_common.except_unwind_info.
2034 * dwarf2out.c: Include common/common-target.h.
2035 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2036 dwarf2out_begin_prologue, dwarf2out_frame_init,
2037 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2038 targetm_common.except_unwind_info.
2039 * except.c: Include common/common-target.h.
2040 (init_eh, finish_eh_generation,
2041 output_one_function_exception_table): Use
2042 targetm_common.except_unwind_info.
2043 (switch_to_exception_section): Use targetm_common.have_named_sections.
2044 * explow.c: Include common/common-target.h.
2045 * expr.c: Include common/common-target.h.
2046 (build_personality_function): Use targetm_common.except_unwind_info.
2047 * function.c: Include common/common-target.h.
2048 (expand_function_end): Use targetm_common.except_unwind_info.
2049 * haifa-sched.c: Include common/common-target.h.
2050 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2051 * lto-opts.c: Include common/common-target.h instead of target.h.
2052 (lto_reissue_options): Use targetm_common.handle_option.
2053 * opts.c: Include common/common-target.h.
2054 (target_handle_option): Use targetm_common.handle_option.
2055 (init_options_struct): Update comment referring to
2056 targetm.target_option.optimization. Use
2057 targetm_common.default_target_flags,
2058 targetm_common.unwind_tables_default and
2059 targetm_common.option_init_struct.
2060 (default_options_optimization): Use
2061 targetm_common.option_optimization_table.
2062 (finish_options): Use targetm_common.except_unwind_info,
2063 targetm_common.unwind_tables_default,
2064 targetm_common.have_named_sections and
2065 targetm_common.supports_split_stack.
2066 * toplev.c: Include common/common-target.h.
2067 (process_options): Use targetm_common.have_named_sections.
2068 * tree-tailcall.c: Include common/common-target.h.
2069 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2070 * tree.c: Include common/common-target.h.
2071 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2072 * varasm.c: Include common/common-target.h.
2073 (resolve_unique_section, hot_function_section,
2074 default_function_section): Use targetm_common.have_named_sections.
2076 2011-06-14 Easwaran Raman <eraman@google.com>
2078 PR rtl-optimization/44194
2079 * dse.c: Include tree-flow.h
2080 (insn_info): Add new field non_frame_wild_read.
2081 (group_info): Add new fields escaped_n and escaped_p.
2082 (kill_on_calls): New variable.
2083 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2084 (dse_step0): Initialize kill_on_calls.
2085 (can_escape): New function.
2086 (set_usage_bits): Add additional parameter; record information
2087 about escaped locations.
2088 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2089 (dse_step2_nospill): Set kill_on_calls based on
2090 group->escaped_n and group->escaped_n.
2091 (add_wild_read): Refactor into...
2092 (reset_active_stores): ... New function, and
2093 (free_read_records): ... New function.
2094 (add_non_frame_wild_read): New function.
2095 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2096 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2097 (dse_step5_nospill): Call scan_reads_nospill for instructions
2098 marked as non_frame_wild_read.
2099 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2101 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2103 * common/common-target-def.h, common/common-target.def,
2104 common/common-target.h, common/config/default-common.c,
2105 common/config/pa/pa-common.c: New files.
2106 * Makefile.in (common_out_file, common_out_object_file,
2107 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2108 (OBJS-libcommon-target): Include $(common_out_object_file).
2109 (prefix.o): Update dependencies.
2110 ($(common_out_object_file), common/common-target-hooks-def.h,
2111 s-common-target-hooks-def-h): New.
2112 (s-tm-texi): Also check timestamp on common-target.def.
2113 (build/genhooks.o): Update dependencies.
2114 * config.gcc (common_out_file, target_has_targetm_common): Define.
2115 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2116 TARGET_ALWAYS_STRIP_DOTDOT.
2117 * configure.ac (common_out_object_file): Define.
2118 (common_out_file, common_out_object_file): Substitute.
2119 (common): Create directory.
2120 * configure: Regenerate.
2121 * doc/tm.texi.in (targetm_common): Document.
2122 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2123 * doc/tm.texi: Regenerate.
2124 * genhooks.c (hook_array): Also include common/common-target.def.
2125 * prefix.c (tm.h): Don't include.
2126 (common/common-target.h): Include.
2127 (ALWAYS_STRIP_DOTDOT): Don't define.
2128 (update_path): Use targetm_common.always_strip_dotdot instead of
2129 ALWAYS_STRIP_DOTDOT.
2130 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2132 2011-06-14 David Li <davidxl@google.com>
2134 * passes.c (execute_function_todo): Remove TODO_dump_func.
2135 (execute_one_pass): Remove TODO_dump_func.
2136 (execute_function_dump): New function.
2137 * tree-vrp.c: Remove TODO_dump_func.
2138 * regrename.c: Remove TODO_dump_func.
2139 * fwprop.c: Remove TODO_dump_func.
2140 * tree-into-ssa.c: Remove TODO_dump_func.
2141 * tree-complex.c: Remove TODO_dump_func.
2142 * tracer.c: Remove TODO_dump_func.
2143 * tree-loop-distribution.c: Remove TODO_dump_func.
2144 * postreload-gcse.c: Remove TODO_dump_func.
2145 * postreload.c: Remove TODO_dump_func.
2146 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2147 * tree-tailcall.c: Remove TODO_dump_func.
2148 * ipa-cp.c: Remove TODO_dump_func.
2149 * final.c: Remove TODO_dump_func.
2150 * tree-emutls.c: Remove TODO_dump_func.
2151 * omp-low.c: Remove TODO_dump_func.
2152 * tree-ssa-dse.c: Remove TODO_dump_func.
2153 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2154 * auto-inc-dec.c: Remove TODO_dump_func.
2155 * reorg.c: Remove TODO_dump_func.
2156 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2157 * tree-ssa-ccp.c: Remove TODO_dump_func.
2158 * compare-elim.c: Remove TODO_dump_func.
2159 * mode-switching.c: Remove TODO_dump_func.
2160 * modulo-sched.c: Remove TODO_dump_func.
2161 * tree-call-cdce.c: Remove TODO_dump_func.
2162 * cse.c: Remove TODO_dump_func.
2163 * web.c: Remove TODO_dump_func.
2164 * tree-stdarg.c: Remove TODO_dump_func.
2165 * lto-streamer-out.c: Remove TODO_dump_func.
2166 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2167 * tree-ssa-dom.c: Remove TODO_dump_func.
2168 * tree-nrv.c: Remove TODO_dump_func.
2169 * loop-init.c: Remove TODO_dump_func.
2170 * gimple-low.c: Remove TODO_dump_func.
2171 * ipa-inline.c: Remove TODO_dump_func.
2172 * tree-ssa-sink.c: Remove TODO_dump_func.
2173 * jump.c: Remove TODO_dump_func.
2174 * ifcvt.c: Remove TODO_dump_func.
2175 * tree-ssa-loop.c: Remove TODO_dump_func.
2176 * recog.c: Remove TODO_dump_func.
2177 * dse.c: Remove TODO_dump_func.
2178 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2179 * matrix-reorg.c: Remove TODO_dump_func.
2180 * tree-eh.c: Remove TODO_dump_func.
2181 * regmove.c: Remove TODO_dump_func.
2182 * function.c: Remove TODO_dump_func.
2183 * tree-vectorizer.c: Remove TODO_dump_func.
2184 * ipa-split.c: Remove TODO_dump_func.
2185 * gcse.c: Remove TODO_dump_func.
2186 * tree-if-conv.c: Remove TODO_dump_func.
2187 * init-regs.c: Remove TODO_dump_func.
2188 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2189 * implicit-zee.c: Remove TODO_dump_func.
2190 * lower-subreg.c: Remove TODO_dump_func.
2191 * bt-load.c: Remove TODO_dump_func.
2192 * tree-dfa.c: Remove TODO_dump_func.
2193 * except.c: Remove TODO_dump_func.
2194 * emit-rtl.c: Remove TODO_dump_func.
2195 * store-motion.c: Remove TODO_dump_func.
2196 * cfgexpand.c: Remove TODO_dump_func.
2197 * tree-cfgcleanup.c: Remove TODO_dump_func.
2198 * cfgcleanup.c: Remove TODO_dump_func.
2199 * tree-ssa-pre.c: Remove TODO_dump_func.
2200 * tree-sra.c: Remove TODO_dump_func.
2201 * tree-mudflap.c: Remove TODO_dump_func.
2202 * tree-ssa-copy.c: Remove TODO_dump_func.
2203 * cfglayout.c: Remove TODO_dump_func.
2204 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2205 * tree-ssa-dce.c: Remove TODO_dump_func.
2206 * ira.c: Remove TODO_dump_func.
2207 * tree-ssa.c: Remove TODO_dump_func.
2208 * integrate.c: Remove TODO_dump_func.
2209 * tree-optimize.c: Remove TODO_dump_func.
2210 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2211 * tree-object-size.c: Remove TODO_dump_func.
2212 * combine.c: Remove TODO_dump_func.
2213 * bb-reorder.c: Remove TODO_dump_func.
2214 * cprop.c: Remove TODO_dump_func.
2215 * var-tracking.c: Remove TODO_dump_func.
2216 * tree-profile.c: Remove TODO_dump_func.
2217 * tree-vect-generic.c: Remove TODO_dump_func.
2218 * reg-stack.c: Remove TODO_dump_func.
2219 * sched-rgn.c: Remove TODO_dump_func.
2220 * tree-ssa-structalias.c: Remove TODO_dump_func.
2221 * tree-switch-conversion.c: Remove TODO_dump_func.
2222 * tree-cfg.c: Remove TODO_dump_func.
2223 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2224 * combine-stack-adj.c: Remove TODO_dump_func.
2225 * dce.c: Remove TODO_dump_func.
2226 * tree-ssanames.c: Remove TODO_dump_func.
2227 * regcprop.c: Remove TODO_dump_func.
2229 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2232 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2233 and properly handle result not in Pmode.
2235 2011-06-14 Robert Millan <rmh@gnu.org>
2237 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2238 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2241 * config/i386/kfreebsd-gnu64.h: New file.
2242 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2243 with `i386/kfreebsd-gnu64.h'.
2245 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2246 (GNU_USER_LINK_EMULATION64): New macros.
2247 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2248 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2249 of hardcoding `elf_i386' and `elf_x86_64'.
2251 2011-06-14 Nick Clifton <nickc@redhat.com>
2254 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2257 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2259 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2262 * tree.h (DECL_NONSHAREABLE): Define.
2263 (struct tree_decl_common): Change decl_common_unused to
2264 decl_nonshareable_flag.
2265 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2266 Ignore vars with DECL_NONSHAREABLE bit set.
2267 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2268 on stores to automatic aggregate vars.
2270 PR rtl-optimization/49390
2272 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2274 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2277 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2278 Tom de Vries <tom@codesourcery.com>
2281 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2282 Document changed semantics.
2283 (max_stmt_executions, max_stmt_executions_int): Declare.
2284 * tree-data-ref.c (estimated_loop_iterations)
2285 (estimated_loop_iterations_int): Move functions...
2286 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2287 (estimated_loop_iterations_int): here.
2288 (record_estimate): Change nb_iterations_upper_bound and
2289 nb_iterations_estimate semantics.
2290 (max_stmt_executions, max_stmt_executions_int): New function.
2291 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2292 (max_stmt_executions_tree): this.
2293 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2294 estimated_loop_iterations_tree.
2295 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2296 max_stmt_executions_int instead of estimated_loop_iterations_int.
2297 * predict.c (predict_loops): Idem.
2298 * tree-parloops.c (parallelize_loops): Idem.
2299 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2300 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2301 (init_omega_for_ddr_1): Idem.
2302 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2303 (loop_prefetch_arrays): Idem
2304 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2305 max_stmt_executions instead of estimated_loop_iterations.
2306 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2307 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2308 instead of nb_iterations_upper_bound.
2310 2011-06-13 Jan Hubicka <jh@suse.cz>
2312 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2314 2011-06-14 Richard Henderson <rth@redhat.com>
2317 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2318 (based_loc_descr): Assert it's true.
2319 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2320 aborting immediately.
2322 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2323 Mingfeng Wu <mingfeng@faraday-tech.com>
2325 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2327 2011-06-13 Jan Hubicka <jh@suse.cz>
2329 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2331 2011-06-13 Jan Hubicka <jh@suse.cz>
2333 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2334 similarly to DECL_COMDAT.
2335 * cgraphunit.c (cgraph_analyze_function): Likewise.
2336 * ipa.c (function_and_variable_visibility): Likewise.
2338 2011-06-13 Jan Hubicka <jh@suse.cz>
2340 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2341 BINFO_VIRTUALS when streaming for ltrans unit.
2343 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2345 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2346 (movdi_internal64): Same.
2348 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2351 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2352 a set of similar patterns, where the MATCH_OPERAND for the function
2353 argument is replaced with individual references to hardware registers.
2354 (save_fpregs_<mode>): Ditto
2355 (restore_gpregs_<mode>): Ditto
2356 (return_and_restore_gpregs_<mode>): Ditto
2357 (return_and_restore_fpregs_<mode>): Ditto
2358 (return_and_restore_fpregs_aix_<mode>): Ditto
2360 2011-06-13 Jan Hubicka <jh@suse.cz>
2362 * ipa-utils.c (postorder_stack): New structure.
2363 (ipa_reverse_postorder): Handle aliases.
2365 2011-06-13 Jan Hubicka <jh@suse.cz>
2367 * ipa-inline.c (reset_edge_caches): Walk aliases.
2368 (update_caller_keys): Do not test inlinability of aliases.
2369 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2370 (do_estimate_growth): Fix typo.
2372 2011-06-13 Jan Hubicka <jh@suse.cz>
2374 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2375 (can_remove_node_now_p): ... here; handle same comdat groups.
2376 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2377 (inline_call): Update use of can_remove_node_now_p.
2379 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2381 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2382 condition to disallow non-identical memory locations.
2383 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2384 preference to bit manipulation instructions.
2386 2011-06-13 Jan Hubicka <jh@suse.cz>
2388 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2389 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2390 (nonremovable_p): New function.
2391 (cgraph_can_remove_if_no_direct_calls_p): New function.
2392 (used_from_object_file_p): New functoin.
2393 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2394 references from aliases.
2395 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2396 * ipa-inline.c (check_caller_edge): New function.
2397 (want_inline_function_called_once_p): Use it; accept aliases called
2399 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2401 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2404 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2405 correctly for the case with Quad vectors.
2407 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2408 Ira Rosen <ira.rosen@linaro.org>
2410 PR tree-optimization/49352
2411 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2412 all, make sure loop_use_stmt after the loop is a def stmt of a used
2413 SSA_NAME that is the only one defined inside of the loop. Don't
2414 check for COND_EXPR and GIMPLE_BINARY_RHS.
2415 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2416 check_reduction is true.
2418 2011-06-11 Jan Hubicka <jh@suse.cz>
2421 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2423 2011-06-11 Jan Hubicka <jh@suse.cz>
2426 * ipa-inline-transform.c: Include tree-pass.h
2427 (inline_transform): Set TODO_update_ssa_only_virtuals.
2428 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2430 2011-06-11 Jan Hubicka <jh@suse.cz>
2433 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2436 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2438 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2439 Take number of iterations to peel into account for equally frequent
2440 misalignment values.
2442 2011-06-11 Jan Hubicka <jh@suse.cz>
2444 * lto-streamer-out.c (produce_symtab): Stream out the newly
2445 represented aliases.
2447 2011-06-11 Jan Hubicka <jh@suse.cz>
2449 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2451 (ipa_update_after_lto_read): Likewise.
2452 (ipa_write_node_info): Do not sream call_with_var_arguments.
2453 (ipa_read_node_info): Likewise.
2455 2011-06-11 Jan Hubicka <jh@suse.cz>
2457 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2459 2011-06-11 Jan Hubicka <jh@suse.cz>
2461 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2462 (lto_symtab_resolve_can_prevail_p): Likewise.
2463 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2464 * cgraph.c (same_body_aliases_done): New global var.
2465 (cgraph_same_body_alias_1): Rename to ...
2466 (cgraph_create_function_alias): ... this one; reorg to new
2468 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2469 record references when asked to.
2470 (cgraph_add_thunk): Fix formating.
2471 (cgraph_get_node): Kill same body alias code.
2472 (cgraph_node_for_asm): Likewise.
2473 (cgraph_remove_same_body_alias): Remove.
2474 (cgraph_remove_node): Kill same body alias code.
2475 (cgraph_mark_address_taken_node): Mark also the aliased function
2476 as having address taken.
2477 (dump_cgraph_node): Dump same body aliases.
2478 (cgraph_for_node_thunks_and_aliases): Update for new alias
2480 (cgraph_for_node_and_aliases): Likewise.
2481 * cgraph.h (same_body): Kll pointer.
2482 (same_body_alias): Update comment.
2483 (same_body_aliases_done): Declare.
2484 (cgraph_remove_same_body_alias): Remove declaration.
2485 (cgraph_create_function_alias): Declare.
2486 (cgraph_process_same_body_aliases): Declare.
2487 (cgraph_function_with_gimple_body_p): Check for alias.
2488 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2489 (cgraph_alias_aliased_node): New function.
2490 (cgraph_function_node): Update for new aliases.
2491 (cgraph_function_or_thunk_node): Likewise.
2492 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2493 (inline_call): Remove dead aliases.
2494 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2495 name hack for same body aliases.
2496 (clone_of_p): Look through aliases.
2497 (verify_cgraph_node): Verify aliases.
2498 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2499 (cgraph_process_same_body_aliases): New function.
2500 (process_function_and_variable_attributes): Disable weakref warning on
2502 (cgraph_analyze_functions): Handle aliases.
2503 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2504 (assemble_thunks): Rename to ...
2505 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2506 (cgraph_expand_function): Remove alias output code.
2507 (cgraph_output_in_order): Skip aliases.
2508 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2509 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2510 (ipa_record_reference): Do not assert on alias references.
2511 (ipa_ref_has_aliases_p): New function.
2512 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2513 (ipa_ref_has_aliases_p): Declare.
2514 * lto-cgraph.c (lto_output_node): Handle aliases.
2515 (input_node): Likewise.
2516 * lto-streamer-out.c (lto_output): Skip aliases.
2517 (produce_symtab): Kill same_body_alias code.
2518 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2519 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2520 * ipa-inline.c (update_caller_keys): Walk aliases.
2521 (inline_small_functions): Fix thinko in previous patch.
2522 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2523 (function_and_variable_visibility): Do not walk same body aliases.
2524 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2525 (ipa_pta_execute): Use it.
2527 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2529 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2530 (*vec_dupv2df): Rename from vec_dupv2df.
2531 (vec_dupv2df): New expander.
2533 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2535 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2537 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2539 * config/i386/i386.md: Use default value in "isa" attribute.
2540 * config/i386/sse.md: Ditto.
2541 * config/i386/mmx.md: Ditto.
2543 2011-06-10 Wei Guozhi <carrot@google.com>
2546 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2547 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2548 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2550 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2552 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2553 (arm_legitimate_ldrd_p): New prototype.
2554 (arm_output_ldrd): New prototype.
2555 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2556 (arm_legitimate_ldrd_p): New function.
2557 (arm_output_ldrd): New function.
2559 2011-06-10 David Li <davidxl@google.com>
2561 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2562 * passes.c (passr_eq): New function.
2563 (create_pass_tab): New function.
2564 (pass_traverse): New function.
2565 (dump_one_pass): New function.
2566 (dump_pass_list): New function.
2567 (dump_passes): New function.
2569 2011-06-10 Jan Hubicka <jh@suse.cz>
2571 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2572 setting the nothrow flag.
2573 * ipa-reference.c (propagate): Skip aliases.
2574 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2575 (propagate_nothrow): Skip aliases; do not update cgraph.
2576 (local_pure_const): Do not update cgraph.
2577 * tree-profile.c (tree_profiling): Do fixup_cfg.
2579 2011-06-10 Jan Hubicka <jh@suse.cz>
2581 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2582 (cgraph_local_node_p): ... here; handle aliases.
2583 (has_addr_references_p): Break out from ...;
2584 (cgraph_remove_unreachable_nodes) ... here.
2586 2011-06-10 Jan Hubicka <jh@suse.cz>
2588 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2589 * common.opt (flag_inline_functions_called_once): Do not
2592 2011-06-10 Jan Hubicka <jh@suse.cz>
2594 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2595 (ipcp_initialize_node_lattices): Do not deal with aliases;
2596 Do not try to propagate through thunks.
2597 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2599 2011-06-10 Jan Hubicka <jh@suse.cz>
2601 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2603 (ipa_read_node_info): Likewise.
2605 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2608 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2609 (build_and_insert_call): Likewise.
2610 (build_and_insert_ref): New.
2611 (gimple_expand_builtin_pow): Minor cleanup.
2612 (gimple_expand_builtin_cabs): New.
2613 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2615 2011-06-10 Jan Hubicka <jh@suse.cz>
2617 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2618 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2619 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2620 (ipcp_propagate_stage): Skip aliases when propagating.
2621 (ipcp_need_redirect_p): Skip aliases.
2622 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2623 collect_callers_of_node.
2624 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2626 (ipa_compute_jump_functions): Look through aliases.
2628 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2630 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2632 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2634 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2636 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2638 2011-06-10 Jan Hubicka <jh@suse.cz>
2640 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2641 Update call of gimple_get_virt_method_for_binfo.
2642 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2643 refuse_thunks parameter.
2644 (gimple_fold_call): Update.
2645 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2647 2011-06-10 Jan Hubicka <jh@suse.cz>
2649 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2650 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2651 worker for cgraph_for_node_and_aliases.
2652 (convert_callers_for_node): Break out from ...
2653 (convert_callers): ... here.
2654 (modify_function): Use collect_callers_of_node.
2655 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2657 2011-06-10 Richard Guenther <rguenther@suse.de>
2659 PR tree-optimization/49361
2660 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2661 when not already in gimple form.
2663 2011-06-10 Richard Guenther <rguenther@suse.de>
2666 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2667 FOR_EACH_PHI_OR_STMT_USE.
2669 2011-06-10 Jan Hubicka <jh@suse.cz>
2671 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2672 (clone_inlined_nodes): ... here.
2673 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2674 to real destination prior inlining.
2675 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2676 can_early_inline_edge_p, want_early_inline_function_p,
2677 want_early_inline_function_p, want_inline_small_function_p,
2678 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2679 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2680 add_new_edges_to_heap, inline_small_functions, flatten_function,
2681 inline_always_inline_functions, early_inline_small_functions): Use
2682 cgraph_function_or_thunk_node.
2683 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2684 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2685 (do_estimate_edge_growth_1): Break out from ...
2686 (do_estimate_growth) ... here; walk aliases.
2687 (inline_generate_summary): Skip aliases.
2689 2011-06-10 Richard Guenther <rguenther@suse.de>
2691 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2692 forward when combining, visit inserted stmts when a stmt was changed.
2694 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2696 * tree.h (error_operand_p): Add.
2697 * dbxout.c (dbxout_type_fields): Use the latter.
2698 * c-decl.c (add_stmt): Likewise.
2699 * gimplify.c (omp_add_variable, omp_notice_variable,
2700 gimplify_scan_omp_clauses): Likewise.
2702 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2704 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2705 when a value is actually passed in regs.
2707 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2708 Laurent Rougé <laurent.rouge@menta.fr>
2710 * doc/invoke.texi (SPARC options): Add -mflat.
2711 * config/sparc/sparc.opt: Likewise.
2712 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2713 (sparc_flat_expand_prologue): Declare.
2714 (sparc_flat_expand_epilogue): Likewise.
2715 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2716 (CPP_ENDIAN_SPEC): Replace with...
2717 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2718 (CPP_SPEC): Adjust to above change.
2719 (EXTRA_SPECS): Likewise.
2720 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2721 (INCOMING_REGNO): Likewise.
2722 (OUTGOING_REGNO): Likewise.
2723 (LOCAL_REGNO): Likewise.
2724 (SETUP_FRAME_ADDRESSES): Likewise.
2725 (FIXED_REGISTERS): Set 0 for %fp.
2726 (CALL_USED_REGISTERS): Likewise.
2727 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2728 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2729 (RETURN_ADDR_REGNUM): Define.
2730 (RETURN_ADDR_RTX): Use it.
2731 (INCOMING_RETURN_ADDR_REGNUM): Define.
2732 (INCOMING_RETURN_ADDR_RTX): Use it.
2733 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2734 (EH_RETURN_REGNUM): Define.
2735 (EH_RETURN_STACKADJ_RTX): Use it.
2736 (EH_RETURN_HANDLER_RTX): Delete.
2737 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2738 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2740 (struct machine_function): Add frame_size, apparent_frame_size,
2741 frame_base_reg, frame_base_offset, n_global_fp_regs and
2742 save_local_in_regs_p fields.
2743 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2744 sparc_frame_base_offset, sparc_n_global_fp_regs,
2745 sparc_save_local_in_regs_p): New macros.
2746 (sparc_option_override): Error out if -fcall-saved-REG is specified
2748 (eligible_for_restore_insn): Fix formatting.
2749 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2750 (eligible_for_sibcall_delay): Likewise.
2751 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2752 (sparc_legitimate_address_p): Adjust to above change.
2753 (save_global_or_fp_reg_p): New predicate.
2754 (return_addr_reg_needed_p): Likewise.
2755 (save_local_or_in_reg_p): Likewise.
2756 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2757 (SORR_SAVE, SORR_RESTORE): Delete.
2758 (sorr_pred_t): New typedef.
2759 (sorr_act_t): New enum.
2760 (save_or_restore_regs): Rename to...
2761 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2762 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2763 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2764 mechanism. Add CFI information for double-word saves in 32-bit mode.
2765 (emit_adjust_base_to_offset): New function extracted from...
2766 (emit_save_or_restore_regs): ...this. Rename the rest to...
2767 (emit_save_or_restore_regs_global_fp_regs): ...this.
2768 (emit_save_or_restore_regs_local_in_regs): New function.
2769 (gen_create_flat_frame_[123]): New functions.
2770 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2771 (sparc_flat_expand_prologue): New function.
2772 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2773 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2774 (sparc_flat_expand_epilogue): New function.
2775 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2776 (output_return): Likewise.
2777 (output_sibcall): Likewise.
2778 (sparc_output_mi_thunk): Likewise.
2779 (sparc_frame_pointer_required): Likewise.
2780 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2781 function optimization.
2782 * config/sparc/sparc.md (flat): New attribute.
2783 (prologue): Add TARGET_FLAT handling.
2784 (save_register_window): Disable if TARGET_FLAT.
2785 (create_flat_frame_[123]): New patterns.
2786 (epilogue): Add TARGET_FLAT handling.
2787 (sibcall_epilogue): Likewise.
2788 (eh_return): New expander.
2789 (eh_return_internal): New insn and splitter.
2790 (return_internal): Add TARGET_FLAT handling.
2791 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2792 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2793 (nonlocal_goto): Add TARGET_FLAT handling.
2794 * config/sparc/t-elf: Add -mflat multilib.
2795 * config/sparc/t-leon: Likewise.
2797 2011-06-10 Jan Hubicka <jh@suse.cz>
2799 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2800 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2801 (self_recursive_p): Use cgraph_function_node.
2802 (propagate_pure_const): Likewise.
2803 (propagate_nothrow): Likewise.
2804 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2805 cgraph_function_node.
2806 (propagate_bits): Likewise.
2807 (propagate): Likewise.
2809 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2810 Richard Earnshaw <rearnsha@arm.com>
2812 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2813 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2814 (*thumb2_movdi_vfp): Delete.
2815 (*arm_movdi_vfp_cortexa8): Delete.
2816 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2817 (*movdi_vfp_cortexa8): Likewise.
2819 2011-06-10 Richard Guenther <rguenther@suse.de>
2821 * stor-layout.c (initialize_sizetypes): Give names to all
2824 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2826 PR tree-optimization/49318
2827 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2828 irrelevant pattern statements.
2830 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2832 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2835 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2838 2011-06-09 Jan Hubicka <jh@suse.cz>
2840 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2841 do not recompute reachable flag.
2842 (cgraph_finalize_function, cgraph_analyze_functions): Set
2843 redefined_extern_inline here.
2845 2011-06-09 Jan Hubicka <jh@suse.cz>
2847 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2848 (cgraph_only_called_directly_p): ... this one; bring offline.
2849 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2850 varpool_used_from_object_file_p): Drop names from the declaratoin.
2851 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2852 collect_callers_of_node): New.
2853 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2854 (cgraph_edge_recursive_p): Use cgraph_function_node.
2855 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2856 (cgraph_node_cannot_be_local_p_1): Break out from ...
2857 (cgraph_node_can_be_local_p): ... here; walk aliases.
2858 (cgraph_for_node_thunks_and_aliases): New function.
2859 (cgraph_for_node_and_aliases): New function.
2860 (cgraph_make_node_local_1): Break out from ...
2861 (cgraph_make_node_local) ... here; use
2862 cgraph_for_node_thunks_and_aliases.
2863 (cgraph_set_nothrow_flag_1): Break out from ...
2864 (cgraph_set_nothrow_flag) ... here;
2865 use cgraph_for_node_thunks_and_aliases.
2866 (cgraph_set_const_flag_1): Break out from ...
2867 (cgraph_set_const_flag) ... here;
2868 use cgraph_for_node_thunks_and_aliases.
2869 (cgraph_set_pure_flag_1): Break out from ...
2870 (cgraph_set_pure_flag) ... here;
2871 use cgraph_for_node_thunks_and_aliases.
2872 (cgraph_propagate_frequency_1): Break out from ...
2873 (cgraph_propagate_frequency) ... here; use
2874 cgraph_for_node_thunks_and_aliases.
2875 (cgraph_used_from_object_file_p): Do not care about aliases.
2876 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2878 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2880 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2882 PR rtl-optimization/49154
2883 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2884 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2885 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2886 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2887 * config/cris/cris.h (cris_register_move_cost): Remove
2888 !TARGET_V32 code. Tweak comments.
2890 2011-06-09 Jan Hubicka <jh@suse.cz>
2892 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2895 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2897 PR rtl-optimization/49154
2898 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2899 is a matching slot in the hashtable, assign it to classes_ptr.
2901 PR rtl-optimization/49154
2902 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2904 * doc/tm.texi: Regenerate.
2906 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2909 * config/sh/sh.md (UNSPEC_CHKADD): New.
2910 (chk_guard_add): New define_insn_and_split.
2911 (symGOT_load): Use chk_guard_add instead of blockage.
2913 2011-06-09 Kai Tietz <ktietz@redhat.com>
2915 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2917 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2919 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2921 2011-06-09 Wei Guozhi <carrot@google.com>
2924 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2925 (peephole2 for conditional move): Generate 16 bit instructions.
2927 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2929 * config/i386/i386.md (*movdi_internal_rex64): Merge
2930 alternatives 6 and 8.
2932 2011-06-09 David Li <davidxl@google.com>
2934 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2935 * passes.c (passr_eq): New function.
2936 (create_pass_tab): New function.
2937 (pass_traverse): New function.
2938 (dump_one_pass): New function.
2939 (dump_pass_list): New function.
2940 (dump_passes): New function.
2942 2011-06-09 David Li <davidxl@google.com>
2944 * tree-complex.c (tree_lower_complex): Gate cleanup.
2945 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2946 (execute_optimize_stdarg): Ditto.
2947 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2948 (execute_cleanup_eh_1): Ditto.
2949 (execute_cleanup_eh): Ditto.
2950 * gcse.c (gate_rtl_pre): Ditto.
2951 (execute_rtl_pre): Ditto.
2952 * except.c (finish_eh_generation): Ditto.
2953 (convert_to_eh_region_ranges): Ditto.
2954 * cprop.c (one_cprop_pass): Ditto.
2956 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2959 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2960 in all basic blocks.
2962 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2964 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2965 (HAVE_ENABLE_EXECUTE_STACK): Define.
2966 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2967 (HAVE_ENABLE_EXECUTE_STACK): Define.
2968 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2969 (HAVE_ENABLE_EXECUTE_STACK): Define.
2970 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2971 (ENABLE_EXECUTE_STACK): Remove.
2972 (HAVE_ENABLE_EXECUTE_STACK): Define.
2973 [IN_LIBGCC2]: Don't include <windows.h>.
2974 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2975 (HAVE_ENABLE_EXECUTE_STACK): Define.
2976 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2977 (HAVE_ENABLE_EXECUTE_STACK): Define.
2978 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2979 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2980 (HAVE_ENABLE_EXECUTE_STACK): Define.
2981 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2982 (HAVE_ENABLE_EXECUTE_STACK): Define.
2983 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2984 (HAVE_ENABLE_EXECUTE_STACK): Define.
2985 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2986 (HAVE_ENABLE_EXECUTE_STACK): Define.
2987 * config/alpha/alpha.c (alpha_trampoline_init): Test
2988 HAVE_ENABLE_EXECUTE_STACK.
2989 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2990 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2991 (sparc64_initialize_trampoline): Likewise.
2992 * libgcc2.c [L_enable_execute_stack]: Remove.
2993 * system.h (ENABLE_EXECUTE_STACK): Poison.
2994 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2995 * doc/tm.texi: Regenerate.
2996 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2998 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3001 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3002 variable. After resetting and rescanning insn continue with previous
3005 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3007 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3008 (gcc_cv_ld_hidden): Likewise.
3009 * configure: Regenerate.
3010 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3011 (ix86_stack_protect_fail): Mark unused.
3012 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3013 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3014 [TARGET_MACHO]: Don't define.
3015 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3016 (TARGET_STACK_PROTECT_FAIL): Likewise.
3017 (rs6000_stack_protect_fail): Mark unused.
3018 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3019 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3021 2011-06-08 Andi Kleen <ak@linux.intel.com>
3023 * varasm.c (get_section): Print location of other conflict
3024 for section conflicts.
3026 2011-06-08 Andi Kleen <ak@linux.intel.com>
3028 * config/i386/driver-i386.c (host_detect_local_cpu):
3029 Add model 0x2d Intel CPU.
3031 2011-06-08 Andi Kleen <ak@linux.intel.com>
3033 * reginfo.c (global_regs_decl): Add.
3034 (globalize_reg): Add decl parameter. Compute location. Pass location
3035 to warnings and add inform. Store decl in global_regs_decl.
3036 * rtl.h (globalize_reg): Update prototype.
3037 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3039 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3041 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3043 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3046 * config/sh/predicates.md (general_movsrc_operand): Check
3047 mode for memory with indexed address for QI and HImode.
3048 (general_movdst_operand): Likewise.
3050 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3052 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3054 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3056 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3057 (num_ssa_operands): Likewise.
3058 (op_iter_init_phiuse): Forward-declare.
3059 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3061 2011-06-08 Nick Clifton <nickc@redhat.com>
3063 * doc/invoke.texi (ARM Options): Update description of
3066 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3068 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3069 unknown Intel family 0x6 CPUs.
3071 2011-06-08 Martin Jambor <mjambor@suse.cz>
3073 * tree-sra.c (mark_rw_status): Removed.
3074 (analyze_access_subtree): New parameter parent instead of
3075 mark_read and mark_write, propagate from that.
3077 2011-06-08 Julian Brown <julian@codesourcery.com>
3079 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3080 for double-precision helper functions in hard-float mode if only
3081 single-precision arithmetic is supported in hardware.
3083 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3085 PR rtl-optimization/49303
3086 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3087 code_motion_path_driver returned 0 or 1.
3088 (sel_region_finish): Clear h_d_i_d.
3090 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3092 * config/sh/sh.c (prepare_move_operands): Set pic register
3093 appropriately for global and local dynamic tls models even
3094 if flag_pic is unset.
3096 2011-06-07 Jason Merrill <jason@redhat.com>
3098 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3100 2011-06-07 Xinliang David Li <davidxl@google.com>
3101 * passes.c (enable_disable_pass): Handle assembler name.
3102 (is_pass_explicitly_enabled_or_disabled): Ditto.
3104 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3106 PR tree-optimization/48497
3107 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3109 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3111 PR tree-optimization/46728
3112 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3113 to use gimple_val_nonnegative_real_p.
3114 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3115 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3117 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3119 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3121 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3123 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3126 2011-06-07 Richard Guenther <rguenther@suse.de>
3128 * stor-layout.c (initialize_sizetypes): Initialize all
3129 sizetypes based on target definitions.
3130 (set_sizetype): Remove.
3131 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3132 * tree.h (set_sizetype): Remove.
3134 2011-06-07 Nick Clifton <nickc@redhat.com>
3136 * config.gcc: Unify V850 architecture options and add support for
3137 newer V850 architectures.
3138 * config/v850/t-v850e: Delete.
3140 2011-06-07 Richard Guenther <rguenther@suse.de>
3142 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3143 Call set_sizetype from here.
3145 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3147 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3148 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3150 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3151 Andrew Stubbs <ams@codesourcery.com>
3153 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3155 * doc/md.texi (Canonicalization of Instructions): Document widening
3156 multiply canonicalization.
3158 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3160 PR gcov-profile/49299
3161 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3163 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3165 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3167 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3168 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3169 vect_recog_pow_pattern): Likewise.
3170 (vect_pattern_recog_1): Remove declaration.
3171 (widened_name_p): Remove declaration. Add new argument to specify
3172 whether to check that both types are either signed or unsigned.
3173 (vect_recog_widen_mult_pattern): Update documentation. Handle
3174 unsigned patterns and multiplication by constants.
3175 (vect_pattern_recog_1): Update vect_recog_func references. Use
3176 statement information from the statement returned from pattern
3177 detection functions.
3178 (vect_pattern_recog): Update vect_recog_func reference.
3179 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3180 multiplication by a constant use the type of the other operand.
3182 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3184 PR rtl-optimization/49145
3185 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3187 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3190 * dwarf2out.c (native_encode_initializer): Decrement count in each
3194 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3198 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3199 if stmt folded into nothing.
3200 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3201 a bb folded into nothing, just update cgraph edges and move to next bb.
3202 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3203 to be NULL. Don't compute count and frequency if new_call is NULL.
3205 2011-06-04 Diego Novillo <dnovillo@google.com>
3207 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3208 (cgraph.o): Likewise.
3209 (cgraphunit.o): Likewise.
3210 * cgraphunit.c: Include lto-streamer.h
3211 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3213 * lto-streamer-in.c (unpack_value_fields): Call
3214 streamer_hooks.unpack_value_fields if set.
3215 (lto_materialize_tree): For unhandled nodes, first try to
3216 call lto_streamer_hooks.alloc_tree, if it exists.
3217 (lto_input_ts_decl_common_tree_pointers): Move reading of
3218 DECL_INITIAL to lto_streamer_read_tree.
3219 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3220 (lto_streamer_read_tree): New.
3221 (lto_reader_init): Rename from lto_init_reader.
3222 Move initialization code to lto/lto.c.
3223 * lto-streamer-out.c (pack_value_fields): Call
3224 streamer_hooks.pack_value_fields if set.
3225 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3226 call streamer_hooks.indexable_with_decls_p before giving up.
3227 (lto_output_ts_decl_common_tree_pointers): Move handling
3228 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3229 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3230 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3231 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3232 (lto_streamer_write_tree): New.
3233 (lto_output): Call lto_streamer_init directly.
3234 (lto_writer_init): Remove.
3235 * lto-streamer.c (streamer_hooks): New.
3236 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3237 instead of lto_preload_common_nodes.
3238 (lto_is_streamable): Move from lto-streamer.h
3239 (lto_streamer_hooks_init): New.
3240 (streamer_hooks): New.
3241 (streamer_hooks_init): New.
3242 * lto-streamer.h (struct output_block): Forward declare.
3243 (struct lto_input_block): Likewise.
3244 (struct data_in): Likewise.
3245 (struct bitpack_d): Likewise.
3246 (struct streamer_hooks): Declare.
3247 (streamer_hooks): Declare.
3248 (lto_streamer_hooks_init): Declare.
3249 (lto_streamer_write_tree): Declare.
3250 (lto_streamer_read_tree): Declare.
3251 (streamer_hooks_init): Declare.
3252 (lto_is_streamable): Move to lto-streamer.c
3254 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3256 * longlong.h (smul_ppmm): The resulting register pair contains the
3257 higher order word first.
3259 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3261 PR tree-optimization/46728
3262 * builtins.c (powi_table): Remove.
3263 (powi_lookup_cost): Remove.
3264 (powi_cost): Remove.
3265 (expand_powi_1): Remove.
3266 (expand_powi): Remove.
3267 (expand_builtin_pow_root): Remove.
3268 (expand_builtin_pow): Remove.
3269 (expand_builtin_powi): Eliminate handling of constant exponent.
3270 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3272 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3274 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3276 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3278 * dce.c (reset_unmarked_insns_debug_uses): New.
3279 (delete_unmarked_insns): Skip debug insns.
3280 (prescan_insns_for_dce): Likewise.
3281 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3282 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3283 active reg can be found.
3284 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3285 (convert_regs_1): Use it.
3287 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3289 * tree-pretty-print.c (dump_function_header): Add flags.
3290 Don't dump decl_uid with nouid.
3291 * tree-pretty-print.h (dump_function_header): Adjust.
3292 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3293 * passes.c (pass_init_dump_file): Pass dump_flags on.
3294 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3296 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3299 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3301 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3303 PR tree-optimization/49243
3304 * calls.c (setjmp_call_p): Also check if fndecl has the
3305 returns_twice attribute.
3307 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3309 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3312 2011-06-06 Richard Henderson <rth@redhat.com>
3313 Georg-Johann Lay <avr@gjlay.de>
3316 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3318 * config/avr/avr.md ("insv"): New insn expander.
3319 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3320 "*insv.not.io", "*insv.reg"): New insns.
3322 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3325 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3326 to nonimmediate_operand from memory_operand for the operand that is to
3327 be forced to memory by the expander. Lose the constraints.
3329 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3331 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3332 EH return when delayed branches are disabled.
3334 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3336 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3337 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3339 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3340 Simplify MODE_V1DF and MODE_V2SF handling.
3341 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3342 Simplify MODE_SF handling.
3344 2011-06-04 Jan Hubicka <jh@suse.cz>
3346 PR tree-optimization/48893
3347 PR tree-optimization/49091
3348 PR tree-optimization/49179
3349 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3352 2011-06-04 Jan Hubicka <jh@suse.cz>
3355 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3358 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3360 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3362 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3365 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3366 to be strictly smaller than 1 << shiftcount.
3368 2011-06-04 Jan Hubicka <jh@suse.cz>
3370 PR tree-optimize/48929
3371 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3374 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3377 * calls.c (emit_call_1): Prefer the __builtin declaration of
3380 2011-06-03 Diego Novillo <dnovillo@google.com>
3382 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3383 (lto_input_tree_pointers): Likewise.
3384 * lto-streamer-out.c (pack_value_fields): Likewise.
3385 (lto_output_tree_pointers): Likewise.
3386 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3387 and OPTIMIZATION_NODE.
3389 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3391 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3392 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3393 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3394 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3395 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3396 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3397 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3398 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3399 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3400 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3401 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3402 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3403 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3404 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3405 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3406 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3407 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3408 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3409 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3410 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3411 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3412 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3413 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3414 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3415 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3416 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3417 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3418 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3419 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3420 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3421 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3422 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3423 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3424 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3425 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3426 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3427 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3428 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3429 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3430 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3431 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3432 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3433 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3434 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3435 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3436 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3437 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3438 * system.h (MD_UNWIND_SUPPORT): Poison.
3439 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3440 * doc/tm.texi: Regenerate.
3441 * unwind-dw2.c: Include md-unwind-support.h instead of
3443 * config/ia64/unwind-ia64.c: Likewise.
3444 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3446 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3448 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3450 2011-06-03 Richard Henderson <rth@redhat.com>
3451 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3453 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3454 (sigill_hdlr): Correct insn, insn size.
3455 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3457 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3459 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3461 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3462 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3463 * config/mips/t-iris: Remove.
3464 * config/mips/t-irix6: New file.
3465 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3467 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3469 * Makefile.in (LIB2ADDEHDEP): Remove.
3470 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3471 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3472 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3473 * config/t-darwin (LIB2ADDEHDEP): Remove.
3474 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3475 * config/t-linux (LIB2ADDEHDEP): Remove.
3477 2011-06-03 Diego Novillo <dnovillo@google.com>
3479 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3480 (lto_register_var_decl_in_symtab): Likewise.
3481 (lto_register_function_decl_in_symtab): Likewise.
3482 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3483 logic to uniquify_nodes.
3485 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3487 * config/alpha/t-osf5: Remove.
3488 * config/alpha/t-osf-pthread: Remove.
3489 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3490 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3492 2011-06-03 Julian Brown <julian@codesourcery.com>
3494 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3495 (strongarm1110): Use strongarm tuning.
3496 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3497 * config/arm/arm.c (arm_strongarm_tune): New.
3498 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3499 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3500 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3501 setting, using previous defaults or 1 for Cortex-A5.
3502 (arm_option_override): Set max_insns_skipped from current tuning.
3504 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3506 * doc/install.texi (Options specification): Document --with-specs.
3508 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3510 * config/arm/neon.md (orndi3_neon): Actually split it.
3512 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3514 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3515 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3517 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3520 * target.def (delay_sched2, delay_vartrack): New.
3521 * doc/tm.texi.in: Update.
3522 * doc/tm.texi: Rebuild.
3523 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3524 * var-tracking.c (gate_handle_var_tracking): Likewise.
3525 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3526 (bfin_flag_var_tracking): Drop.
3527 (output_file_start): Don't save and override flag_var_tracking.
3528 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3529 (bfin_reorg): Test original variables.
3530 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3531 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3532 (ia64_flag_var_tracking): Drop.
3533 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3534 (ia64_file_start): Don't save and override flag_var_tracking.
3535 (ia64_override_options_after_change): Ditto
3536 flag_schedule_insns_after_reload.
3537 (ia64_reorg): Test original variables.
3538 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3539 (picochip_flag_var_tracking): Drop.
3540 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3541 (picochip_option_override): Don't save and override
3542 flag_schedule_insns_after_reload.
3543 (picochip_asm_file_start): Ditto flag_var_tracking.
3544 (picochip_reorg): Test original variables.
3545 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3546 (TARGET_DELAY_VARTRACK): Define.
3547 (spu_var_tracking): New.
3548 (spu_machine_dependent_reorg): Call it.
3549 (asm_file_start): Don't save and override flag_var_tracking.
3551 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3554 * config/sh/predicates.md (general_movsrc_operand): Return 0
3555 for memory and memory subreg of which address is an invalid
3556 indexed address for QI and HImode.
3557 (general_movdst_operand): Likewise.
3559 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3561 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3562 edges only, when there is a non-local label in the function.
3563 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3565 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3567 * config/i386/constraints.md (Y3): New register constraint.
3568 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3569 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3570 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3571 *sse2_interleave_lowv2df.
3573 2011-06-02 Julian Brown <julian@codesourcery.com>
3575 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3576 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3577 (arm_cortex_a5_tune): New.
3579 2011-06-02 Julian Brown <julian@codesourcery.com>
3581 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3582 * config/arm/arm.c (arm_default_branch_cost): New.
3583 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3584 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3585 (arm_fa726_tune): Set branch_cost field using
3586 arm_default_branch_cost.
3587 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3588 current_tune structure.
3589 * dojump.c (tm_p.h): Include file.
3591 2011-06-02 Julian Brown <julian@codesourcery.com>
3593 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3595 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3596 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3597 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3599 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3600 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3601 (arm_fa726te_tune): Add prefer_constant_pool setting.
3602 (arm_v6t2_tune, arm_cortex_tune): New.
3603 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3604 prefer_constant_pool setting.
3606 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3608 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3610 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3611 (*movdf_internal) <case 6,7,8>: Ditto.
3613 * config/i386/constraints.md (Y4): New register constraint.
3614 * config/i386/sse.md (vec_set<mode>_0): Merge with
3615 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3616 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3617 *vec_extractv2di_1_sse.
3618 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3619 and *vec_concatv2di_rex64_sse.
3621 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3624 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3625 of cgraph_local_info for null before attempting to use it.
3627 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3629 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3630 (current_function_dynamic_alloc_count): Delete.
3631 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3632 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3633 (expand_builtin_update_setjmp_buf): Remove dead code.
3634 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3635 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3637 * function.c (instantiate_virtual_regs): Likewise.
3638 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3639 for a block with a single abnormal incoming edge.
3640 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3641 (SETJMP_VIA_SAVE_AREA): Delete.
3642 * config/sparc/sparc-protos.h (load_got_register): Declare.
3643 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3644 (load_got_register): Make global.
3645 (sparc_frame_pointer_required): Add 'static'.
3646 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3647 (sparc_builtin_setjmp_frame_value): New function.
3648 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3649 (save_stack_nonlocal): New expander.
3650 (restore_stack_nonlocal): Likewise.
3651 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3652 (nonlocal_goto_internal): New insn.
3653 (goto_handler_and_restore): Delete.
3654 (builtin_setjmp_setup): Likewise.
3655 (do_builtin_setjmp_setup): Likewise.
3657 (builtin_setjmp_receiver): New expander.
3659 2011-06-01 David Li <davidxl@google.com>
3662 * tree-pretty-print.c (dump_function_header): Format cleanup.
3664 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3667 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3668 needed when original operands are used for msw_skip comparison.
3670 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3673 * var-tracking.c (add_uses, add_stores): Don't call
3674 cselib_subst_to_values on ENTRY_VALUE.
3676 2011-06-01 Diego Novillo <dnovillo@google.com>
3678 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3679 output_record_start with LTO_null instead of output_zero.
3680 (lto_output_ts_binfo_tree_pointers): Likewise.
3681 (lto_output_tree): Likewise.
3682 (output_eh_try_list): Likewise.
3683 (output_eh_region): Likewise.
3684 (output_eh_lp): Likewise.
3685 (output_eh_regions): Likewise.
3686 (output_bb): Likewise.
3687 (output_function): Likewise.
3688 (output_unreferenced_globals): Likewise.
3689 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3690 instead of NUM_TREE_CODES.
3691 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3692 (lto_output_int_in_range): Change << to >> when shifting VAL.
3694 2011-06-01 Diego Novillo <dnovillo@google.com>
3696 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3697 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3699 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3702 * optabs.h (valid_multiword_target_p): Declare.
3703 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3704 doing multi-word operations.
3705 * optabs.c (expand_binop): Likewise.
3706 (expand_doubleword_bswap): Likewise.
3707 (expand_absneg_bit): Likewise.
3708 (expand_unop): Likewise.
3709 (expand_copysign_bit): Likewise.
3710 (multiword_target_p): New function.
3712 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3714 PR rtl-optimization/48830
3715 PR rtl-optimization/48808
3716 PR rtl-optimization/48792
3717 * reload.c (push_reload): Check contains_reg_of_mode.
3718 * reload1.c (strip_paradoxical_subreg): New function.
3719 (gen_reload_chain_without_interm_reg_p): Use it to handle
3720 paradoxical subregs.
3721 (emit_output_reload_insns, gen_reload): Likewise.
3723 2011-06-01 David Li <davidxl@google.com>
3725 * predict.c : Change pass name
3728 * tree-profile.c: Ditto.
3731 2011-06-01 David Li <davidxl@google.com>
3733 * tree-pretty-print.c (dump_function_header): New function.
3734 * final.c (rest_of_clean_state): Use header dumper.
3735 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3736 * passes.c (pass_init_dump_file): Use header dumper.
3738 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3740 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3741 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3742 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3744 (mem_loc_descriptor): Use them.
3746 * var-tracking.c (create_entry_value): New function.
3747 (vt_add_function_parameter): Use it.
3749 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3751 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3752 Include <signal.h>, <ucontext.h>.
3753 (sigill_caught): Define.
3754 (sigill_hdlr): New function.
3755 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3756 insns can be executed.
3757 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3758 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3760 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3762 * config/t-slibgcc-darwin: Move to ...
3763 * config/t-slibgcc-dummy: ... this. Clarify comments.
3764 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3765 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3766 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3767 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3768 Remove i386/t-crtstuff from tmake_file.
3769 (i[34567]86-*-solaris2*): Remove t-svr4,
3770 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3772 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3773 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3774 sparc/t-crtfm from tmake_file.
3775 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3776 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3778 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3779 * config/i386/t-nwld (SHLIB_LINK): Remove.
3780 * config/i386/t-rtems-i386: Rename to ...
3781 * config/i386/t-rtems: ... this.
3782 ($(T)crti.o, $(T)crtn.o): Remove.
3783 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3784 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3785 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3786 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3787 EXTRA_MULTILIB_PARTS): Remove.
3788 * config/sparc/t-sol2-64: Likewise.
3789 * config/sparc/t-sol2: Remove.
3790 * config/sparc/t-crtin: Remove.
3791 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3792 * config/i386/gmon-sol2.c: Remove.
3793 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3794 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3795 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3796 * config/i386/sol2-gc1.asm: Remove.
3797 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3798 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3799 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3800 * config/t-slibgcc-sld: Remove.
3802 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3804 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3805 base_type_for_mode with op_mode instead of mode.
3807 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3809 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3811 * config/arm/arm-tune.md: Regenerate.
3812 * config/arm/arm-tables.opt: Regenerate.
3813 * config/arm/arm.c (FL_DIV): Rename...
3814 (FL_THUMB_DIV): ... to this.
3815 (FL_ARM_DIV): Define.
3816 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3817 (arm_arch_hwdiv): Remove.
3818 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3819 (arm_issue_rate): Add cortexr5.
3820 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3821 __ARM_ARCH_EXT_IDIV__.
3822 (TARGET_IDIV): Define.
3823 (arm_arch_hwdiv): Remove.
3824 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3825 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3826 (divsi3, udivsi3): New patterns.
3827 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3828 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3830 2011-06-01 Martin Jambor <mjambor@suse.cz>
3832 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3833 * ipa-utils.c (searchc): Set scc_no.
3835 2011-06-01 Martin Jambor <mjambor@suse.cz>
3837 * ipa-utils.c (searchc_env): New field allow_overwritable.
3838 (searchc): do not ignore edges to overwritable nodes if indicated
3839 by env->allow_overwritable.
3840 (ipa_reduced_postorder): Set env.allow_overwritable.
3842 2011-06-01 Richard Guenther <rguenther@suse.de>
3844 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3846 * lto-streamer.c (lto_record_common_node): Take node pointer,
3847 do not register types.
3848 (lto_preload_common_nodes): Explicitly skip preloading nodes
3849 that differ between frontends.
3851 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3853 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3856 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3858 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3859 parameter value for dump. Dump cost on outermost call only.
3860 (rs6000_memory_move_cost): Dump cost on outermost call only.
3862 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3864 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3865 DW_OP_GNU_convert ops.
3867 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3868 cselib_preserve_constants.
3869 (cselib_lookup_1): If cselib_preserve_constants,
3870 a new VALUE is being created for REG and there is a VALUE for the
3871 same register in wider mode, add another loc with lowpart SUBREG of
3873 (cselib_subst_to_values): Handle ENTRY_VALUE.
3874 * var-tracking.c (replace_expr_with_values): Return NULL for
3876 * dwarf2out.c (convert_descriptor_to_signed): New function.
3877 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3878 instead of two shifts.
3879 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3880 the right mode if needed.
3881 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3882 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3883 convert_descriptor_to_signed.
3884 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3885 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3888 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3890 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3892 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3893 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3894 (SWI248x): New mode iterator, rename from X87MODEI.
3895 (X87MODEI): Remove mode iterator.
3896 (X87MODEI12): Ditto.
3897 (SSEMODEI24): Ditto.
3899 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3901 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3902 * doc/invoke.texi: Document max-vartrack-expr-depth.
3903 * var-tracking.c (EXPR_DEPTH): New.
3904 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3906 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3908 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3909 * config/i386/sse.md: Add n to negated FMA pattern names.
3911 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3913 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3915 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3917 * gengtype-state.c (read_state_params_structs): Initialize previous.
3919 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3921 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3922 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3924 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3926 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3927 registers. Penalize F*r->o alternative to prevent partial memory
3928 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3929 CONST_DOUBLE immediates when optimizing function for size. Do not move
3930 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3931 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3932 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3933 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3935 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3937 (fp_register_operand splitters): Use fp_register_operand
3938 constraint. Do not use FP_REG_P in insn condition.
3939 (any_fp_register_operand splitters): Use any_fp_register_operand
3940 constraint. Do not use ANY_FP_REG_P in insn condition.
3942 2011-05-31 Jan Hubicka <jh@suse.cz>
3944 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3945 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3946 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3947 (lto_output_edge): Use output_enum and var_len_unsigned.
3948 (lto_output_varpool_node): Likewise.
3949 (input_overwrite_node): Do not take resolution parameter;
3950 extract it from a bitpack.
3951 (input_node): Do not read resolution; use input_enum and
3953 (input_varpool_node): Likewise.
3954 (input_edge): Likewise.
3955 (input_cgraph_1): Likewise.
3957 2011-05-31 Richard Guenther <rguenther@suse.de>
3959 * gimple.c (gimple_register_canonical_type): Do not register
3960 any types via gimple_register_type.
3962 2011-05-31 Jan Hubicka <jh@suse.cz>
3964 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3967 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3969 PR rtl-optimization/49235
3970 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3971 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3973 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3975 PR tree-optimization/49093
3976 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3979 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3982 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3983 for concrete functions containing the code of cloned functions.
3985 2011-05-31 Richard Guenther <rguenther@suse.de>
3987 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3989 (forward_propagate_into_comparison_1): ... this.
3990 (forward_propagate_comparison): Rename to ...
3991 (forward_propagate_into_comparison): ... this. Split out
3992 real forward propagation code to ...
3993 (forward_propagate_comparison): ... this.
3994 (forward_propagate_into_gimple_cond): Remove looping.
3995 (forward_propagate_into_cond): Likewise.
3996 (simplify_not_neg_expr): Return whether we have done something.
3997 (simplify_gimple_switch): Likewise.
3998 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3999 (ssa_forward_propagate_and_combine): ... this. Re-structure
4000 to do a forward forward-propagation walk on BBs and a backward
4001 stmt combining walk on BBs. Consistently re-scan changed statements.
4002 (pass_forwprop): Adjust.
4004 2011-05-30 Ian Lance Taylor <iant@google.com>
4006 * godump.c (go_format_type): Correct length of name added to
4007 obstack for anonymous field.
4009 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4012 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4013 part of the second operand is 0.
4015 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4017 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4018 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4019 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4020 (*movdf_internal_rex64): Do not penalize F->r alternative.
4021 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4022 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4023 when optimizing function for size. Do not move CONST_DOUBLEs
4024 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4025 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4026 SUBREGs. Do not check for MEM_P operands in the insn condition,
4027 check for ANY_FP_REGNO_P instead.
4028 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4029 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4031 * config/i386/i386.c (ix86_option_override_internal): Do not
4032 set TARGET_INTEGER_DFMODE_MOVES here.
4034 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4037 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4039 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4041 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4042 DW_TAG_rvalue_reference_type even for
4043 -gdwarf-4 -fno-debug-types-section.
4045 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4047 PR tree-optimization/46728
4048 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4049 (build_and_insert_binop): New.
4050 (gimple_expand_builtin_pow): Reorder args for
4051 build_and_insert_call; use build_and_insert_binop; add more
4052 optimizations for fractional exponents.
4054 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4059 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4061 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4063 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4064 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4065 TS_BASE instead of TS_COMMON.
4066 * varasm.c (assemble_name): Remove assert.
4068 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4070 * config.gcc: Keep obselete list sorted.
4072 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4073 Eric Botcazou <ebotcazou@adacore.com>
4075 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4076 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4077 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4078 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4079 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4081 2011-05-30 Richard Guenther <rguenther@suse.de>
4083 * gimple.c (gimple_types_compatible_p_1): Compare record
4084 and union type members properly.
4086 2011-05-30 Richard Guenther <rguenther@suse.de>
4088 PR tree-optimization/49210
4089 * ipa-split.c (split_function): Care for the case where the call
4090 result is not trivially convertible to the result holding variable.
4092 2011-05-30 Richard Guenther <rguenther@suse.de>
4094 PR tree-optimization/49218
4095 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4098 2011-05-30 Richard Guenther <rguenther@suse.de>
4100 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4101 New function split out from ...
4102 (forward_propagate_into_gimple_cond): ... here. Adjust.
4103 (forward_propagate_into_cond): Likewise.
4104 (forward_propagate_comparison): Also propagate into
4105 comparisons on assignment RHS. Change return value to
4106 behave similar to forward_propagate_into_cond.
4107 (tree_ssa_forward_propagate_single_use_vars): Handle
4108 strict-overflow warnings properly for forward_propagate_comparison.
4110 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4112 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4114 * configure: Regenerate.
4116 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4118 PR tree-optimization/49199
4119 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4120 non-reduction operands are either defined in the loop or by induction.
4122 2011-05-29 Xinliang David Li <davidxl@google.com>
4124 * opts-global.c (handle_common_deferred_options): Handle new options.
4125 * passes.c (register_one_dump_file): Call register_pass_name.
4126 (execute_one_pass): Check explicit enable/disable flag.
4127 (passr_hash): New function.
4129 (register_pass_name): Ditto.
4130 (get_pass_by_name): Ditto.
4133 (enable_pass): Ditto.
4134 (disable_pass): Ditto.
4135 (is_pass_explicitly_enabled_or_disabled): Ditto.
4137 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4139 * config/i386/i386.md (*movoi_internal_avx): Use
4140 standard_sse_constant_opcode for alternative 0.
4141 (*movti_internal_sse): Ditto.
4142 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4144 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4146 (*movsi_internal): Ditto.
4147 (*movdi_internal): Ditto. Add ssecvt type moves.
4149 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4152 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4154 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4156 PR rtl-optimization/49095
4157 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4158 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4160 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4163 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4164 recurse_p argument. Only follow register copies if it is set,
4165 and prevent mips_find_pic_call_symbol from recursing.
4166 (mips_find_pic_call_symbol): Add a recurse_p argument.
4167 Pass it to mips_pic_call_symbol_from_set.
4168 (mips_annotate_pic_calls): Update accordingly.
4170 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4172 * emit-rtl.c (try_split): Use a loop to search for
4173 NOTE_INSN_CALL_ARG_LOCATIONs.
4175 2011-05-29 Richard Guenther <rguenther@suse.de>
4177 PR tree-optimization/49217
4178 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4180 2011-05-28 Jan Hubicka <jh@suse.cz>
4182 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4184 (string_slot_free): Remove
4185 (create_output_block): Initialize obstack.
4186 (destroy_output_block): Free obstack.
4187 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4188 the string unless it needs to be added into the hash.
4189 (lto_output_string_with_length): Add persistent attribute;
4190 handle NULL strings.
4191 (lto_output_string): Add PERSISTENT parameter.
4192 (output_string_cst, output_identifier): Simplify.
4193 (lto_output_location_bitpack): Update.
4194 (lto_output_builtin_tree): Update.
4195 * lto-streamer.h (struct output_block): Add obstack.
4196 (lto_output_string, lto_output_string_with_length): Remove
4197 declarations; functions are static now.
4199 2011-05-28 Jan Hubicka <jh@suse.cz>
4201 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4202 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4203 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4204 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4205 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4206 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4207 unpack_ts_decl_with_vis_value_fields,
4208 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4209 lto_get_builtin_tree): Use enum and variable length i/o.
4210 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4211 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4213 (bp_pack_enum, bp_unpack_enum): New macros.
4215 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4217 * genrecog.c: Remove redundant forward declarations.
4219 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4221 * config.gcc: Deprecate mips*-*-openbsd*.
4223 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4226 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4229 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4232 * gengtype.c (vec_prefix_type): New function.
4233 (note_def_vec): Use vec_prefix_type and change the length
4234 attribute to be based on the prefix.
4235 * vec.c: Include coretypes.h before vec.h.
4236 (struct vec_prefix): Remove.
4237 (vec_gc_p_reserve): Change the offsetof to sizeof.
4238 (vec_gc_p_reserve_exact): Likewise.
4239 (vec_heap_p_reserve): Likewise.
4240 (vec_heap_p_reserve_exact): Likewise.
4241 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4242 (vec_stack_p_reserve): Change the offsetof to sizeof.
4243 (vec_stack_p_reserve_exact): Likewise.
4244 * vec.h (struct vec_prefix): New struct definition.
4245 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4246 (VEC_T_GTY(T,B)): Likewise.
4247 (DEF_VEC_FUNC_P(T)): Use prefix field.
4248 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4249 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4251 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4253 PR tree-optimization/46728
4254 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4255 (powi_as_mults): Add gimple_set_location.
4256 (build_and_insert_call): New.
4257 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4258 0.5, 0.25, 0.75, 1./3., or 1./6.
4260 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4262 * doc/contrib.texi: Update copyright years.
4263 (Contributors): Add Zdenek Sojka.
4265 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4267 * c-decl.c (c_push_function_context): Copy the current statement
4269 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4270 (finish_struct): Call building_stmt_list_p instead of checking
4272 * c-parser.c (c_parser_postfix_expression): Likewise.
4273 * c-typeck.c (c_end_compound_stmt): Likewise.
4274 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4275 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4276 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4277 (free_stmt_list): Likewise.
4278 * tree.h (struct tree_statement_list): Include typed_tree instead
4280 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4281 as TS_TYPED instead of TS_COMMON.
4283 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4284 Uros Bizjak <ubizjak@gmail.com>
4286 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4287 (HAVE_AS_IX86_TLSGDPTL): Define.
4288 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4289 (HAVE_AS_IX86_TLSLDMPLT): Define.
4290 * configure: Regenerate.
4291 * config.in: Regenerate.
4292 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4293 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4294 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4295 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4296 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4298 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4300 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4302 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4304 (INSN_COND, INSN_REVERSE_COND): New macros.
4305 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4307 (sched_get_condition_with_rev): Cache the results, and look them up
4309 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4310 are clobbered by the current insn.
4311 * target.def (exposed_pipline): New sched data hook.
4312 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4313 * doc/tm.texi: Regenerate.
4315 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4317 PR tree-optimization/49170
4318 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4321 2011-05-27 Richard Guenther <rguenther@suse.de>
4324 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4327 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4329 * haifa-sched.c (sched_scan_info): Remove.
4330 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4332 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4334 (sched_scan): Remove.
4335 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4336 static. All callers changed.
4337 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4338 static. All callers changed.
4339 (sched_init_luids): Remove all arguments except the first. All
4340 callers changed. Don't use sched_scan.
4341 (haifa_init_h_i_d): Likewise.
4342 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4343 manually rather than using sched_init_luids. Likewise with
4344 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4345 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4346 rather than sched_init_luids with NULL args.
4347 * sel-sched-ir.c (new_insns): Remove variable.
4348 (sched_scan): New static function, previously in haifa-sched.c. Remove
4349 all arguments but the first two; all callers changed.
4350 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4351 rather than sched_init_luids.
4352 (sel_init_bbs): Remove second argument. All callers changed.
4353 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4354 with NULL arguments.
4355 (create_insn_rtx_from_pattern): Likewise.
4356 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4357 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4358 (sched_init_insn_luid, sched_extend_luids): Declare.
4359 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4362 2011-05-27 Richard Guenther <rguenther@suse.de>
4365 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4366 A CMP B ? (T) true : (T) false for non-integral types T again.
4368 2011-05-27 Jan Hubicka <jh@suse.cz>
4370 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4371 so 0 means NULL string.
4372 (lto_output_string_with_length): ... here.
4373 (lto_output_string, output_string_cst, output_identifier): Update
4374 handling of NULL strings.
4375 (lto_output_location_bitpack): New function.
4376 (lto_output_location): Use it.
4377 (lto_output_tree_ref): Use output_record_start.
4378 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4380 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4382 (input_string_internal): ... here;
4383 (input_string_cst, input_identifier, lto_input_string): Update handling
4385 (lto_input_location_bitpack): New function
4386 (lto_input_location): Use it.
4387 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4389 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4390 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4391 (bp_pack_value): Sanity check the value range.
4392 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4394 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4397 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4399 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4400 call_arg_location instructions down the floor.
4402 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4404 PR rtl-optimization/49154
4405 * ira.c (setup_pressure_classes): Process class without sublcasses
4406 as a candidate for pressure classes.
4408 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4410 PR rtl-optimization/48575
4411 * genrecog.c (position_type): New enum.
4412 (position): New structure.
4413 (decision): Use position structure instead of a string.
4414 (root_pos, peep2_insn_pos_list): New variables.
4415 (next_position, compare_positions): New functions.
4416 (new_decision): Use position structures instead of strings.
4417 (maybe_both_true): Likewise.
4418 (change_state): Likewise.
4419 (write_tree): Likewise.
4420 (make_insn_sequence): Likewise.
4422 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4424 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4425 TS_BASE instead of TS_COMMON.
4426 (find_decls_types_r): Check for TS_TYPED structure before looking at
4428 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4430 (BLOCK_CHAIN): Use new chain field.
4432 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4434 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4435 moves expensive on Power7 also.
4437 2011-05-26 Richard Guenther <rguenther@suse.de>
4439 * fold-const.c (fold_unary_loc): Remove bogus code.
4441 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4443 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4445 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4446 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4447 TS_BASE instead of TS_COMMON.
4448 * varasm.c (assemble_name): Remove assert.
4450 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4452 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4454 * libgcc-std.ver: Delete file.
4456 2011-05-26 Richard Guenther <rguenther@suse.de>
4458 PR tree-optimization/48702
4459 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4460 only when we know the base address is within bounds.
4461 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4462 assume the base address of TARGET_MEM_REFs is in bounds.
4464 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4467 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4468 declaration in TARGET_SOLARIS.
4470 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4472 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4473 The instruction is then expanded explicitly.
4474 (supported_compare): Callable instruction.
4475 (compare): Likewise.
4477 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4480 * gimplify.c (shortcut_cond_r): Don't special case
4481 COND_EXPRs if they have void type on one of their arms.
4483 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4485 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4486 to reduce duplication, and to achieve a slightly more logical order
4489 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4491 PR tree-optimization/49161
4492 * tree-vrp.c (struct case_info): New type.
4493 (compare_case_labels): Sort case_info structs instead of
4494 trees, and not primarily by CASE_LABEL uids but by
4495 label_for_block indexes.
4496 (find_switch_asserts): Put case labels into struct case_info
4497 array instead of TREE_VEC, adjust sorting, compare label_for_block
4498 values instead of CASE_LABELs.
4500 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4502 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4503 ("orndi3_neon"): Likewise.
4504 ("bic<mode>3_neon"): Likewise.
4506 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4508 PR tree-optimization/49038
4509 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4510 Ensure at least one epilogue iteration if required by data
4512 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4513 to mark loops that require peeling for gaps.
4514 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4515 (vect_get_known_peeling_cost): Take peeling for gaps into
4517 (vect_transform_loop): Generate epilogue if required by data
4519 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4520 loop as requiring an epilogue if there are gaps in the end of
4523 2011-05-25 Ian Lance Taylor <iant@google.com>
4525 * godump.c (go_format_type): Output the first field with a usable
4528 2011-05-25 Ian Lance Taylor <iant@google.com>
4530 * godump.c (go_format_type): Check for invalid type names, pointer
4531 target types, and struct field types.
4533 2011-05-25 Jason Merrill <jason@redhat.com>
4535 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4537 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4539 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4541 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4543 * config/i386/i386.md (*movqi_extv_1)): Put back
4544 "register_operand" check in "type" calculation.
4545 (*movqi_extzv_2): Likewise.
4547 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4549 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4551 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4554 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4555 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4556 __divxc3, __divtc3): Wrap definitions in #ifndef.
4558 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4561 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4562 "register_operand" check and replace q_regs_operand with
4563 QIreg_operand in "type" calculation.
4564 (*movqi_extv_1): Likewise.
4565 (*movqi_extzv_2_rex64): Likewise.
4566 (*movqi_extzv_2): Likewise.
4568 * config/i386/predicates.md (QIreg_operand): New.
4570 2011-05-25 Richard Guenther <rguenther@suse.de>
4572 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4573 type-based offset disambiguation, streamline MEM_REF and
4574 TARGET_MEM_REF handling.
4576 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4578 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4579 (bdesc_special_args): Add pause intrinsic.
4581 * config/i386/i386.md (UNSPEC_PAUSE): New.
4584 * config/i386/ia32intrin.h (__pause): Likewise.
4586 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4589 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4591 PR tree-optimization/46728
4592 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4593 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4595 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4597 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4598 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4599 instead of TS_COMMON.
4601 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4603 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4604 LIBGCC2_GNU_PREFIX is defined.
4606 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4607 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4608 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4609 __clz_tab): Define using __N.
4610 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4611 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4612 * target.def (libfunc_gnu_prefix): New hook.
4613 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4614 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4615 * doc/tm.texi: Regenerate.
4616 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4617 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4619 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4620 (init_optabs): Likewise for the bswap libfuncs.
4621 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4623 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4624 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4625 * libgcc-std.ver: Remove.
4626 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4627 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4629 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4630 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4631 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4632 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4633 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4634 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4635 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4636 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4637 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4638 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4640 2011-05-25 Jan Hubicka <jh@suse.cz>
4642 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4643 (lto_output_tree): Use output_record_start.
4644 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4645 (lto_get_pickled_tree): Use input_record_start.
4646 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4647 (lto_value_range_error): New function.
4648 * lto-streamer.h (lto_value_range_error): Declare.
4649 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4650 (lto_output_enum, lto_input_enum): New macros.
4652 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4654 * common.opt (flag_stack_usage_info): New variable.
4655 (-Wstack-usage): New option.
4656 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4657 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4658 <OPT_fstack_usage>: Likewise.
4659 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4660 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4661 of flag_stack_usage.
4662 (emit_library_call_value_1): Likewise.
4663 * explow.c (allocate_dynamic_stack_space): Likewise.
4664 * function.c (instantiate_virtual_regs ): Likewise.
4665 (prepare_function_start): Likewise.
4666 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4667 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4668 * config/arm/arm.c (arm_expand_prologue): Likewise.
4669 (thumb1_expand_prologue): Likewise.
4670 * config/avr/avr.c (expand_prologue): Likewise.
4671 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4672 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4673 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4674 * config/mips/mips.c (mips_expand_prologue): Likewise.
4675 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4676 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4677 * config/s390/s390.c (s390_emit_prologue): Likewise.
4678 * config/sh/sh.c (sh_expand_prologue): Likewise.
4679 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4680 * config/spu/spu.c (spu_expand_prologue): Likewise.
4682 2011-05-25 Richard Guenther <rguenther@suse.de>
4684 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4685 (gimple_canonical_types_compatible_p): Likewise.
4687 2011-05-25 Jan Hubicka <jh@suse.cz>
4690 * ipa.c (function_and_variable_visibility): Only add to same
4691 comdat group list if DECL_ONE_ONLY.
4693 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4695 PR rtl-optimization/49014
4696 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4698 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4701 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4703 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4705 PR rtl-optimization/48757
4706 * ira-build.c (loop_with_eh_edge_p): Rename to
4707 loop_with_complex_edge_p, check edges on complexity, make function
4709 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4712 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4714 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4715 force flag_ira_share_save_slots to 0.
4717 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4719 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4720 (vt_initialize): Set PROLOGUE_BB unconditionally.
4721 Add block comment about CFA_BASE_RTX machinery.
4722 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4723 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4725 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4728 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4729 parsing of syntax error in ObjC instance variable lists. In
4730 particular, avoid an infinite loop if there is a stray ']'.
4731 Updated error message.
4733 2011-05-24 Ian Lance Taylor <iant@google.com>
4735 * godump.c (go_define): Don't accept a string immediately after
4738 2011-05-24 Ian Lance Taylor <iant@google.com>
4740 * godump.c (struct godump_container): Add invalid_hash field.
4741 (go_format_type): Return false if type is found in invalid_hash.
4742 (go_output_typedef): Add invalid type to invalid_hash.
4743 (go_finish): Create and delete invalid_hash.
4745 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4747 PR tree-optimization/46728
4748 * tree-ssa-math-opts.c (powi_table): New.
4749 (powi_lookup_cost): New.
4751 (powi_as_mults_1): New.
4752 (powi_as_mults): New.
4753 (gimple_expand_builtin_powi): New.
4754 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4755 (gate_cse_sincos): Remove sincos/cexp restriction.
4757 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4760 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4762 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4763 * mips-tdump.c: Likewise.
4765 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4768 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4769 add -mno-XXX. Handle FMA.
4771 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4773 PR rtl-optimization/48633
4774 * ira-build.c (loop_with_eh_edge_p): New function.
4775 (mark_loops_for_removal): Use it.
4777 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4779 PR rtl-optimization/48971
4780 * ira.c (setup_pressure_classes): Don't check register move cost
4781 for classes with one registers. Don't add pressure class if there
4782 is a pressure class with the same available hard registers.
4783 Check contains_reg_of_mode. Fix a typo in collecting
4784 temp_hard_regset. Ignore hard registers not belonging to a class.
4786 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4789 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4791 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4792 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4794 PR gcov-profile/48845
4795 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4797 2011-05-24 Richard Guenther <rguenther@suse.de>
4799 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4800 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4801 (gimple_types_compatible_p_1): Adjust.
4802 (iterative_hash_canonical_type): Do not bother about complete vs.
4804 (gimple_canonical_types_compatible_p): Likewise.
4806 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4808 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4810 2011-05-24 Richard Guenther <rguenther@suse.de>
4813 * gimple.c (gimple_register_canonical_type): Revert
4815 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4816 does not for a tree for the case where it matters. Cache
4817 pointer-type alias-sets.
4819 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4821 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4822 (OBJS): Remove options.o, opts-common.o and prefix.o.
4823 (OBJS-libcommon-target): New.
4824 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4825 (BACKEND): Include libcommon-target.a.
4826 (MOSTLYCLEANFILES): Include libcommon-target.a.
4827 (libcommon-target.a): New.
4828 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4831 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4833 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4834 parts of output shared with the driver.
4835 * optc-gen.awk: Don't generate parts of output not shared with the
4837 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4838 * doc/options.texi (SourcerInclude): Mention options-save.c.
4839 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4840 (OBJS): Add options-save.o.
4841 (options-save.c, options-save.o): New.
4842 (options.o): Update dependencies.
4843 (gcc-options.o): Remove.
4844 (mostlyclean): Remove options-save.c.
4846 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4849 * dbxout.c: Include cgraph.h.
4850 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4851 and without value expr, return NULL if no varpool node exists for
4852 it or if it is not needed.
4853 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4856 * c-decl.c (start_decl): Convert expr to void_type_node.
4858 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4860 PR rtl-optimization/48826
4861 * emit-rtl.c (try_split): When splitting a call that is followed
4862 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4864 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4866 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4867 parameters passed in memory prefer using DECL_INCOMING_RTL over
4868 the pseudos it will be copied into.
4870 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4873 * config/i386/i386.c (ix86_option_override_internal): Save the
4874 initial options after checking vzeroupper.
4876 2011-05-23 David Li <davidxl@google.com>
4878 PR tree-optimization/48988
4879 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4880 Initialize has_valid_pred for each pred chain.
4882 2011-05-23 Richard Guenther <rguenther@suse.de>
4884 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4885 (iterative_hash_gimple_type): Always hash type names.
4887 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4889 * c-typeck.c (build_function_call_vec): Tweak call to
4890 check_function_arguments.
4892 2011-05-23 Richard Guenther <rguenther@suse.de>
4894 PR tree-optimization/49115
4895 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4896 is not necessarily carried out, do not claim it kills the ref.
4897 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4899 2011-05-23 Richard Guenther <rguenther@suse.de>
4902 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4903 what pointer types we accept for folding.
4905 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4907 * gthr-gnat.c: Remove.
4908 * gthr-gnat.h: Remove.
4909 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4910 * config/t-freebsd (LIB2ADDEH): Likewise.
4911 * config/t-linux (LIB2ADDEH): Likewise.
4912 * config/t-sol2 (LIB2ADDEH): Likewise.
4913 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4914 * configure.ac (target_thread_file): Remove gnat handling.
4915 * configure: Regenerate.
4916 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4918 2011-05-23 Tristan Gingold <gingold@adacore.com>
4919 Eric Botcazou <ebotcazou@adacore.com>
4921 * gcov.c (create_file_names): If no object directory is specified,
4922 keep the directory of the file.
4924 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4926 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4927 * configure: Regenerate.
4929 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4932 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4933 failed and the comparison has a single bit signed type, use
4934 constm1_rtx instead of const1_rtx for true value.
4935 (do_store_flag): If ops->type is single bit signed type, disable
4936 signel bit test optimization and pass -1 instead of 1 as last
4937 parameter to emit_store_flag_force.
4939 2011-05-23 Tom de Vries <tom@codesourcery.com>
4942 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4944 (infer_loop_bounds_from_undefined): Use new function.
4946 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4948 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4949 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4950 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4952 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4954 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4956 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4957 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4960 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4962 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4964 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4966 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4967 UNSPEC_MOVE_PIC pattern.
4969 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4971 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4972 (sparc-*-rtems*): Likewise.
4973 (sparc64-*-elf*): Likewise.
4974 (sparc64-*-rtems*): Likewise.
4975 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4976 * config/sparc/t-crtin: New file.
4977 * config/sparc/t-sol2 (crti.o): Delete rule.
4979 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4980 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4981 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4982 (ENDFILE_SPEC): Add crtn.o.
4984 2011-05-22 Tom de Vries <tom@codesourcery.com>
4987 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4988 CODE_CONTAINS_STRUCT (TS_COMMON).
4990 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4993 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4994 only after deciding which mode to use.
4996 2011-05-22 Tom de Vries <tom@codesourcery.com>
4999 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5000 for call to get_shiftadd_cost.
5002 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5005 * config/i386/cpuid.h (bit_MMXEXT): New define.
5007 2011-05-22 Nick Clifton <nickc@redhat.com>
5009 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5010 initialisation of non-existant args[2] element. Use args[] array
5011 not arg[] array to pass arguments to build_function_type_list.
5013 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5015 PR tree-optimization/49087
5016 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5018 2011-05-21 Jason Merrill <jason@redhat.com>
5021 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5022 static storage duration.
5024 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5026 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5029 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5031 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5032 false if there are call-saved registers here...
5033 (sparc_can_use_return_insn_p): ...but here instead.
5034 (save_or_restore_regs): Fix thinko.
5035 (sparc_expand_prologue): Use current_function_is_leaf.
5036 (sparc_frame_pointer_required): Likewise.
5038 2011-05-21 Nick Clifton <nickc@redhat.com>
5041 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5043 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5045 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5046 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5048 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5050 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5051 * optc-gen.awk: Move common code to opt-read.awk.
5052 * opth-gen.awk: Likewise.
5053 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5055 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5057 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5059 2011-05-20 Tom de Vries <tom@codesourcery.com>
5062 * tree-ssa-loop-ivopts.c: Include expmed.h.
5063 (get_shiftadd_cost): New function.
5064 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5066 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5069 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5070 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5072 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5074 * Makefile.in: Update comment referring to $(OBJS-common).
5076 2011-05-20 Ian Lance Taylor <iant@google.com>
5078 * godump.c (go_output_typedef): Put enum constants in the macro
5079 hash table to avoid duplicate Go const definitions.
5081 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5083 * Makefile.in (LIBDEPS): Add libcommon.a.
5085 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5086 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5087 pretty-print.o and version.o.
5088 (OBJS-libcommon): New.
5089 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5090 (BACKEND): Add libcommon.a.
5091 (MOSTLYCLEANFILES): Likewise.
5093 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5094 (cpp$(exeext)): Likewise.
5095 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5096 pretty-print.o and input.o.
5097 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5098 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5100 (mips-tfile): Don't explicitly use version.o.
5101 (mips-tdump): Likewise.
5102 (gcov.o): Depend on $(DIAGNOSTIC_H).
5103 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5104 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5105 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5106 * gcov-dump.c: Include intl.h and diagnostic.h.
5107 (main): Initialize diagnostics.
5108 * gcov.c: Include diagnostic.h.
5110 (main): Initialize diagnostics.
5111 * lto-wrapper.c: Include diagnostic.h.
5112 (main): Initialize diagnostics.
5114 2011-05-20 Michael Matz <matz@suse.de>
5116 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5118 2011-05-20 Michael Matz <matz@suse.de>
5119 Richard Guenther <rguenther@suse.de>
5121 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5122 use lto_streamer_cache_append directly instead of returning a VEC.
5123 (preload_common_node): Remove.
5124 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5126 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5128 2011-05-20 Richard Guenther <rguenther@suse.de>
5130 PR tree-optimization/49079
5131 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5132 MEM_REFs correctly for the trailing array access detection.
5133 Special case constants the same way as decls for overall size
5136 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5138 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5141 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5143 PR tree-optimization/49073
5144 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5145 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5146 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5148 2011-05-20 Richard Guenther <rguenther@suse.de>
5151 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5152 of pointer types the same way the middle-end does.
5154 2011-05-20 Richard Guenther <rguenther@suse.de>
5156 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5157 or pointer-to chains. Delay all fixup to uniquify_nodes.
5159 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5161 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5162 (fma4_fmaddsub): Likewise
5164 2011-05-19 Jan Hubicka <jh@suse.cz>
5166 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5167 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5168 (type_pair_cache): New static var.
5169 (lookup_type_pair): Use fixed sized custom hash; make inline.
5170 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5171 calls of lookup_type_pair.
5172 (print_gimple_types_stats): Remove cache stats.
5173 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5176 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5178 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5179 when TARGET_RDRND is active.
5180 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5181 Generate dummy SImode target register when target is NULL.
5183 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5185 * config/arm/arm-fpus.def: New.
5186 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5188 * config/arm/arm-tables.opt: Regenerate.
5189 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5190 (arm_option_override): Don't decode FPU name to string here.
5191 * config/arm/arm.opt (mfpu=): Use Enum.
5192 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5193 Update dependencies.
5195 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5197 * collect2.c: Include diagnostic.h.
5198 (fatal_perror, fatal, error, fancy_abort): Remove.
5199 (main): Set progname. Call xmalloc_set_program_name and
5200 diagnostic_initialize.
5201 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5202 scan_libraries, resolve_lib_name): Call fatal_error instead of
5203 fatal and fatal_perror.
5204 * collect2.h (error, fatal, fatal_perror): Don't declare.
5205 * tlink.c: Include diagnostic-core.h.
5206 (recompile_files): Call fatal_error instead of fatal_perror.
5207 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5208 pretty-print.o and input.o.
5209 (collect2.o, tlink.o): Update dependencies.
5211 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5213 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5215 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5218 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5219 COMDAT group syntax, both SPARC and x86 variants.
5220 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5221 * configure: Regenerate.
5222 * config/sol2.h (TARGET_SOLARIS): Define.
5223 (PUSHSECTION_FORMAT): Remove.
5224 (SECTION_NAME_FORMAT): Define.
5225 * config/sol2.c: Include hashtab.h.
5226 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5227 expansion, using SECTION_NAME_FORMAT.
5228 (solaris_comdat_htab): New variable.
5229 (struct comdat_entry): Define.
5230 (comdat_hash): New function.
5231 (comdat_eq): New function.
5232 (solaris_elf_asm_comdat_section): New function.
5233 (solaris_define_comdat_signature): New function.
5234 (solaris_code_end): New function.
5235 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5236 (solaris_code_end): Declare.
5237 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5238 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5240 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5241 Remove ATTRIBUTE_UNUSED.
5242 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5243 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5244 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5245 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5246 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5247 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5248 (PUSHSECTION_FORMAT): Remove.
5249 (SECTION_NAME_FORMAT): Redefine.
5251 2011-05-19 Kai Tietz <ktietz@redhat.com>
5253 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5254 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5255 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5257 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5258 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5260 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5262 2011-05-19 Richard Guenther <rguenther@suse.de>
5265 * tree-object-size.c (addr_object_size): If the pointed-to
5266 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5268 2011-05-19 Richard Guenther <rguenther@suse.de>
5270 * gimple.c (gimple_types_compatible_p_1): Compare names of
5271 the types themselves.
5272 (iterative_hash_gimple_type): And hash them that way.
5273 (gimple_register_type_1): If we register a main variant properly
5274 initialize the leader to ourselves.
5276 2011-05-19 Tom de Vries <tom@codesourcery.com>
5279 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5280 get_loop_invariant_expr_id.
5281 (get_loop_invariant_expr_id): Use get_expr_id.
5282 (parm_decl_cost): New function.
5283 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5284 Improve bound cost estimation. Use different inv_expr_id for elim and
5287 2011-05-19 Tom de Vries <tom@codesourcery.com>
5290 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5291 cost_base.cost == 0.
5293 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5296 * config/i386/sse.md
5297 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5300 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5302 PR tree-optimization/49039
5303 * tree-vrp.c (extract_range_from_binary_expr): For
5304 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5305 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5307 2011-05-18 Tom de Vries <tom@codesourcery.com>
5310 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5312 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5314 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5315 (*tls_global_dynamic_64): Ditto.
5316 (*tls_local_dynamic_base_32_gnu): Ditto.
5317 (*tls_local_dynamic_base_64): Ditto.
5318 (tls_initial_exec_64_sun): Ditto.
5320 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5322 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5323 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5325 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5326 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5327 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5328 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5329 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5330 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5331 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5333 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5335 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5336 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5337 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5338 target_thread_pointer, arm_structure_size_boundary, struct
5339 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5340 struct abi_name, arm_all_abis): Remove.
5341 (arm_option_override) Don't process most enumerated option values here.
5342 Don't process target_fpe_name here. Work with integer not string for
5343 structure size boundary; use separate diagnostics for each case.
5344 * config/arm/arm.h (enum float_abi_type, enum
5345 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5347 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5348 arm_structure_size_boundary): Remove.
5349 * config/arm/arm.opt (mabi=): Use Enum and Init.
5350 (arm_abi_type): New Enum and EnumValue entries.
5351 (mfloat-abi=): Use Enum and Init.
5352 (float_abi_type): New Enum and EnumValue entries.
5353 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5354 (mfp16-format=): Use Enum and Init.
5355 (arm_fp16_format_type): New Enum and EnumValue entries.
5356 (mstructure-size-boundary=): Use UInteger and Init.
5357 (mtp=): Use Enum and Init.
5358 (arm_tp_type): New Enum and EnumValue entries.
5360 2011-05-18 Richard Guenther <rguenther@suse.de>
5362 PR tree-optimization/49018
5363 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5364 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5365 gimple_has_side_effects.
5367 2011-05-18 Richard Guenther <rguenther@suse.de>
5369 * gimple.c (gimple_register_type_1): New function, split out from ...
5370 (gimple_register_type): ... here. Avoid infinite recursion.
5372 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5374 PR tree-optimization/41881
5375 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5376 reduction_chains along with a macro for its access.
5377 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5378 (destroy_loop_vec_info): Free reduction chains.
5379 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5380 (vect_is_slp_reduction): New function.
5381 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5382 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5383 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5384 definition types for reduction chains.
5385 (vect_supported_load_permutation_p): Don't allow permutations for
5387 (vect_analyze_slp_instance): Support reduction chains.
5388 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5389 (vect_get_constant_vectors): Handle reduction chains.
5390 (vect_schedule_slp_instance): Mark the first statement of the
5391 reduction chain as reduction.
5393 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5395 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5396 names for group elements access.
5397 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5398 reduction chains as well. Remove data reference and interleaving
5399 related words from the fields names.
5400 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5402 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5403 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5404 vect_update_interleaving_chain, vect_same_range_drs,
5405 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5406 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5407 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5408 vect_analyze_group_access, vect_analyze_data_ref_access,
5409 vect_create_data_ref_ptr, vect_transform_strided_load,
5410 vect_record_strided_load_vectors): Likewise.
5411 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5412 vect_model_load_cost, vectorizable_store, vectorizable_load,
5413 vect_remove_stores, new_stmt_vec_info): Likewise.
5414 * tree-vect-slp.c (vect_build_slp_tree,
5415 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5417 2011-05-18 Richard Guenther <rguenther@suse.de>
5420 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5421 operand verification.
5422 (verify_gimple_assign_binary): Likewise.
5423 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5424 to non-1-precision BOOLEAN_TYPEs.
5426 2011-05-18 Tom de Vries <tom@codesourcery.com>
5429 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5431 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5433 PR tree-optimization/49000
5434 * tree-ssa.c (execute_update_addresses_taken): Call
5435 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5436 be rewritten and decl has been marked for renaming, reset
5439 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5441 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5442 enum_opts_set when testing if attributes have set -mfpmath=.
5444 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5446 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5448 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5450 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5452 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5453 id.transform_lang_insert_block with NULL.
5455 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5457 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5458 (output_fp_compare): Change args 3 and 4 to bool.
5459 (ix86_expand_call): Change arg 6 to bool.
5460 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5461 (ix86_attr_length_vex_default): Change arg 3 to bool.
5462 * config/i386/i386.md: Update all uses.
5463 * config/i386/i386.c: Ditto.
5464 (ix86_flags_dependent): Change return type to bool.
5466 2011-05-17 Richard Guenther <rguenther@suse.de>
5468 * gimple.c (type_hash_pair_compare): Fix comparison.
5470 2011-05-17 Richard Guenther <rguenther@suse.de>
5472 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5473 case some more, fix final hash value of the non-singleton case.
5475 2011-05-17 Richard Guenther <rguenther@suse.de>
5479 2011-05-16 Richard Guenther <rguenther@suse.de>
5481 * gimple.c (gimple_types_compatible_p_1): Use names of the
5482 type itself, not its main variant.
5483 (iterative_hash_gimple_type): Likewise.
5485 2011-05-17 Richard Guenther <rguenther@suse.de>
5487 * gimple.c (gimple_register_canonical_type): Use the main-variant
5488 leader for computing the canonical type.
5490 2011-05-17 Nick Clifton <nickc@redhat.com>
5492 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5495 * config/rx/rx.md: Add peephole to remove redundant extensions
5497 (bitset_in_memory): Use rx_restricted_mem_operand.
5498 (bitinvert_in_memory): Likewise.
5499 (bitclr_in_memory): Likewise.
5501 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5502 Nick Clifton <nickc@redhat.com>
5504 * config/rx/rx.md: Add peepholes to match a register move followed
5505 by a comparison of the moved register. Replace these with an
5506 addition of zero that does both actions in one instruction.
5508 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5511 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5512 predicate to allow CONST_INT.
5513 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5515 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5517 * opts-common.c (opt_enum_arg_to_value): New.
5518 * opts.h (opt_enum_arg_to_value): Declare.
5519 * config/i386/i386.opt (fpmath): Remove.
5520 (mfpmath=): Use Enum, Init and Save.
5521 (fpmath_unit): New Enum and EnumValue entries.
5522 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5523 name for function fpmath state.
5524 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5525 * config/i386/i386.c: Include diagnostic.h.
5526 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5527 (ix86_target_string): Take enum fpmath_unit value instead of string.
5528 (ix86_debug_options): Update call to ix86_target_string.
5529 (ix86_option_override_internal): Don't process fpmath strings here.
5530 (x86_function_specific_save, ix86_function_specific_restore):
5531 Don't handle fpmath state specially.
5532 (ix86_function_specific_print): Pass fpmath state to
5533 ix86_target_string instead of printing in this function.
5534 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5535 Handle enum attributes.
5536 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5537 (ix86_valid_target_attribute_tree): Update option_strings
5538 handling. Handle fpmath as enum option.
5539 (ix86_can_inline_p): Update field names for function fpmath state.
5540 (ix86_expand_builtin): Update call to ix86_target_string.
5541 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5542 (ix86_fpmath): Remove.
5543 * config/i386/t-i386 (i386.o): Update dependencies.
5545 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5547 PR preprocessor/48677
5548 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5549 from decoded_options[0], not from itself.
5551 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5553 * config/i386/constraints.md (z): New constraint.
5554 * config/i386/i386.c (c): New mode attribute.
5555 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5556 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5557 constraint for operand 0.
5558 (*call_vzeroupper): Ditto.
5559 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5560 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5561 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5562 Use "lzm" constraint for operand 0.
5563 (*call_pop_vzeroupper): Ditto.
5564 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5565 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5566 constraint for operand 0.
5567 (*sibcall_vzeroupper): Ditto.
5568 (*sibcall_rex64_ms_sysv): Ditto.
5569 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5570 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5571 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5572 (*sibcall_pop_vzeroupper): Ditto.
5573 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5574 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5575 mode iterator. Use "<c>zm" constraint for operand 1.
5576 (*call_value_vzeroupper): Ditto.
5577 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5579 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5580 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5581 *call_value_pop_1. Use "lzm" constraint for operand 1.
5582 (*call_value_pop_vzeroupper): Ditto.
5583 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5584 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5585 mode iterator. Use "Uz" constraint for operand 1.
5586 (*sibcall_value_vzeroupper): Ditto.
5587 (*sibcall_value_rex64_ms_sysv): Ditto.
5588 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5589 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5590 constraint for operand 1.
5591 (*sibcall_value_pop_vzeroupper): Ditto.
5592 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5593 and "z" constraint for operand 2.
5594 (*tls_global_dynamic_32_gnu): Ditto.
5595 (*tls_local_dynamic_base_32_gnu): Ditto.
5596 (*tls_local_dynamic_base_64): Ditto.
5597 (*tls_local_dynamic_32_once): Ditto.
5598 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5600 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5602 2011-05-16 Richard Guenther <rguenther@suse.de>
5604 * gimple.c (gimple_types_compatible_p_1): Use names of the
5605 type itself, not its main variant.
5606 (iterative_hash_gimple_type): Likewise.
5608 2011-05-16 Richard Guenther <rguenther@suse.de>
5610 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5611 always visit pointer target and function result and argument types.
5613 2011-05-16 Jason Merrill <jason@redhat.com>
5616 * tree-inline.c (copy_statement_list): Put back recursion.
5618 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5622 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5623 * config/avr/avr.md ("*ior<mode>qi.byte0",
5624 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5626 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5629 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5630 register is needed for a function argument.
5632 2011-05-16 Richard Guenther <rguenther@suse.de>
5634 * gimple.c (struct type_hash_pair): New type.
5635 (type_hash_pair_compare): New function.
5636 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5638 2011-05-16 Revital Eres <revital.eres@linaro.org>
5640 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5642 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5644 * config/i386/i386.md (floating point move splitters): Fix
5645 usage of standard_80387_constant_p.
5646 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5648 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5650 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5652 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5654 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5655 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5656 (tree_ssa_lim_finalize): Likewise.
5658 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5660 * config/i386/constraint.md (Yd, Yx): New register constraints.
5661 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5662 Yd conditional register constraint.
5663 (*movtf_internal): Use standard_sse_constant_opcode.
5664 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5665 Yx conditional register constraint.
5666 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5667 Yd conditional register constraint. Use standard_sse_constant_p to
5668 check for valid SSE constants and call standard_sse_constant_opcode to
5670 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5671 constants and call standard_sse_constant_opcode to output SSE insn.
5672 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5673 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5674 optimize_size is set.
5675 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5677 2011-05-14 Tobias Burnus <burnus@net-b.de>
5679 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5681 2011-05-13 Martin Jambor <mjambor@suse.cz>
5683 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5684 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5685 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5686 (evaluate_conditions_for_ipcp_clone): Removed.
5687 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5688 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5689 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5691 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5693 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5694 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5695 lieu of MAY_HAVE_DEBUG_STMTS.
5696 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5697 debug statements if !MAY_HAVE_DEBUG_STMTS.
5699 2011-05-13 Martin Thuresson <martint@google.com>
5701 PR gcov-profile/47793
5702 * libgcov.c (gcov_exit): Support relative profile paths.
5703 * doc/invoke.texi (-fprofile-dir): Update for above change.
5705 2011-05-13 Richard Guenther <rguenther@suse.de>
5707 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5708 type-pair caching, do not compare hashes.
5710 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5713 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5714 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5716 2011-05-13 Kai Tietz <ktietz@redhat.com>
5718 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5719 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5720 compatible type for TRUTH_NOT_EXPR.
5722 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5724 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5725 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5726 can_create_pseudo_p ().
5728 2011-05-13 Richard Guenther <rguenther@suse.de>
5731 * gimple.c (iterative_hash_gimple_type): Revert change in
5732 pointer target and function result and argument hashing.
5734 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5736 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5737 (*movxf_internal_nointeger): Ditto.
5738 (*movdf_internal_rex64): Ditto.
5739 (*movdf_internal): Ditto.
5740 (*movdf_internal_nointeger): Ditto.
5741 (*movsf_internal): Ditto.
5742 (sincos splitters): Use can_create_pseudo ().
5744 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5746 * config/i386/i386-opts.h: New.
5747 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5748 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5749 ix86_section_threshold): Remove.
5750 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5751 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5753 (ix86_option_override_internal): Don't decode strings for options
5754 other than -march=, -mtune= and -mfpmath=. Don't allow for
5755 __attribute__ uses in remaining diagnostics for options with
5756 string arguments. Don't check for integer arguments being negative.
5757 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5758 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5759 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5760 ix86_branch_cost, ix86_section_threshold): Remove.
5761 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5763 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5765 (masm=): Use Enum and Init.
5766 (asm_dialect): New Enum and EnumValue entries.
5767 (mbranch-cost=): Use UInteger.
5768 (mlarge-data-threshold=): Use UInteger and Init.
5769 (mcmodel=): Use Enum and Init.
5770 (cmodel): New Enum and EnumValue entries.
5771 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5772 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5773 mregparm=): Use UInteger.
5774 (mstringop-strategy=): Use Enum and Init.
5775 (stringop_alg): New Enum and EnumValue entries.
5776 (mtls-dialect=): Use Enum and Init.
5777 (tls_dialect): New Enum and EnumValue entries.
5778 (mabi=): Use Enum and Init.
5779 (calling_abi): New Enum and EnumValue entries.
5780 (mveclibabi=): Use Enum and Init.
5781 (ix86_veclibabi): New Enum and EnumValue entries.
5783 2011-05-13 Nick Clifton <nickc@redhat.com>
5785 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5786 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5788 2011-05-13 Kai Tietz <ktietz@redhat.com>
5791 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5792 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5793 (gimple_boolify): Check for cast for boolean_type_node instead for
5796 2011-05-13 Richard Guenther <rguenther@suse.de>
5798 PR tree-optimization/48172
5799 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5800 multiplying by number of iterations for equal step.
5801 (vect_create_cond_for_alias_checks): Likewise.
5803 2011-05-13 Andreas Schwab <schwab@redhat.com>
5805 * configure.ac: Use AS_HELP_STRING throughout.
5806 * configure: Regenerate.
5808 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5810 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5811 (ix86_emit_restore_regs_using_mov): Likewise.
5812 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5814 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5816 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5817 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5818 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5819 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5820 RTX_OK_FOR_OLO10_P): ...here.
5821 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5824 2011-05-12 Kai Tietz <ktietz@redhat.com>
5826 * gimplify.c (gimple_boolify): Re-boolify expression
5827 arguments even if expression type is of kind BOOLEAN_TYPE.
5828 (gimplify_boolean_expr): Removed.
5829 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5830 and XOR. Additional take care that we keep expression's type.
5831 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5832 of TRUTH_AND|OR|XOR_EXPR.
5834 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5836 PR tree-optimization/48975
5837 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5838 on all bbs here and free and clear ifc_bbs at the end.
5840 2011-05-12 Richard Guenther <rguenther@suse.de>
5842 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5843 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5844 until after simple checks.
5845 (gimple_types_compatible_p): Likewise.
5846 (iterative_hash_gimple_type): Always hash pointer targets
5847 and function return and argument types.
5848 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5849 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5850 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5851 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5852 completely in the simple compare section.
5853 (gimple_register_canonical_type): Query the cache again after
5856 2011-05-12 Richard Guenther <rguenther@suse.de>
5858 PR tree-optimization/48172
5859 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5860 the number of iterations from the segment size calculation.
5861 (vect_create_cond_for_alias_checks): Adjust.
5863 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5866 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5867 if validate_subreg fails.
5869 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5871 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5872 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5875 2011-05-12 DJ Delorie <dj@redhat.com>
5877 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5878 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5879 created builtin into rx_builtins array.
5880 (rx_builtin_decl): New function.
5881 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5883 2011-05-12 DJ Delorie <dj@redhat.com>
5884 Nick Clifton <nickc@redhat.com>
5886 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5887 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5888 (rx_is_legitimate_address): Add pre-decrement and post-increment
5889 addressing in HImode and QImode. Fix test for out of range
5891 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5892 (rx_align_for_label): Test label before extracting its usage count.
5893 (rx_adjust_insn_lengths): Fix selection of insn codes.
5894 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5896 2011-05-11 Jason Merrill <jason@redhat.com>
5898 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5900 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5902 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5903 reindent the subsequent block.
5905 2011-05-11 Satoru Takabayashi <satorux@google.com>
5906 Paul Pluzhnikov <ppluzhnikov@google.com>
5908 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5909 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5910 * config.in: Add LINKER_HASH_STYLE.
5911 * configure.ac: Add --with-linker-hash-style.
5912 * configure: Regenerate.
5914 2011-05-11 Richard Guenther <rguenther@suse.de>
5917 * gimple.c (iterative_hash_canonical_type): Fix typo.
5919 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5921 * config/i386/i386.c (legitimize_tls_address)
5922 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5923 expanders directly for TARGET_GNU2_TLS. Determine pic and
5924 __tls_get_addr symbol reference here. Update call to
5925 gen_tls_global_dynamic_{32,64} for added arguments.
5926 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5927 expanders directly for TARGET_GNU2_TLS. Determine
5928 __tls_get_addr symbol reference here. Update call to
5929 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5930 unique UNSPEC REG_EQUIV to libcall block.
5931 (ix86_tls_get_addr): Declare static.
5932 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5933 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5934 Do not determine pic and __tls_get_addr symbol reference here. Do not
5935 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5936 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5937 (tls_global_dynamic_64): Add operand 2. Do not determine
5938 __tls_get_addr symbol reference here. Do not call
5939 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5940 (tls_local_dynamic_base64): Ditto for operand 1.
5942 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5944 * function.c (expand_function_start): Initialize stack_check_probe_note
5945 only if the generic stack checking mechanism is used.
5947 2011-05-11 Richard Guenther <rguenther@suse.de>
5949 PR tree-optimization/15256
5950 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5951 (A & B) | C, combine (A op CST1) op CST2.
5952 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5953 visit assigns that have uses.
5955 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5957 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5958 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5959 (unpack_ts_type_common_value_fields): ...this. Update comment.
5960 (unpack_value_fields): Adjust for renaming.
5961 (lto_input_ts_type_tree_pointers): Split into...
5962 (lto_input_ts_type_common_tree_pointer): ...this and...
5963 (lto_input_ts_type_non_common_tree_pointers): ...this.
5964 (lto_input_tree_pointers): Adjust for above split.
5965 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5966 (pack_ts_type_common_value_fields): ...this. Update comment.
5967 (lto_output_ts_type_tree_pointers): Split into...
5968 (lto_output_ts_type_common_tree_pointers): ...this and...
5969 (lto_output_ts_type_non_common_tree_pointers): ...this.
5970 (lto_output_tree_pointers): Adjust for above split.
5971 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5972 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5973 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5974 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5976 (struct tree_type): Split into...
5977 (struct tree_type_common: ...this and...
5978 (struct tree_type_with_lang_specific): ...this and...
5979 (struct tree_type_non_common): ...this. Adjust accessor macros
5981 (TYPE_VALUES_RAW): Define.
5982 (union tree_node): Update for above changes.
5983 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5985 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5986 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5987 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5988 * treestructu.def (TS_TYPE): Remove.
5989 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5992 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5995 * tree-ssa.c (reset_debug_uses): New function.
5996 * tree-flow.h (reset_debug_uses): New prototype.
5997 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5998 * tree-loop-distribution.c (generate_loops_for_partition): Call
5999 reset_debug_uses on the stmts that will be removed. Keep around
6000 all debug stmts, don't count them as bits in partition bitmap.
6001 (generate_builtin): Don't count debug stmts or labels as bits in
6004 2011-05-11 Richard Guenther <rguenther@suse.de>
6006 * gimple.c (gimple_type_hash_1): Merge with ...
6007 (gimple_type_hash): ... this.
6008 (gtc_visit): Remove mode parameter and simplify accordingly.
6009 (gimple_types_compatible_p_1): Likewise.
6010 (gimple_types_compatible_p): Likewise.
6011 (iterative_hash_gimple_type): Likewise.
6013 (gimple_type_eq): Adjust.
6015 2011-05-11 Revital Eres <revital.eres@linaro.org>
6017 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6018 enters the branch create an anti edge in the opposite direction
6019 to prevent the creation of reg-moves.
6020 * modulo-sched.c: Adjust comment to reflect the fact we are
6021 scheduling closing branch.
6022 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6023 (stage_count): New field in struct partial_schedule.
6024 (calculate_stage_count): New function.
6025 (normalize_sched_times): Rename to reset_sched_times and handle
6026 incrementing the sched time of the nodes by a constant value
6027 passed as parameter.
6028 (duplicate_insns_of_cycles): Skip closing branch.
6029 (sms_schedule_by_order): Schedule closing branch.
6030 (ps_insn_find_column): Handle closing branch.
6031 (sms_schedule): Call reset_sched_times and adjust the code to
6032 support scheduling of the closing branch.
6033 (ps_insert_empty_row): Update calls to normalize_sched_times
6034 and rotate_partial_schedule functions.
6036 2011-05-11 Richard Guenther <rguenther@suse.de>
6039 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6041 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6043 * opts.c (finish_options): Move warning settings from process_options.
6044 * toplev.c (process_options): Move warning settings to finish_options.
6046 2011-05-11 Richard Guenther <rguenther@suse.de>
6048 PR tree-optimization/18041
6049 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6050 (simplify_bitwise_binary): ... this. Handle operand conversions
6051 by applying them to the result instead.
6052 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6054 2011-05-11 Richard Guenther <rguenther@suse.de>
6056 * gimple.c (gimple_canonical_types_compatible_p): Split out
6057 from gimple_types_compatible_p and friends. Do not recurse
6058 to pointed-to types.
6059 (gimple_canonical_type_eq): Use it.
6060 (iterative_hash_canonical_type): Split out from
6061 iterative_hash_gimple_type and friends. Do not recurse
6062 to pointed-to types.
6063 (gimple_canonical_type_hash): Use it, allocate the hash here.
6065 2011-05-11 Revital Eres <revital.eres@linaro.org>
6067 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6070 2011-05-11 Revital Eres <revital.eres@linaro.org>
6072 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6073 instead of PREV_INSN.
6075 2011-05-11 Revital Eres <revital.eres@linaro.org>
6077 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6078 * loop-doloop.c (doloop_condition_get): Likewise.
6079 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6081 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6083 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6085 * tree.def (CASE_LABEL_EXPR): Add an operand.
6086 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6088 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6090 * c-decl.c (c_override_global_bindings_to_false): Remove.
6091 (global_bindings_p): Don't check
6092 c_override_global_bindings_to_false.
6093 * c-tree.h (c_override_global_bindings_to_false): Remove.
6094 * c-typeck.c (composite_type): Don't set
6095 c_override_global_bindings_to_false.
6097 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6099 PR target/48857, 48495
6100 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6102 (VSX_MOVE_MODE): Ditto.
6103 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6104 VSX vector types. Add V2DImode.
6105 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6106 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6107 (MODES_TIEABLE_P): Ditto.
6109 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6110 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6112 (init_cumulative_args): Ditto.
6113 (rs6000_function_arg_boundary): Ditto.
6114 (rs6000_function_arg_advance_1): Ditto.
6115 (rs6000_function_arg): Ditto.
6116 (rs6000_function_ok_for_sibcall): Ditto.
6117 (emit_frame_save): Ditto.
6118 (rs6000_function_value): Ditto.
6119 (rs6000_libcall_value): Ditto.
6121 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6123 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6124 i386/darwin-lib.h to $libgcc_tm_file.
6125 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6127 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6129 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6131 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6133 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6134 * config/rs6000/rs6000-tables.opt: New file (generated).
6135 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6136 rs6000/rs6000-tables.opt to extra_options.
6137 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6138 * config/rs6000/rs6000.c (rs6000_select): Remove.
6139 (processor_target_table): Move contents to rs6000-cpus.def.
6140 (darwin_rs6000_override_options): Check
6141 global_options_set.x_rs6000_cpu_index instead of
6142 rs6000_select[1].string.
6143 (rs6000_option_override_internal): Likewise.
6144 (rs6000_handle_option): Don't assert that global structures are in
6145 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6146 (rs6000_default_cpu): New variable.
6147 (rs6000_file_start): Set it instead of local default_cpu. Check
6148 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6149 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6150 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6151 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6152 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6153 rs6000_select): Remove.
6154 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6156 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6157 * config/rs6000/t-rs6000
6158 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6159 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6160 global_options_set.x_rs6000_cpu_index instead of
6161 rs6000_select[1].string.
6162 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6163 global_options_set.x_rs6000_cpu_index instead of
6164 rs6000_select[1].string.
6166 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6168 * config.gcc (libgcc_tm_file): Define instead of including files
6169 from ../../libgcc/config/ in tm_file.
6170 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6171 * configure: Regenerate.
6172 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6173 libgcc_tm.h, cs-libgcc_tm.h): New.
6174 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6175 (clean): Remove libgcc_tm.h.
6176 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6177 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6178 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6180 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6183 * config/avr/avr.c (avr_ret_register): Return unsigned int
6185 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6186 it to avr_libcall_value.
6187 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6189 (avr_expand_binop_builtin): Ditto.
6190 (avr_expand_unop_builtin): Ditto.
6192 2011-05-10 DJ Delorie <dj@redhat.com>
6194 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6195 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6196 * config/rx/rx.c (rx_align_for_label): Add label and
6197 uses_threshold parameters. Do not align when the label is not
6199 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6201 2011-05-10 Richard Guenther <rguenther@suse.de>
6203 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6204 a series of conversions and apply foldings similar to what
6206 (tree_ssa_forward_propagate_single_use_vars): Call it.
6208 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6210 PR tree-optimization/48611
6211 PR tree-optimization/48794
6212 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6213 referenced from RESX or EH_DISPATCH arguments.
6216 * dfp.c (decimal_to_decnumber): Handle conversion from
6217 dconst{1,2,m1,half}.
6219 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6221 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6222 for !flag_prefer_avx128.
6223 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6225 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6227 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6228 (fold_ternary_loc): Use expr_location_or.
6230 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6233 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6234 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6235 Pmode and mem_mode is not VOIDmode.
6237 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6239 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6240 TYPE_QUAL_RESTRICT): Convert to enum.
6242 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6244 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6245 (const_pow2_1_to_8_operand): Ditto.
6246 (const_pow2_1_to_128_operand): Ditto.
6247 (const_pow2_1_to_32768_operand): Ditto.
6248 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6249 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6250 in insn constraint to check integer value of operand 3.
6251 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6253 (PINSR_MODE): New mode iterator.
6254 (sse2p4_1): New mode attribute.
6255 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6256 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6257 iterator. Use const_int_operand instead of
6258 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6259 exact_log2 in insn constraint to check integer value of operand 3.
6261 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6263 * config/i386/sse.md (blendbits): Remove mode attribute.
6264 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6265 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6266 Check integer value of operand 3 in insn constraint.
6268 2011-05-09 Richard Guenther <rguenther@suse.de>
6270 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6272 (lto_symtab_merge): Likewise. Do not register types here.
6273 (lto_symtab_merge_decls_2): Likewise.
6274 (lto_symtab_merge_decls_1): Likewise.
6275 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6276 * gimple.c (enum gtc_mode): Declare.
6277 (gimple_types_compatible_p): Make static.
6279 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6281 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6282 temporary register to match Pmode.
6284 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6286 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6287 and *vec_concatv4si_1_avx.
6289 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6291 PR rtl-optimization/48927
6292 * ira-conflicts.c (commutative_constraint_p): Use
6293 recog_data.alternative_enabled_p to disable alternatives where
6294 "enabled" attribute is false.
6295 (get_dup_num): Ditto.
6296 * ira-lives.c (single_reg_class): Ditto.
6297 (ira_implicitly_set_insn_hard_regs): Ditto.
6299 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6301 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6302 (dataflow_set_preserve_mem_locs): Likewise.
6304 2011-05-09 Philipp Thomas <pth@suse.de>
6306 * config/mep/mep.c (mep_validate_vliw): Syntax description
6307 should not be translated.
6309 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6311 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6312 * config/mips/mips-tables.opt: New file (generated).
6313 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6314 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6315 MIPS_ARCH_OPTION_NATIVE): Define.
6316 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6318 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6319 mips_parse_cpu): Remove.
6320 (mips_cpu_info_from_opt, mips_default_arch): New.
6321 (mips_handle_option): Don't assert that global structures are in
6322 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6323 (mips_option_override): Use new variables and functions to set
6324 state of these options. Use strcmp to check for individual CPU names.
6325 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6327 * config/mips/mips.opt (march=): Use ToLower and Enum.
6328 (mips): Use ToLower, Enum and Var.
6329 (mtune=): Use ToLower and Enum.
6330 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6332 2011-05-08 Jan Hubicka <jh@suse.cz>
6334 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6335 Arrange type pairs to be UID ordered.
6336 (gimple_lookup_type_leader): Make inline.
6338 2011-05-09 Nick Clifton <nickc@redhat.com>
6341 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6345 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6348 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6350 * combine.c (simplify_comparison): Abstract out parts into...
6351 (simplify_compare_const): ... new function.
6352 (try_combine): Generalize parallel arithmetic/compare combining
6353 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6355 2011-05-08 Jan Hubicka <jh@suse.cz>
6357 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6358 (cgraph_create_virtual_clone): Call hooks once virtual clone
6360 * cgraph.h (cgraph_clone_node): Update prototype.
6361 * ipa-cp.c (ipcp_estimate_growth): Use
6362 estimate_ipcp_clone_size_and_time.
6363 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6364 * lto-cgraph.c (input_node): Update.
6365 * ipa-inline.c (recursive_inlining): Update.
6366 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6367 (evaluate_conditions_for_known_args): Break out from ...
6368 (evaluate_conditions_for_edge): ... here.
6369 (evaluate_conditions_for_ipcp_clone): New function.
6370 (inline_node_duplication_hook): Update clone summary based
6372 (estimate_callee_size_and_time): Rename to ...
6373 (estimate_node_size_and_time): take NODE instead of EDGE;
6374 take POSSIBLE_TRUTHS as argument.
6375 (estimate_callee_size_and_time): Update.
6376 (estimate_ipcp_clone_size_and_time): New function.
6377 (do_estimate_edge_time): Update.
6379 2011-05-08 Richard Guenther <rguenther@suse.de>
6383 * expmed.c (expand_shift_1): Compute adjusted constant shift
6386 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6388 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6390 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6392 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6394 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6396 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6398 2011-05-07 Jan Hubicka <jh@suse.cz>
6400 * ipa-inline-transform.c (inline_call): Account when program size
6402 * ipa-inline.c (relative_time_benefit): New function.
6403 (edge_badness): Reorganize to be power 2 based; fix thinko when
6404 computing badness for negative growth; update comments to match
6405 reality; better dumps.
6407 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6409 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6410 type to bool and adjust comment.
6411 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6412 (fold_mathfn_compare): Remove calls to global_bindings_p.
6413 (fold_inf_compare): Likewise.
6414 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6415 * c-tree.h (global_bindings_p): Adjust prototype.
6416 * c-decl.c (global_bindings_p): Return bool and simplify.
6418 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6420 PR tree-optimization/48837
6421 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6422 when accumulator transformation is performed.
6424 2011-05-06 Jan Hubicka <jh@suse.cz>
6426 * i386.h (ix86_tune_indices): Add
6427 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6428 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6429 * i386.c (initial_ix86_tune_features): Add
6430 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6431 (software_prefetching_beneficial_p): Remove predicate.
6432 (ix86_option_override_internal): Use new macro.
6434 2011-05-06 Jan Hubicka <jh@suse.cz>
6436 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6438 2011-05-06 Jan Hubicka <jh@suse.cz>
6440 * cgraph.c (cgraph_add_thunk): Create real function node instead
6441 of alias node; finalize it and mark needed/reachale; arrange visibility
6442 to be right and add it into the corresponding same comdat group list.
6443 (dump_cgraph_node): Dump thunks.
6444 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6445 cgraph_function_with_gimple_body_p,
6446 cgraph_first_function_with_gimple_body,
6447 cgraph_next_function_with_gimple_body): New functions.
6448 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6450 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6451 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6452 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6453 devirtualization when optimizing.
6454 (verify_cgraph_node): Verify thunks.
6455 (cgraph_analyze_function): Analyze thunks.
6456 (cgraph_mark_functions_to_output): Output thunks only in combination
6457 with function they are assigned to.
6458 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6459 alias into normal node.
6460 (assemble_thunks): New functoin.
6461 (cgraph_expand_function): Use it.
6462 * lto-cgraph.c (lto_output_node): Stream thunks.
6463 (input_overwrite_node): Stream in thunks.
6464 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6465 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6466 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6467 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6468 (inline_analyze_function): Do not care about thunk jump functions.
6469 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6470 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6471 cgraph_function_with_gimple_body_p.
6472 * passes.c (do_per_function_toporder): Use
6473 cgraph_function_with_gimple_body_p.
6474 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6475 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6476 (function_called_by_processed_nodes_p): Likewise.
6478 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6480 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6481 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6483 (mabi=): Replace with separate entries for mabi=altivec,
6484 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6485 mabi=ieeelongdouble and mabi=ibmlongdouble.
6486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6487 check for -mabi=spe without SPE ABI support here.
6488 (rs6000_handle_option): Replace OPT_mabi_ handling with
6489 OPT_mabi_altivec and OPT_mabi_spe handling.
6491 2011-05-06 Cary Coutant <ccoutant@google.com>
6493 * dwarf2out.c (contains_subprogram_definition): New function.
6494 (should_move_die_to_comdat): Call it.
6496 2011-05-06 Jeff Law <law@redhat.com>
6498 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6499 remove_ctrl_stmt_and_useless_edges.
6500 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6501 (fixup_template_block, thread_single_edge): Likewise.
6502 (mark_threaded_blocks): Use THREAD_TARGET.
6504 2011-05-06 Alan Modra <amodra@gmail.com>
6507 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6508 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6510 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6512 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6513 constraint modifier to "r".
6515 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6517 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6518 fall through for OPT_mcmodel_.
6520 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6522 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6524 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6526 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6529 * config/arm/arm.opt (marm): Document it.
6530 (mthumb): Reject negative variant.
6532 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6535 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6536 Fix typo in "ccvt" variable name.
6538 2011-05-06 Tristan Gingold <gingold@adacore.com>
6541 * config/vms/vms-ar.c (main): Remove cwd variable.
6543 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6546 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6548 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6550 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6551 * gimplify.c (gimplify_switch_expr): Likewise.
6552 * omp-low.c (expand_omp_sections): Likewise.
6553 * tree-eh.c (lower_try_finally_switch): Likewise.
6554 (lower_eh_dispatch): Likewise.
6555 * tree.h (build_case_label): Declare.
6556 * tree.c (build_case_label): Define.
6558 2011-05-05 Jason Merrill <jason@redhat.com>
6561 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6562 (copy_statement_list): Don't recurse.
6563 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6566 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6568 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6569 through from -mfpu= handling.
6570 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6572 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6574 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6577 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6579 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6581 (hppa[12]*-*-hpux11*): Ditto.
6582 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6583 * config/ia64/hpux-unix2003.h: New.
6584 * config/pa/pa-hpux1131.opt: New.
6585 * config/pa/pa-hpux1131.h: New.
6586 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6587 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6588 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6590 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6593 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6594 instead of mode as 3rd argument to recursive call.
6595 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6596 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6598 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6599 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6600 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6601 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6603 2011-05-05 Julian Brown <julian@codesourcery.com>
6605 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6606 parenthesis in D-register case.
6608 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6610 * opt-functions.awk (var_type_struct): Handle Enum options.
6611 * optc-gen.awk: Don't check range of variables of character type.
6612 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6613 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6614 rs6000_sdata_name, rs6000_explicit_options): Remove.
6615 (rs6000_option_override_internal): Check for -malign-power here.
6616 Use global_options_set instead of rs6000_explicit_options.
6617 (rs6000_parse_fpu_option): Remove.
6618 (rs6000_handle_option): Access variables via opts and opts_set
6619 pointers. Use error_at and warning_at. Add fall-through
6620 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6621 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6622 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6623 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6624 here. Don't use rs6000_parse_fpu_option.
6625 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6626 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6627 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6629 (mspe): Use Var and Save.
6630 (mtraceback=): Use Enum and Var.
6631 (rs6000_traceback_type): New Enum and EnumValue entries.
6632 (mfloat-gprs=): Use Enum, Var and Save.
6633 (rs6000_float_gprs): New Enum and EnumValue entries.
6634 (mlong-double-): use Var and Save.
6635 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6636 (malign-): Use Enum and Var.
6637 (rs6000_alignment_flags): New Enum and EnumValue entries.
6639 (fpu_type_t): New Enum and EnumValue entries.
6640 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6641 global_options_set instead of rs6000_explicit_options.
6642 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6643 global_options_set instead of rs6000_explicit_options.
6644 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6645 global_options_set instead of rs6000_explicit_options.
6646 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6647 global_options_set instead of rs6000_explicit_options.
6648 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6649 global_options_set instead of rs6000_explicit_options.
6650 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6651 global_options_set instead of rs6000_explicit_options.
6652 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6654 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6655 global_options_set instead of rs6000_explicit_options.
6656 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6657 (rs6000_cmodel): New Enum and EnumValue entries.
6658 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6659 global_options_set instead of rs6000_explicit_options.
6660 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6661 (mtls-size=): Use Enum and Var.
6662 (rs6000_tls_size): New Enum and EnumValue entries.
6664 2011-05-05 Michael Matz <matz@suse.de>
6666 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6667 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6668 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6669 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6670 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6671 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6672 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6673 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6674 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6675 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6676 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6677 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6678 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6679 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6680 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6681 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6683 2011-05-05 Richard Guenther <rguenther@suse.de>
6685 * expmed.c (expand_variable_shift): Rename to ...
6686 (expand_shift_1): ... this. Take an expanded shift amount.
6687 For rotates recurse directly not building trees for the shift amount.
6688 (expand_variable_shift): Wrap around expand_shift_1.
6689 (expand_shift): Adjust.
6691 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6693 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6695 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6697 * tree.h (get_pending_sizes): Remove prototype.
6698 (put_pending_size): Likewise.
6699 (put_pending_sizes): Likewise.
6700 * stor-layout.c (pending_sizes): Delete.
6701 (get_pending_sizes): Likewise.
6702 (put_pending_size): Likewise.
6703 (put_pending_sizes): Likewise.
6704 (variable_size): Do not call put_pending_size and tidy up.
6705 * function.h (struct function): Remove dont_save_pending_sizes_p.
6706 * lto-streamer-in.c (input_function): Do not stream it.
6707 * lto-streamer-out.c (output_function): Likewise.
6708 * tree-inline.c (initialize_cfun): Do not copy it.
6709 * c-decl.c (store_parm_decls): Do not set it.
6710 * omp-low.c (create_task_copyfn): Likewise.
6711 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6713 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6715 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6717 (*movdf_internal): Ditto.
6718 (*movdf_internal_nointeger): Ditto.
6719 (*movsf_internal): Ditto.
6721 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6723 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6724 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6725 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6726 (c_variable_size): Remove.
6727 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6728 call put_pending_sizes.
6729 (get_parm_info): Add parameter expr. Use it to set
6730 arg_info->pending_sizes.
6731 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6733 * c-parser.c (c_parser_parms_declarator): Update call to
6734 c_parser_parms_list_declarator.
6735 (c_parser_parms_list_declarator): Take parameter expr. Update
6736 call to push_parm_decl. Update recursive call. Don't call
6737 get_pending_sizes. Update calls to get_parm_info.
6738 (c_parser_objc_method_definition): Update calls to
6739 c_parser_objc_method_decl and objc_start_method_definition.
6740 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6741 (c_parser_objc_method_decl): Add parameter expr. Update call to
6743 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6744 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6745 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6747 2011-05-05 Michael Hope <michael.hope@linaro.org>
6750 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6753 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6755 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6756 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6757 (spu_output_mi_thunk): New function.
6759 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6761 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6762 targetm.asm_out.print_operand.
6763 * config/sol2.c: Include target.h.
6765 2011-05-04 Jan Hubicka <jh@suse.cz>
6767 * ipa-inline.c (reset_edge_caches): New function.
6768 (update_caller_keys): Add check_inlinablity_for; do not
6769 reset edge caches; remove now unnecesary loop.
6770 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6771 (update_all_callee_keys): Likewise.
6772 (inline_small_functions): Sanity check cache; update code
6775 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6777 PR rtl-optimization/47612
6778 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6779 as the last insn of the sequence to be moved.
6781 2011-05-04 Tobias Burnus <burnus@net-b.de>
6784 * doc/invoke.texi (Ofast): Document that it
6785 enables Fortran's -fno-protect-parens.
6787 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6789 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6791 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6793 * stor-layout.c (variable_size): Do not issue errors.
6795 2011-05-04 Richard Guenther <rguenther@suse.de>
6797 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6798 for array-ref indices.
6799 (tree_coverage_counter_addr): Likewise.
6800 (build_fn_info_type): Use size_int for index types.
6801 (build_gcov_info): Likewise.
6803 2011-05-04 Richard Guenther <rguenther@suse.de>
6805 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6807 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6808 for constructor indices.
6809 (push_init_level): Likewise.
6811 2011-05-04 Richard Guenther <rguenther@suse.de>
6813 * explow.c (promote_mode): Move variable declarations before code.
6815 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6817 * tree.h (build_function_type_array): Declare.
6818 (build_varargs_function_type_array): Declare.
6819 (build_function_type_vec, build_varargs_function_type_vec): Define.
6820 * tree.c (build_function_type_array_1): New function.
6821 (build_function_type_array): New function.
6822 (build_varargs_function_type_array): New function.
6824 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6826 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6827 before setting STMT_VINFO_TYPE.
6829 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6831 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6832 instead of spu_pass_by_reference.
6834 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6836 * calls.c (emit_library_call_value_1): Invoke
6837 promote_function_mode hook on libcall arguments.
6838 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6839 argument being NULL.
6840 * targhooks.c (default_promote_function_mode): Lisewise.
6841 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6842 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6844 * doc/tm.texi: Document that TYPE argument might be NULL.
6846 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6848 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6850 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6853 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6855 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6857 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6858 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6860 * mips-tfile.c: ... here.
6861 Don't include coretypes.h, tm.h, filenames.h.
6862 (saber_stop): Remove definition and all calls.
6863 [__SABER__]: Remove.
6864 (__LINE__): Remove default.
6865 (Size_t, Ptrdiff_t): Remove definitions.
6866 Replace by size_t, ptrdiff_t.
6867 [!MIPS_DEBUGGING_INFO]: Remove.
6868 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6869 (progname): Add const.
6871 Replace all uses by static.
6872 (ALIGN_SYMTABLE_OFFSET): Remove default.
6873 * mips-tdump.c: Don't include coretypes.h, tm.h.
6874 Remove !MIPS_IS_STAB guard.
6875 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6876 $(TM_H), filenames.h dependencies.
6877 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6879 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6882 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6883 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6885 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6888 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6889 account and save/restore RETS.
6890 (PROFILE_BEFORE_PROLOGUE): Define.
6891 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6892 the push insn to use predecrement.
6894 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6897 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6899 2011-05-04 Nick Clifton <nickc@redhat.com>
6901 * config/mn10300/mn10300.c: Include cfgloop.h.
6903 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6904 Lcc or a FLcc insn into the instruction stream.
6905 (mn10300_block_contains_call): New function. Returns true if the
6906 given basic block contains a CALL insn.
6907 (mn10300_loop_contains_call_insn): New function. Returns true if
6908 the given loop contains a CALL insn.
6909 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6910 to use the SETLB and Lcc or FLcc insns.
6911 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6912 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6913 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6914 disable the SETLB optimization.
6915 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6916 __SETLB__ or __NO_SETLB__.
6917 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6918 (movsf_internal): Handle MDR register.
6919 (cmpsi): Make visible.
6920 (setlb): New pattern.
6922 (FLcc): New pattern.
6924 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6927 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6928 for reg<->xmm moves.
6929 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6930 (vec_concatv2di_rex64_sse): Ditto.
6931 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6932 (*vec_extractv2di_1_rex64): Ditto.
6935 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6937 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6939 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6941 2011-05-04 Richard Guenther <rguenther@suse.de>
6943 * tree.h (int_const_binop): Remove notrunc argument.
6944 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6945 create integer constants that are properly truncated.
6946 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6947 (const_binop): Remove zero notrunc argument to int_const_binop.
6948 (size_binop_loc): Likewise.
6949 (fold_div_compare): Likewise.
6950 (maybe_canonicalize_comparison_1): Likewise.
6951 (fold_comparison): Likewise.
6952 (fold_binary_loc): Likewise.
6953 (multiple_of_p): Likewise.
6954 * expr.c (store_constructor): Likewise.
6955 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6956 (maybe_fold_stmt_addition): Likewise.
6957 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6958 * stor-layout.c (layout_type): Likewise.
6959 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6960 * tree-sra.c (build_ref_for_offset): Likewise.
6961 (build_user_friendly_ref_for_offset): Likewise.
6962 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6963 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6964 * tree-ssa-loop-niter.c (inverse): Likewise.
6965 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6966 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6967 * tree-switch-conversion.c (check_range): Likewise.
6968 (build_constructors): Likewise.
6969 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6970 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6971 (extract_range_from_assert): Likewise.
6972 (vrp_int_const_binop): Likewise.
6973 (extract_range_from_binary_expr): Likewise.
6974 (extract_range_from_unary_expr): Likewise.
6975 (check_array_ref): Likewise.
6976 (find_case_label_range): Likewise.
6977 (simplify_div_or_mod_using_ranges): Likewise.
6978 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6979 comparing case labels for merging.
6981 2011-05-03 Mark Wielaard <mjw@redhat.com>
6983 * dwarf2out.c (debug_str_hash_forced): Removed.
6984 (gen_label_for_indirect_string): Removed.
6985 (get_debug_string_label): Removed.
6986 (AT_string_form): Generate label directly.
6987 (output_indirect_string): Test indirect_string_node for
6988 DW_FORM_strp instead of checking label and refcount.
6989 (prune_indirect_string): Removed.
6990 (prune_unused_types): Don't check debug_str_hash_forced or
6991 call prune_indirect_string.
6993 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6996 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6998 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7002 * combine.c (try_combine): Skip debug insns at m_split tests.
7004 2011-04-26 Mark Wielaard <mjw@redhat.com>
7007 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7008 when info_section_emitted.
7010 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7012 * config/mips/mips-opts.h: New.
7013 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7015 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7016 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7017 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7019 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7021 (mips_abi, mips_code_readable): Don't declare.
7022 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7023 (mabi=): Use Enum and Var.
7024 (mips_abi): New Enum and EnumValue entries.
7025 (mcode-readable=): Use Enum and Var.
7026 (mips_code_readable_setting): New Enum and EnumValue entries.
7027 (mr10k-cache-barrier=): Use Enum and Var.
7028 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7030 2011-05-03 Jan Hubicka <jh@suse.cz>
7032 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7033 replace hash by pointer map.
7034 (cgraph_node_set_element_def, cgraph_node_set_element,
7035 const_cgraph_node_set_element, varpool_node_set_element_def,
7036 varpool_node_set_element, const_varpool_node_set_element): Remove.
7037 (free_cgraph_node_set, free_varpool_node_set): New function.
7038 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7039 * tree-emutls.c: Free varpool node set.
7040 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7041 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7042 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7043 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7044 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7045 Move here from ipa.c; implement using pointer_map
7046 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7047 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7048 debug_cgraph_node_set, varpool_node_set_new,
7049 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7050 dump_varpool_node_set, debug_varpool_node_set):
7051 Move to ipa-uitls.c.
7052 * passes.c (ipa_write_summaries): Update.
7054 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7056 From Mike Frysinger:
7057 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7058 bf542/bf544/bf547/bf548/bf549.
7060 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7062 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7064 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7067 * config/bfin/bfin.md (MOVCC): New mode_macro.
7068 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7069 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7070 comments from generated assembly.
7072 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7075 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7076 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7077 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7078 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7079 * config/bfin/lib1funcs.asm (___muldi3): New function.
7081 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7083 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7084 build_function_type_list instead of build_function_type.
7085 Rearrange initialization of `args' to do so.
7087 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7089 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7090 instead of build_function_type.
7092 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7094 * config/rs6000/rs6000.c (spe_init_builtins): Call
7095 build_function_type_list instead of build_function_type.
7096 (paired_init_builtins, altivec_init_builtins): Likewise.
7097 (builtin_function_type): Likewise.
7099 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7101 * config/sh/sh.c (sh_media_init_builtins): Call
7102 build_function_type_list instead of build_function_type.
7104 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7106 * config/sparc/sparc.c (sparc_file_end): Call
7107 build_function_type_list instead of build_function_type.
7109 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7111 * config/alpha/alpha.c (alpha_init_builtins): Call
7112 build_function_type_list instead of build_function_type.
7114 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7116 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7117 build_function_type_list instead of build_function_type.
7119 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7121 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7122 build_function_type_list instead of build_function_type.
7123 Delete `endlink' variable.
7125 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7127 * config/avr/avr.c (avr_init_builtins): Call
7128 build_function_type_list instead of build_function_type.
7130 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7132 * config/picochip/picochip.c (picochip_init_builtins): Call
7133 build_function_type_list instead of build_function_type.
7134 Delete `endlink' variable.
7136 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7138 * config/bfin/bfin.c (bfin_init_builtins): Call
7139 build_function_type_list instead of build_function_type.
7141 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7144 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7145 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7147 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7150 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7151 libbffastfp overrides libgcc when -mfast-fp.
7153 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7155 Originally from Bernd Schmidt
7156 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7157 * config/bfin/bfin.c (override_options): Test it and error if
7160 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7162 Originally From Bernd Schmidt
7163 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7166 2011-05-03 Jeff Law <law@redhat.com>
7168 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7169 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7170 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7171 than accessing AUX field directly. Free the AUX field before
7173 (thread_block, thread_through_loop_header): Likewise.
7174 (thread_single_edge, mark_threaded_blocks): Likewise.
7175 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7176 (register_jump_thread): Do not attempt to thread to a NULL edge.
7178 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7180 * function.c (init_function_start): Call decide_function_section.
7181 * varasm.c (decide_function_section): New function.
7182 (assemble_start_function): When not using
7183 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7184 or first_function_block_is_cold.
7185 * rtl.h (decide_function_section): Declare.
7187 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7188 Jakub Jelinek <jakub@redhat.com>
7191 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7192 only succeed if req_mode is the same as set_mode.
7194 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7196 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7197 * genemit.c (gen_exp): Handle RETURN.
7198 * emit-rtl.c (verify_rtx_sharing): Likewise.
7199 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7200 * rtl.c (copy_rtx): RETURN is shared.
7201 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7203 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7204 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7205 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7206 * config/cris/cris.c (cris_expand_return): Likewise.
7207 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7208 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7209 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7210 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7211 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7213 * config/v850/v850.c (expand_epilogue): Likewise.
7214 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7215 * config/arm/arm.md (epilogue): Likewise.
7216 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7217 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7218 variable to ret_reg.
7220 2011-05-03 Richard Guenther <rguenther@suse.de>
7223 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7224 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7225 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7227 2011-05-03 Richard Guenther <rguenther@suse.de>
7229 * c-decl.c (grokdeclarator): Instead of looking at
7230 TREE_OVERFLOW check if the constant fits in the index type.
7232 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7234 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7235 (vec_store_lanes<mode><mode>): Likewise.
7237 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7239 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7240 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7241 convert_optab_index values.
7242 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7243 * genopinit.c (optabs): Initialize the new optabs.
7244 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7245 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7246 (expand_STORE_LANES): New functions.
7247 * tree.h (build_array_type_nelts): Declare.
7248 * tree.c (build_array_type_nelts): New function.
7249 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7250 (vect_model_load_cost): Likewise.
7251 (vect_store_lanes_supported, vect_load_lanes_supported)
7252 (vect_record_strided_load_vectors): Declare.
7253 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7254 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7255 (vect_transform_strided_load): Split out statement recording into...
7256 (vect_record_strided_load_vectors): ...this new function.
7257 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7258 (write_vector_array, create_array_ref): New functions.
7259 (vect_model_store_cost): Add store_lanes_p argument.
7260 (vect_model_load_cost): Add load_lanes_p argument.
7261 (vectorizable_store): Try to use store-lanes functions for
7263 (vectorizable_load): Likewise load-lanes and loads.
7264 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7265 to vect_model_store_cost.
7266 (vect_build_slp_tree): Likewise vect_model_load_cost.
7268 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7270 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7271 * hooks.c (hook_bool_mode_uhwi_false): New function.
7272 * target.def (array_mode_supported_p): New hook.
7273 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7274 * doc/tm.texi: Regenerate.
7275 * stor-layout.c (mode_for_array): New function.
7276 (layout_type): Use it.
7277 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7278 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7280 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7283 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7284 for -fstack-check if the size to allocate is negative.
7286 2011-05-02 Lawrence Crowl <crowl@google.com>
7288 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7289 (timevar_cond_start): New for starting a timer only when it is not
7291 (timevar_cond_stop): New for stopping a timer when it was not already
7294 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7295 (timevar_cond_start): New as above.
7296 (timevar_cond_stop): New as above.
7298 * timevar.def: Add start/stop timers for compiler phases,
7299 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7300 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7301 and TV_PHASE_FINALIZE.
7302 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7303 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7304 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7305 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7306 Make unused TV_OVERLOAD into a start/stop timer.
7308 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7309 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7310 to indicate that they are start/stop timers.
7312 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7313 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7314 Move initialization to do_compile.
7315 (do_compile): Add initialization from above.
7316 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7318 * c-decl.c (c_write_global_declarations): Add start/stop of
7319 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7321 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7322 or TV_PARSE_INLINE, as appropriate.
7323 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7324 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7326 2011-05-02 Jason Merrill <jason@redhat.com>
7329 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7331 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7334 * c-decl.c (finish_decl): Only create a composite if the types are
7337 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7339 * config/fr30/fr30-protos.h (Mmode): Don't define.
7340 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7341 definition where used.
7342 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7343 define. Expand definitions where used.
7344 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7345 Expand definitions where used.
7346 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7347 rx_function_arg, rx_function_arg_advance,
7348 rx_function_arg_boundary): Expand definitions of those macros.
7349 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7350 definition where used.
7352 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7354 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7356 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7357 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7358 with *movv2sf_internal_rex64_avx.
7359 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7360 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7361 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7362 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7363 "vex" in "prefix" attribute calculation.
7364 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7366 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7369 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7370 inputs match the output.
7372 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7375 * config/m68k/m68k.c (m68k_expand_prologue): Set
7376 current_function_static_stack_size.
7378 2011-05-02 Jan Hubicka <jh@suse.cz>
7380 * lto-streamer.c (lto_streamer_cache_insert_1,
7381 lto_streamer_cache_lookup, lto_streamer_cache_create,
7382 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7383 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7385 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7387 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7388 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7389 config/m68k/t-opts: New files.
7390 * config/m68k/m68k-tables.opt: New file (generated).
7391 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7392 extra_options and m68k/t-opts to tmake_file.
7393 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7394 (all_isas): Initialize using m68k-isas.def.
7395 (all_microarchs): Initialize using m68k-microarchs.def.
7396 (m68k_find_selection): Remove.
7397 (m68k_handle_option): Don't assert that global structures are in
7398 use. Use error_at. Access variables via opts pointer. Don't
7399 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7400 directly for -m68020-40 and -m68020-60.
7401 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7402 m68k_tune_entry here.
7403 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7405 (m68k_library_id_string): Remove declaration.
7406 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7407 (m68k_library_id_string): New Variable.
7408 (march=, mcpu=, mtune=): Use Enum and Var.
7410 2011-05-02 Richard Guenther <rguenther@suse.de>
7412 * varasm.c (output_constructor_regular_field): Compute zero-based
7413 index with double-ints. Make sure to ICE instead of producing
7415 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7416 in asserts. Properly use a signed type.
7418 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7420 * config/i386/sse.md (V): New mode iterator.
7421 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7423 (V_256): Rename from AVX256MODE.
7424 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7425 condition to all users.
7427 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7428 condition to all users.
7429 (VF_128): Make V4SF mode unconditional.
7430 (VF_256): Rename from AVX256MODEF2P.
7431 (VI4F_128): Rename from SSEMODE4S.
7432 (VI8F_128): Rename from SSEMODE2D.
7433 (VI4F_256): Rename from AVX256MODE8P.
7434 (VI8F_256): Rename from AVX256MODE4P.
7435 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7436 (ssescalarmodesuffix): Remove SF and DF modes.
7437 (SSEMODE124): Remove.
7438 (SSEMODE1248): Ditto.
7439 (SSEMODEF2P): Ditto.
7440 (AVXMODEF2P): Ditto.
7441 (AVXMODEFDP): Ditto.
7442 (AVXMODEFSP): Ditto.
7443 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7445 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7447 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7448 xop_pcmov_<mode>256. Use V mode iterator.
7450 Adjust RTX patterns globally for renamed mode attributes.
7452 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7454 * haifa-sched.c (sched_emit_insn): Emit insn before first
7455 non-scheduled insn. Inform back-end about new insn. Add
7456 new insn to scheduled_insns list.
7458 2011-05-02 Richard Guenther <rguenther@suse.de>
7460 PR tree-optimization/48822
7461 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7462 (process_scc): Indicate which iteration we start.
7464 2011-05-02 Jan Hubicka <jh@suse.cz>
7466 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7467 (lto_section_overrun): New.
7468 * lto-section-out.c (append_block): Rename to ...
7469 (lto_append_block): ... this one; export.
7470 (lto_output_1_stream): Move lto lto-streamer.h
7471 (lto_output_data_stream): Update.
7472 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7473 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7476 2011-05-02 Richard Guenther <rguenther@suse.de>
7478 * tree.c (tree_code_counts): New global array.
7479 (record_node_allocation_statistics): Count individual tree codes.
7480 (dump_tree_statistics): Dump individual code stats.
7482 2011-05-01 Jan Hubicka <jh@suse.cz>
7484 * ipa-inline.c (caller_growth_limits): Fix thinko when
7485 looking for largest stack frame.
7486 * ipa-inline.h (dump_inline_summary): Declare.
7487 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7489 (dump_inline_summary): Export.
7490 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7492 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7494 * reginfo.c (memory_move_cost): Change rclass argument type form
7495 'enum reg_class' to reg_class_t.
7496 * reload.h (memory_move_cost): Update prototype.
7497 * postreload.c reload_cse_simplify_set): Change type dclass var to
7499 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7501 (ira_allocate_and_set_costs): Change aclass argument type form
7502 'enum reg_class' to reg_class_t.
7503 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7504 Change aclass argument type to reg_class_t.
7505 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7507 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7508 memory_move_cost call.
7510 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7511 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7512 Change type tmp var to reg_class_t.
7514 2011-04-30 Jan Hubicka <jh@suse.cz>
7516 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7517 inlining into function with flatten attribute.
7518 (want_inline_small_function_p): Be more realistic about inlining
7519 cold calls where callee size grows.
7521 2011-04-30 Jan Hubicka <jh@suse.cz>
7523 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7526 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7528 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7529 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7530 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7531 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7532 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7533 (print_operand): Rename to...
7534 (sparc_print_operand): ...this. Make static. Adjust
7535 sparc_print_operand function call.
7536 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7539 2011-04-30 Jan Hubicka <jh@suse.cz>
7542 * ipa-inline.c (early_inliner): Disable when doing late
7543 addition of function.
7545 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7547 * dwarf2out.c (get_address_mode): New inline.
7548 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7549 if not dwarf_strict emit
7550 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7551 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7552 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7553 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7554 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7555 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7556 mem_loc_descriptor callers.
7557 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7558 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7559 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7560 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7561 (base_types): New variable.
7562 (get_base_type_offset, calc_base_type_die_sizes,
7563 base_type_for_mode, mark_base_types, base_type_cmp,
7564 move_marked_base_types): New functions.
7565 (calc_die_sizes): Assert that die_offset is 0 or equal to
7567 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7568 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7569 callers. If not dwarf_strict, call mem_loc_descriptor even for
7570 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7571 (gen_subprogram_die): Don't give up on call site parameters
7572 with non-integral or large integral modes. Adjust
7573 mem_loc_descriptor callers.
7574 (prune_unused_types): Call prune_unused_types_mark on base_types
7576 (resolve_addr): Call mark_base_types.
7577 (dwarf2out_finish): Call move_marked_base_types.
7579 PR tree-optimization/48809
7580 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7582 (gen_inbound_check): Don't compute index_expr - range_min in utype
7583 again, instead reuse SSA_NAME initialized in build_arrays.
7584 Remove two useless gsi_for_stmt calls.
7586 2011-04-29 Jeff Law <law@redhat.com>
7588 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7590 2011-04-29 Martin Jambor <mjambor@suse.cz>
7592 * cgraph.h (cgraph_postorder): Remove declaration.
7593 * ipa-utils.h (ipa_free_postorder_info): Declare.
7594 (ipa_reverse_postorder): Likewise.
7595 * cgraphunit.c: Include ipa-utils.h.
7596 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7597 * ipa-inline.c: Include ipa-utils.h.
7598 (ipa_inline): Update call to ipa_reverse_postorder.
7599 * ipa-pure-const.c (propagate_pure_const): Update call to
7600 ipa_reduced_postorder and ipa_print_order. Call
7601 ipa_free_postorder_info to clean up.
7602 (propagate_nothrow): Likewise.
7603 * ipa-reference.c (propagate): Removed a useless call to
7604 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7605 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7606 * ipa.c: Include ipa-utils.h.
7607 (ipa_profile): Update call to ipa_reverse_postorder.
7608 (cgraph_postorder): Moved to...
7609 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7610 (ipa_utils_print_order): Renamed to ipa_print_order.
7611 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7613 (ipa_free_postorder_info): New function.
7614 * passes.c: Include ipa-utils.h.
7615 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7616 (ipa_write_summaries): Likewise.
7617 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7618 (cgraphunit.o): Likewise.
7620 (ipa-inline.o): Likewise.
7622 2011-04-29 Jan Hubicka <jh@suse.cz>
7624 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7625 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7626 * ipa-inline.h (clause_t): Turn into unsigned int.
7627 * ipa-inline-analysis.c (add_clause): Do more simplification.
7628 (and_predicates): Shortcut more cases.
7629 (predicates_equal_p): Move forward; check that clauses are properly
7631 (or_predicates): Shortcut more cases.
7632 (edge_execution_predicate): Rewrite as...
7633 (set_cond_stmt_execution_predicate): ... this function; handle
7634 __builtin_constant_p.
7635 (set_switch_stmt_execution_predicate): New .
7636 (compute_bb_predicates): New.
7637 (will_be_nonconstant_predicate): Update TODO.
7638 (estimate_function_body_sizes): Use compute_bb_predicates
7639 and free them later, always try to estimate if stmt is constant.
7640 (estimate_time_after_inlining, estimate_size_after_inlining):
7641 Gracefully handle optimized out edges.
7642 (read_predicate): Fix off by one error.
7644 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7646 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7648 2011-04-27 Xinliang David Li <davidxl@google.com>
7650 * tree-profile.c (init_ic_make_global_vars): Set
7651 tls attribute on ic vars.
7652 * coverage.c (coverage_end_function): Initialize
7653 function_list with zero.
7655 2011-04-29 Richard Guenther <rguenther@suse.de>
7657 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7658 for the type of the result.
7659 (fold_builtin_isascii): Likewise.
7660 (fold_builtin_toascii): Use integer_type_node where appropriate.
7661 (fold_builtin_logb): Likewise.
7662 (fold_builtin_frexp): Likewise.
7663 (fold_builtin_strstr): Likewise.
7664 (fold_builtin_strpbrk): Likewise.
7665 (fold_builtin_fputs): Likewise.
7666 (fold_builtin_sprintf): Likewise.
7667 (fold_builtin_snprintf): Likewise.
7668 (fold_builtin_printf): Likewise.
7669 (do_mpfr_remquo): Use a proper type for the assigned constant.
7670 (do_mpfr_lgamma_r): Likewise.
7671 * dwarf2out.c (resolve_one_addr): Use size_int.
7672 * except.c (init_eh): Likewise.
7673 (assign_filter_values): Use integer_type_node for filter values.
7674 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7676 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7677 for EH region numbers.
7678 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7679 for the shift amount.
7681 2011-04-29 Richard Guenther <rguenther@suse.de>
7683 * expr.h (expand_shift): Rename to ...
7684 (expand_variable_shift): ... this.
7685 (expand_shift): Take a constant shift amount.
7686 * expmed.c (expand_shift): Rename to ...
7687 (expand_variable_shift): ... this.
7688 (expand_shift): New wrapper around expand_variable_shift.
7689 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7690 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7691 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7692 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7693 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7694 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7695 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7696 emit_store_flag_1, emit_store_flag): Likewise.
7697 * builtins.c (expand_builtin_signbit): Likewise.
7698 * calls.c (load_register_parameters): Likewise.
7699 * function.c (assign_parm_setup_block): Likewise.
7700 * lower-subreg.c (resolve_shift_zext): Likewise.
7701 * optabs.c (widen_bswap, expand_abs_nojump,
7702 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7703 * spu/spu.c (spu_expand_extv): Likewise.
7704 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7706 2011-04-29 Richard Guenther <rguenther@suse.de>
7708 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7709 for the remapped region number.
7710 * predict.c (build_predict_expr): Use integer_type_node for the
7712 * fold-const.c (fold_binary_loc): Use integer_type_node for
7713 the shift amount. Use a proper type for the PLUS_EXPR operand.
7715 2011-04-29 Michael Matz <matz@suse.de>
7717 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7718 other trees that just builtins.
7719 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7721 2011-04-29 Richard Guenther <rguenther@suse.de>
7723 * tree-nested.c (get_trampoline_type): Use size_int.
7724 (get_nl_goto_field): Likewise.
7725 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7727 (lower_eh_constructs_2): Likewise.
7728 (lower_resx): Likewise.
7729 (lower_eh_dispatch): Likewise.
7730 * tree-mudflap.c (mf_build_string): Use size_int.
7731 (mudflap_register_call): Use integer_type_node for the flag.
7732 (mudflap_enqueue_constant): Use size_int.
7733 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7734 instead of rebuilding it.
7736 2011-04-29 Richard Guenther <rguenther@suse.de>
7738 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7739 Handle OBJ_TYPE_REF.
7740 (find_func_aliases_for_call): Use it more consistently.
7742 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7744 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7745 (rank_for_schedule): Use it.
7746 (schedule_block): Set it.
7748 2011-04-28 David Li <davidxl@google.com>
7750 * tree.c (crc32_string): Use crc32_byte.
7751 (crc32_byte): New function.
7752 * tree.h (crc32_byte): New function.
7753 * gcov.c (read_graph_file): Handle new cfg_cksum.
7754 (read_count_file): Ditto.
7755 * profile.c (instrument_values): Ditto.
7756 (get_exec_counts): Ditto.
7757 (read_profile_edge_counts): Ditto.
7758 (compute_branch_probabilities): Ditto.
7759 (compute_value_histograms): Ditto.
7760 (branch_prob): Ditto.
7761 (end_branch_prob): Ditto.
7762 * coverage.c (read_counts_file): Ditto.
7763 (get_coverage_counts): Ditto.
7764 (tree_coverage_counter_addr): Ditto.
7765 (coverage_checksum_string): Ditto.
7766 (coverage_begin_output): Ditto.
7767 (coverage_end_function): Ditto.
7768 (build_fn_info_type): Ditto.
7769 (build_fn_info_value): Ditto.
7770 * libgcov.c (gcov_exit): Ditto.
7771 * gcov-dump.c (tag_function): Ditto.
7772 (compute_checksum): Remove.
7774 2011-04-29 Alan Modra <amodra@gmail.com>
7776 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7777 unspec plus offset. Tidy macho code.
7779 2011-04-29 Martin Jambor <mjambor@suse.cz>
7781 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7782 node instead of a decl. Update all callers.
7783 * cgraph.h: Update declaration.
7785 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7787 PR tree-optimization/48765
7788 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7789 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7790 to indicate if loop aware SLP is being used. Scan the statements
7791 and update the vectorization factor according to the type of
7792 vectorization before statement analysis.
7793 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7794 pass it to vect_analyze_loop_operations.
7795 (vectorizable_reduction): Set number of copies to 1 in case of pure
7797 * tree-vect-stmts.c (vectorizable_conversion,
7798 vectorizable_assignment, vectorizable_shift,
7799 vectorizable_operation, vectorizable_type_demotion,
7800 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7802 (vectorizable_condition): Move the check that it is not SLP
7803 vectorization before the number of copies check.
7804 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7805 to vectorize the loop using SLP.
7807 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7810 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7813 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7815 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7816 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7817 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7818 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7819 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7821 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7822 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7823 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7824 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7825 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7826 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7828 * config/i386/linux.h (REG_NAME): Don't define.
7829 * config/i386/linux64.h (REG_NAME): Don't define.
7830 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7831 Undefine before defining.
7833 2011-04-28 Jan Hubicka <jh@suse.cz>
7835 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7836 nonconstant_names array.
7837 (estimate_function_body_sizes): Build nonconstant_names array; handle
7838 BUILT_IN_CONSTANT_P.
7840 2011-04-28 Richard Guenther <rguenther@suse.de>
7844 2011-04-28 Richard Guenther <rguenther@suse.de>
7846 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7847 as late as possible.
7849 2011-04-28 Richard Guenther <rguenther@suse.de>
7851 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7852 (debug_constraint): Do it here.
7853 (dump_constraints): And here.
7854 (rewrite_constraints): And here.
7855 (dump_constraint_edge): Remove.
7856 (dump_constraint_graph): Rewrite to produce DOT output.
7857 (solve_constraints): Build succ graph as late as possible.
7858 Dump constraint graphs before and after solving.
7860 2011-04-28 Richard Guenther <rguenther@suse.de>
7862 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7863 New function split out from ...
7864 (find_func_aliases): ... here. Call it.
7865 (find_func_aliases_for_call): Likewise.
7867 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7869 * internal-fn.h (internal_fn_name_array): Declare.
7870 (internal_fn_flags_array): Likewise.
7872 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7874 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7875 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7877 (ssemodefsuffix): Remove.
7878 (ssevecmodesuffix): New mode attribute.
7879 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7880 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7881 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7882 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7883 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7884 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7885 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7886 ssemodesuffix mode attribute.
7887 (float splitters): Use ssevecmodesuffix mode attribute.
7888 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7889 (sseinsmode): Rename from avxvecmode.
7890 (avxsizesuffix): Rename from avxmodesuffix.
7891 (sseintvecmode): Rename from avxpermvecmode.
7892 (ssedoublevecmode): Rename from ssedoublesizemode.
7893 (ssehalfvecmode): Rename from avxhalfvecmode.
7894 (ssescalarmode): Rename from avxscalarmode.
7895 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7896 templates for ssemodesuffix mode attribute.
7897 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7900 Adjust RTX patterns globally for renamed mode attributes.
7902 2011-04-27 Jan Hubcika <jh@suse.cz>
7904 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7905 * ipa-inline-analysis.c: Include alloc-pool.h.
7906 (edge_predicate_pool): New.
7907 (trye_predicate_p): New function
7908 (false_predicate_p): New function.
7909 (add_clause): Sanity check that false clauses are "optimized";
7910 never add clauses to predicate that is already known to be false.
7911 (and_predicate): Use flase_predicate_p.
7912 (evaulate_predicate): Rename to ...
7913 (evaluate_predicate): ... this one; update all callers; assert
7914 that false is not listed among possible truths.
7915 (dump_predicate): Use true_predicate_p.
7916 (account_size_time): Use false_predicate_p.
7917 (evaulate_conditions_for_edge): Rename to ...
7918 (evaluate_conditions_for_edge) ... this one.
7919 (edge_set_predicate): New function.
7920 (inline_edge_duplication_hook): Duplicate edge predicates.
7921 (inline_edge_removal_hook): Free edge predicates.
7922 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7923 (dump_inline_summary): Update.
7924 (estimate_function_body_sizes): Set edge predicates.
7925 (estimate_calls_size_and_time): Handle predicates.
7926 (estimate_callee_size_and_time): Update.
7927 (remap_predicate): Add toplev_predicate; update comment.
7928 (remap_edge_predicates): New function.
7929 (inline_merge_summary): Compute toplev predicate; update.
7930 (read_predicate): New function.
7931 (read_inline_edge_summary): Use it.
7932 (inline_read_section): Likewise.
7933 (write_predicate): New function.
7934 (write_inline_edge_summary): Use it.
7935 (inline_write_summary): Likewise.
7936 (inline_free_summary): Free alloc pool and edge summary vec.
7938 2011-04-27 Richard Guenther <rguenther@suse.de>
7940 * tree-ssa-structalias.c (changed_count): Remove.
7941 (changed): Use a bitmap.
7942 (unify_nodes): Adjust.
7943 (do_sd_constraint): Likewise.
7944 (do_ds_constraint): Likewise.
7945 (do_complex_constraint): Likewise.
7946 (solve_graph): Likewise.
7948 2011-04-27 Jan Hubicka <jh@suse.cz>
7950 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7952 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7954 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7955 (avx_vperm2f128_*_operand): Ditto.
7956 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7957 Use avx_vpermilp_parallel in insn condition.
7958 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7959 Use avx_vperm2f128_parallel in insn condition.
7961 2011-04-27 Richard Guenther <rguenther@suse.de>
7963 * Makefile.in (tree-ssa-structalias.o): Remove
7964 gt-tree-ssa-structalias.h dependency.
7965 (GTFILES): Remove tree-ssa-structalias.c.
7966 * tree.c (allocate_decl_uid): New function.
7967 (make_node_stat): Use it.
7968 (copy_node_stat): Likewise.
7969 * tree.h (allocate_decl_uid): Declare.
7970 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7971 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7972 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7973 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7974 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7975 (struct heapvar_map): Likewise.
7976 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7977 heapvar_insert): Likewise.
7978 (make_heapvar_for): Rename to ...
7979 (make_heapvar): ... this. Simplify.
7980 (fake_var_decl_obstack): New global var.
7981 (build_fake_var_decl): New function.
7982 (make_constraint_from_heapvar): Adjust.
7983 (handle_lhs_call): Likewise.
7984 (create_function_info_for): Likewise.
7985 (intra_create_variable_infos): Likewise.
7986 (init_alias_vars): Allocate fake_var_decl_obstack.
7987 (init_alias_heapvars, delete_alias_heapvars): Remove.
7988 (compute_points_to_sets): Do not call init_alias_heapvars.
7989 (ipa_pta_execute): Likewise.
7990 (delete_points_to_sets): Free fake_var_decl_obstack.
7992 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7994 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7995 (si_from_UTItype, si_to_UTItype): New functions.
7996 (__udivmodti4): Use them to implement type-punning.
7997 * config/spu/multi3.c (union qword_TItype): New data type.
7998 (si_from_TItype, si_to_TItype): New functions.
7999 (__multi3): Use them to implement type-punning.
8001 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8003 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8005 2011-04-27 Jan Hubicka <jh@suse.cz>
8007 * ipa-prop.c (function_insertion_hook_holder): New holder.
8008 (ipa_add_new_function): New function.
8009 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8010 Register/deregister holder.
8012 2011-04-27 Richard Guenther <rguenther@suse.de>
8014 PR tree-optimization/48772
8015 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8017 2011-04-27 Richard Guenther <rguenther@suse.de>
8019 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8020 TARGET_MEM_REF handling.
8022 2011-04-27 Nick Clifton <nickc@redhat.com>
8024 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8025 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8026 (REG_CLASS_NAMES): Likewise.
8027 (REG_CLASS_CONTENTS): Likewise.
8028 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8029 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8030 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8031 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8032 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8033 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8034 duplicate register classes.
8035 (frv_class_likely_spilled_p): Likewise.
8036 (frv_register_move_cost): Likewise.
8038 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8039 end of the regno_reg_class array.
8041 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8044 * c-typeck.c (build_binary_op): Don't wrap arguments if
8045 int_operands is true.
8047 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8050 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8051 targetm.calls.must_pass_in_stack for void type.
8053 2011-04-26 Jan Hubicka <jh@suse.cz>
8055 * cgraphbuild.c (build_cgraph_edges): Update call
8056 of cgraph_create_edge and cgraph_create_indirect_edge.
8057 * cgraph.c (cgraph_create_edge_including_clones,
8058 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8059 cgraph_update_edges_for_call_stmt_node): Do not take nest
8060 argument; do not initialize call_stmt_size/time.
8061 (dump_cgraph_node): Do not dump nest.
8062 (cgraph_clone_edge): Do not take loop_nest argument;
8063 do not propagate it; do not clone call_stmt_size/time.
8064 (cgraph_clone_node): Likewise.
8065 (cgraph_create_virtual_clone): Update.
8066 * cgraph.h (struct cgraph_edge): Remove
8067 call_stmt_size/call_stmt_time/loop_nest.
8068 (cgraph_create_edge, cgraph_create_indirect_edge,
8069 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8071 * tree-emutls.c (gen_emutls_addr): Update.
8072 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8073 loop_nest; handle indirect calls, too.
8074 (clone_inlined_nodes): Do not care about updating inline summaries.
8075 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8076 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8077 stream call_stmt_size/call_stmt_time/loop_nest.
8078 * ipa-inline.c (edge_badness): Update.
8079 (ipa_inline): dump summaries after inlining.
8080 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8082 (inline_edge_summary): New function.
8083 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8084 (inline_edge_removal_hook): Handle edge summaries.
8085 (inline_edge_duplication_hook): New hook.
8086 (inline_summary_alloc): Alloc hooks.
8087 (initialize_growth_caches): Do not register removal hooks.
8088 (free_growth_caches); Do not free removal hook.
8089 (dump_inline_edge_summary): New function.
8090 (dump_inline_summary): Use it.
8091 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8092 (inline_update_callee_summaries): New function.
8093 (inline_merge_summary): Use it.
8094 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8095 (read_inline_edge_summary): New function.
8096 (inline_read_section): Use it.
8097 (write_inline_edge_summary): New function.
8098 (inline_write_summary): Use it.
8099 (inline_free_summary): Free edge new holders.
8100 * tree-inline.c (copy_bb): Update.
8102 2011-04-26 Jason Merrill <jason@redhat.com>
8104 * tree-eh.c (lower_try_finally_switch): Create the label along with
8105 the CASE_LABEL_EXPR.
8107 2011-04-26 David S. Miller <davem@davemloft.net>
8108 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8110 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8111 * configure: Regenerate.
8113 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8116 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8118 (VEC_reduc): New code iterator and splitters for vector reduction.
8119 (VEC_reduc_name): Ditto.
8120 (VEC_reduc_rtx): Ditto.
8121 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8122 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8124 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8125 support for extracting SF on VSX.
8127 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8128 generating xscvspdp.
8129 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8130 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8131 double add, minimum, maximum vector reduction.
8132 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8133 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8134 optimize double vector reduction.
8135 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8137 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8139 * config/fr30/fr30.h (inhibit_libc): Don't define.
8140 * config/m32r/m32r-protos.h: Correct comment.
8141 * config/v850/v850.h (GHS_default_section_names,
8142 GHS_current_section_names): Use tree, not union tree_node *.
8144 2011-04-26 Xinliang David Li <davidxl@google.com>
8146 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8147 * c-family/c-opts.c (c_common_handle_option): Set
8148 warn_maybe_uninitialized.
8149 * opts.c (common_handle_option): Ditto.
8150 * common.opt: New option.
8151 * tree-ssa.c (warn_uninit): Add one more parameter.
8152 (warn_uninitialized_var): Pass warning code.
8153 * tree-flow.h: Interface change.
8155 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8157 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8158 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8159 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8161 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8163 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8164 * config/mips/mips.opt (mmips-tfile): Remove.
8166 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8167 mips-tdump reference to ...
8168 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8169 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8170 reference by Tru64 UNIX.
8172 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8175 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8176 is error_mark_node, set value to NULL.
8178 PR tree-optimization/48734
8179 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8180 if return value from maybe_fold_*_comparsions isn't something
8181 the code is prepared to handle.
8183 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8185 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8187 (ext_QIreg_nomode_operands): Remove.
8188 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8192 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8194 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8196 2011-04-26 Richard Guenther <rguenther@suse.de>
8198 * c-typeck.c (build_unary_op): Do not expand array-refs via
8199 pointer arithmetic. Only adjust qualifiers for function types.
8201 2011-04-26 Richard Guenther <rguenther@suse.de>
8204 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8205 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8206 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8207 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8209 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8211 * doc/extend.texi: Document __underlying_type.
8213 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8215 * config/rs6000/titan.md (automata_option "progress"): Remove.
8217 2011-04-25 Jeff Law <law@redhat.com>
8219 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8221 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8223 * system.h (ENUM_BITFIELD): Remove.
8225 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8226 Eric Botcazou <ebotcazou@adacore.com>
8228 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8229 for STORE_FLAG_VALUE==-1 case.
8231 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8234 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8235 LEGITIMATE_PIC_OPERAND_P.
8237 2011-04-24 Jan Hubicka <jh@suse.cz>
8239 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8241 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8242 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8243 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8244 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8245 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8246 Sanity check predicate length.
8247 (remap_predicate): Likewise; sanity check jump functions.
8248 (inline_read_section, inline_write_summary): Sanity check
8251 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8254 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8255 __is_literal_type, and __is_trivial; update throughout about
8256 possibly cv-qualified void types.
8258 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8260 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8261 testsuite and make it version agnostic.
8263 2011-04-22 Jan Hubicka <jh@suse.cz>
8265 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8267 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8270 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8271 to VOID_TYPE even around MODIFY_EXPR.
8273 2011-04-22 Mike Stump <mikestump@comcast.net>
8275 * gensupport.c (read_md_rtx): Fix typo in comment.
8276 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8279 2011-04-22 Jan Hubicka <jh@suse.cz>
8281 * gengtype.c (open_base_files): Add ipa-inline.h include.
8282 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8283 ipa-prop.c; update all uses.
8284 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8285 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8286 merge summary of inlined function into former caller.
8287 * ipa-inline.c (max_benefit): Remove.
8288 (edge_badness): Compensate for removal of benefits.
8289 (update_caller_keys): Use
8290 reset_node_growth_cache/reset_edge_growth_cache.
8291 (update_callee_keys): Likewise.
8292 (update_all_callee_keys): Likewise.
8293 (inline_small_functions): Do not collect max_benefit; do not reset
8294 estimated_growth; call free_growth_caches and initialize_growth_caches.
8295 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8296 struct size_time_entry): New structures.
8297 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8298 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8299 and estimated_growth.
8300 (edge_growth_cache_entry): New structure.
8301 (node_growth_cache, edge_growth_cache): New global vars.
8302 (estimate_growth): Turn into inline.
8303 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8304 initialize_growth_caches, free_growth_caches): Declare.
8305 (estimate_edge_growth): Rewrite.
8306 (estimate_edge_time): Implement as inline cache lookup.
8307 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8309 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8310 (NUM_CONDITIONS): New constant.
8311 (predicate_conditions): New enum.
8312 (IS_NOT_CONSTANT): New constant.
8313 (edge_removal_hook_holder): New var.
8314 (node_growth_cache, edge_growth_cache): New global vars.
8315 (true_predicate, single_cond_predicate, false_predicate,
8316 not_inlined_predicate, add_condition, add_clause, and_predicates,
8317 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8318 dump_clause, dump_predicate, account_size_time,
8319 evaulate_conditions_for_edge): New functions.
8320 (inline_summary_alloc): Move to heap.
8321 (inline_node_removal_hook): Clear condition and entry vectors.
8322 (inline_edge_removal_hook): New function.
8323 (initialize_growth_caches, free_growth_caches): New function.
8324 (dump_inline_summary): Update.
8325 (edge_execution_predicate): New function.
8326 (will_be_nonconstant_predicate): New function.
8327 (estimate_function_body_sizes): Compute BB and constantness predicates.
8328 (compute_inline_parameters): Do not clear estimated_growth.
8329 (estimate_edge_size_and_time): New function.
8330 (estimate_calls_size_and_time): New function.
8331 (estimate_callee_size_and_time): New function.
8332 (remap_predicate): New function.
8333 (inline_merge_summary): New function.
8334 (do_estimate_edge_time): New function based on...
8335 (estimate_edge_time): ... this one.
8336 (do_estimate_edge_growth): New function.
8337 (do_estimate_growth): New function based on....
8338 (estimate_growth): ... this one.
8339 (inline_analyze_function): Analyze after deciding on jump functions.
8340 (inline_read_section): New function.
8341 (inline_read_summary): Use it.
8342 (inline_write_summary): Write all the new data.
8343 * ipa-prop.c (ipa_get_param_decl_index): Export.
8344 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8345 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8347 (ipa_get_lattice): Move here from ipa-cp.c
8348 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8349 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8350 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8351 cgraph_edge_inlinable_p): Remove.
8352 * cgraphunit.c: Include ipainline.h
8353 (cgraph_process_new_functions): Update call of
8354 compute_inline_parameters.
8356 2011-04-22 Richard Guenther <rguenther@suse.de>
8358 * tree.c (build_int_cst): Properly create canonicalized integer
8360 (build_int_cst_type): Remove scary comments.
8362 2011-04-22 Xinliang David Li <davidxl@google.com>
8364 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8365 by default when -Wno-error is not specified.
8366 * opts-global.c (decode_options): Remove call to
8367 control_warning_options.
8369 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8371 PR tree-optimization/48717
8372 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8373 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8375 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8377 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8378 definition where used.
8380 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8383 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8384 TREE_STATIC variables declared inside of some OpenMP construct.
8386 2011-04-22 Martin Jambor <mjambor@suse.cz>
8389 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8391 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8394 * c-typeck.c (pop_init_level): Do not warn about initializing
8397 2011-04-22 Alan Modra <amodra@gmail.com>
8399 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8400 when returning call_cookie.
8401 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8402 pointers, to functions with no more vector args than the current
8403 function, and some non-local calls for ABI_V4.
8404 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8405 sibcall_nonlocal_aix64): Combine to ..
8406 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8407 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8408 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8409 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8410 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8412 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8413 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8414 sibcall_value_symbolic_64): Delete.
8416 2011-04-21 Xinliang David Li <davidxl@google.com>
8418 * cgraph.h: Remove pid.
8419 * cgraph.c: Remove pid.
8420 * value-prof.c (init_node_map): New function.
8421 (del_node_map): New function.
8422 (find_func_by_funcdef_no): New function.
8423 (gimple_ic_transform): Call new function.
8424 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8425 * function.c (get_last_funcdef_no): New function.
8426 * function.h (get_last_funcdef_no): New function.
8427 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8428 to libgcov function.
8429 (tree-profiling): Call node map init and delete function.
8431 2011-04-21 Ian Lance Taylor <iant@google.com>
8433 * godump.c (go_format_type): Use exported Go name for anonymous
8436 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8438 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8439 Call builtin_function_type_list instead of builtin_function_type.
8440 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8442 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8444 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8445 build_function_type_list instead of build_function_type.
8446 Delete variable `endlink'.
8448 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8450 * config/s390/s390.c (s390_init_builtins): Call
8451 build_function_type_list instead of build_function_type.
8453 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8455 * config/ia64/ia64.c (ia64_init_builtins): Call
8456 build_function_type_list instead of builtin_function_type.
8458 2011-04-21 Easwaran Raman <eraman@google.com>
8460 * cfgexpand.c (stack_var): Remove OFFSET...
8461 (add_stack_var): ...and its reference here...
8462 (expand_stack_vars): ...and here.
8463 (stack_var_cmp): Sort by descending order of size.
8464 (partition_stack_vars): Change heuristic.
8465 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8466 (dump_stack_var_partition): Add newline after each partition.
8468 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8469 Jeff Law <law@redhat.com>
8471 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8472 * gengtype.c (matching_file_name_substitute): Likewise.
8474 2011-04-21 Richard Guenther <rguenther@suse.de>
8477 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8479 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8481 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8483 2011-04-21 Richard Guenther <rguenther@suse.de>
8485 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8488 2011-04-21 Richard Guenther <rguenther@suse.de>
8490 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8491 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8492 Use DECL_P, not SSA_VAR_P.
8493 (ptr_derefs_may_alias_p): Likewise.
8494 (ptr_deref_may_alias_ref_p_1): Likewise.
8495 (decl_refs_may_alias_p): Likewise.
8496 (refs_may_alias_p_1): Likewise.
8497 (ref_maybe_used_by_call_p_1): Likewise.
8498 (call_may_clobber_ref_p_1): Likewise.
8499 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8500 are either MEM_REF or TARGET_MEM_REF.
8501 (indirect_refs_may_alias_p): Likewise.
8502 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8503 for MEM_EXPR of indirect calls.
8505 2011-04-21 Tristan Gingold <gingold@adacore.com>
8507 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8508 (dst_file_info_struct): Remove flen field.
8509 (lookup_filename): Remove code that set flen field.
8511 2011-04-21 Tristan Gingold <gingold@adacore.com>
8513 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8515 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8518 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8519 vec_extract and vec_concat for non-SSE4_1 targets.
8521 2011-04-21 Richard Guenther <rguenther@suse.de>
8523 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8526 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8528 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8530 (FILE): Don't undefine.
8532 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8534 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8536 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8538 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8539 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8540 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8542 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8543 definitions where used.
8544 * config/microblaze/microblaze.h (struct microblaze_args): Use
8545 rtx, not struct rtx_def *.
8546 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8548 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8549 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8550 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8551 not struct rtx_def *.
8552 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8554 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8556 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8558 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8560 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8561 operand_equal_p to compare DR_BASE_ADDRESSes.
8562 (vect_check_interleaving): Likewise.
8564 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8567 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8568 for all Neon struct constants.
8570 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8572 * target.def (legitimate_constant_p): New hook.
8573 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8574 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8575 * doc/tm.texi: Regenerate.
8576 * hooks.h (hook_bool_mode_rtx_true): Declare.
8577 * hooks.c (hook_bool_mode_rtx_true): Define.
8578 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8579 * calls.c (precompute_register_parameters): Replace uses of
8580 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8581 (emit_library_call_value_1): Likewise.
8582 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8583 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8584 * ira-costs.c (scan_one_insn): Likewise.
8585 * recog.c (general_operand, immediate_operand): Likewise.
8586 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8587 * reload1.c (init_eliminable_invariants): Likewise.
8589 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8591 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8592 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8594 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8595 * config/alpha/predicates.md (input_operand): Update call to
8596 alpha_legitimate_constant_p.
8598 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8599 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8600 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8601 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8602 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8603 (arm_legitimate_constant_p): New functions.
8604 (arm_cannot_force_const_mem): Make static.
8606 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8608 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8609 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8610 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8611 instead of bfin_legitimate_constant_p.
8612 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8613 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8615 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8617 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8619 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8620 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8621 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8622 (frv_legitimate_constant_p): Make static. Add a mode argument.
8624 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8625 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8626 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8628 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8629 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8630 * config/i386/i386.c (legitimate_constant_p): Rename to...
8631 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8633 (ix86_cannot_force_const_mem): Update accordingly.
8634 (ix86_legitimate_address_p): Likewise.
8635 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8636 * config/i386/i386.md: Update commentary.
8638 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8639 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8640 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8641 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8643 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8645 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8646 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8647 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8648 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8650 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8651 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8652 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8654 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8655 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8656 (m32r_legitimate_constant_p): New function.
8658 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8659 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8660 LEGITIMATE_CONSTANT_P.
8661 (LEGITIMATE_CONSTANT_P): Delete.
8662 * config/m68k/m68k.c (m68k_expand_prologue): Call
8663 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8664 (m68k_legitimate_constant_p): New function.
8665 * config/m68k/m68k.md: Update comments.
8667 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8668 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8669 (mcore_legitimate_constant_p): New function.
8671 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8672 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8673 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8674 Add a mode argument.
8675 (mep_legitimate_address): Update accordingly.
8676 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8678 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8680 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8681 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8682 static. Check OP's mode for VOIDmode.
8683 (microblaze_legitimate_constant_p): New function.
8684 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8686 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8687 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8688 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8689 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8690 * config/mips/predicates.md: Update comments.
8692 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8693 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8694 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8695 (mmix_legitimate_constant_p): Make static, return a bool, and take
8697 (mmix_print_operand_address): Update accordingly.
8699 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8701 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8702 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8703 static. Add a mode argument.
8704 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8706 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8708 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8709 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8710 (pa_legitimate_constant_p): New function.
8712 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8714 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8715 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8716 (pdp11_legitimate_constant_p): New function.
8718 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8719 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8720 (rs6000_legitimate_constant_p): New function.
8722 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8723 (rx_legitimate_constant_p): ...this.
8724 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8725 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8726 (rx_legitimate_constant_p): ...this.
8727 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8728 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8730 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8731 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8732 * config/s390/s390.c (legitimate_constant_p): Rename to...
8733 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8734 and add a mode argument.
8735 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8737 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8739 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8740 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8741 (sh_legitimate_constant_p): New function.
8743 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8744 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8745 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8746 (legitimate_constant_p): Rename to...
8747 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8749 (constant_address_p): Update accordingly.
8751 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8752 argument and return a bool.
8753 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8754 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8755 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8756 (spu_rtx_costs): Update accordingly.
8757 * config/spu/predicates.md (vec_imm_operand): Likewise.
8759 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8761 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8762 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8763 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8765 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8766 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8767 * config/vax/vax.c (legitimate_constant_p): Likewise.
8769 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8770 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8771 (xtensa_legitimate_constant_p): New function.
8773 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8775 * target.def (cannot_force_const_mem): Add a mode argument.
8776 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8777 * doc/tm.texi: Regenerate.
8778 * hooks.h (hook_bool_mode_rtx_false): Declare.
8779 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8780 (hook_bool_mode_const_rtx_true): Likewise.
8781 (hook_bool_mode_rtx_false): New function.
8782 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8783 to be non-VOID. Update call to cannot_force_const_mem.
8784 (find_reloads): Update accordingly.
8785 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8786 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8788 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8789 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8790 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8791 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8792 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8793 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8794 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8795 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8796 (m68k_cannot_force_const_mem): ...this new function.
8797 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8799 (mips_const_insns, mips_legitimize_const_move): Update calls.
8800 (mips_secondary_reload_class): Likewise.
8801 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8802 (pa_cannot_force_const_mem): ...this new function.
8803 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8804 (rs6000_cannot_force_const_mem): ...this new function.
8805 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8807 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8808 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8810 (xtensa_cannot_force_const_mem): ...this new function.
8812 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8814 * config/mips/mips.c (mips16_build_function_stub): Call
8815 build_function_type_list instead of build_function_type.
8816 (mips16_build_call_stub): Likewise.
8818 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8820 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8821 instead of build_function_type.
8823 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8825 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8826 instead of build_function_type.
8828 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8831 * config/i386/i386.md (insv): Change operand 0 constraint to
8832 "register_operand". Change operand 1 and 2 constraint to
8833 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8834 * config/i386/sse.md (sse4_1_pinsrb): Export.
8835 (sse2_pinsrw): Ditto.
8836 (sse4_1_pinsrd): Ditto.
8837 (sse4_1_pinsrq): Ditto.
8838 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8839 * config/i386/i386.c (ix86_expand_pinsr): New.
8841 2011-04-20 Easwaran Raman <eraman@google.com>
8843 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8844 containing union type only with -fstrict-aliasing.
8846 2011-04-20 Jim Meyering <meyering@redhat.com>
8848 Remove useless if-before-free tests.
8849 * calls.c (expand_call, save_area): Likewise.
8850 * cfgcleanup.c (try_forward_edges): Likewise.
8851 * collect2.c (collect_execute): Likewise.
8852 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8853 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8854 * coverage.c (coverage_checksum_string): Likewise.
8855 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8856 * cselib.c (cselib_init): Likewise.
8857 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8858 (df_set_clean_cfg): Likewise.
8859 * function.c (free_after_compilation): Likewise.
8860 * gcc.c (do_spec_1, main): Likewise.
8861 * gcov.c (create_file_names): Likewise.
8862 * gensupport.c (identify_predicable_attribute): Likewise.
8863 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8864 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8865 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8866 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8867 * ipa-pure-const.c (local_pure_const): Likewise.
8868 * ipa-reference.c (propagate): Likewise.
8869 * ira-costs.c (free_ira_costs): Likewise.
8870 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8871 * matrix-reorg.c (mat_free): Likewise.
8872 * prefix.c (get_key_value): Likewise.
8873 * profile.c (compute_value_histograms): Likewise.
8874 * reload1.c (free_reg_equiv): Likewise.
8875 * sched-deps.c (free_deps): Likewise.
8876 * sel-sched-ir.c (fence_clear): Likewise.
8877 * sese.c (set_rename, if_region_set_false_region): Likewise.
8878 * tree-data-ref.c (free_rdg): Likewise.
8879 * tree-eh.c (lower_try_finally): Likewise.
8880 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8881 * tree-ssa-live.c (delete_var_map): Likewise.
8882 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8883 * tree-ssa-pre.c (phi_trans_add): Likewise.
8885 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8887 PR tree-optimization/48611
8888 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8889 beyond ERT_MUST_NOT_THROW region.
8891 2011-04-20 Catherine Moore <clm@codesourcery.com>
8893 * config/mips/mips.opt (mfix-24k): New.
8894 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8895 * config/mips/mips.md (length): Increase by 4 for stores if
8897 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8898 all noreorder if fixing 24K errata.
8899 * doc/invoke.texi: Document mfix-24k.
8901 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8903 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8904 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8906 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8908 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8909 (const_ok_for_op): ... to here.
8911 2011-04-20 Kai Tietz <ktietz@redhat.com>
8913 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8914 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8916 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8918 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8920 2011-04-20 Richard Guenther <rguenther@suse.de>
8922 PR tree-optimization/47892
8923 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8926 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8928 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8930 2011-04-20 Tristan Gingold <gingold@adacore.com>
8932 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8934 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8938 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8939 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8940 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8941 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8942 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8944 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8947 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8948 (avr_asm_named_section, avr_asm_output_aligned_common,
8949 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8950 New functions to update...
8951 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8952 (avr_asm_init_sections): Overwrite section callbacks for
8953 data_section, bss_section.
8954 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8956 (avr_file_end): ...here.
8958 2011-04-20 Richard Guenther <rguenther@suse.de>
8961 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8962 objects and types here. Adjust for their offset before comparing.
8964 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8966 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8969 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8971 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8972 (GIMPLE_H): Include $(INTERNAL_FN_H).
8973 (OBJS-common): Add internal-fn.o.
8974 (internal-fn.o): New rule.
8975 * internal-fn.def: New file.
8976 * internal-fn.h: Likewise.
8977 * internal-fn.c: Likewise.
8978 * gimple.h: Include internal-fn.h.
8979 (GF_CALL_INTERNAL): New gf_mask.
8980 (gimple_statement_call): Put fntype into a union with a new
8982 (gimple_build_call_internal): Declare.
8983 (gimple_build_call_internal_vec): Likewise.
8984 (gimple_call_same_target_p): Likewise.
8985 (gimple_call_internal_p): New function.
8986 (gimple_call_internal_fn): Likewise.
8987 (gimple_call_fntype): Return null for internal calls.
8988 (gimple_call_set_fntype): Assert that the function is not internal.
8989 (gimple_call_set_fn): Likewise.
8990 (gimple_call_set_fndecl): Likewise.
8991 (gimple_call_set_internal_fn): New function.
8992 (gimple_call_addr_fndecl): Handle null functions.
8993 (gimple_call_return_type): Likewise null types.
8994 * gimple.c (gimple_build_call_internal_1): New function.
8995 (gimple_build_call_internal): Likewise.
8996 (gimple_build_call_internal_vec): Likewise.
8997 (gimple_call_same_target_p): Likewise.
8998 (gimple_call_flags): Handle calls to internal functions.
8999 (gimple_call_fnspec): New function.
9000 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9001 (gimple_has_side_effects): Handle null functions.
9002 (gimple_rhs_has_side_effects): Likewise.
9003 (gimple_call_copy_skip_args): Handle calls to internal functions.
9004 * cfgexpand.c (expand_call_stmt): Likewise.
9005 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9006 * gimple-fold.c (gimple_fold_call): Handle null functions.
9007 (gimple_fold_stmt_to_constant_1): Don't fold
9008 calls to internal functions.
9009 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9011 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9012 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9013 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9014 (do_warn_unused_result): Likewise.
9015 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9016 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9017 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9018 the target of a call.
9019 (initialize_hash_element): Update accordingly.
9020 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9021 (iterative_hash_hashable_expr): Handle calls to internal functions.
9022 (print_expr_hash_elt): Likewise.
9023 * tree-ssa-pre.c (can_value_number_call): Likewise.
9024 (eliminate): Handle null functions.
9025 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9026 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9027 (find_func_aliases): Likewise.
9028 * value-prof.c (gimple_ic_transform): Likewise.
9029 (gimple_indirect_call_to_profile): Likewise.
9030 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9031 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9033 2011-04-19 Jan Hubicka <jh@suse.cz>
9035 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9036 * ipa-inline.c (inline_small_functions): Compute summaries first,
9037 populate heap later.
9039 2011-04-19 Jan Hubicka <jh@suse.cz>
9041 * cgraph.h (save_inline_function_body): Remove.
9042 * ipa-inline-transform.c: New file, broke out of...
9043 * ipa-inline.c: ... this one; Update toplevel comment.
9044 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9046 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9047 (cgraph_mark_inline_edge): Rename to inline_call; move to
9048 ipa-inline-transform.c.
9049 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9050 move to ipa-inline-transform.c
9051 (recursive_inlining, inline_small_functions, flatten_function,
9052 ipa_inline, inline_always_inline_functions,
9053 early_inline_small_functions): Update.
9054 (inline_transform): Move to ipa-inline-transform.c.
9055 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9057 * Makefile.in (ipa-inline-transform.o): New file.
9058 * cgraphunit.c (save_inline_function_body): Move to
9059 ipa-inline-transform.c
9061 2011-04-19 DJ Delorie <dj@redhat.com>
9063 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9064 registers if we already know there aren't any.
9065 (m32c_emit_epilogue): Don't emit a barrier here.
9066 (m32c_emit_eh_epilogue): Likewise.
9067 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9068 operands at expand time.
9069 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9071 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9072 duplicates. Provide aliases instead.
9073 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9074 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9077 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9079 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9080 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9081 (general_or_i64_p, sparc_register_move_cost): New function.
9083 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9085 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9086 Add lynx, mipssde. Sort table.
9088 2011-04-19 Xinliang David Li <davidxl@google.com>
9090 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9093 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9096 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9097 is a SUBREG with non-MODE_INT mode inside of it.
9099 2011-04-19 Martin Jambor <mjambor@suse.cz>
9101 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9102 also according to actual contants.
9103 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9104 (gimple_fold_call): Use it.
9105 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9107 2011-04-19 Martin Jambor <mjambor@suse.cz>
9109 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9110 non-pointer assignments.
9112 2011-04-19 Martin Jambor <mjambor@suse.cz>
9114 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9115 account anc_offset and otr_type from the indirect edge info.
9116 * ipa-prop.c (get_ancestor_addr_info): New function.
9117 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9118 get_ancestor_addr_info, call it.
9119 (ipa_note_param_call): Do not initialize information about polymorphic
9120 calls, return the indirect call graph edge. Remove the last
9121 parameter, adjust all callers.
9122 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9123 parameters. Initialize polymorphic information in the indirect edge.
9125 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9128 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9129 the types if they have different enumeration identifiers.
9131 2011-04-19 Jan Hubicka <jh@suse.cz>
9133 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9134 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9135 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9136 (optimize_function_for_size_p) ... here.
9138 2011-04-19 Richard Guenther <rguenther@suse.de>
9141 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9144 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9146 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9147 if DECL_NO_INLINE_WARNING_P is set on the function.
9149 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9152 * reload1.c (inc_for_reload): Return void. All callers changed.
9153 (emit_input_reload_insns): Don't try to delete previous output
9154 reloads to a register, or record spill_reg_store for autoincs.
9156 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9158 * gengtype.h: Updated copyright year.
9159 (struct input_file_st): Add inpisplugin field.
9160 (type_fileloc): New function.
9162 (write_typed_struct_alloc_def): Add gcc_assert.
9163 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9164 (write_typed_alloc_defns): Don't output for plugin files.
9165 (input_file_by_name): Clear inpisplugin field.
9166 (main): Set inpisplugin field for plugin files.
9168 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9170 * gengtype-state.c (string_eq): New.
9171 (read_state): Use string_eq instead of strcmp when creating the
9174 2011-04-19 Wei Guozhi <carrot@google.com>
9177 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9178 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9180 * config/arm/constraints.md (Uu): New constraint.
9181 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9183 2011-04-19 Tristan Gingold <gingold@adacore.com>
9185 * config.gcc (-*-*-*vms): Added.
9186 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9188 * config/vms/vms-ld.c: New file.
9189 * config/vms/vms-ar.c: New file.
9190 * config/vms/t-vmsnative: New file.
9192 2011-04-18 Xinliang David Li <davidxl@google.com>
9194 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9196 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9199 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9200 if TREE_TYPE (v) is non-NULL.
9202 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9203 gimple_get_virt_mehtod_for_binfo.
9204 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9205 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9207 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9209 2011-04-18 Michael Matz <matz@suse.de>
9210 Steve Ellcey <sje@cup.hp.com>
9212 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9213 use its mode as source mode if it isn't VOIDmode.
9215 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9217 * doc/passes.texi: Fill crossref nodes.
9219 2011-04-18 Jim Meyering <meyering@redhat.com>
9221 Fix doubled-word typos in comments and strings
9222 * config/alpha/vms-unwind.h: s/for for/for/
9223 * config/arm/unwind-arm.h: Likewise.
9224 * config/microblaze/microblaze.c: Likewise.
9225 * config/sh/constraints.md: s/in in/in/
9226 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9228 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9230 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9231 (AVX_FLOAT_MODE_P): Ditto.
9232 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9233 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9234 (AVX_VEC_FLOAT_MODE_P): Ditto.
9235 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9236 (UNSPEC_MASKSTORE): Ditto.
9237 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9238 Merge from <sse>_movmsk<ssemodesuffix> and
9239 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9240 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9242 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9243 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9244 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9246 2011-04-18 Jan Hubicka <jh@suse.cz>
9248 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9250 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9251 (want_inline_function_called_once_p): Break out the logic from
9253 (edge_badness): Ensure that profile is not misupdated.
9254 (lookup_recursive_calls): Prioritize by call frequencies.
9255 (inline_small_functions): Move program size estimates here;
9256 actually process whole queue even when unit growth has been
9257 met. (to properly compute inline_failed reasons and for the
9258 case unit size decrease.) Revisit comments on recursive inlining.
9259 (ipa_inline): Remove unit summary code; first inline hot calls
9260 of functions called once, cold calls next.
9261 (order, nnodes): Remove unused variables.
9262 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9263 (GTFILES): Remove ipa-inline.c
9264 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9266 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9268 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9270 2011-04-18 Jie Zhang <jie@codesourcery.com>
9271 Richard Earnshaw <rearnsha@arm.com>
9273 * arm.c (neon_builtin_type_bits): Remove.
9274 (typedef enum neon_builtin_mode): New.
9275 (T_MAX): Don't define.
9276 (typedef enum neon_builtin_datum): Remove bits, codes[],
9277 num_vars and base_fcode. Add mode, code and fcode.
9278 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9279 VAR10): Change accordingly.
9280 (neon_builtin_data[]): Change accordingly
9281 (arm_init_neon_builtins): Change accordingly.
9282 (neon_builtin_compare): Remove.
9283 (locate_neon_builtin_icode): Remove.
9284 (arm_expand_neon_builtin): Change accordingly.
9286 * arm.h (enum arm_builtins): Move to ...
9287 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9289 * arm.c (arm_builtin_decl): Declare.
9290 (TARGET_BUILTIN_DECL): Define.
9291 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9292 (arm_builtin_decls[]): New.
9293 (arm_init_neon_builtins): Store builtin declarations in
9294 arm_builtin_decls[].
9295 (arm_init_tls_builtins): Likewise.
9296 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9297 (arm_builtin_decl): New.
9299 2011-04-18 Richard Guenther <rguenther@suse.de>
9301 * tree.c (upper_bound_in_type): Build properly canonicalized
9303 (lower_bound_in_type): Likewise.
9305 2011-04-18 Richard Guenther <rguenther@suse.de>
9307 * gimple.h (gimple_call_addr_fndecl): New function.
9308 (gimple_call_fndecl): Use it.
9309 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9311 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9312 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9314 2011-04-18 Richard Guenther <rguenther@suse.de>
9317 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9319 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9322 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9323 DECL_IN_CONSTANT_POOL without RTL.
9325 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9326 Ira Rosen <ira.rosen@linaro.org>
9329 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9330 to match neon_vzip/vuzp/vtrn_internal.
9331 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9332 outputs explicitly dependent on both inputs.
9333 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9335 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9337 PR tree-optimization/48616
9338 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9339 whether the shift is by scalar or vector based on whether all SLP
9340 scalar stmts have the same rhs.
9342 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9344 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9347 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9350 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9353 2011-04-17 Jan Hubicka <jh@suse.cz>
9355 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9356 * cgrpahunit.c (cgraph_finalize_function): Do not set
9357 finalized_by_frontend.
9358 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9359 finalized_by_frontend.
9361 2011-04-17 Jan Hubicka <jh@suse.cz>
9363 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9364 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9365 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9366 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9368 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9370 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9372 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9375 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9376 is non-null before accessing it.
9377 (input_cgraph): Remove trailing spaces.
9379 2011-04-17 Revital Eres <revital.eres@linaro.org>
9381 * params.def (sms-min-sc): New param flag.
9382 * modulo-sched.c (sms_schedule): Use it.
9383 * doc/invoke.texi (sms-min-sc): Document it.
9385 2011-04-17 Jan Hubicka <jh@suse.cz>
9387 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9388 present, also set gimple_call_set_cannot_inline.
9389 * ipa-inline.c: Update toplevel comment.
9391 (cgraph_clone_inlined_nodes): Fix linebreaks.
9392 (cgraph_check_inline_limits): Restructure to ...
9393 (caller_growth_limits): ... this one; be more tolerant
9394 on growth in nested inline chains; add explanatory comment;
9395 fix stack accounting thinko introduced by previous patch.
9396 (cgraph_default_inline_p): Remove.
9397 (report_inline_failed_reason): New function.
9398 (can_inline_edge_p): New function.
9399 (can_early_inline_edge_p): New function.
9400 (leaf_node_p): Move upwards in file.
9401 (want_early_inline_function_p): New function.
9402 (want_inline_small_function_p): New function.
9403 (want_inline_self_recursive_call_p): New function.
9404 (cgraph_edge_badness): Rename to ...
9405 (edge_badness) ... this one; fix linebreaks.
9406 (update_edge_key): Update call of edge_baddness; add
9407 detailed dump about queue updates.
9408 (update_caller_keys): Use can_inline_edge_p and
9409 want_inline_small_function_p.
9410 (cgraph_decide_recursive_inlining): Rename to...
9411 (recursive_inlining): Use can_inline_edge_p and
9412 want_inline_self_recursive_call_p; simplify and remove no longer
9414 (cgraph_set_inline_failed): Remove.
9415 (add_new_edges_to_heap): Use can_inline_edge_p and
9416 want_inline_small_function_p.
9417 (cgraph_decide_inlining_of_small_functions): Rename to ...
9418 (inline_small_functions): ... this one; cleanup; use
9419 can/want predicates; cleanup debug ouput; work edges till fibheap
9420 is exhausted and do not stop once unit growth is reached; remove
9421 later loop processing remaining edges.
9422 (cgraph_flatten): Rename to ...
9423 (flatten_function): ... this one; use can_inline_edge_p
9424 and can_early_inline_edge_p predicates.
9425 (cgraph_decide_inlining): Rename to ...
9426 (ipa_inline): ... this one; remove unreachable nodes before
9427 inlining functions called once; simplify the pass.
9428 (cgraph_perform_always_inlining): Rename to ...
9429 (inline_always_inline_functions): ... this one; use
9430 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9431 (cgraph_decide_inlining_incrementally): Rename to ...
9432 (early_inline_small_functions): ... this one; simplify
9433 using new predicates; cleanup; make dumps prettier.
9434 (cgraph_early_inlining): Rename to ...
9435 (early_inliner): newer inline regular functions into always-inlines;
9436 fix updating of call stmt summaries.
9437 (pass_early_inline): Update for new names.
9438 (inline_transform): Fix formating.
9439 (gate_cgraph_decide_inlining): Rename to ...
9440 (pass_ipa_inline): ... this one.
9441 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9442 * ipa-inline-analysis.c (dump_inline_summary): Update.
9443 (compute_inline_parameters): Do not compute disregard_inline_limits;
9444 look for mismatching arguments.
9445 (estimate_growth): Fix handlig of non-trivial self recursion.
9446 (inline_read_summary): Do not read info->disregard_inline_limits.
9447 (inline_write_summary): Do not write info->disregard_inline_limits.
9448 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9449 and move all checks into can_inline_edge_p predicate; re-enable code
9450 comparing optimization levels.
9451 (expand_call_inline): Do not test inline_forbidden_into_p.
9452 * Makefile.in (ipa-inline.o): Update arguments.
9454 2011-04-17 Revital Eres <revital.eres@linaro.org>
9456 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9458 2011-04-17 Revital Eres <revital.eres@linaro.org>
9460 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9462 2011-04-17 Michael Matz <matz@suse.de>
9464 PR tree-optimization/48622
9466 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9467 in same order as they're written.
9469 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9471 * config/pa/predicates.md: Reorganize and simplify predicates.
9472 Eliminate duplicate code checks.
9473 (arith_operand): Rename to arith14_operand
9474 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9475 * config/pa/pa.md: Use renamed operands.
9476 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9477 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9478 arith11_operand, adddi3_operand, indexed_memory_operand,
9479 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9480 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9481 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9482 move_dest_operand, move_src_operand, prefetch_cc_operand,
9483 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9484 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9485 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9486 div_operand, int5_operand, movb_comparison_operator,
9487 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9488 arith_double_operand, ireg_operand, lhs_lshift_operand,
9489 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9490 integer_store_memory_operand): Likewise.
9491 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9492 (integer_store_memory_operand, read_only_operand,
9493 function_label_operand, borx_reg_operand,
9494 non_hard_reg_operand): Likewise.
9495 (eq_neq_comparison_operator): Delete unused operator.
9496 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9497 function_label_operand.
9498 (emit_move_sequence): Likewise.
9500 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9502 * config/i386/sse.md (sseunpackmode): New mode attribute.
9503 (ssepackmode): Ditto.
9504 (vec_pack_trunc_<mode>): Macroize expander from
9505 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9506 (vec_unpacks_lo_<mode>): Macroize expander from
9507 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9508 (vec_unpacks_hi_<mode>): Macroize expander from
9509 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9510 (vec_unpacku_lo_<mode>): Macroize expander from
9511 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9512 (vec_unpacku_hi_<mode>): Macroize expander from
9513 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9514 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9515 ix86_expand_sse4_unpack.
9516 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9518 2011-04-16 Jan Hubicka <jh@suse.cz>
9520 * cgraphbuild.c: Include ipa-inline.h.
9521 (reset_inline_failed): Use initialize_inline_failed.
9522 * cgraph.c: Include ipa-inline.h.
9523 (cgraph_create_node_1): Do not initialize estimated_growth.
9524 (initialize_inline_failed): More to ipa-inline-analysis.c
9525 (dump_cgraph_node): Do not dump inline flags.
9526 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9527 and disregard_inline_limits flags.
9528 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9529 time, size, estimated_growth.
9530 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9532 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9533 DECL_DISREGARD_INLINE_LIMITS.
9534 (cgraph_analyze_function): Do not initialize
9535 node->local.disregard_inline_limits.
9536 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9537 inlinable, versionable and disregard_inline_limits.
9538 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9539 cgraph_check_inline_limits, cgraph_default_inline_p,
9540 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9541 add_new_edges_to_heap): Update.
9542 (cgraph_decide_inlining_of_small_function): Update; set
9543 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9544 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9545 cgraph_decide_inlining_incrementally): Update.
9546 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9547 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9548 time, size and estimated_growth parameters.
9549 (estimate_edge_growth): Update.
9550 (initialize_inline_failed): Declare.
9551 * ipa-split.c: Include ipa-inline.h
9552 (execute_split_functions): Update.
9553 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9554 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9555 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9556 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9557 estimated_growth to INT_MIN.
9558 (inline_node_duplication_hook): Likewise.
9559 (dump_inline_summary): Dump new fields.
9560 (compute_inline_parameters): Update.
9561 (estimate_edge_time, estimate_time_after_inlining,
9562 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9563 inline_write_summary):
9564 (initialize_inline_failed): Move here from cgraph.c.
9565 * tree-sra.c: Include ipa-inline.h.
9566 (ipa_sra_preliminary_function_checks): Update.
9567 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9570 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9572 * config/i386/sse.md (V16): New mode iterator.
9574 (AVXMODEQI, AVXMODEDI): Remove.
9575 (sse2, sse3): New mode attribute.
9576 (mov<mode>): Use V16 mode iterator.
9577 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9578 (push<mode>1): Use V16 mode iterator.
9579 (movmisalign<mode>): Ditto.
9580 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9581 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9582 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9583 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9584 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9585 avx_movdqu<avxmodesuffix>.
9586 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9587 *avx_movdqu<avxmodesuffix>.
9588 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9589 avx_lddqu<avxmodesuffix>.
9590 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9591 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9592 avx_movnt<AVXMODEDI:mode>.
9593 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9594 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9596 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9599 * haifa-sched.c (prune_ready_list, schedule_block): Use
9600 sched_pressure_p rather than flag_sched_pressure.
9602 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9604 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9605 cgraph_get_node instead of cgraph_get_create_node.
9607 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9609 * cfgexpand.c (expand_debug_expr): Use
9610 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9612 2011-04-15 Michael Matz <matz@suse.de>
9614 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9615 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9616 * function.c (gimplify_parameters): Ditto.
9617 * gimplify.c (gimplify_vla_decl): Ditto.
9619 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9620 (gimple_call_set_alloca_for_var): New inline function.
9621 (gimple_call_alloca_for_var_p): Ditto.
9622 * gimple.c (gimple_build_call_from_tree): Remember
9623 CALL_ALLOCA_FOR_VAR_P state.
9624 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9626 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9627 calls if they were for VLA objects.
9629 2011-04-15 Martin Jambor <mjambor@suse.cz>
9631 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9634 2011-04-15 Martin Jambor <mjambor@suse.cz>
9637 * tree-emutls.c (lower_emutls_function_body): Call
9638 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9641 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9643 * c-decl.c (detect_field_duplicates): Call
9644 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9646 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9648 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9649 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9650 * ipa-pure-const.c (check_stmt): Call it.
9651 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9653 2011-04-15 Richard Guenther <rguenther@suse.de>
9655 PR tree-optimization/48290
9656 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9657 Properly decide inhibiting propagation based on the valueized
9658 operand. Do loop-closed SSA form preserving here ...
9659 (init_copy_prop): ... not here.
9661 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9664 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9665 (*ieee_smax<mode>3): Likewise.
9667 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9669 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9670 Replace match_operand with match_dup for the third operand in
9673 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9675 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9676 to track processing of conditionals. Update all callers.
9677 (try_combine, simplify_if_then_else): Update.
9679 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9681 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9684 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9686 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9687 instead of match_operand for operand 3.
9689 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9691 * recog.h (insn_operand_data): Add an "allows_mem" field.
9692 * genoutput.c (output_operand_data): Initialize it.
9693 * optabs.c (maybe_legitimize_operand_same_code): New function.
9694 (maybe_legitimize_operand): Use it when matching the original
9697 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9699 * gimplify.c: Fix issues in comments throughout.
9700 (voidify_wrapper_expr): Fix long line.
9701 (build_stack_save_restore): Likewise.
9702 (gimplify_loop_expr): Likewise.
9703 (gimplify_compound_lval): Likewise.
9704 (gimplify_init_ctor_eval): Likewise.
9705 (gimplify_modify_expr_rhs): Likewise.
9706 (omp_notice_threadprivate_variable): Likewise.
9708 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9710 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9711 original one if this is not a builtin function.
9713 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9716 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9717 offset it as needed based on top 2 bits in operands[3], change
9718 MEM mode to SFmode and mask those 2 bits away from operands[3].
9720 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9722 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9723 change from objc_declare_protocols() to objc_declare_protocol().
9725 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9727 * config/i386/sse.md (sse4_1): New mode attribute.
9728 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9729 avx_blend<ssemodesuffix><avxmodesuffix> and
9730 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9731 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9732 avx_blendv<ssemodesuffix><avxmodesuffix> and
9733 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9734 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9735 avx_dp<ssemodesuffix><avxmodesuffix> and
9736 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9737 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9738 (sse4_1_packusdw): Merge with *avx_packusdw.
9739 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9740 (sse4_1_pblendw): Merge with *avx_pblendw.
9741 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9742 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9743 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9745 (sse4_1_round<ssescalarmodesuffix>): Merge with
9746 *avx_round<ssescalarmodesuffix>.
9747 (aesenc): Merge with *avx_aesenc.
9748 (aesenclast): Merge with *avx_aesenclast.
9749 (aesdec): Merge with *avx_aesdec.
9750 (aesdeclast): Merge with *avx_aesdeclast.
9751 (pclmulqdq): Merge with *pclmulqdq.
9752 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9754 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9756 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9759 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9760 (align_local_variable): This. Update DECL_ALIGN.
9761 (add_stack_var): Updated.
9762 (expand_one_stack_var): Likewise.
9764 2011-04-14 Richard Guenther <rguenther@suse.de>
9766 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9768 (dse_initialize_block_local_data, dse_leave_block,
9769 record_voperand_set, get_stmt_uid): Likewise.
9770 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9771 (dse_optimize_stmt): Remove voperand set handling code.
9772 Simplify and improve to handle any kind of killing stmt.
9773 (dse_record_phi): Remove.
9774 (dse_enter_block): Simplify.
9775 (tree_ssa_dse): Likewise.
9776 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9778 2011-04-14 Jan Hubicka <jh@suse.cz>
9780 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9781 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9782 (cgraph_local_info): Remove inline_summary.
9783 * ipa-cp.c: Include ipa-inline.h.
9784 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9785 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9787 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9788 (input_overwrite_node): Do not set inline summary.
9789 (input_node): Do not stream inline summary.
9790 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9791 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9792 growth; we do not have inline parameters computed for that anyway.
9793 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9794 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9795 (inline_summary_t): New type and VECtor.
9796 (debug_inline_summary, dump_inline_summaries): Declare.
9797 (inline_summary): Use VOCtor.
9798 (estimate_edge_growth): Kill hack computing call stmt size directly.
9799 * lto-section-in.c (lto_section_name): Add inline section.
9800 * ipa-inline-analysis.c: Include lto-streamer.h
9801 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9802 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9803 (inline_summary_vec): Define.
9804 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9805 dump_inline_summaries): New functions.
9806 (estimate_function_body_sizes): Properly compute size/time of outgoing
9808 (compute_inline_parameters): Alloc inline_summary; do not compute
9809 size/time of incomming calls.
9810 (estimate_edge_time): Avoid missing time summary hack.
9811 (inline_read_summary): Read inline summary info.
9812 (inline_write_summary): Write inline summary info.
9813 (inline_free_summary): Free all hooks and inline summary vector.
9814 * lto-streamer.h: Add LTO_section_inline_summary section.
9815 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9816 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9818 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9820 * tree-vectorizer.h (vect_strided_store_supported): Add a
9821 HOST_WIDE_INT argument.
9822 (vect_strided_load_supported): Likewise.
9823 (vect_permute_store_chain): Return void.
9824 (vect_transform_strided_load): Likewise.
9825 (vect_permute_load_chain): Delete.
9826 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9827 count argument. Check that the count is a power of two.
9828 (vect_strided_load_supported): Likewise.
9829 (vect_permute_store_chain): Return void. Update after above changes.
9830 Assert that the access is supported.
9831 (vect_permute_load_chain): Likewise.
9832 (vect_transform_strided_load): Return void.
9833 * tree-vect-stmts.c (vectorizable_store): Update calls after
9834 above interface changes.
9835 (vectorizable_load): Likewise.
9836 (vect_analyze_stmt): Don't check for strided powers of two here.
9838 2011-04-14 Richard Guenther <rguenther@suse.de>
9840 PR tree-optimization/48590
9841 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9842 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9843 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9844 BUILT_IN_STACK_SAVE.
9845 * tree-ssa-dce.c (propagate_necessity): Handle
9846 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9848 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9850 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9853 2011-04-14 Richard Guenther <rguenther@suse.de>
9855 * tree.h (get_object_alignment_1): Declare.
9856 * builtins.c (get_object_alignment_1): Split out worker from ...
9857 (get_object_alignment): ... here.
9858 * fold-const.c (get_pointer_modulus_and_residue): Use
9859 get_object_alignment_1.
9861 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9863 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9865 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9866 parameter. Generalise code to handle arrays as well as vectors.
9867 (vect_setup_realignment): Update accordingly.
9868 * tree-vect-stmts.c (vectorizable_store): Likewise.
9869 (vectorizable_load): Likewise.
9871 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9873 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9874 within the per-copy loop.
9876 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9878 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9881 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9883 * doc/options.texi (Negative): Explicitly mention that the
9884 Negative chain must be circular.
9886 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9888 * function.h (block_chainon): Declare.
9889 * function.c (block_chainon): Define.
9891 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9892 Eric Weddington <eric.weddington@atmel.com>
9893 Georg-Johann Lay <avr@gjlay.de>
9895 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9897 (avr_init_builtins, avr_expand_builtin,
9898 avr_expand_delay_cycles, avr_expand_unop_builtin,
9899 avr_expand_binop_builtin ): New functions.
9900 (avr_builtin_id): New enum
9901 (struct avr_builtin_description): New struct
9902 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9903 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9905 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9906 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9907 UNSPECV_DELAY_CYCLES): new enumeration values
9908 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9909 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9910 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9911 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9912 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9913 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9914 "fmulsu"): New insns
9916 * config/avr/avr-c.c: fix line endings
9917 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9918 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9919 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9920 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9921 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9923 * doc/extend.texi (AVR Built-in Functions): New node
9924 (Target Builtins): Add documentation of AVR
9927 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9930 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9931 alone. Error if non-const data has attribute progmem.
9933 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9935 * tree.h (struct tree_constructor): Include tree_typed instead of
9937 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9938 TS_TYPED instead of TS_COMMON.
9940 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9942 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9943 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9944 (sse2_psadbw): Merge with *avx_psadbw.
9945 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9946 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9947 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9948 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9949 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9950 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9951 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9952 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9953 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9954 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9955 (ssse3_palignrti): Merge with *avx_palignrti.
9957 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9959 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9960 * tree-ssanames.c (fini_ssanames): VEC_free it.
9961 (make_ssa_name_fn): Update for VECness of free_ssanames.
9962 (release_ssa_name, release_dead_ssa_names): Likewise.
9963 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9965 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9966 TS_TYPED instead of TS_COMMON.
9968 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9970 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9971 statistics_counter_event.
9972 * tree-ssa-copyrename.c (stats): Define.
9973 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9974 statistics_counter_event.
9975 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9976 (bswap_stats, widen_mul_stats): Define.
9977 (insert_reciprocals): Increment rdivs_inserted.
9978 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9979 rfuncs_inserted. Add calls to statistics_counter_event.
9980 (execute_cse_sincos_1): Increment inserted.
9981 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9982 statistics_counter_event.
9983 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9984 of bswap_stats. Add calls to statistics_counter_event.
9985 (convert_mult_to_widen): Increment widen_mults_inserted.
9986 (convert_plusminus_to_widen): Increment maccs_inserted.
9987 (convert_mult_to_fma): Increment fmas_inserted.
9988 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9989 calls to statistics_counter_event.
9991 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9993 PR rtl-optimization/48455
9994 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9995 `temp_costs->mem_cost'.
9997 2011-04-13 Jan Hubicka <jh@suse.cz>
9999 * ipa-inline.h: New file.
10000 * ipa-inline-analysis.c: New file. Broken out of ...
10001 * ipa-inline.c: ... this file; update toplevel comment;
10002 include ipa-inline.h
10003 (inline_summary): Move to ipa-inline.h
10004 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10005 ipa-inline-analysis.c.
10006 (cgraph_estimate_time_after_inlining): Rename to
10007 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10008 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10009 to estimate_edge_growth.
10010 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10011 rename to estimate_size_after_inlining.
10012 (cgraph_mark_inline_edge): Update for new naming convention.
10013 (cgraph_check_inline_limits): Likewise.
10014 (cgraph_edge_badness): Likewise.
10015 (cgraph_decide_recursive_inlining): Likewise.
10016 (cgraph_decide_inlining_of_small_functions): Likewise.
10017 (cgraph_decide_inlining_incrementally): Likewise.
10018 (cgraph_estimate_growth): Rename to estimate_growth; move to
10019 ipa-inline-analysis.c.
10020 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10021 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10022 (compute_inline_parameters): Likewise.
10023 (compute_inline_parameters_for_current): Likewise.
10024 (pass_inline_parameters): Likewise.
10025 (inline_indirect_intraprocedural_analysis): Likewise.
10026 (analyze_function): Rename to inline_analyze_function; likewise.
10027 (add_new_function): Move to ipa-inline-analysis.c.
10028 (inline_generate_summary): Likewise.
10029 (inline_read_summary): Likewise.
10030 (inline_write_summary): Likewise.
10031 * Makefile.in (ipa-inline-analysis.c): New file.
10033 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10035 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10036 * configure: Regenerate.
10038 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10040 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10041 instead of tree_common.
10042 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10044 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10045 TS_TYPED rather than TS_COMMON.
10046 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10048 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10051 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10052 r20 around calls of __tablejump_elpm__
10054 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10056 PR middle-end/48591
10057 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10059 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10061 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10063 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10064 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10065 (cfi_vec): New typedef.
10066 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10067 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10068 (cie_cfi_vec): New static variable.
10069 (cie_cfi_head): Delete.
10070 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10071 declaration changed. Use vector rather than list operations.
10072 (new_cfi): Don't initialize the dw_cfi_next field.
10073 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10074 rather than list operations.
10075 (lookup_cfa): Use vector rather than list operations.
10076 (output_cfis): New argument upto. Accept a cfi_vec rather than
10077 a dw_cfi_ref list head as argument. All callers changed.
10078 Iterate over the vector using upto as a maximum index.
10079 (output_all_cfis): New static function.
10080 (output_fde): Use vector rather than list operations. Use the
10081 new upto argument for output_cfis rather than manipulating a
10083 (dwarf2out_begin_prologue): Change initializations to match
10084 new struct members.
10085 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10086 from the vector length rather than searching for the end of a list.
10087 Use output_all_cfis.
10088 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10090 2011-04-13 Nick Clifton <nickc@redhat.com>
10092 * config/rx/rx.md (movmemsi): Do not use this pattern when
10093 volatile pointers are involved.
10095 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10097 * config/i386/sse.md (pinsrbits): Remove.
10098 (sse2_packsswb): Merge with *avx_packsswb.
10099 (sse2_packssdw): Merge with *avx_packssdw.
10100 (sse2_packuswb): Merge with *avx_packuswb.
10101 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10102 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10103 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10104 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10105 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10106 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10107 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10108 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10109 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10110 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10111 (sse2_loadld): Merge with *avx_loadld.
10112 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10113 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10114 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10115 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10116 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10118 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10120 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10121 calling TREE_CHAIN.
10122 * print-tree.c (print_node): Likewise.
10123 * tree-inline.c (copy_tree_r): Likewise.
10124 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10125 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10126 instead of TS_COMMON.
10127 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10128 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10129 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10130 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10131 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10133 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10135 (TREE_CHAIN): Check for a TS_COMMON structure.
10136 (TREE_TYPE): Check for a TS_TYPED structure.
10138 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10140 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10141 cgraph_get_create_node instead of cgraph_node.
10143 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10145 * c-parser.c (c_parser_initelt): Updated call to
10146 objc_build_message_expr.
10147 (c_parser_postfix_expression): Likewise.
10149 2011-04-12 Kai Tietz <ktietz@redhat.com>
10151 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10152 MASK_MS_BITFIELD_LAYOUT bit.
10154 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10156 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10157 assert it is always true.
10158 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10161 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10163 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10164 compiling Objective-C to be more efficient.
10166 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10168 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10171 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10173 * recog.h, genoutput.c, optabs.c: Revert last patch.
10175 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10178 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10180 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10182 * recog.h (insn_operand_data): Add an "allows_mem" field.
10183 * genoutput.c (output_operand_data): Initialize it.
10184 * optabs.c (maybe_legitimize_operand_same_code): New function.
10185 (maybe_legitimize_operand): Use it when matching the original
10188 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10190 * genpreds.c (process_define_predicate): Move most processing
10191 to gensupport.c. Continue to validate the expression.
10192 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10193 (process_define_predicate): Move processing to gensupport.c.
10194 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10195 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10196 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10198 (valid_predicate_name_p): New function, split out from old
10199 genpreds.c:process_define_predicate.
10200 (process_define_predicate): New function, combining code from
10201 old genpreds.c and genrecog.c functions.
10202 (process_rtx): Call it for DEFINE_PREDICATE and
10203 DEFINE_SPECIAL_PREDICATE.
10205 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10207 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10208 size of a '%A' memory reference.
10209 (T_DREG, T_QREG): New neon_builtin_type_bits.
10210 (arm_init_neon_builtins): Assert that the load and store operands
10211 are neon_struct_operands.
10212 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10213 (NEON_ARG_MEMORY): New builtin_arg.
10214 (neon_dereference_pointer): New function.
10215 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10216 Handle NEON_ARG_MEMORY.
10217 (arm_expand_neon_builtin): Update after above interface changes.
10218 Use NEON_ARG_MEMORY for loads and stores.
10219 * config/arm/predicates.md (neon_struct_operand): New predicate.
10220 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10221 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10222 (V_four_elem): Tweak formatting.
10223 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10224 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10225 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10226 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10227 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10228 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10229 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10230 Use %A in the output template.
10231 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10232 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10233 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10234 the width of the memory access. Remove post-increment.
10235 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10237 2011-04-12 Nick Clifton <nickc@redhat.com>
10239 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10240 instruction for interrupt handlers if the target is the basic V850
10242 (expand_epilogue): Likewise.
10244 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10246 PR rtl-optimization/48549
10247 * combine.c (propagate_for_debug): Also stop after BB_END of
10248 this_basic_block. Process LAST and just stop processing after it.
10249 (combine_instructions): If last_combined_insn has been deleted,
10250 set last_combined_insn to its PREV_INSN.
10252 2011-04-12 Richard Guenther <rguenther@suse.de>
10254 PR tree-optimization/46076
10255 * gimple.h (struct gimple_statement_call): Add fntype field.
10256 (gimple_call_fntype): Adjust.
10257 (gimple_call_set_fntype): New function.
10258 * gimple.c (gimple_build_call_1): Set the call function type.
10259 * gimplify.c (gimplify_call_expr): Preserve the function
10260 type the frontend used for the call.
10261 (gimplify_modify_expr): Likewise.
10262 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10264 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10266 * tree-ssa.c (useless_type_conversion_p): Function pointer
10267 conversions are useless.
10269 2011-04-12 Martin Jambor <mjambor@suse.cz>
10271 * cgraph.h (cgraph_node): Remove function declaration.
10272 (cgraph_create_node): Declare.
10273 (cgraph_get_create_node): Likewise.
10274 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10275 Updated all callers.
10276 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10277 the decl does not already exist. Call cgraph_get_create_node instead
10279 (cgraph_get_create_node): New function.
10280 (cgraph_same_body_alias): Update comment.
10281 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10282 assert it does not return NULL.
10283 (cgraph_update_edges_for_call_stmt): Likewise.
10284 (cgraph_clone_edge): Likewise.
10285 (cgraph_create_virtual_clone): Likewise.
10286 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10287 instead of cgraph_node.
10288 (cgraph_add_new_function): Call cgraph_create_node or
10289 cgraph_get_create_node instead of cgraph_node.
10290 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10291 instead of cgraph_node.
10292 (record_eh_tables): Likewise.
10293 (mark_address): Likewise.
10294 (mark_load): Likewise.
10295 (build_cgraph_edges): Call cgraph_get_create_node instead
10297 (rebuild_cgraph_edges): Likewise.
10298 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10299 instead of cgraph_node.
10300 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10302 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10303 cgraph_create_node instead of cgraph_node.
10304 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10306 * lto-cgraph.c (input_node): Likewise.
10307 * lto-streamer-in.c (input_function): Likewise.
10308 * varasm.c (mark_decl_referenced): Likewise.
10309 (assemble_alias): Likewise.
10311 2011-04-12 Martin Jambor <mjambor@suse.cz>
10313 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10314 instead of cgraph_node and assert it does not return NULL.
10315 * lto-streamer-in.c (lto_read_body): Likewise.
10316 * omp-low.c (new_omp_context): Likewise.
10317 (create_task_copyfn): Likewise.
10318 * tree-emutls.c (lower_emutls_function_body): Likewise.
10319 * matrix-reorg.c (transform_allocation_sites): Likewise.
10321 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10324 * c-typeck.c (build_asm_expr): Error out on attempts to use
10325 void type outputs or inputs for constraints that allow reg or
10326 don't allow memory.
10328 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10329 Richard Earnshaw <rearnsha@arm.com>
10332 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10333 to use sign-magnitude offsets. Reject unsupported unaligned
10334 cases. Add detailed description in comments.
10335 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10336 condition from TARGET_32BIT to TARGET_ARM.
10338 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10340 * tree.h (struct typed_tree): New.
10341 (struct tree_common): Include it instead of tree_base.
10342 (TREE_TYPE): Update for new location of type field.
10343 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10344 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10345 (union tree_node): Add typed field.
10346 * treestruct.def (TS_TYPED): New.
10347 * lto-streamer.c (check_handled_ts_structures): Handle it.
10348 * tree.c (MARK_TS_TYPED): New macro.
10349 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10351 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10353 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10354 (force_nonfallthru): Do not alter the loop nest if no basic block
10357 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10359 * config/i386/sse.md (VI): New mode iterator.
10360 (SSEMODEI): Remove.
10361 (AVX256MODEI): Ditto.
10362 (AVXMODEF4P): Ditto.
10363 (avxvecpsmode): Ditto.
10364 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10365 (sse2_andnot<mode>3): New expander.
10366 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10367 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10368 (<any_logic:code><mode>3): Use VI mode iterator.
10369 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10370 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10371 (*andnottf3): Handle AVX three-operand constraints.
10372 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10374 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10375 Robert Millan <rmh@gnu.org>
10377 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10378 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10379 GNU_USER_DYNAMIC_LINKER64): Define.
10380 (REG_NAME): Don't undefine.
10381 (MD_UNWIND_SUPPORT): Undefine.
10382 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10383 (REG_NAME): Don't undefine.
10384 (MD_UNWIND_SUPPORT): Undefine.
10385 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10387 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10389 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10390 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10392 2011-04-11 Xinliang David Li <davidxl@google.com>
10394 * value-profile.c (check_ic_target): New function.
10395 (gimple_ic_transform): Sanity check indirect call target.
10396 * gimple-low.c (gimple_check_call_args): Interface change.
10397 (gimple_check_call_matching_types): New function.
10398 * tree-inline.c (tree_can_inline_p): Call new function.
10400 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10402 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10403 tree-pretty-print.h & realmpfr.h.
10405 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10407 PR middle-end/48464
10408 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10409 (setup_allocno_and_important_classes): Ditto.
10411 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10413 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10414 GNU_USER_DYNAMIC_LINKER.
10415 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10416 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10417 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10418 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10419 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10420 GNU_USER_TARGET_OS_CPP_BUILTINS.
10421 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10422 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10423 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10425 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10426 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10427 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10428 GNU_USER_TARGET_OS_CPP_BUILTINS.
10429 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10430 GNU_USER_DYNAMIC_LINKER.
10431 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10432 GNU_USER_TARGET_OS_CPP_BUILTINS.
10433 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10434 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10435 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10436 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10437 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10438 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10439 GNU_USER_DYNAMIC_LINKER64): Remove.
10440 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10441 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10442 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10443 GNU_USER_DYNAMIC_LINKER.
10444 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10445 GNU_USER_TARGET_OS_CPP_BUILTINS.
10446 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10447 GNU_USER_TARGET_OS_CPP_BUILTINS.
10448 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10449 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10450 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10451 GNU_USER_TARGET_OS_CPP_BUILTINS.
10452 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10453 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10454 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10455 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10456 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10457 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10458 GNU_USER_DYNAMIC_LINKER.
10459 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10460 GNU_USER_TARGET_OS_CPP_BUILTINS.
10461 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10462 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10463 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10464 GNU_USER_DYNAMIC_LINKER.
10465 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10466 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10467 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10468 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10469 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10470 GNU_USER_DYNAMIC_LINKER.
10471 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10472 GNU_USER_DYNAMIC_LINKERN32.
10473 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10474 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10475 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10476 GNU_USER_DYNAMIC_LINKER32.
10477 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10478 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10479 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10480 GNU_USER_DYNAMIC_LINKER.
10481 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10483 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10484 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10485 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10486 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10487 GNU_USER_DYNAMIC_LINKER32.
10488 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10489 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10490 GNU_USER_DYNAMIC_LINKER.
10491 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10492 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10493 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10494 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10495 GNU_USER_DYNAMIC_LINKER64.
10496 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10497 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10498 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10499 GNU_USER_DYNAMIC_LINKER.
10500 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10501 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10502 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10503 GNU_USER_DYNAMIC_LINKER.
10504 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10505 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10506 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10507 GNU_USER_DYNAMIC_LINKER32.
10508 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10509 GNU_USER_DYNAMIC_LINKER64.
10510 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10511 GNU_USER_DYNAMIC_LINKER64.
10512 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10513 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10514 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10515 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10516 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10518 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10520 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10521 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10522 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10523 GNU_USER_DYNAMIC_LINKER.
10524 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10525 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10526 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10527 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10528 GNU_USER_DYNAMIC_LINKER64.
10529 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10530 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10531 GNU_USER_LINK_EMULATION.
10532 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10533 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10534 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10535 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10536 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10537 CPP_SPEC, CC1_SPEC): Remove.
10538 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10539 (GNU_USER_DYNAMIC_LINKER): Define.
10540 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10541 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10542 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10543 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10544 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10545 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10546 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10547 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10548 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10549 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10550 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10551 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10552 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10553 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10554 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10555 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10556 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10557 GNU_USER_DYNAMIC_LINKER.
10558 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10559 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10560 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10561 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10562 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10563 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10564 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10565 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10566 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10567 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10569 2011-04-11 Kai Tietz <ktietz@redhat.com>
10573 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10574 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10576 (ix86_is_msabi_thiscall): Removed.
10577 (ix86_is_type_thiscall): Likewise.
10578 (ix86_get_callcvt): New function.
10579 (ix86_comp_type_attributes): Simplify check.
10580 (ix86_function_regparm): Use ix86_get_callcvt for calling
10581 convention attribute checks.
10582 (ix86_return_pops_args): Likewise.
10583 (ix86_static_chain): Likewise.
10584 (x86_this_parameter): Likewise.
10585 (x86_output_mi_thunk): Likewise.
10586 (ix86_function_type_abi): Optimize check for types without attributes.
10587 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10588 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10589 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10591 (IX86_BASE_CALLCVT): Helper macro.
10592 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10593 Use ix86_get_callcvt for calling convention attribute checks and avoid
10594 symbol-decoration for stdcall in TARGET_RTD case.
10595 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10597 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10600 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10602 * config/i386/sse.md (VI_128): New mode iterator.
10603 (VI12_128): Rename from SSEMODE12.
10604 (VI14_128): Rename from SSEMODE14.
10605 (VI124_128): New mode iterator.
10606 (VI24_128): Rename from SSEMODE248.
10607 (VI248_128): Rename from SSEMODE248.
10608 (SSEMODE124C8): Remove.
10609 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10610 (*sse2_<plusminus_insn><mode>3): Merge with
10611 *avx_<plusminus_insn><mode>3.
10612 (*mulv8hi3): Merge with *avx_mulv8hi3.
10613 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10614 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10615 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10616 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10617 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10618 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10619 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10620 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10621 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10622 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10623 (*<smaxmin:code>v8hi3): Ditto.
10624 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10625 (*<smaxmin:code>v16qi3): Ditto.
10626 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10627 (*sse2_eq<mode>3): Ditto.
10628 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10629 (*sse2_gt<mode>3): Ditto.
10630 (vcondv2di): Split out of vcond<mode>.
10631 (vconduv2di): Split out of vcondu<mode>.
10633 2011-04-11 Richard Guenther <rguenther@suse.de>
10635 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10636 before calling tree_low_cst.
10638 2011-04-11 Richard Guenther <rguenther@suse.de>
10640 * stor-layout.c (layout_type): Compute all array index size operations
10641 in the original type.
10642 (initialize_sizetypes): Add comment.
10643 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10645 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10647 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10649 2011-04-11 Martin Jambor <mjambor@suse.cz>
10651 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10652 of cgraph_node, handle NULL return value.
10653 (cgraph_global_info): Likewise.
10654 (cgraph_rtl_info): Likewise.
10655 * tree-inline.c (estimate_num_insns): Likewise.
10656 * gimplify.c (unshare_body): Likewise.
10657 (unvisit_body): Likewise.
10658 (gimplify_body): Likewise.
10659 * predict.c (optimize_function_for_size_p): Likewise.
10660 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10661 (call_may_clobber_ref_p_1): Likewise.
10662 * varasm.c (function_section_1): Likewise.
10663 (assemble_start_function): Likewise.
10665 2011-04-11 Martin Jambor <mjambor@suse.cz>
10667 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10669 * final.c (rest_of_clean_state): Likewise.
10670 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10671 * passes.c (pass_init_dump_file): Likewise.
10672 (execute_all_ipa_transforms): Likewise.
10673 (function_called_by_processed_nodes_p): Likewise.
10674 * predict.c (maybe_hot_frequency_p): Likewise.
10675 (probably_never_executed_bb_p): Likewise.
10676 (compute_function_frequency): Likewise.
10677 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10678 (unnest_nesting_tree_1): Likewise.
10679 (lower_nested_functions): Likewise.
10680 * tree-optimize.c (execute_fixup_cfg): Likewise.
10681 (tree_rest_of_compilation): Likewise.
10682 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10683 * tree-sra.c (ipa_early_sra): Likewise.
10684 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10685 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10686 * ipa.c (record_cdtor_fn): Likewise.
10687 * ipa-inline.c (cgraph_early_inlining): Likewise.
10688 (compute_inline_parameters_for_current): Likewise.
10689 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10690 * ipa-pure-const.c (local_pure_const): Likewise.
10691 * ipa-split.c (split_function): Likewise.
10692 (execute_split_functions): Likewise.
10693 * cgraphbuild.c (build_cgraph_edges): Likewise.
10694 (rebuild_cgraph_edges): Likewise.
10695 (cgraph_rebuild_references): Likewise.
10696 (remove_cgraph_callee_edges): Likewise.
10697 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10698 (verify_cgraph_node): Likewise.
10699 (cgraph_analyze_functions): Likewise.
10700 (cgraph_preserve_function_body_p): Likewise.
10701 (save_inline_function_body): Likewise.
10702 (save_inline_function_body): Likewise.
10703 * tree-inline.c (copy_bb): Likewise.
10704 (optimize_inline_calls): Likewise.
10706 2011-04-11 Martin Jambor <mjambor@suse.cz>
10708 PR tree-optimization/48195
10709 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10710 ipa_check_create_edge_args.
10711 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10712 ipa_check_create_edge_args.
10713 * ipa-inline.c (inline_generate_summary): Do not call
10714 ipa_check_create_node_params and ipa_check_create_edge_args.
10715 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10716 ipa_check_create_edge_args.
10718 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10720 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10722 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10723 * function.c (record_hard_reg_sets): Likewise.
10724 * ira.c (compute_regs_asm_clobbered): Likewise.
10725 * sched-deps.c (sched_analyze_1): Likewise.
10726 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10728 2011-04-09 Xinliang David Li <davidxl@google.com>
10730 PR tree-optimization/PR48484
10731 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10732 has_valid_pred lazily
10734 2011-04-09 Duncan Sands <baldrick@free.fr>
10736 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10738 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10740 * combine.c (combine_validate_cost): Adjust comments. Set registered
10741 cost of I0 to zero at the end, if any.
10743 2011-04-08 Xinliang David Li <davidxl@google.com>
10745 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10746 to insane profile data.
10748 2011-04-08 Xinliang David Li <davidxl@google.com>
10750 * ipa-cp.c (ipcp_update_profiling): Correct
10751 negative scale factor due to insane profile data.
10753 2011-04-08 Xinliang David Li <davidxl@google.com>
10755 * final.c (dump_basic_block_info): New function.
10756 (final): Dump basic block.
10757 (final_scan_insn): Remove old dump.
10759 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10762 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10765 2011-04-08 Michael Matz <matz@suse.de>
10767 PR middle-end/48389
10768 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10770 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10771 * rtl.h (rebuild_jump_labels_chain): Declare.
10772 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10773 insns inserted on edges.
10775 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10777 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10778 * config/arm/arm-arches.def: New.
10779 * config/arm/arm-opts.h: New.
10780 * config/arm/genopt.sh: New.
10781 * config/arm/arm-tables.opt: New (generated).
10782 * config/arm/arm.c (arm_handle_option, arm_target_help,
10783 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10784 (all_architectures): Get most table contents from arm-arches.def.
10785 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10786 arm_selected_tune here.
10787 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10788 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10789 (march=, mcpu=, mtune=): Use Enum and Var.
10790 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10791 (arm.o): Update dependencies.
10793 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10795 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10797 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10798 (write_typed_alloc_defns): Likewise.
10799 (main): Calls write_typed_alloc_defns with output_header.
10801 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10803 PR inline-asm/48435
10804 * ira-color.c (setup_profitable_hard_regs): Add comments.
10805 Don't take prohibited hard regs into account.
10806 (setup_conflict_profitable_regs): Rename to
10807 get_conflict_profitable_regs.
10808 (check_hard_reg_p): Check prohibited hard regs.
10810 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10812 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10813 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10814 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10816 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10819 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10820 move from floating point to shift amount register.
10821 (emit_move_sequence): Remove secondary reload support for floating
10822 point to shift amount amount register copies.
10823 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10824 amount register copies.
10825 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10826 register, return false if mode isn't a scalar integer mode.
10827 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10829 2011-04-08 Richard Guenther <rguenther@suse.de>
10831 * gimple.c (gimple_call_flags): Remove kludge.
10833 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10835 * sel-sched.c (sel_region_init): Move call to
10836 sel_setup_region_sched_flags after setup_current_loop_nest.
10838 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10840 PR rtl-optimization/48272
10841 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10842 init_insn_reg_pressure_info. Adjust a caller.
10843 * sched-int.h (init_insn_reg_pressure_info): Declare.
10844 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10845 when sched-pressure is enabled.
10847 2011-04-08 Richard Guenther <rguenther@suse.de>
10849 * gimple.c (gimple_set_modified): Do not queue calls to
10850 MODIFIED_NORETURN_CALLS here ...
10851 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10853 2011-04-08 Richard Guenther <rguenther@suse.de>
10856 * toplev.c (lang_dependent_init): Do not open asm_out_file
10857 in WPA mode, nor perform debug machinery initialization.
10858 (finalize): Do not unlink asm_out_file in WPA mode.
10860 2011-04-08 Richard Guenther <rguenther@suse.de>
10862 * gimple.h (gimple_call_fntype): New function.
10863 (gimple_call_return_type): Use it.
10864 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10865 * gimple-low.c (gimple_check_call_args): Likewise.
10866 * gimple.c (gimple_call_flags): Likewise.
10867 (gimple_call_arg_flags): Likewise.
10868 (gimple_call_return_flags): Likewise.
10869 * tree-cfg.c (verify_gimple_call): Likewise.
10870 (do_warn_unused_result): Likewise.
10871 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10872 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10874 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10876 PR rtl-optimization/48235
10877 * sel-sched.c (code_motion_process_successors): Recompute the last
10878 insn in basic block if control flow changed.
10879 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10880 Update condition for ilist_remove.
10882 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10884 PR rtl-optimization/48302
10885 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10886 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10887 it to record added preheader blocks.
10888 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10889 on to sel_add_loop_preheaders.
10890 (sel_region_init): Move call to setup_current_loop_nest after
10893 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10896 * cfgloop.h (loop_has_exit_edges): New helper.
10897 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10899 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10900 that have no exit edges.
10902 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10904 PR rtl-optimization/48442
10905 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10906 all callers. Adjust assert.
10908 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10910 PR tree-optimization/48377
10911 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10912 is_packed to true even for types with smaller TYPE_ALIGN than
10915 2011-04-08 Richard Guenther <rguenther@suse.de>
10918 * doc/tm.texi: Re-generate.
10920 2011-04-08 Wei Guozhi <carrot@google.com>
10923 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10924 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10925 * config/arm/arm.md (*push_multi): Change the length computation to
10928 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10930 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10931 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10932 * doc/tm.texi: Regenerate.
10933 * system.h (ASM_OUTPUT_BSS): Poison.
10934 * varasm.c (asm_output_bss): Remove function.
10935 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10937 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10938 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10939 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10940 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10942 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10944 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10946 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10948 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10950 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10953 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10955 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10956 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10957 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10959 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10960 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10961 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10962 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10963 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10964 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10965 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10966 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10967 options. Don't map other m68k options manually. Don't handle
10968 old-style options as canonical.
10969 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10970 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10972 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10974 * basic-block.h (force_nonfallthru): Move to...
10975 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10976 (force_nonfallthru): ...here.
10977 * cfghooks.c (force_nonfallthru): New function.
10978 * cfgrtl.c (force_nonfallthru): Rename into...
10979 (rtl_force_nonfallthru): ...this.
10980 (commit_one_edge_insertion): Do not set AUX field.
10981 (commit_edge_insertions): Do not discover new basic blocks.
10982 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10983 (cfg_layout_rtl_cfg_hooks): Likewise.
10984 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10985 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10986 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10988 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10990 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10993 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10995 * config/i386/sse.md: Update copyright year.
10996 (avxcvtvecmode): Remove.
10997 (sse_movhlps): Merge with *avx_movhlps.
10998 (sse_movlhps): Merge with *avx_movlhps.
10999 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11000 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11001 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11002 (sse_loadhps): Merge with *avx_loadhps.
11003 (sse_storelps): Merge with *avx_storelps.
11004 (sse_loadlps): Merge with *avx_loadlps.
11005 (sse_movss): Merge with *avx_movss.
11006 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11007 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11008 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11009 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11010 (vec_set<mode>_0): Ditto.
11011 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11012 (sse4_1_insertps): Merge with *avx_insertps.
11013 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11014 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11015 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11016 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11017 (sse2_storehpd): Merge with *avx_storehpd.
11018 (sse2_loadhpd): Merge with *avx_loadhpd.
11019 (sse2_loadlpd): Merge with *avx_loadlpd.
11020 (sse2_movsd): Merge with *avx_movsd.
11021 (*vec_concatv2df): Merge with *vec_concatv2df.
11023 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11026 * combine.c (combine_instructions): Add last_combined_insn,
11027 update it if insn is after it, pass it to all try_combine calls.
11028 (try_combine): Add last_combined_insn parameter, pass it instead of
11029 i3 to propagate_for_debug.
11031 2011-04-07 Nick Clifton <nickc@redhat.com>
11033 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11034 to handle MDR <-> data register transfers.
11035 (movhi_internal): Likewise.
11037 2011-04-07 Alan Modra <amodra@gmail.com>
11039 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11040 previous stack info.
11042 2011-04-07 Tom de Vries <tom@codesourcery.com>
11045 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11046 flow_find_cross_jump. Swap variables to implement backward replacement.
11047 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11049 2011-04-07 Tom de Vries <tom@codesourcery.com>
11052 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11053 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11055 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11056 src1 or src2. Redirect edges to the last basic block. Update
11057 frequency and count on multiple basic blocks in case of fallthru.
11059 2011-04-07 Tom de Vries <tom@codesourcery.com>
11062 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11064 (old_insns_match_p): Change return type. Replace return false/true
11065 with return dir_none/dir_both. Use can_replace_by.
11066 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11067 direction from dir_p. Register replacement direction in dir, last_dir
11068 and afterlast_dir. Handle new return type of old_insns_match_p using
11069 merge_dir. Return replacement direction in dir_p.
11070 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11071 return type of old_insns_match_p.
11072 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11073 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11074 flow_find_cross_jump.
11075 * basic-block.h (enum replace_direction): New type.
11076 (flow_find_cross_jump): Add parameter to declaration.
11078 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11080 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11081 (AVXMODEDCVTPS2DQ): Ditto.
11082 (VEC_FLOAT_MODE): Ditto.
11083 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11084 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11085 (<any_logic:code><mode>3): Use VF mode iterator.
11086 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11087 Use VF mode iterator.
11088 (copysign<mode>3): Use VF mode iterator.
11089 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11090 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11091 (*<any_logic:code><MODEF:mode>3): Merge with
11092 *avx_<any_logic:code><MODEF:mode>3.
11093 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11094 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11095 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11096 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11097 (sse2_cvtdq2ps): Use %v modifier.
11098 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11099 (avx_cvtps2dq<avxmodesuffix>): Remove.
11100 (sse2_cvtps2dq): Use %v modifier.
11101 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11102 (avx_cvttps2dq<avxmodesuffix>): Remove.
11103 (sse2_cvttps2dq): Use %v modifier.
11104 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11105 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11106 (sse2_cvtsd2siq): Fix insn template.
11107 (sse2_cvtsd2siq_2): Ditto.
11108 (sse2_cvttsd2siq): Ditto.
11109 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11110 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11112 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11114 * gcov-io.c: Use GCC Runtime Library Exception.
11116 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11119 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11120 as base_reg whatever register reg has been eliminated to, instead
11121 of hardcoding STACK_POINTER_REGNUM.
11123 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11125 * doc/tm.texi.in: Document C target hooks as separate from general
11127 * doc/tm.texi: Regenerate.
11128 * genhooks.c (struct hook_desc): Add docname field.
11129 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11131 (hook_array): Include c-target.def.
11132 (emit_documentation): Use docname field in output.
11133 (emit_init_macros): Take docname argument. Only emit definitions
11134 for hooks matching docname.
11135 (main): Expect additional arguments in all cases. Pass argument
11136 to emit_init_macros.
11137 * target.def: Move initial macro definitions and comments to
11138 target-hooks-macros.h.
11139 (gcc_targetcm): Move to c-family/c-target.def.
11140 * target.h (targetcm): Move declaration to c-family/c-target.h.
11141 * targhooks.c (default_handle_c_option): Move to
11143 * targhooks.h (default_handle_c_option): Move declaration to
11144 c-family/c-common.h.
11145 * target-hooks-macros.h: New file.
11146 * config.gcc (target_has_targetcm): Define and use to add to
11147 c_target_objs and cxx_target_objs.
11148 * config/default-c.c: New file.
11149 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11150 of target.h and target-def.h.
11151 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11152 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11153 darwin_check_cfstring_format_arg): Make static.
11154 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11155 TARGET_STRING_OBJECT_REF_TYPE_P,
11156 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11157 * config/darwin-protos.h (darwin_objc_construct_string,
11158 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11160 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11161 TARGET_STRING_OBJECT_REF_TYPE_P,
11162 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11163 * config/t-darwin (darwin-c.o): Update dependencies.
11164 * system.h (TARGET_HAS_TARGETCM): Poison.
11165 * Makefile.in (TARGET_H): Update.
11166 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11167 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11168 (default-c.o): New target.
11169 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11170 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11171 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11173 (build/genhooks.o): Update dependencies.
11175 2011-04-06 Richard Guenther <rguenther@suse.de>
11177 * ipa-inline.c (enum inlining_mode): Remove.
11178 (cgraph_flatten): Use some other token.
11179 (cgraph_edge_early_inlinable_p): New function, split out from ...
11180 (cgraph_perform_always_inlining): New function, split out from ...
11181 (cgraph_decide_inlining_incrementally): ... here.
11182 (cgraph_mark_inline_edge): Adjust.
11183 (cgraph_early_inlining): Re-structure.
11184 (pass_early_inline): Require SSA form.
11186 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11187 Julian Brown <julian@codesourcery.com>
11188 Mark Shinwell <shinwell@codesourcery.com>
11190 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11191 LO_REGS only for Thumb-1.
11192 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11193 be used in short instructions when optimising for size on Thumb-2.
11195 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11197 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11198 associated with user returns to be preserved.
11200 2011-04-06 Tristan Gingold <gingold@adacore.com>
11202 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11203 symbol_queue_size, DBXOUT_DECR_NESTING,
11204 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11205 if XCOFF_DEBUGGING_INFO.
11207 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11209 * config/i386/i386.md (attribute isa): New.
11210 (attribute enabled): New.
11211 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11212 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11213 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11214 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11215 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11216 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11217 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11218 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11220 * config/i386/sse.md (VF): New mode iterator.
11224 (SSEMODEF4): Remove.
11225 (attribute sse): Handle V8SF and V4DF modes.
11226 (<absneg:code><mode>2): Use VF mode iterator.
11227 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11229 (<plusminus_insn><mode>3): Use VF mode iterator.
11230 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11231 Use VF mode iterator.
11232 (<sse>_vm<plusminus_insn><mode>3): Merge with
11233 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11234 (mul<mode>3): Use VF mode iterator.
11235 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11236 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11238 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11239 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11240 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11241 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11243 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11244 Use VF1 mode iterator.
11245 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11246 (sqrt<VF2:mode>2): New expander.
11247 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11248 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11249 and sqrtv2df2. Use VF mode iterator.
11250 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11252 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11253 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11254 Use VF1 mode iterator.
11255 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11256 (<smaxmin:code><mode>3): Use VF mode iterator.
11257 (*<smaxmin:code><mode>3_finite): Merge with
11258 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11259 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11260 (<sse>_vm<smaxmin:code><mode>2): Merge with
11261 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11262 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11264 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11266 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11267 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11268 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11269 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11270 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11272 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11273 Use VF_128 mode iterator.
11274 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11276 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11277 VF_128 mode iterator.
11278 (vcond<mode>): Use VF mode iterator.
11279 * config/i386/predicates.md (sse_comparison_operator): Merge with
11280 avx_comparison_float_operator. Do not declare as special_predicate.
11281 * config/i386/i386.c (struct builtin_description): Update for renamed
11283 (ix86_expand_args_builtin): Ditto.
11284 (ix86_expand_sse_compare_mask): Ditto.
11286 2011-04-06 Richard Guenther <rguenther@suse.de>
11288 * tree-inline.c (estimate_num_insns): For calls simply account
11289 for all passed arguments and a used return value.
11291 2011-04-06 Richard Guenther <rguenther@suse.de>
11293 PR tree-optimization/47663
11294 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11295 call_stmt_time fields.
11296 (cgraph_edge_inlinable_p): Declare.
11297 (cgraph_edge_recursive_p): New inline function.
11298 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11299 (cgraph_clone_edge): Copy it.
11300 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11301 Account for call stmt time.
11302 (cgraph_estimate_time_after_inlining): Take edge argument.
11303 (cgraph_estimate_edge_growth): Account call stmt size.
11304 (cgraph_estimate_size_after_inlining): Take edge argument.
11305 (cgraph_mark_inline_edge): Adjust.
11306 (cgraph_check_inline_limits): Likewise.
11307 (cgraph_recursive_inlining_p): Remove.
11308 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11309 (cgraph_decide_recursive_inlining): Take edge argument and
11311 (cgraph_decide_inlining_of_small_functions): Do not avoid
11312 diags for recursive inlining here.
11313 (cgraph_flatten): Adjust.
11314 (cgraph_decide_inlining_incrementally): Likewise.
11315 (estimate_function_body_sizes): Remove call cost handling.
11316 (compute_inline_parameters): Initialize caller edge call costs.
11317 (cgraph_estimate_edge_growth): New function.
11318 (cgraph_estimate_growth): Use it.
11319 (cgraph_edge_badness): Likewise.
11320 (cgraph_check_inline_limits): Take an edge argument.
11321 (cgraph_decide_inlining_of_small_functions): Adjust.
11322 (cgraph_decide_inlining): Likewise.
11323 * tree-inline.c (estimate_num_insns): Only account for call
11324 return value if it is used.
11325 (expand_call_inline): Avoid diagnostics on recursive inline
11327 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11328 (input_edge): Input edge call costs.
11330 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11332 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11334 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11336 * doc/invoke.texi (Spec Files): Fix typo.
11338 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11340 * profile.c (branch_prob): Move declaration of local variable. Remove
11341 obsolete ??? comment. Expand the location explicitly instead of using
11342 the LOCATION_FILE and LOCATION_LINE macros.
11344 2011-04-06 Wei Guozhi <carrot@google.com>
11347 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11348 (arm_cond_branch): Likewise.
11349 (arm_cond_branch_reversed): Likewise.
11350 (arm_jump): Likewise.
11351 (push_multi): Likewise.
11352 * config/arm/constraints.md (Py): New constraint.
11354 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11357 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11359 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11360 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11361 #ifdef DBX_DEBUGGING_INFO.
11363 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11366 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11367 if old and new states differ.
11369 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11371 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11372 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11373 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11374 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11375 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11376 mcfv4e): Use Alias.
11377 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11378 ColdFire options to -mcpu= options.
11380 2011-04-05 Jeff Law <law@redhat.com>
11382 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11383 check if BB is a successor of LOOP->header and return
11384 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11386 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11388 * cprop.c (struct reg_use): Remove.
11389 (reg_use_table): Make an array of RTX.
11390 (find_used_regs, constprop_register, local_cprop_pass,
11391 bypass_block): Simplify users of reg_use_table.
11392 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11393 on one of the uses found by find_used_regs.
11395 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11398 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11401 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11403 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11405 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11407 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11409 PR middle-end/48441
11410 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11412 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11414 * combine.c: Include obstack.h.
11415 (struct insn_link): Define.
11416 (uid_log_links): Adjust type.
11417 (FOR_EACH_LOG_LINK): New macro.
11418 (insn_link_obstack): Declare.
11419 (alloc_insn_link): Define.
11420 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11421 type of link variables.
11422 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11423 (try_combine, record_promoted_values, distribute_notes): Likewise.
11424 (distribute_links): Likewise. Tweak prototype.
11425 (clear_log_links): Delete.
11426 (adjust_for_new_dest): Call alloc_insn_link.
11427 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11429 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11431 * gcse.c (modify_mem_list): Convert to an array of VECs.
11432 (canon_modify_mem_list, compute_transp): Tweak formatting.
11433 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11434 (load_killed_in_block_p): Likewise.
11435 (record_last_mem_set_info): Likewise.
11436 (clear_modify_mem_tables): Likewise.
11438 2011-04-05 Tom de Vries <tom@codesourcery.com>
11440 PR middle-end/48461
11441 * function.c (emit_use_return_register_into_block): Only define if
11444 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11446 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11448 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11450 * config/rx/rx-opts.h: New.
11451 * config/rx/rx.c (rx_cpu_type): Remove.
11452 (rx_handle_option): Don't assert that global structures are in
11453 use. Access variables via opts pointer. Defer most handling of
11454 OPT_mint_register_. Use error_at.
11455 (rx_option_override): Handle deferred OPT_mint_register_ here.
11456 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11457 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11458 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11459 (rx_cpu_types): New Enum and EnumValue entries.
11460 (mint-register=): Use Defer and use Var accordingly.
11462 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11464 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11465 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11466 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11468 (debug_free_queue, debug_nesting, symbol_queue_index):
11470 * dbxout.c: ...to here. Make static.
11472 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11474 * gcse.c (modify_pair): Define. Define a VEC of it.
11475 (canon_modify_mem_list): Convert to an array of VECs.
11476 (free_insn_expr_list_list): Delete.
11477 (clear_modify_mem_tables): Call VEC_free instead.
11478 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11479 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11480 (canon_list_insert, compute_transp): Likewise.
11482 2011-04-05 Tom de Vries <tom@codesourcery.com>
11485 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11488 2011-04-05 Tom de Vries <tom@codesourcery.com>
11491 * function.c (emit_use_return_register_into_block): New function.
11492 (thread_prologue_and_epilogue_insns): Use
11493 emit_use_return_register_into_block.
11495 2011-04-05 Tom de Vries <tom@codesourcery.com>
11498 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11501 2011-04-05 Tom de Vries <tom@codesourcery.com>
11503 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11505 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11507 * config/arm/arm.md (define_constants for unspec): Replace with
11509 (define_constants for unspecv): Replace with define_c_enum.
11510 * config/arm/neon.md (define_constants for unspec): Replace with
11513 2011-04-04 Richard Henderson <rth@redhat.com>
11516 * dwarf2out.c (output_line_info): Always emit line info from
11517 at least one section.
11518 (dwarf2out_init): Create text_section_line_info here ...
11519 (set_cur_line_info_table): ... not here.
11521 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11524 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11527 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11529 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11531 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11532 (expr_equiv_p): Remove.
11533 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11534 (hash_scan_set): Update call to insert_set_in_table.
11535 (dump_hash_table): Dump <dest, src> pair.
11536 (lookup_set): Simplify. Lookup <dest, src> pair.
11537 (compute_transp): Remove, fold heavily simplified code into...
11538 (compute_local_properties): ...here. Expect COMP and TRANSP
11540 (find_avail_set): Take set directly from struct expr.
11541 (find_bypass-set): Likewise.
11542 (bypass_block): Likewise.
11543 (cprop_insn): Likewise. Remove redundant INSN_P test.
11545 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11546 checks on form of COND from find_implicit_sets to here.
11547 (find_implicit_sets): Cleanup control flow. Split critical edges
11548 if it exposes implicit sets. Allocate/resize implicit_sets as
11550 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11551 changed something. Run df_analyze after find_implicit_sets if any
11552 edges were split. Do not allocate implicit_sets here.
11554 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11555 (gcse_obstack): Renamed to cprop_obstack.
11556 (GNEW, GNEWVEC, GNEWVAR): Remove.
11558 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11559 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11560 (gcse_alloc): Likewise, and rename to cprop_alloc.
11561 (alloc_gcse_men, free_gcse_mem): Remove.
11562 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11563 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11564 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11566 * cprop.c (oprs_not_set_p): Remove.
11567 (mark_set, mark_clobber): Remove.
11568 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11569 (reg_not_set_p): New function.
11570 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11571 (cprop_insn): Likewise.
11572 (cprop_jump): Use FOR_EACH_EDGE.
11574 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11577 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11578 (rank_for_schedule): Use scheduled_insns vector instead of
11579 last_scheduled_insn.
11580 (ok_for_early_queue_removal): Likewise.
11581 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11583 (choose_ready): Likewise.
11584 (commit_schedule): Use VEC_iterate.
11585 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11586 a dbg_cnt, use it and ensure the first insn is in the ready list.
11587 (haifa_sched_init): Allocate scheduled_insns.
11588 (sched_extend_ready_list): Don't allocate it; reserve space.
11589 (haifa_sched_finish): Free it.
11591 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11593 * optc-gen.awk: Always remove type from Variable entry before
11594 recording in var_seen.
11596 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11598 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11599 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11600 call to tidy_fallthru_edges.
11602 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11604 * doc/options.texi (ToLower): Document.
11605 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11606 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11607 * opts.h (cl_option): Add cl_tolower field.
11608 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11609 arguments with lowercase strings.
11610 * config/rx/rx.opt (mcpu=): Add ToLower.
11611 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11614 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11616 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11618 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11620 * config/vax/vax.c: Include reload.h.
11622 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11624 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11625 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11626 (sparc_preferred_reload_class): New function.
11628 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11631 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11632 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11634 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11636 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11637 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11639 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11641 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11642 (ASM_OUTPUT_ALIGNED_BSS): Define.
11644 2011-04-03 Michael Matz <matz@suse.de>
11646 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11647 and next_slot members.
11648 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11649 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11650 (lto_streamer_cache_append): Declare.
11651 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11652 unsigned index, remove offset parameter, ensure that we append
11653 or update existing entries.
11654 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11655 parameter, update next_slot for append.
11656 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11658 (lto_streamer_cache_insert_at): Likewise.
11659 (lto_streamer_cache_append): New function.
11660 (lto_streamer_cache_lookup): Use unsigned index.
11661 (lto_streamer_cache_get): Likewise.
11662 (lto_record_common_node): Don't test tree_node_can_be_shared.
11663 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11664 (lto_streamer_cache_delete): Don't free offsets member.
11665 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11666 (lto_output_string_with_length): Use lto_output_data_stream.
11667 (lto_output_tree_header): Remove ix parameter, don't write it.
11668 (lto_output_builtin_tree): Likewise.
11669 (lto_write_tree): Adjust callers to above, don't track and write
11670 offset, write unsigned index.
11671 (output_unreferenced_globals): Don't emit all global vars.
11672 (write_global_references): Use unsigned indices.
11673 (lto_output_decl_state_refs): Likewise.
11674 (write_symbol): Likewise.
11675 * lto-streamer-in.c (lto_input_chain): Move earlier.
11676 (input_function): Use unsigned index.
11677 (input_alias_pairs): Don't read and then ignore all global vars.
11678 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11679 don't pass it back, use lto_streamer_cache_append.
11680 (lto_register_var_decl_in_symtab): Use unsigned index.
11681 (lto_register_function_decl_in_symtab): Likewise.
11682 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11684 (lto_get_builtin_tree): Don't read index, use
11685 lto_streamer_cache_append.
11686 (lto_read_tree): Adjust call to lto_materialize_tree.
11688 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11689 don't use function calls in arguments to MIN.
11691 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11694 * gimple.c (gimple_type_leader_entry): Mark deletable.
11696 2011-04-03 Alan Modra <amodra@gmail.com>
11698 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11700 2011-04-03 Michael Matz <matz@suse.de>
11702 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11704 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11706 2011-04-03 Michael Matz <matz@suse.de>
11708 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11709 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11710 without function context.
11711 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11712 current_function_decl and cfun.
11714 2011-04-03 Michael Matz <matz@suse.de>
11716 * tree.c (decl_init_priority_insert): Don't create entry for
11718 (decl_fini_priority_insert): Ditto.
11719 (fields_compatible_p, find_compatible_field): Remove.
11720 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11721 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11723 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11725 * combine.c (try_combine): Remove useless local variable.
11727 2011-04-03 Richard Guenther <rguenther@suse.de>
11728 Ira Rosen <ira.rosen@linaro.org>
11730 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11731 non-variable offsets and compare the remaining bases of the two
11732 accesses instead of looking for exact same data-ref.
11734 2011-04-02 Kai Tietz <ktietz@redhat.com>
11737 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11739 * i386.c (ix86_is_msabi_thiscall): New helper function.
11740 (ix86_is_type_thiscall): New helper function.
11741 (ix86_comp_type_attributes): Handle thiscall for method-functions
11743 (init_cumulative_args): Likewise.
11744 (find_drap_reg): Likewise.
11745 (ix86_static_chain): Likewise.
11746 (x86_this_parameter): Likewise.
11747 (x86_output_mi_thunk): Likewise.
11749 2011-04-01 Olivier Hainque <hainque@adacore.com>
11750 Nicolas Setton <setton@adacore.com>
11751 Eric Botcazou <ebotcazou@adacore.com>
11753 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11754 (add_gnat_descriptive_type_attribute): New function.
11755 (gen_array_type_die): Call it.
11756 (gen_enumeration_type_die): Likewise.
11757 (gen_struct_or_union_type_die): Likewise.
11758 (modified_type_die): Likewise.
11759 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11760 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11761 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11763 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11766 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11767 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11770 2011-03-17 Richard Guenther <rguenther@suse.de>
11773 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11774 origin for decls in other ltrans units.
11775 (input_varpool_node): Likewise.
11777 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11779 PR middle-end/48335
11780 * expr.c (expand_assignment): Handle all possibilities
11781 if TO_RTX is CONCAT.
11782 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11783 (store_split_bit_field): If SUBREG_REG (op0) or
11784 op0 itself has smaller mode than word, return it
11785 for offset 0 and const0_rtx for out-of-bounds stores.
11786 If word is const0_rtx, skip it.
11788 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11790 * config/h8300/h8300.c (print_operand_address): Rename to...
11791 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11792 Call h8300_print_operand and h8300_print_operand_address instead of
11793 print_operand and print_operand_address. Declare.
11794 (print_operand): Renake to...
11795 (h8300_print_operand): ...this. Make static. Adjust comments.
11796 Call h8300_print_operand instead of print_operand. Declare.
11797 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11798 (h8300_register_move_cost): Likewise.
11799 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11800 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11801 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11802 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11803 * config/h8300/h8300-protos.h (print_operand): Delete.
11804 (print_operand_address): Delete.
11806 2011-04-01 Richard Henderson <rth@redhat.com>
11809 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11810 in strict mode before dwarf4. Re-order tests to early out
11811 before switching sections.
11813 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11815 * config/h8300/constraints.md: New file.
11816 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11817 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11818 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11819 * config/h8300/predicates.md (bit_operand): Likewise.
11820 (incdec_operand): Use satisfies_constraint_M and
11821 satisfies_constraint_O. Don't use C code block.
11822 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11823 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11824 (compute_mov_length): Use satisfies_constraint_G.
11825 (fix_bit_operand): Use satisfies_constraint_U.
11826 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11827 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11828 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11829 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11830 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11831 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11832 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11833 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11834 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11835 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11836 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11837 (EXTRA_MEMORY_CONSTRAINT): Delete.
11839 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11840 Michael Meissner <meissner@linux.vnet.ibm.com>
11843 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11844 operands, as per the specifications.
11846 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11847 (vec_extract_evenv4sf): Ditto.
11848 (vec_extract_evenv8hi): Ditto.
11849 (vec_extract_evenv16qi): Ditto.
11850 (vec_extract_oddv4si): Ditto.
11852 2011-03-31 Mark Wielaard <mjw@redhat.com>
11854 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11855 high_pc attribute if the CU has no associated code. Only output
11856 DW_AT_entry_pc for CU if not generating strict dwarf and
11859 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11861 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11862 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11864 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11865 * final.c (final_start_function): Call the new function rather
11866 than using a NULL argument for dwarf2out_frame_debug.
11868 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11869 that contains the prologue.
11871 * haifa-sched.c (queue_insn): New arg REASON. All callers
11872 changed. Print it in debugging output.
11874 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11876 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11877 Split most of the code into...
11878 (begin_move_insn): ... here. New function.
11879 (ebb_sched_info): Add a pointer to it.
11880 * haifa-sched.c (scheduled_insns): New static variable.
11881 (sched_extend_ready_list): Allocate it.
11882 (schedule_block): Use it to record the order of scheduled insns.
11883 Perform RTL changes to move insns only after all scheduling
11884 decisions have been made.
11885 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11886 begin_move_insn field.
11887 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11888 * sched-int.h (struct haifa_sched_info): Remove second argument
11889 from begin_schedule_ready hook. Add new member begin_move_insn.
11890 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11891 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11893 * haifa-sched.c (prune_ready_list): New function, broken out of
11895 (schedule_block): Use it.
11897 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11899 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11901 2011-04-01 Kai Tietz <ktietz@redhat.com>
11903 * config.gcc (*-*-mingw*): Allow as option the
11904 posix threading model.
11905 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11906 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11908 (CPP_SPEC): Add pthread/no-pthread handling.
11909 (LIB_SPEC): Likewise.
11910 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11911 (LIB_SPEC): Likewise.
11912 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11913 flag to pass -pthread option for shared libgcc build.
11914 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11915 for shared libgcc build.
11916 * config/i386/t-mingw-pthread: New file.
11917 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11918 New define to enable use of library pthread by default.
11919 * config/i386/mingw.opt (pthread): New driver option.
11920 (no-pthread): New driver option.
11921 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11922 * config/i386/mingw-w64.opt: Likewise.
11924 2011-04-01 Gary Funck <gary@intrepid.com>
11926 * c-decl.c (grokdeclarator): Fix formatting.
11928 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11930 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11931 instead of n_operands.
11932 (set_storage_via_setmem): Likewise.
11933 * optabs.c (maybe_gen_insn): Likewise.
11934 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11935 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11936 (mips_expand_builtin_direct): Likewise.
11937 * config/spu/spu.c (expand_builtin_args): Likewise.
11939 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11941 * recog.h (insn_data_d): Add n_generator_args.
11942 * genoutput.c (data): Likewise.
11943 (output_insn_data): Print it.
11944 (max_opno, num_dups): Delete.
11945 (scan_operands): Just fill in "d->operand[...]".
11946 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11948 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11950 * gensupport.h (pattern_stats): New structure.
11951 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11952 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11953 (max_operand_1, max_operand_vec): Delete.
11954 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11956 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11958 * emit-rtl.c (emit_pattern_after_setloc): New function.
11959 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11960 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11961 (emit_pattern_after): New function.
11962 (emit_insn_after, emit_jump_insn_after): Call it.
11963 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11964 (emit_pattern_before_setloc): New function.
11965 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11966 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11968 (emit_pattern_before): New function.
11969 (emit_insn_before, emit_jump_insn_before): Call it.
11970 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11972 2011-03-31 Richard Henderson <rth@redhat.com>
11974 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11975 (dw_separate_line_info_entry): Remove.
11976 (enum dw_line_info_opcode): New.
11977 (dw_line_info_entry): Use it.
11978 (dw_line_info_table, dw_line_info_table_p): New.
11979 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11980 (line_info_table, line_info_label_num): Remove.
11981 (line_info_table_in_use): Remove.
11982 (separate_line_info_table): Remove.
11983 (separate_line_info_table_allocated): Remove.
11984 (separate_line_info_table_in_use): Remove.
11985 (LINE_INFO_TABLE_INCREMENT): Remove.
11986 (line_info_label_num): New.
11987 (cur_line_info_table): New.
11988 (text_section_line_info, cold_text_section_line_info): New.
11989 (separate_line_info): New.
11990 (SEPARATE_LINE_CODE_LABEL): Remove.
11991 (print_dwarf_line_table): Remove.
11992 (debug_dwarf): Don't dump it.
11993 (output_one_line_info_table): New.
11994 (output_line_info): Use it.
11995 (new_line_info_table): New.
11996 (set_cur_line_info_table): New.
11997 (dwarf2out_switch_text_section): Use it.
11998 (dwarf2out_begin_function): Likewise.
11999 (push_dw_line_info_entry): New.
12000 (dwarf2out_source_line): Rewrite for new line info tables.
12001 (dwarf2out_init): Remove dead initailizations.
12003 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12005 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12007 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12008 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12009 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12010 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12011 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12012 * opt-functions.awk (flag_init, switch_bit_fields): New.
12013 (switch_flags): Don't handle flags moved to bit-fields. Don't
12014 generate CL_MISSING_OK or CL_SAVE.
12015 * optc-gen.awk: Update to generate bit-field output as well as
12017 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12018 bit-field instead of CL_REJECT_DRIVER flag.
12019 * opts-common.c (generate_canonical_option,
12020 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12021 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12022 instead of CL_REJECT_NEGATIVE flag.
12023 * toplev.c (print_switch_values): Use cl_report bit-field instead
12026 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12028 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12029 a zero minimum index only if it is redundant.
12031 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12033 PR rtl-optimization/48381
12034 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12035 instead of ira_class_hard_reg_index for calculating conflicting
12038 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12040 * cprop.c: Clean up hash table building.
12041 (reg_avail_info): Remove.
12042 (oprs_available_p): Remove.
12043 (record_last_reg_set_info): Remove.
12044 (record_last_set_info): Remove.
12045 (reg_available_p): New function.
12046 (gcse_constant_p): Do not treat unfolded conditions as constants.
12047 (make_set_regs_unavailable): New function.
12048 (hash_scan_set): Simplify with new reg_available_p.
12049 (compute_hash_table_work): Traverse insns stream only once.
12050 Do not compute reg_avail_info. Traverse insns in reverse order.
12051 Record implicit sets after recording explicit sets from the block.
12053 2011-03-31 Michael Matz <matz@suse.de>
12055 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12057 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12059 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12060 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12061 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12062 (h8300_mode_dependent_address_p): New function.
12063 (h8300_get_index): Make static.
12065 2011-03-31 Jeff Law <law@redhat.com>
12067 * reload1.c (elimination_effects): Fix typo in recent change.
12069 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12070 typo potentially leading to null pointer dereference.
12072 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12073 (setup_save_areas): Corresponding changes to avoid useless
12076 * jump.c (reversed_comparison_code_parts): Avoid successive return
12077 statements when REVERSE_CONDITION is defined.
12079 * expr.c (expand_assignment): Avoid useless assignments.
12080 (expand_expr_real_1): Likewise.
12081 (expand_expr_real_2): Avoid useless statements.
12083 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12085 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12087 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12090 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12092 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12095 * doc/tm.texi.in (TARGET_VERSION): Remove.
12096 * doc/tm.texi: Regenerate.
12097 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12098 * collect2.c (main): Don't use TARGET_VERSION.
12099 * mips-tdump.c (main): Don't use TARGET_VERSION.
12100 * mips-tfile.c (main): Don't use TARGET_VERSION.
12101 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12102 * config/rs6000/vxworksae.h: Remove.
12103 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12104 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12105 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12106 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12107 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12108 * config/arm/arm.h (TARGET_VERSION): Remove.
12109 * config/arm/coff.h (TARGET_VERSION): Remove.
12110 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12111 * config/arm/elf.h (TARGET_VERSION): Remove.
12112 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12113 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12114 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12115 * config/arm/pe.h (TARGET_VERSION): Remove.
12116 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12117 * config/arm/semi.h (TARGET_VERSION): Remove.
12118 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12119 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12120 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12121 * config/avr/avr.h (TARGET_VERSION): Remove.
12122 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12123 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12124 * config/frv/frv.h (TARGET_VERSION): Remove.
12125 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12126 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12127 * config/i386/darwin.h (TARGET_VERSION): Remove.
12128 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12129 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12130 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12131 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12132 * config/i386/gnu.h (TARGET_VERSION): Remove.
12133 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12134 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12135 * config/i386/linux.h (TARGET_VERSION): Remove.
12136 * config/i386/linux64.h (TARGET_VERSION): Remove.
12137 * config/i386/lynx.h (TARGET_VERSION): Remove.
12138 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12139 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12140 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12141 * config/i386/netware.h (TARGET_VERSION): Remove.
12142 * config/i386/nto.h (TARGET_VERSION): Remove.
12143 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12144 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12145 * config/ia64/elf.h (TARGET_VERSION): Remove.
12146 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12147 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12148 * config/ia64/linux.h (TARGET_VERSION): Remove.
12149 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12150 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12151 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12152 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12153 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12154 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12155 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12156 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12157 * config/m68k/linux.h (TARGET_VERSION): Remove.
12158 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12159 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12160 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12161 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12162 * config/mep/mep.h (TARGET_VERSION): Remove.
12163 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12164 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12165 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12166 * config/mips/linux.h (TARGET_VERSION): Remove.
12167 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12168 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12169 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12170 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12171 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12172 * config/pa/pa.h (TARGET_VERSION): Remove.
12173 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12174 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12175 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12176 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12177 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12178 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12179 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12180 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12181 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12182 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12183 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12184 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12185 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12186 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12187 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12188 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12189 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12190 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12191 * config/s390/linux.h (TARGET_VERSION): Remove.
12192 * config/s390/s390.h (TARGET_VERSION): Remove.
12193 * config/s390/tpf.h (TARGET_VERSION): Remove.
12194 * config/score/score.h (TARGET_VERSION): Remove.
12195 * config/sh/linux.h (TARGET_VERSION): Remove.
12196 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12197 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12198 * config/sh/sh.h (TARGET_VERSION): Remove.
12199 * config/sh/sh64.h (TARGET_VERSION): Remove.
12200 * config/sh/superh.h (TARGET_VERSION): Remove.
12201 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12202 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12203 * config/sparc/linux.h (TARGET_VERSION): Remove.
12204 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12205 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12206 TARGET_NAME32, TARGET_NAME): Remove.
12207 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12208 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12209 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12210 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12211 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12212 * config/spu/spu.h (TARGET_VERSION): Remove.
12213 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12214 * config/v850/v850.h (TARGET_VERSION): Remove.
12215 * config/vax/linux.h (TARGET_VERSION): Remove.
12216 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12217 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12218 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12220 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12223 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12224 frame-related from frame-unrelated adjustments to the stack pointer.
12226 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12228 * common.opt (fdebug-types-section): Move earlier.
12229 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12231 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12233 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12236 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12238 * tree.h (CASE_CHAIN): Define.
12239 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12240 (gimple_redirect_edge_and_branch): Likewise.
12242 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12244 PR middle-end/48367
12245 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12248 2011-03-30 Jeff Law <law@redhat.com>
12250 * PR bootstrap/48371
12251 * reload1.c (reload): Fix botch in last change.
12253 * reload.h (struct reload): Fix typo introduced in last change.
12255 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12257 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12258 Undocumented. Remove help text.
12259 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12262 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12264 * doc/options.texi (NegativeAlias): Document.
12265 (Alias): Mention NegativeAlias.
12266 * opt-functions.awk: Handle NegativeAlias.
12267 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12268 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12269 * opts.h (CL_NEGATIVE_ALIAS): Define.
12270 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12271 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12273 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12275 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12276 mno-spe and mno-isel instead of mspe=no and -misel=no.
12278 2011-03-29 Mark Wielaard <mjw@redhat.com>
12280 * common.opt (fdebug-types-section): New flag.
12281 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12282 * dwarf2out.c (use_debug_types): New define.
12283 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12284 (print_die): Guard output of type unit signatures using
12286 (build_abbrev_table): Replace assert of dwarf_version >= 4
12287 with assert on use_debug_types.
12288 (size_of_die): Likewise.
12289 (unmark_dies): Likewise.
12290 (value_format): Decide AT_ref_external form on use_debug_types.
12291 (output_die): Replace dwarf_version version check guard with
12292 use_debug_types where appropriate.
12293 (modified_type_die): Likewise.
12294 (gen_reference_type_die): Likewise.
12295 (dwarf2out_start_source_file): Likewise.
12296 (dwarf2out_end_source_file): Likewise.
12297 (prune_unused_types_walk_attribs): Likewise.
12298 (dwarf2out_finish): Likewise.
12300 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12302 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12304 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12306 PR rtl-optimization/48332
12307 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12308 mode of input operand N and modeN to its actual mode.
12310 2011-03-30 Jeff Law <law@redhat.com>
12312 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12313 define accessor macro.
12314 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12315 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12316 (reg_equiv_init): Likewise.
12317 (reg_equivs_size): New variable.
12318 (reg_equiv_init_size): Remove.
12319 (allocate_initial_values): Move prototype to here from....
12320 * integrate.h (allocate_initial_values): Remove prototype.
12321 * integrate.c: Include reload.h.
12322 (allocate_initial_values): Corresponding changes.
12323 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12324 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12325 (update_equiv_regs): Corresponding changes.
12326 (ira): Corresponding changes.
12327 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12328 (push_secondary_reload): Corresponding changes.
12329 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12330 (make_memloc, find_reloads_address): Corresponding changes.
12331 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12332 (find_reloads_address_1): Corresponding changes.
12333 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12334 (refers_to_regno_for_reload_p): Corresponding changes.
12335 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12336 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12337 * reload1.c: Include ggc.h.
12338 (grow_reg_equivs): New function.
12339 (replace_pseudos_in, reload): Corresponding changes.
12340 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12341 (eliminate_regs_1, elimination_effects): Corresponding changes.
12342 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12343 (delete_output_reload): Likewise.
12344 * caller-save.c (mark_referenced_regs): Corresponding changes.
12345 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12346 * frv/predicates.md (frv_load_operand): Corresponding changes.
12347 * microblaze/microblaze.c (double_memory_operand): Corresponding
12349 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12350 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12351 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12352 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12353 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12355 * pa/pa.c (emit_move_sequence): Corresponding changes.
12356 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12358 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12361 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12362 structure modes. Don't check neon_vector_mem_operand for
12363 vector or structure modes.
12365 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12366 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12369 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12370 operand 1 and reshuffle the operands to match.
12371 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12373 2011-03-30 Christian Schüler <cschueler@gmx.de>
12376 * config/c.opt (F): Added 'Driver' to -F option.
12379 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12381 * config/darwin.opt: Added '-arch' option.
12383 2011-03-30 Nick Clifton <nickc@redhat.com>
12385 * config/rx/rx.md: Add peepholes and patterns to combine
12386 extending loads and simple arithmetic instructions.
12387 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12388 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12389 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12390 modes to use pre-decrement and post-increment addressing.
12391 (rx_is_restricted_memory_address): Add range checking of REG+INT
12393 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12394 (rx_memory_move_cost): Adjust cost of stores.
12395 (rx_adjust_insn_length): New function.
12397 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12400 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12401 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12402 matching arg00/arg01 types.
12404 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12406 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12407 last_location to UNKNOWN_LOCATION.
12409 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12412 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12415 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12416 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12419 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12420 Init(PROCESSOR_V7).
12421 (sparc_cpu): Likewise.
12422 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12425 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12428 PR middle-end/48342
12429 PR rtl-optimization/48345
12430 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12431 hard regs for given mode from profitable regs when doing secondary
12434 2011-03-29 Jeff Law <law@redhat.com>
12437 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12438 do_not_duplicate field.
12439 (lookup_redirection_data): Corresponding changes.
12440 (create_duplicates): Always create a template block.
12441 (redirect_edges): Remove code which reused the original block
12442 when it was going to become unreachable code.
12443 (thread_block): Don't set do_not_duplicate field.
12445 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12447 * lto-opts.c (register_user_option_p, lto_register_user_option):
12448 Make type argument unsigned.
12449 * lto-streamer.h (lto_register_user_option): Make type argument
12451 * opth-gen.awk: Make CL_* macros unsigned.
12452 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12453 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12454 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12455 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12456 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12457 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12458 (find_opt): Make lang_mask argument unsigned.
12460 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12462 PR rtl-optimization/48331
12463 PR rtl-optimization/48334
12464 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12465 for any used algorithm.
12467 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12469 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12472 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12474 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12475 (alpha_option_override): Don't set alpha_sr_alias_set.
12476 (emit_frame_store_1): Use gen_frame_mem rather than calling
12478 (alpha_expand_epilogue): Ditto.
12480 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12482 PR tree-optimization/48290
12483 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12484 vectorization, check that relevant phis in the basic block after
12485 the inner loop are really inner loop's exit phis.
12487 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12490 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12491 (cached_dw_loc_list_def): New structure.
12492 (cached_dw_loc_list): New typedef.
12493 (cached_dw_loc_list_table): New variable.
12494 (cached_dw_loc_list_table_hash): New function.
12495 (cached_dw_loc_list_table_eq): Likewise.
12496 (add_location_or_const_value_attribute): Take a bool cache_p.
12497 Cache the list when the parameter is true.
12498 (gen_formal_parameter_die): Update caller.
12499 (gen_variable_die): Likewise.
12500 (dwarf2out_finish): Likewise.
12501 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12502 while generating debug info for the decl.
12503 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12504 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12505 (resolve_addr): Cache the result of resolving a chain of
12508 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12510 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12511 conflict object hard regset nodes have intersecting hard reg sets.
12513 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12514 after regstat_init_n_sets_and_refs.
12516 * ira.c: Add more comments at the top.
12517 (setup_stack_reg_pressure_class, setup_pressure_classes):
12518 Add comments how we compute the register pressure classes.
12519 (setup_allocno_and_important_classes): Add more comments.
12520 (setup_class_translate_array, reorder_important_classes)
12521 (setup_reg_class_relations): Add comments.
12523 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12526 * ira-color.c: Add 2011 to the Copyright line.
12527 (assign_hard_reg): Add more comments.
12528 (improve_allocation): Ditto.
12530 * ira-costs.c: Add 2011 to the Copyright line.
12531 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12533 (setup_regno_cost_classes_by_mode): Ditto.
12535 Initial patches from ira-improv branch:
12537 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12539 * ira-build.c (ira_create_object): Remove initialization of
12540 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12541 (ira_create_allocno): Remove initialization of
12542 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12543 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12544 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12545 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12546 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12547 Initialize ALLOCNO_ADD_DATA.
12548 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12549 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12551 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12552 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12554 * ira.c (ira_reallocate): Remove.
12555 (setup_pressure_classes): Call
12556 ira_init_register_move_cost_if_necessary. Use
12557 ira_register_move_cost instead of ira_get_register_move_cost.
12558 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12559 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12561 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12562 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12563 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12564 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12565 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12566 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12568 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12569 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12570 (struct allocno_color_data): New.
12571 (allocno_color_data_t): New typedef.
12572 (allocno_color_data): New definition.
12573 (ALLOCNO_COLOR_DATA): New macro.
12574 (struct object_color_data): New.
12575 (object_color_data_t): New typedef.
12576 (object_color_data): New definition.
12577 (OBJECT_COLOR_DATA): New macro.
12578 (update_copy_costs, calculate_allocno_spill_cost): Call
12579 ira_init_register_move_cost_if_necessary. Use
12580 ira_register_move_cost instead of ira_get_register_move_cost.
12581 (move_spill_restore, update_curr_costs): Ditto.
12582 (allocno_spill_priority): Make it inline.
12583 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12584 (struct coalesce_data, coalesce_data_t): New.
12585 (allocno_coalesce_data): New definition.
12586 (ALLOCNO_COALESCE_DATA): New macro.
12587 (merge_allocnos, coalesced_allocno_conflict_p): Use
12588 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12589 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12590 (coalesce_allocnos): Ditto.
12591 (setup_coalesced_allocno_costs_and_nums): Ditto.
12592 (collect_spilled_coalesced_allocnos): Ditto.
12593 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12594 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12595 (coalesce_spill_slots): Ditto.
12596 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12597 free allocno_coalesce_data.
12599 * ira-conflicts.c: Fix formatting.
12600 (process_regs_for_copy): Call
12601 ira_init_register_move_cost_if_necessary. Use
12602 ira_register_move_cost instead of ira_get_register_move_cost.
12603 (build_object_conflicts): Optimize.
12605 * ira-costs.c (record_reg_classes): Optimize. Call
12606 ira_init_register_move_cost_if_necessary. Use
12607 ira_register_move_cost, ira_may_move_in_cost, and
12608 ira_may_move_out_cost instead of ira_get_register_move_cost and
12609 ira_get_may_move_cost.
12610 (record_address_regs): Ditto.
12611 (scan_one_insn): Optimize.
12612 (find_costs_and_classes): Optimize.
12613 (process_bb_node_for_hard_reg_moves): Call
12614 ira_init_register_move_cost_if_necessary. Use
12615 ira_register_move_cost instead of ira_get_register_move_cost.
12617 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12618 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12619 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12620 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12622 (ira_initiate_emit_data, ira_finish_emit_data)
12623 (create_new_allocno): New functions.
12624 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12625 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12626 Use ira_register_move_cost instead of ira_get_register_move_cost.
12628 * ira-int.h: Fix some comments.
12629 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12630 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12631 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12632 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12634 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12635 bitfield after mode. Make hard_regno a short int. Make
12636 hard_regno short. Remove first_coalesced_allocno and
12637 next_coalesced_allocno. Move mem_optimized_dest_p,
12638 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12639 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12640 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12641 temp, colorable_p. Add new member add_data.
12642 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12643 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12644 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12645 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12646 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12647 (ALLOCNO_ADD_DATA): New macro.
12648 (ira_emit_data_t): New typedef.
12649 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12650 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12651 from struct ira_allocno.
12652 (ALLOCNO_EMIT_DATA): New macro.
12653 (ira_allocno_emit_data, allocno_emit_reg): New.
12654 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12655 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12656 (OBJECT_ADD_DATA): New macro.
12657 (ira_reallocate): Remove.
12658 (ira_initiate_emit_data, ira_finish_emit_data): New.
12659 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12660 (ira_init_register_move_cost_if_necessary): New.
12661 (ira_object_conflict_iter_next): Merge into
12662 ira_object_conflict_iter_cond.
12663 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12665 * ira-live.c (process_single_reg_class_operands): Call
12666 ira_init_register_move_cost_if_necessary. Use
12667 ira_register_move_cost instead of ira_get_register_move_cost.
12669 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12671 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12673 * ira-costs.c: Fix formatting.
12674 (cost_classes, cost_classes_num): Remove.
12675 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12676 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12677 (cost_classes_del, cost_classes_htab): New.
12678 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12679 (initiate_regno_cost_classes, setup_cost_classes): New.
12680 (setup_regno_cost_classes_by_aclass): New.
12681 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12682 (record_reg_classes): Use regno_cost_classes instead of
12683 cost_classes. Move checking opposite operand up.
12684 (record_address_regs): Use regno_cost_classes
12685 instead of cost_classes.
12686 (scan_one_insn): Ditto. Use always general register.
12687 (print_allocno_costs): Use regno_cost_classes instead of
12689 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12690 (find_costs_and_classes): Set up cost classes for each registers.
12691 Use also their mode for this. Use regno_cost_classes instead of
12693 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12695 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12696 (ira_costs, ira_set_pseudo_classes): Call
12697 initiate_regno_cost_classes and finish_regno_cost_classes.
12699 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12701 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12703 * target.def (ira_cover_classes): Remove.
12705 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12707 * doc/tm.texi.in: Ditto.
12709 * ira-conflicts.c: Remove mentioning cover classes from the file.
12710 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12711 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12713 * targhooks.c (default_ira_cover_classes): Remove.
12715 * targhooks.h (default_ira_cover_classes): Ditto.
12717 * haifa-sched.c: Remove mentioning cover classes from the file.
12718 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12719 ira_pressure_classes and ira_pressure_classes_num instead of
12720 ira_reg_class_cover_size and ira_reg_class_cover. Use
12721 sched_regno_pressure_class instead of sched_regno_cover_class.
12722 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12723 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12725 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12726 classes from the file.
12727 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12728 (struct object_hard_regs, struct object_hard_regs_node): New.
12729 (struct ira_object): New members profitable_hard_regs,
12730 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12731 (struct ira_allocno): Rename cover_class to aclass. Rename
12732 cover_class_cost and updated_cover_class_cost to class_cost and
12733 updated_class_cost. Remove splay_removed_p and
12734 left_conflict_size. Add new members colorable_p.
12735 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12736 (ALLOCNO_COLORABLE_P): New macro.
12737 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12738 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12739 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12740 (OBJECT_...): Rename parameter C to O.
12741 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12742 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12743 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12744 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12745 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12746 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12747 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12748 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12749 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12750 x_ira_reg_class_subunion.
12751 (ira_max_memory_move_cost, ira_max_register_move_cost)
12752 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12753 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12754 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12755 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12756 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12757 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12758 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12759 (ira_tune_allocno_costs_and_cover_classes): Rename to
12760 ira_tune_allocno_costs.
12761 (ira_debug_hard_regs_forest): New.
12762 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12763 (ira_object_conflict_iter_next): Fix comments.
12764 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12765 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12766 cover_class to aclass.
12767 (ira_allocate_and_accumulate_costs): Ditto.
12768 (ira_allocate_and_set_or_copy_costs): Ditto.
12770 * opts.c (decode_options): Remove ira_cover_class check.
12772 * ira-color.c: Remove mentioning cover classes from the file. Use
12773 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12774 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12775 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12776 (splay-tree.h): Remove include.
12777 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12778 before copy_freq_compare_func.
12779 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12780 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12782 (hard_regs_roots, hard_regs_node_vec): Ditto.
12783 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12784 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12785 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12786 (create_new_object_hard_regs_node): Ditto.
12787 (add_new_object_hard_regs_node_to_forest): Ditto.
12788 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12789 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12791 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12792 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12793 (remove_unused_object_hard_regs_nodes): Ditto.
12794 (enumerate_object_hard_regs_nodes): Ditto.
12795 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12796 (object_hard_regs_subnode_t): Ditto.
12797 (struct object_hard_regs_subnode): Ditto.
12798 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12799 (setup_object_hard_regs_subnode_index): Ditto.
12800 (get_object_hard_regs_subnodes_num): Ditto.
12801 (form_object_hard_regs_nodes_forest): Ditto.
12802 (finish_object_hard_regs_nodes_tree): Ditto.
12803 (finish_object_hard_regs_nodes_forest): Ditto.
12804 (allocnos_have_intersected_live_ranges_p): Rename to
12805 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12806 (pseudos_have_intersected_live_ranges_p): Rename to
12807 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12808 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12809 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12810 (update_copy_costs): Remove assert. Skip cost update if the hard
12811 reg does not belong the class.
12812 (assign_hard_reg): Process only profitable hard regs.
12813 (uncolorable_allocnos_num): Make it scalar.
12814 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12815 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12816 and ira_reg_class_max_nregs.
12817 (bucket_allocno_compare_func): Check frequency first.
12818 (sort_bucket): Add compare function as a parameter.
12819 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12820 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12821 (push_allocno_to_stack): Rewrite for checking new allocno
12823 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12824 (push_only_colorable): Pass new parameter to sort_bucket.
12825 (push_allocno_to_spill): Remove.
12826 (allocno_spill_priority_compare): Make it inline and rewrite.
12827 (splay_tree_allocate, splay_tree_free): Remove.
12828 (allocno_spill_sort_compare): New function.
12829 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12830 build and use splay tree. Choose first allocno in uncolorable
12831 allocno bucket to spill. Remove setting spill cost.
12832 (all_conflicting_hard_regs): Remove.
12833 (setup_allocno_available_regs_num): Check only profitable hard
12834 regs. Print info about hard regs nodes.
12835 (setup_allocno_left_conflicts_size): Remove.
12836 (put_allocno_into_bucket): Don't call
12837 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12838 (improve_allocation): New.
12839 (color_allocnos): Call setup_profitable_hard_regs,
12840 form_object_hard_regs_nodes_forest, improve_allocation,
12841 finish_object_hard_regs_nodes_forest. Setup spill cost.
12842 (print_loop_title): Use pressure classes.
12843 (color_allocnso): Ditto.
12844 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12845 and allocnos_for_spilling.
12846 (ira_sort_regnos_for_alter_reg): Don't setup members
12847 {first,next}_coalesced_allocno.
12848 (color): Remove allocating and freeing removed_splay_allocno_vec.
12849 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12850 prohibited_class_mode_regs.
12852 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12854 (update_allocno_pressure_excess_length): Use pressure classes.
12855 (inc_register_pressure, dec_register_pressure): Check for pressure
12857 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12858 pressure class. Use ira_reg_class_nregs instead of
12859 ira_reg_class_max_nregs.
12860 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12861 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12862 (single_reg_class): Use ira_reg_class_nregs instead of
12863 ira_reg_class_max_nregs.
12864 (process_bb_node_lives): Use pressure classes.
12866 * ira-emit.c: Remove mentioning cover classes from the file. Use
12867 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12868 (change_loop): Use pressure classes.
12869 (modify_move_list): Call ira_set_allocno_class instead of
12870 ira_set_allocno_cover_class.
12872 * ira-build.c: Remove mentioning cover classes from the file. Use
12873 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12874 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12875 ALLOCNO_UPDATED_CLASS_COST instead of
12876 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12877 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12878 (ira_create_allocno): Remove initialization of
12879 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12880 ALLOCNO_COLORABLE_P.
12881 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12882 Update conflict regs for the objects.
12883 (create_cap_allocno): Remove assert. Don't propagate
12884 ALLOCNO_AVAILABLE_REGS_NUM.
12885 (ira_free_allocno_costs): New function.
12886 (finish_allocno): Change a part of code into call of
12887 ira_free_allocno_costs.
12888 (low_pressure_loop_node_p): Use pressure classes.
12889 (object_range_compare_func): Don't compare classes.
12890 (setup_min_max_conflict_allocno_ids): Ditto.
12892 * loop-invariant.c: Remove mentioning cover classes from the file.
12893 Use ira_pressure_classes and ira_pressure_classes_num instead of
12894 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12895 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12896 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12897 Use reg_allocno_class instead of reg_cover_class.
12898 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12899 STACK_REG_COVER_CLASS.
12900 (get_regno_cover_class): Rename to get_regno_pressure_class.
12901 (move_loop_invariants): Initialize and finalize regstat.
12903 * ira.c: Remove mentioning cover classes from the file. Add
12904 comments about coloring without cover classes. Use ALLOCNO_CLASS
12905 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12906 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12907 setup_class_subset_and_memory_move_costs.
12908 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12909 (setup_cover_and_important_classes): Rename to
12910 setup_allocno_and_important_classes.
12911 (setup_class_translate_array): New.
12912 (setup_class_translate): Call it for allocno and pressure classes.
12913 (cover_class_order): Rename to allocno_class_order.
12914 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12915 of ira_class_translate.
12916 (reorder_important_classes): Set up ira_important_class_nums.
12917 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12918 (print_class_cover): Rename to print_classes. Add parameter.
12919 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12920 Print pressure classes too.
12921 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12922 setup_reg_subclasses.
12923 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12924 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12925 (setup_prohibited_class_mode_regs): Use
12926 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12927 (clarify_prohibited_class_mode_regs): New function.
12928 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12929 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12930 (ira_init_once): Initialize them.
12931 (free_register_move_costs): Process them.
12932 (ira_init): Move calls of find_reg_classes and
12933 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12934 Call clarify_prohibited_class_mode_regs.
12935 (ira_no_alloc_reg): Remove.
12936 (too_high_register_pressure_p): Use pressure classes.
12938 * sched-deps.c: Remove mentioning cover classes from the file.
12939 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12940 ira_pressure_classes and ira_pressure_classes_num instead of
12941 ira_reg_class_cover_size and ira_reg_class_cover.
12942 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12943 sched_regno_pressure_class instead of sched_regno_cover_class.
12944 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12945 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12947 * ira.h: Add 2010 to Copyright.
12948 (ira_no_alloc_reg): Remove external.
12949 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12950 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12951 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12952 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12953 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12954 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12955 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12956 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12957 x_ira_no_alloc_regs.
12958 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12959 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12960 ira_allocno_classes_num and ira_allocno_classes.
12961 (ira_class_translate): Rename to ira_allocno_class_translate.
12962 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12963 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12964 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12965 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12966 (ira_no_alloc_regs): New.
12968 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12969 classes from the file. Use ALLOCNO_CLASS instead of
12970 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12971 ALLOCNO_COVER_CLASS_COST.
12972 (regno_cover_class): Rename to regno_aclass.
12973 (record_reg_classes): Use ira_reg_class_subunion instead of
12974 ira_reg_class_union.
12975 (record_address_regs): Check overflow.
12976 (scan_one_insn): Ditto.
12977 (print_allocno_costs): Print total mem cost fore regional allocation.
12978 (print_pseudo_costs): Use REG_N_REFS.
12979 (find_costs_and_classes): Use classes intersected with them on the
12980 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12981 ira_reg_class_union. Use ira_allocno_class_translate and
12982 regno_aclass instead of ira_class_translate and regno_cover_class.
12983 Modify code for finding regno_aclass. Setup preferred classes for
12985 (setup_allocno_cover_class_and_costs): Rename to
12986 setup_allocno_class_and_costs. Use regno_aclass instead of
12987 regno_cover_class. Use ira_set_allocno_class instead of
12988 ira_set_allocno_cover_class.
12989 (init_costs, finish_costs): Use regno_aclass instead of
12991 (ira_costs): Use setup_allocno_class_and_costs instead of
12992 setup_allocno_cover_class_and_costs.
12993 (ira_tune_allocno_costs_and_cover_classes): Rename to
12994 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12995 by processing objects. Use ira_reg_class_max_nregs instead of
12996 ira_reg_class_nregs.
12998 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13000 * sched-int.h: Remove mentioning cover classes from the file.
13001 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13003 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13004 classes from the file.
13005 (struct reg_pref): Rename coverclass into allocnoclass.
13006 (reg_cover_class): Rename to reg_allocno_class.
13008 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13010 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13012 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13014 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13016 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13018 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13020 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13022 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13024 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13026 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13028 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13029 (i386_ira_cover_classes): Ditto.
13031 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13033 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13035 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13037 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13039 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13041 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13043 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13044 (mips_ira_cover_classes): Ditto.
13046 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13048 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13050 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13052 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13054 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13056 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13057 (IRA_COVER_CLASSES_VSX): Ditto.
13059 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13060 (rs6000_ira_cover_classes): Ditto.
13062 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13064 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13066 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13068 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13070 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13072 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13074 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13076 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13078 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13080 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13082 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13085 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13086 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13087 dw_fde_unlikely_section_end_label, cold_in_std_section,
13088 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13089 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13091 (output_fde): Use dw_fde_second_{begin,end} if second is
13092 true, otherwise dw_fde_{begin,end}.
13093 (output_call_frame_info): Test dw_fde_second_begin != NULL
13094 instead of dw_fde_switched_sections.
13095 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13096 fields, initialize new fields. Initialize in_std_section
13097 unconditionally from the first partition.
13098 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13099 dw_fde_second_begin is non-NULL.
13100 (dwarf2out_switch_text_section): Stop initializing removed
13101 dw_fde_struct fields, initialize new fields, initialize
13102 also dw_fde_end here. Set dw_fde_switch_cfi even when
13103 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13104 (struct var_loc_list_def): Add last_before_switch field.
13105 (arange_table, arange_table_allocated, arange_table_in_use,
13106 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13107 (size_of_aranges): Count !in_std_section and !second_in_std_section
13108 hunks in fdes, instead of looking at arange_table_in_use.
13109 (output_aranges): Add aranges_length argument, don't call
13110 size_of_aranges here. Instead of using aranges_table*
13111 emit ranges for fdes when !in_std_section resp.
13112 !second_in_std_section.
13113 (dw_loc_list): Break ranges crossing section switch.
13114 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13115 use dw_fde_second_end instead of dw_fde_end as end of last range.
13116 (gen_subprogram_die): Don't call add_arange. Use
13117 dw_fde_{begin,end} for first partition and if switched
13118 section dw_fde_second_{begin,end} for the second.
13119 (var_location_switch_text_section_1,
13120 var_location_switch_text_section): New functions.
13121 (dwarf2out_begin_function): Initialize cold_text_section even
13122 when function_section () isn't text_section.
13123 (prune_unused_types): Don't walk arange_table.
13124 (dwarf2out_finish): Don't needlessly test
13125 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13126 If info_section_emitted, call size_of_aranges and if it indicates
13127 non-empty .debug_aranges, call output_aranges with the computed
13128 size. Stop using removed dw_fde_struct fields, use
13129 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13133 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13134 create ENTRY_VALUE if incoming or address of incoming's MEM
13136 * dwarf2out.c (mem_loc_descriptor): Don't emit
13137 DW_OP_GNU_entry_value of DW_OP_fbreg.
13138 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13139 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13140 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13141 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13143 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13144 is a REG_P or MEM_P with REG_P address, compute hash directly
13145 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13146 (preserve_only_constants): Don't clear VALUES forwaring
13147 ENTRY_VALUE to some other VALUE.
13149 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13151 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13152 instead of GEN_INT.
13154 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13156 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13157 block before expanding the statement.
13158 (expand_gimple_stmt_1): Likewise. Set them here...
13159 (expand_gimple_stmt): ...and not here. Tidy.
13160 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13163 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13165 * Makefile.in: New rule for cprop.o.
13166 * gcse.c: Move constant/copy propagation to cprop.c.
13167 (compute_local_properties): Only handle expression tables.
13168 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13169 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13170 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13171 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13172 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13173 compute_cprop_data, find_used_regs, try_replace_reg,
13174 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13175 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13176 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13177 find_bypass_set, reg_killed_on_edge, bypass_block,
13178 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13179 execute_rtl_cprop, pass_rtl_cprop): Move to...
13180 * cprop.c: ...here. New file, constant/copy propagation for RTL
13181 moved from gcse.c to here with minor cleanups in duplicated code.
13183 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13185 * config/i386/i386.c (flag_opts): Fix a typo in
13186 -mavx256-split-unaligned-store.
13188 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13190 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13191 LIBCALL_VALUE): Remove macros.
13192 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13193 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13194 (h8300_function_value, h8300_libcall_value,
13195 h8300_function_value_regno_p): New functions.
13197 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13199 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13201 2011-03-28 Jeff Law <law@redhat.com>
13203 * tree-ssa-threadupdate.c (redirect_edges): Call
13204 create_edge_and_update_destination_phis as needed.
13205 (create_edge_and_update_destination_phis): Accept new BB argument.
13206 All callers updated.
13207 (thread_block): Do not update the profile when threading around
13208 intermediate blocks.
13209 (thread_single_edge): Likewise.
13210 (determine_bb_domination_status): If BB is not a successor of the
13211 loop header, return NONDOMINATING.
13212 (register_jump_thread): Note when we register a jump thread around
13213 an intermediate block.
13214 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13215 (thread_across_edge): Use it.
13217 2011-03-28 Tristan Gingold <gingold@adacore.com>
13219 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13220 when for_return is 2.
13222 2011-03-28 Jeff Law <law@redhat.com>
13224 * var-tracking.c (canonicalize_values_mark): Delete unused
13226 (canonicalize_values_star, set_variable_part): Likewise.
13227 (clobber_variable_part, delete_variable_part): Likewise.
13229 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13231 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13233 2011-03-28 Martin Jambor <mjambor@suse.cz>
13235 * tree-inline.c (expand_call_inline): Do not check that destination
13237 (optimize_inline_calls): Assert that destination node is analyzed.
13238 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13239 not call tree_lowering_passes.
13240 * cgraph.h (cgraph_analyze_function): Declare.
13241 * cgraphunit.c (cgraph_analyze_function): Make public.
13243 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13245 * config/sparc/sparc-opts.h: New.
13246 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13247 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13248 (sparc_option_override): Store processor_type enumeration rather
13249 than string in cpu_default. Remove name and enumeration from
13250 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13251 without using sparc_select. Use target_flags_explicit instead of
13253 * config/sparc/sparc.h (enum processor_type): Move to
13255 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13256 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13257 HeaderInclude entry.
13258 (mcpu=, mtune=): Use Var and Enum.
13259 (sparc_processor_type): New Enum and EnumValue entries.
13261 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13262 Iain Sandoe <iains@gcc.gnu.org>
13265 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13267 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13269 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13270 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13271 Insert new statements at it in lieu of STMT.
13272 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13273 * tree-vect-stmts.c (vectorizable_store): Likewise.
13274 (vectorizable_load): Likewise.
13276 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13278 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13283 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13285 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13286 unaligned 256bit load/store.
13287 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13288 (*avx_movdqu<avxmodesuffix>): Likewise.
13290 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13293 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13294 * config/pa/pa.md (iordi3): Use new predicate in expander.
13295 (iorsi3): Likewise.
13297 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13299 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13300 FUNCTION_VALUE_REGNO_P): Remove macros.
13301 * config/mips/mips-protos.h (mips_function_value): Remove.
13302 * config/mips/mips.c (mips_function_value): Rename to...
13303 (mips_function_value_1): ... this. Make static. Handle receiving
13304 the function type in 'fn_decl_or_type' argument.
13305 (mips_function_value, mips_libcall_value,
13306 mips_function_value_regno_p): New function.
13307 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13308 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13310 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13312 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13313 and -mavx256-split-unaligned-store.
13314 (ix86_option_override_internal): Split 32-byte AVX unaligned
13315 load/store by default.
13316 (ix86_avx256_split_vector_move_misalign): New.
13317 (ix86_expand_vector_move_misalign): Use it.
13319 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13320 -mavx256-split-unaligned-store.
13322 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13323 256bit load/store. Generate unaligned store on misaligned memory
13325 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13327 (*avx_movdqu<avxmodesuffix>): Likewise.
13329 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13330 -mavx256-split-unaligned-store.
13332 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13335 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13338 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13340 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13341 opno arguments with an expand_operand. Use create_input_operand.
13342 (mips_prepare_builtin_target): Delete.
13343 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13345 (mips_expand_builtin_direct): Use create_output_operand and
13346 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13347 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13348 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13350 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13352 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13354 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13356 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13358 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13359 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13360 basic blocks and call commit_edge_insertions directly.
13361 (fixup_abnormal_edges): Move from here to...
13362 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13363 on the edges and return whether some have actually been inserted.
13364 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13367 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13369 PR rtl-optimization/48144
13370 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13371 (merge_expr_data): ... here.
13372 (av_set_intersect): Rename to av_set_code_motion_filter.
13373 Update all callers. Call merge_history_vect when an expression
13374 is found in both sets.
13375 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13377 2011-03-26 Alan Modra <amodra@gmail.com>
13379 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13380 cmodel medium addresses.
13381 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13382 64-bit gpr loads and stores.
13383 (rs6000_secondary_reload_ppc64): New function.
13384 * config/rs6000/rs6000-protos.h: Declare it.
13385 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13387 2011-03-26 Alan Modra <amodra@gmail.com>
13390 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13391 GNU Go in traceback table.
13393 2011-03-25 Richard Henderson <rth@redhat.com>
13395 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13396 if there are exactly 6 operands.
13397 (set_storage_via_setmem): Similarly.
13399 2011-03-25 Kai Tietz <ktietz@redhat.com>
13401 * collect2.c (write_c_file_stat): Handle backslash
13402 as right-hand directory separator.
13403 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13404 checking just for slash.
13405 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13406 instead of checking for trailing slash.
13407 * gcc.c (record_temp_file): Use filename_cmp instead
13409 (do_spec_1): Likewise.
13410 (replace_outfile_spec_function): Likewise.
13411 (is_directory): Use filename_ncmp instead of strncmp.
13412 (print_multilib_info): Likewise.
13413 * gcov.c (find_source): Use filename_cmp instead
13415 (make_gcov_file_name): Fix order of slash/backslash
13417 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13418 (add_standard_paths): Likewise.
13419 * mips-tfile.c (saber_stop): Handle backslash.
13420 * prefix.c (update_path): Use filename_ncmp instead of
13422 * profile.c (output_location): Use filename_cmp instead
13424 * read-md.c (handle_toplevel_file): Handle backslash.
13425 * tlink.c (frob_extension): Likewise.
13426 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13428 * tree-dump.c (dequeue_and_dump): Handle backslash.
13429 * tree.c (get_file_function_name): Likewise.
13430 * gengtype.c (read_input_list): Likewise.
13431 (get_file_realbasename): Likewise.
13432 (get_output_file_with_visibility): Use filename_cmp
13435 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13437 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13440 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13442 * fold-const.c (expr_location_or): New function.
13443 (fold_truth_not_expr): Call it.
13445 2011-03-25 Jeff Law <law@redhat.com>
13447 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13449 * c-family/c-common.c (def_fn_type): Likewise.
13450 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13451 * emit-rtl.c (gen_rtvec): Likewise.
13452 * lto/lto-lang.c (def_fn_type): Likewise.
13454 2011-03-25 Richard Guenther <rguenther@suse.de>
13456 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13457 also generate copies.
13458 (fini_copy_prop): Handle constant values properly.
13460 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13462 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13463 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13464 (hash_loc_operands, compare_loc_operands): Handle
13465 DW_OP_GNU_entry_value.
13467 2011-03-25 Kai Tietz <ktietz@redhat.com>
13469 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13470 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13471 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13472 comment and use macro TARGET_64BIT_MS_ABI instead.
13473 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13474 and change default behavior for 32-bit MS_ABI.
13475 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13476 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13478 (ix86_cfun_abi): Likewise.
13479 (ix86_maybe_switch_abi): Adjust comment.
13480 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13481 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13482 instead of checking for SYSV_ABI.
13483 (ix86_nsaved_sseregs): Likewise.
13484 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13486 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13487 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13488 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13489 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13490 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13492 2011-03-25 Richard Guenther <rguenther@suse.de>
13494 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13495 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13496 (verify_gimple): Remove.
13497 * tree-cfg.c (verify_gimple_call): Merge verification
13499 (verify_gimple_phi): Merge verification from verify_stmts.
13500 (verify_gimple_label): New function.
13501 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13502 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13503 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13504 (verify_stmts): Rename to verify_gimple_in_cfg.
13505 (verify_gimple_in_cfg): New function.
13506 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13507 * tree-ssa.c (verify_ssa): Likewise.
13508 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13510 2011-03-25 Richard Guenther <rguenther@suse.de>
13512 * passes.c (init_optimization_passes): Add FRE pass after
13515 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13516 Andrew Stubbs <ams@codesourcery.com>
13518 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13520 (arm_movdi_vfp_cortexa8): New pattern.
13521 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13522 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13523 instructions when tuning for Cortex-A8. Set attribute "arch".
13524 * config/arm/arm.md: Move include arm-tune.md up a bit.
13525 (define_attr "arch"): Add "onlya8" and "nota8" values.
13526 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13528 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13532 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13534 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13535 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13536 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13537 * passes.c (init_optimization_passes): Move
13538 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13540 2011-03-25 Kai Tietz <ktietz@redhat.com>
13542 * c-typeck.c (comptypes_internal): Replace target
13543 hook call of comp_type_attributes by version in tree.c file.
13544 * gimple.c (gimple_types_compatible_p_1): Likewise.
13545 * tree-ssa.c (useless_type_conversion_p): Likewise.
13546 * tree.c (build_type_attribute_qual_variant): Likewise.
13547 (attribute_value_equal): New static helper function.
13548 (comp_type_attributes): New function.
13549 (merge_attributes): Use attribute_value_equal for comparison.
13550 (attribute_list_contained): Likewise.
13551 * tree.h (comp_type_attributes): New prototype.
13553 2011-03-25 Richard Guenther <rguenther@suse.de>
13555 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13556 of complex types at -O0.
13557 (verify_gimple_assign_binary): Likewise.
13558 (verify_gimple_assign_ternary): Likewise.
13560 2011-03-24 Mark Wielaard <mjw@redhat.com>
13562 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13563 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13565 2011-03-24 Mark Wielaard <mjw@redhat.com>
13568 * dwarf2out.c (output_abbrev_section): Only write table when
13569 abbrev_die_table_in_use > 1.
13571 2011-02-24 Richard Henderson <rth@redhat.com>
13573 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13574 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13575 (alpha_expand_unaligned_load_words): Use extql.
13576 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13577 (emit_insxl): Handle all modes for consistency.
13579 2011-02-24 Richard Henderson <rth@redhat.com>
13581 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13582 (alpha_expand_unaligned_load): Likewise.
13583 (alpha_expand_unaligned_store): Likewise.
13584 (alpha_expand_unaligned_load_words): Likewise.
13585 (alpha_expand_unaligned_store_words): Likewise.
13586 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13587 (alpha_split_lock_test_and_set_12): Likewise.
13588 (print_operand, alpha_fold_builtin_extxx): Likewise.
13589 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13590 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13591 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13592 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13593 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13594 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13595 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13596 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13597 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13598 (extwl, extll, extql): Similarly.
13599 (inswh, inslh, insqh): Similarly.
13600 (mskbl, mskwl, mskll, mskql): Similarly.
13601 (mskwh, msklh, mskqh): Similarly.
13603 2011-02-24 Richard Henderson <rth@redhat.com>
13605 * config/alpha/alpha.md (attribute isa): Add er, ner.
13606 (attribute enabled): Handle them.
13607 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13609 2011-02-24 Richard Henderson <rth@redhat.com>
13611 * config/alpha/alpha.md (attribute isa): Add vms.
13612 (attribute enabled): Handle it.
13613 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13614 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13615 (*movtf): Rename from *movtf_internal for consistency.
13616 (*movsi): Merge with *movsi_nt_vms.
13617 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13618 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13619 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13620 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13622 2011-02-24 Richard Henderson <rth@redhat.com>
13624 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13625 (extendqisi2, extendhisi2): Likewise.
13626 (extendqidi2): Simplify BWX/non-BWX expansions.
13627 (extendhidi2): Similarly.
13629 2011-02-24 Richard Henderson <rth@redhat.com>
13631 * config/alpha/alpha.md (attribute isa): New.
13632 (attribute enabled): New.
13633 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13634 (zero_extendqisi2, zero_extendqidi2): Similarly.
13635 (zero_extendhisi2, zero_extendhidi2): Similarly.
13636 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13638 2011-02-24 Richard Henderson <rth@redhat.com>
13640 * config/alpha/predicates.md (input_operand): Revert last change;
13641 update comment to mention 32-bit VMS rather than Windows.
13643 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13645 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13646 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13647 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13648 * passes.c (init_optimization_passes): Move
13649 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13651 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13653 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13655 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13657 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13660 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13663 * simplify-rtx.c (simplify_const_unary_operation): Call
13664 real_convert when changing mode class with FLOAT_EXTEND.
13666 2011-03-24 Nick Clifton <nickc@redhat.com>
13668 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13669 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13670 * config/rx/rx.c (rx_option_override): Set align_jumps,
13671 align_loops and align_labels if not set by the user.
13672 (rx_align_for_label): New function.
13673 (rx_max_skip_for_label): New function.
13674 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13675 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13676 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13677 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13678 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13680 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13682 PR rtl-optimization/48263
13683 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13684 and original commutative_p handling. Use maybe_gen_insn.
13686 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13688 * reload.c (find_reloads_subreg_address): Add address_reloaded
13689 parameter and return true there if the full address has been
13691 (find_reloads_toplev): Pass address_reloaded flag.
13692 (find_reloads_address_1): Don't use address_reloaded parameter.
13694 2011-03-24 Jeff Law <law@redhat.com>
13696 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13697 unused variable "ann".
13698 (remove_unused_locals): Likewise.
13700 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13703 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13706 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13708 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13709 for invalid symbolic addresses.
13710 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13713 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13715 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13716 the argument in calls to fold_truth_not_expr.
13718 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13720 * tree.c (record_node_allocation_statistics): New function.
13721 (make_node_stat, copy_node_stat, build_string): Call it.
13722 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13723 (build1_stat, build_omp_clause): Likewise.
13725 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13727 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13730 2011-03-24 Richard Guenther <rguenther@suse.de>
13732 PR tree-optimization/48271
13733 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13734 blocks that still exist.
13736 2011-03-24 Richard Guenther <rguenther@suse.de>
13738 PR tree-optimization/48270
13739 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13740 not free datarefs before ddrs.
13742 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13744 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13745 from the address built for a reference with variable offset.
13747 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13750 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13751 alternatives that can be handled with movq or movabsq insn.
13752 (*movdf_internal): Disable for !TARGET_64BIT.
13753 (*movdf_internal_nointeger): Ditto.
13754 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13756 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13758 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13759 (FUNCTION_ARG_ADVANCE): Likewise.
13760 * tm.texi.in: Change references to them to hook references.
13761 * tm.texi: Regenerate.
13762 * targhooks.c (default_function_arg): Eliminate check for target macro.
13763 (default_function_incoming_arg): Likewise.
13764 (default_function_arg_advance): Likewise.
13765 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13766 (function_arg_advance): Likewise.
13767 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13769 2011-03-24 Richard Guenther <rguenther@suse.de>
13771 PR middle-end/48269
13772 * tree-object-size.c (addr_object_size): Do not double-account
13773 for MEM_REF offsets.
13775 2011-03-24 Diego Novillo <dnovillo@google.com>
13777 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13778 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13779 (lto_input_data_block): Move from lto-opts.c. Make extern.
13781 (lto_input_string): Rename from input_string. Make extern.
13783 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13784 output_string_with_length.
13785 Output 0 to indicate a non-NULL string. Update all callers to
13787 (lto_output_string): Rename from output_string. Make extern.
13789 (lto_output_decl_state_streams): Make extern.
13790 (lto_output_decl_state_refs): Make extern.
13791 * lto-streamer.h (lto_input_string): Declare.
13792 (lto_input_data_block): Declare.
13793 (lto_output_string): Declare.
13794 (lto_output_string_with_length): Declare.
13795 (lto_output_decl_state_streams): Declare.
13796 (lto_output_decl_state_refs): Declare.
13798 2011-03-24 Richard Guenther <rguenther@suse.de>
13800 PR tree-optimization/46562
13801 * tree.c (build_invariant_address): New function.
13802 * tree.h (build_invariant_address): Declare.
13803 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13804 a renamed function moved ...
13805 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13806 Take valueization callback parameter.
13807 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13808 * gimple-fold.h: New file.
13809 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13810 (ccp_fold, fold_const_aggregate_ref,
13811 fold_ctor_reference, fold_nonarray_ctor_reference,
13812 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13813 get_base_constructor): Move ...
13814 * gimple-fold.c: ... here.
13815 (gimple_fold_stmt_to_constant_1): New function
13816 split out from ccp_fold. Take a valueization callback parameter.
13817 Valueize all operands.
13818 (gimple_fold_stmt_to_constant): New wrapper function.
13819 (fold_const_aggregate_ref_1): New function split out from
13820 fold_const_aggregate_ref. Take a valueization callback parameter.
13821 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13822 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13823 invariant POINTER_PLUS_EXPRs to invariant form.
13824 (vn_valueize): New function.
13825 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13826 * tree-vrp.c (vrp_valueize): New function.
13827 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13828 to fold statements to constants.
13829 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13830 function declarations.
13831 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13832 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13834 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13836 * config/h8300/predicates.md (jump_address_operand): Fix register
13839 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13841 * doc/invoke.texi (max-stores-to-sink): Document.
13842 * params.h (MAX_STORES_TO_SINK): Define.
13843 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13844 if either vectorization or if-conversion is disabled.
13845 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13846 tree-vect-data-refs.c vect_equal_offsets.
13847 (dr_equal_offsets_p): New function.
13848 (find_data_references_in_bb): Remove static.
13849 * tree-data-ref.h (find_data_references_in_bb): Declare.
13850 (dr_equal_offsets_p): Likewise.
13851 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13852 (vect_drs_dependent_in_basic_block): Update calls to
13853 vect_equal_offsets.
13854 (vect_check_interleaving): Likewise.
13855 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13856 (cond_if_else_store_replacement): Rename to...
13857 (cond_if_else_store_replacement_1): ... this. Change arguments and
13859 (cond_if_else_store_replacement): New function.
13860 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13861 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13863 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13866 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13867 to subtract lower bound instead of GEN_INT().
13869 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13874 * doc/extend.texi (Alignment): Move section to match order in TOC.
13875 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13876 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13878 2011-03-23 Jeff Law <law@redhat.com>
13880 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13881 before removing the edge.
13883 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13884 it may have been freed by redirect_branch_edge or
13885 redirect_edge_succ_nodup.
13887 2011-03-23 Richard Guenther <rguenther@suse.de>
13889 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13890 (check_va_list_escapes): Likewise.
13891 (check_all_va_list_escapes): Likewise.
13893 2011-03-23 Richard Guenther <rguenther@suse.de>
13895 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13896 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13897 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13898 (alias.o): Likewise.
13899 (ipa-type-escape.o): Remove.
13900 (ipa-struct-reorg.o): Likewise.
13901 (GTFILES): Remove ipa-struct-reorg.c.
13902 * alias.c: Do not include ipa-type-escape.h.
13903 * tree-ssa-alias.c: Likewise.
13904 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13905 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13906 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13907 and ipa-type-escape passes.
13908 * tree-pass.h (pass_ipa_type_escape): Remove.
13909 (pass_ipa_struct_reorg): Likewise.
13910 * ipa-struct-reorg.h: Remove.
13911 * ipa-struct-reorg.c: Likewise.
13912 * ipa-type-escape.h: Likewise.
13913 * ipa-type-escape.c: Likewise.
13914 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13915 (--param struct-reorg-cold-struct-ratio): Likewise.
13916 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13917 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13918 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13920 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13922 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13923 cpu attribute value.
13924 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13925 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13926 * config/s390/s390.c (processor_flags_table): New constant array.
13927 (s390_handle_arch_option): Remove.
13928 (s390_handle_option): Remove s390_handle_arch_option invocations
13929 and OPT_mwarn_framesize_ handling.
13930 (s390_option_override): Remove s390_handle_arch_option invocation.
13931 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13933 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13934 * config/s390/s390.opt (s390_tune, s390_arch)
13935 (march=): Replace s390_arch_option enum and values with
13936 processor_type. Set variable name to s390_arch. Set
13937 initialization value.
13938 (mtune=): Replace s390_arch_option with processor_type. Set
13939 variable name to s390_tune. Set initialization value.
13941 2011-03-23 Julian Brown <julian@codesourcery.com>
13943 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13944 accesses which are not naturally aligned.
13946 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13949 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13951 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13953 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13954 parameter from "int" to "enum insn_code".
13955 (expand_operand_type): New enum.
13956 (expand_operand): New structure.
13957 (create_expand_operand): New function.
13958 (create_fixed_operand, create_output_operand): Likewise
13959 (create_input_operand, create_convert_operand_to): Likewise.
13960 (create_convert_operand_from, create_address_operand): Likewise.
13961 (create_integer_operand): Likewise.
13962 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13963 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13964 (expand_insn, expand_jump_insn): Likewise.
13965 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13966 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13967 (expand_movstr, expand_builtin___clear_cache): Likewise.
13968 (expand_builtin_lock_release): Likewise.
13969 * explow.c (allocate_dynamic_stack_space): Likewise.
13970 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13971 and use the default handling in that case.
13972 * expmed.c (check_predicate_volatile_ok): Delete.
13973 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13974 (emit_cstore): Likewise.
13975 * expr.c (emit_block_move_via_movmem): Likewise.
13976 (set_storage_via_setmem, expand_assignment): Likewise.
13977 (emit_storent_insn, try_casesi): Likewise.
13978 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13979 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13980 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13981 (expand_twoval_unop, expand_twoval_binop): Likewise.
13982 (expand_unop_direct, emit_indirect_jump): Likewise.
13983 (emit_conditional_move, vector_compare_rtx): Likewise.
13984 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13985 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13986 (expand_sync_lock_test_and_set): Likewise.
13987 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13988 (emit_unop_insn): Likewise.
13989 (expand_copysign_absneg): Change icode to an insn_code.
13990 (create_convert_operand_from_type): New function.
13991 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13992 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13993 (expand_insn, expand_jump_insn): Likewise.
13994 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13995 than const_int_operand for operand 2.
13997 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13999 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14002 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14004 * emit-rtl.c (emit_pattern_before_noloc): New function.
14005 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14006 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14007 (emit_pattern_after_noloc): New function.
14008 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14009 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14011 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14013 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14014 (__ffsDI2): Likewise.
14016 2011-03-22 Richard Henderson <rth@redhat.com>
14018 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14019 of !TARGET_ABI_OPEN_VMS.
14020 (alpha_trampoline_init, alpha_start_function): Likewise.
14021 (alpha_expand_epilogue, alpha_file_start): Likewise.
14022 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14023 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14024 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14025 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14026 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14028 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14030 * config/s390/s390-opts.h: New.
14031 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14032 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14033 s390_stack_guard): Remove.
14034 (s390_handle_arch_option): Return void. Take enum
14035 s390_arch_option value instead of string and searching array.
14036 (s390_handle_option): Don't assert that global structures are in
14037 use. Access variables via opts pointer. Use error_at. Don't use
14038 sscanf for -mstack-guard= or -mstack-size=. Update call to
14039 s390_handle_arch_option.
14040 (s390_option_override): Update call to s390_handle_arch_option.
14041 (s390_emit_prologue): Use %d format for s390_stack_size in
14042 diagnostic. Use %wd for HOST_WIDE_INT.
14043 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14044 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14045 * config/s390/s390.opt (config/s390/s390-opts.h): New
14046 HeaderInclude entry.
14047 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14048 s390_arch_flags, s390_warn_framesize): New Variable entries.
14049 (s390_arch_option): New Enum and EnumValue entries.
14050 (march=): Use Enum instead of Var.
14051 (mstack-guard=, mstack-size=): Use UInteger and Var.
14052 (mtune=): Use Enum.
14054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14056 * config/score/score.c (score_handle_option): Don't assert that
14057 global structures are in use. Access target_flags via opts
14058 pointer. Use value of -march= option to determine target_flags
14060 * config/score/score.opt (march=): Use Enum.
14061 (score_arch): New Enum and EnumValue entries.
14063 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14065 * config/mep/mep.c (option_mtiny_specified): Remove.
14066 (mep_option_override): Move register handling for -mivc2 from
14067 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14068 instead of option_mtiny_specified.
14069 (mep_handle_option): Access target_flags via opts pointer. Don't
14070 assert that global structures are in use. Defer part of -mivc2
14071 handling and move it to mep_option_override.
14072 * config/mep/mep.opt (IVC2): New Mask entry.
14073 (mivc2): Use Var and Defer instead of Mask.
14075 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14077 * config/v850/v850-opts.h: New.
14078 * config/v850/v850.c (small_memory): Replace with
14079 small_memory_physical_max array. Make that array static const.
14080 (v850_handle_memory_option): Take integer value of argument. Take
14081 gcc_options pointer, option text and location. Return void.
14082 Update for changes to small memory structures.
14083 (v850_handle_option): Access target_flags via opts pointer. Don't
14084 assert that global structures are in use. Update calls to
14085 v850_handle_memory_option.
14086 (v850_encode_data_area): Update references to small memory settings.
14087 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14088 (enum small_memory_type): Move to v850-opts.h.
14089 * config/v850/v850.opt (config/v850/v850-opts.h): New
14090 HeaderInclude entry.
14091 (small_memory_max): New Variable entry.
14092 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14093 (mtda, mzda): Likewise.
14095 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14097 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14098 pointer. Don't assert that global structures are in use.
14100 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14102 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14103 via opts pointer. Don't assert that global structures are in use.
14105 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14107 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14108 (munix=93): Use Var.
14109 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14110 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14111 * config/pa/pa-opts.h: New.
14112 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14113 (pa_handle_option): Don't assert that global structures are in
14114 use. Access target_flags via opts pointer. Don't handle
14115 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14117 (pa_option_override): Handle deferred OPT_mfixed_range_.
14119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14121 * config/mn10300/mn10300-opts.h: New.
14122 * config/mn10300/mn10300.c (mn10300_processor,
14123 mn10300_tune_string): Remove.
14124 (mn10300_handle_option): Don't assert that global structures are
14125 in use. Access mn10300_processor via opts pointer. Don't handle
14127 * config/mn10300/mn10300.h (enum processor_type): Move to
14129 (mn10300_processor): Remove.
14130 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14131 HeaderInclude entry.
14132 (mn10300_processor): New Variable entry.
14135 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14137 * config/microblaze/microblaze.c: Don't include opts.h.
14138 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14139 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14140 (mno-clearbss): Use Var and Warn.
14142 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14144 * config/m32r/m32r-opts.h: New.
14145 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14146 (m32r_handle_option): Don't assert that global structures are in
14147 use. Access target_flags and m32r_cache_flush_func via opts
14148 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14149 OPT_mno_flush_trap here.
14150 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14151 include of m32r-opts.h.
14152 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14153 HeaderInclude entry.
14154 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14155 (mmodel=): Use Enum and Var.
14156 (m32r_model): New Enum and EnumValue entries.
14157 (mno-flush-trap): Use Var.
14158 (msdata=): Use Enum and Var.
14159 (m32r_sdata): New Enum and EnumValue entries.
14161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14163 * config/m32c/m32c.c: Don't include opts.h.
14164 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14165 m32c_handle_option): Remove.
14166 (m32c_option_override): Check global_options_set.x_target_memregs
14167 instead of target_memregs_set.
14168 * config/m32c/m32c.h (target_memregs): Remove.
14169 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14172 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14174 * config/iq2000/iq2000-opts.h: New.
14175 * config/iq2000/iq2000.c: Don't include opts.h.
14176 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14177 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14178 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14179 HeaderInclude entry.
14180 (iq2000_tune): New Variable entry.
14181 (march=): Add comment. Use Enum.
14182 (iq2000_arch): New Enum and EnumValue entries.
14183 (mcpu=): Use Enum and Var.
14184 (iq2000_tune): New Enum and EnumValue entries.
14186 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14188 * config/ia64/ia64-opts.h: New.
14189 * config/ia64/ia64.c (ia64_tune): Remove.
14190 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14191 here. Use error_at.
14192 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14193 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14194 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14195 HeaderInclude entry.
14196 (ia64_tune): New Variable entry.
14197 (mfixed-range=): Use Defer and Var.
14198 (mtune=): Use Enum and Var.
14199 (ia64_tune): New Enum and EnumValue entries.
14201 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14203 * config/frv/frv-opts.h: New.
14204 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14206 (frv_cpu_type): Remove.
14207 * config/frv/frv.c: Don't include opts.h.
14208 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14209 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14210 (frv_cpu_type): New Variable entry.
14211 (frv_cpu): New Enum and EnumValue entries.
14213 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14215 * config/cris/cris.c (cris_handle_option): Access target_flags via
14216 opts pointer. Don't assert that global structures are in use.
14217 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14218 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14220 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14222 * config/bfin/bfin-opts.h: New.
14223 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14224 bfin_si_revision, bfin_workarounds): Remove.
14225 (bfin_cpus): Make static const.
14226 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14227 not bfin_lib_id_given.
14228 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14229 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14230 pointer. Use error_at. Don't assert that global structures are in use.
14231 * config/bfin/bfin.h: Include bfin-opts.h.
14232 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14233 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14234 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14235 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14240 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14241 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14242 or -msoft-float here.
14243 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14244 -msoft-float and -mhard-float.
14245 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14246 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14248 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14250 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14251 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14253 (LIBGCC_SPEC): Don't handle -msoft-float.
14254 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14256 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14258 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14259 -mfloat-abi=*, not -msoft-float and -mhard-float.
14260 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14262 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14263 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14264 mhard-float and msoft-float.
14265 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14266 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14267 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14268 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14270 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14271 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14273 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14275 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14278 2011-03-22 Richard Henderson <rth@redhat.com>
14280 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14281 TARGET_ABI_WINDOWS_NT.
14282 (alpha_output_function_end_prologue): Likewise.
14283 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14284 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14285 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14286 (trap, *movsi_nt_vms): Likewise.
14287 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14288 (*tablejump_osf_nt_internal): Remove.
14289 * config/alpha/predicates.md (input_operand): Only test Pmode.
14291 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14293 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14294 via opts pointer. Use error_at. Don't assert that global
14295 structures are in use.
14297 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14299 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14300 (ix86_handle_option): Access ix86_isa_flags and
14301 ix86_isa_flags_explicit via opts pointer. Don't assert that
14302 global structures are in use.
14303 (ix86_function_specific_save, ix86_function_specific_restore):
14304 Update ix86_isa_flags_explicit field name.
14305 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14306 (ix86_isa_flags_explicit): Rename TargetSave entry to
14307 x_ix86_isa_flags_explicit.
14309 2011-03-22 Richard Henderson <rth@redhat.com>
14311 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14312 (alpha_option_override, direct_return): Likewise.
14313 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14314 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14315 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14316 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14317 (alpha_expand_epilogue, alpha_end_function): Likewise.
14318 (alpha_init_libfuncs): Likewise.
14319 (struct machine_function): Remove unicosmk members.
14320 (print_operand) ['t']: Remove.
14321 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14322 unicosmk_output_module_name, unicosmk_output_common,
14323 current_section_align, unicosmk_output_text_section_asm_op,
14324 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14325 unicosmk_section_type_flags, unicosmk_unique_section,
14326 unicosmk_asm_named_section, unicosmk_insert_attributes,
14327 unicosmk_output_align, unicosmk_defer_case_vector,
14328 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14329 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14330 unicosmk_output_ssib, unicosmk_add_call_info_word,
14331 unicosmk_extern_head, unicosmk_output_default_externs,
14332 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14333 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14334 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14335 * config/alpha/alpha-protos.h: Update.
14336 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14337 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14338 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14339 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14340 (*mulsi_se, mulvsi3): Likewise.
14341 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14342 (*divmodsi_internal, call, call_value, realign): Likewise.
14343 (moddi3, umoddi3): Likewise; remove duplicate expander.
14344 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14345 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14346 (*movdi_nofix): Remove r/U alternative.
14347 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14348 * config/alpha/constraints.md ("U"): Remove.
14349 * config/alpha/predicates.md (call_operand"): Don't test
14350 TARGET_ABI_UNICOSMK.
14352 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14354 * target.def (handle_option): Take gcc_options and
14355 cl_decoded_option pointers and location_t.
14356 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14357 * doc/tm.texi: Regenerate.
14358 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14359 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14360 * lto-opts.c (lto_reissue_options): Generate option structure for
14361 targetm.handle_option call.
14362 * opts.c (target_handle_option): Update call to
14363 targetm.handle_option. Remove assertions about values now passed
14365 * targhooks.c (default_target_handle_option): New.
14366 * targhooks.h (default_target_handle_option): Declare.
14367 * config/alpha/alpha.c: Include opts.h.
14368 (alpha_handle_option): Update to new hook interface.
14369 * config/arm/arm.c: Include opts.h.
14370 (arm_handle_option): Update to new hook interface.
14371 * config/arm/t-arm (arm.o): Update dependencies.
14372 * config/bfin/bfin.c: Include opts.h.
14373 (bfin_handle_option): Update to new hook interface.
14374 * config/cris/cris.c: Include opts.h.
14375 (cris_handle_option): Update to new hook interface.
14376 * config/frv/frv.c: Include opts.h.
14377 (frv_handle_option): Update to new hook interface.
14378 * config/i386/i386.c: Include opts.h.
14379 (ix86_handle_option): Update to new hook interface.
14380 (ix86_valid_target_attribute_inner_p): Generate option structure
14381 for call to ix86_handle_option.
14382 * config/i386/t-i386 (i386.o): Update dependencies.
14383 * config/ia64/ia64.c: Include opts.h.
14384 (ia64_handle_option): Update to new hook interface.
14385 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14386 * config/iq2000/iq2000.c: Include opts.h.
14387 (iq2000_handle_option): Update to new hook interface.
14388 * config/m32c/m32c.c: Include opts.h.
14389 (m32c_handle_option): Update to new hook interface.
14390 * config/m32r/m32r.c: Include opts.h.
14391 (m32r_handle_option): Update to new hook interface.
14392 * config/m68k/m68k.c: Include opts.h.
14393 (m68k_handle_option): Update to new hook interface.
14394 * config/mep/mep.c: Include opts.h.
14395 (mep_handle_option): Update to new hook interface.
14396 * config/microblaze/microblaze.c: Include opts.h.
14397 (microblaze_handle_option): Update to new hook interface.
14398 * config/mips/mips.c: Include opts.h.
14399 (mips_handle_option): Update to new hook interface.
14400 * config/mn10300/mn10300.c: Include opts.h.
14401 (mn10300_handle_option): Update to new hook interface.
14402 * config/pa/pa.c: Include opts.h.
14403 (pa_handle_option): Update to new hook interface.
14404 * config/pdp11/pdp11.c: Include opts.h.
14405 (pdp11_handle_option): Update to new hook interface.
14406 * config/rs6000/rs6000.c: Include opts.h.
14407 (rs6000_handle_option): Update to new hook interface.
14408 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14409 * config/rx/rx.c: Include opts.h.
14410 (rx_handle_option): Update to new hook interface.
14411 * config/s390/s390.c: Include opts.h.
14412 (s390_handle_option): Update to new hook interface.
14413 * config/score/score.c: Include opts.h.
14414 (score_handle_option): Update to new hook interface.
14415 * config/sh/sh.c: Include opts.h.
14416 (sh_handle_option): Update to new hook interface.
14417 * config/sparc/sparc.c: Include opts.h.
14418 (sparc_handle_option): Update to new hook interface.
14419 * config/v850/v850.c: Include opts.h.
14420 (v850_handle_option): Update to new hook interface.
14422 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14424 * gcc.c (driver_unknown_option_callback): Only permit and save
14425 unknown -Wno- options.
14426 (driver_wrong_lang_callback): Save options directly instead of via
14427 driver_unknown_option_callback.
14429 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14431 * combine.c (simplify_set): Try harder to find the best CC mode when
14432 simplifying a nested COMPARE on the RHS.
14434 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14436 * config/alpha/gnu.h: Remove.
14437 * config/arc: Remove directory.
14438 * config/arm/netbsd.h: Remove.
14439 * config/arm/t-pe: Remove.
14440 * config/crx: Remove directory.
14441 * config/i386/netbsd.h: Remove.
14442 * config/m68hc11: Remove directory.
14443 * config/m68k/uclinux-oldabi.h: Remove.
14444 * config/mcore/mcore-pe.h: Remove.
14445 * config/mcore/t-mcore-pe: Remove.
14446 * config/netbsd-aout.h: Remove.
14447 * config/rs6000/gnu.h: Remove.
14448 * config/sh/sh-symbian.h: Remove.
14449 * config/sh/symbian-base.c: Remove.
14450 * config/sh/symbian-c.c: Remove.
14451 * config/sh/symbian-cxx.c: Remove.
14452 * config/sh/symbian-post.h: Remove.
14453 * config/sh/symbian-pre.h: Remove.
14454 * config/sh/t-symbian: Remove.
14455 * config/svr3.h: Remove.
14456 * config/vax/netbsd.h: Remove.
14457 * config.build: Don't handle i[34567]86-*-pe.
14458 * config.gcc: Remove handling of deprecations for most deprecated
14460 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14461 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14462 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14463 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14464 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14465 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14467 * config.host: Don't handle i[34567]86-*-pe.
14468 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14469 (ASM_SPEC32): Don't handle -mcall-gnu.
14470 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14472 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14473 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14474 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14475 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14476 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14477 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14478 conditional on SYMBIAN.
14479 * configure.ac: Don't handle powerpc*-*-gnu*.
14480 * configure: Regenerate.
14481 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14482 * doc/install-old.texi (m6811, m6812): Don't mention.
14483 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14484 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14485 (m68k-uclinuxoldabi): Don't mention.
14486 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14488 (-mcall-gnu): Remove.
14489 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14490 families): Remove constraint documentation.
14492 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14494 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14495 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14496 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14498 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14501 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14502 vector when peeking at the next token for vector, don't expand the
14505 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14507 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14508 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14509 * config/avr/avr.c (init_cumulative_args)
14510 (avr_function_arg_advance): Use it.
14511 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14513 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14514 (avr_function_ok_for_sibcall): ...this new function.
14515 (avr_lookup_function_attribute1): New static Function.
14516 (avr_naked_function_p, interrupt_function_p)
14517 (signal_function_p, avr_OS_task_function_p)
14518 (avr_OS_main_function_p): Use it.
14519 * config/avr/avr.md ("sibcall", "sibcall_value")
14520 ("sibcall_epilogue"): New expander.
14521 ("*call_insn", "*call_value_insn"): New insn.
14522 ("call_insn", "call_value_insn"): Remove
14523 ("call", "call_value", "epilogue"): Change expander to handle
14526 2011-03-21 Nick Clifton <nickc@redhat.com>
14528 * doc/invoke.texi (Overall Options): Move closing brace to end of
14530 (Optimization Options): Add missing @gol.
14531 (Directory Options): Likewise.
14532 (i386 and x86-64 Options): Likewise.
14533 (RS6000 and PowerPC Options): Likewise.
14534 (i386 and x86-64 Windows Options): Likewise.
14535 (V850 Options): Add text missing from descriptions.
14537 2011-03-22 Richard Henderson <rth@redhat.com>
14539 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14540 (avr_incoming_return_addr_rtx): New.
14541 (emit_push_byte): New.
14542 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14543 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14544 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14545 (emit_pop_byte): New.
14546 (expand_epilogue): Use it. Pop frame pointer by bytes.
14547 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14548 (INCOMING_RETURN_ADDR_RTX): New.
14549 (INCOMING_FRAME_SP_OFFSET): New.
14550 (ARG_POINTER_CFA_OFFSET): New.
14551 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14552 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14555 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14557 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14559 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14560 (FUNCTION_ARG_ADVANCE): Likewise.
14561 * tm.texi.in: Change references to them to hook references.
14562 * tm.texi: Regenerate.
14563 * targhooks.c (default_function_arg): Eliminate check for target
14565 (default_function_incoming_arg): Likewise.
14566 (default_function_arg_advance): Likewise.
14567 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14568 (function_arg_advance): Likewise.
14569 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14571 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14573 * tree.c (build_call_1): New function.
14574 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14576 2011-03-22 Richard Guenther <rguenther@suse.de>
14578 PR tree-optimization/48228
14579 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14580 for single-arg PHIs.
14582 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14584 PR rtl-optimization/48143
14585 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14586 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14587 sse2_cvtps2pd): Likewise.
14589 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14591 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14593 2011-03-22 Richard Guenther <rguenther@suse.de>
14595 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14596 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14597 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14598 and REALIGN_LOAD_EXPR.
14599 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14600 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14601 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14602 DOT_PROD_EXPR case ...
14603 (expand_expr_real_2): ... here.
14604 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14605 and REALIGN_LOAD_EXPR.
14606 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14607 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14608 (vect_create_epilog_for_reduction): Likewise.
14609 (vectorizable_reduction): Likewise.
14610 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14611 * tree-vect-stmts.c (vectorizable_load): Likewise.
14613 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14615 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14617 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14619 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14620 handling for PLTOFF/GOTOFF.
14622 2011-03-22 Nick Clifton <nickc@redhat.com>
14624 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14625 trailing backslash from the end of the macro definition.
14627 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14629 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14632 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14634 * expr.h (prepare_operand): Move to...
14635 * optabs.h (prepare_operand): ...here and change the insn code
14636 parameter from "int" to "enum insn_code".
14637 (insn_operand_matches): Declare.
14638 * expr.c (init_expr_target): Use insn_operand_matches.
14639 (compress_float_constant): Likewise.
14640 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14641 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14642 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14643 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14645 (gen_cond_trap): Likewise.
14646 (prepare_operand): Likewise. Change icode to an insn_code.
14647 (insn_operand_matches): New function.
14648 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14649 * reload1.c (gen_reload): Likewise.
14650 * targhooks.c (default_secondary_reload): Likewise.
14652 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14654 * config/alpha/alpha.md (unspec): New define_c_enum.
14657 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14660 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14661 between a call and its CALL_ARG_LOCATION note.
14663 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14665 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14667 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14671 * c-common.c (shorten_compare): If primopN is first sign-extended
14672 to opN and then zero-extended to result type, set primopN to opN.
14674 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14676 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14677 for barrier handlers.
14679 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14681 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14682 UNSPEC constants to be in the unspec enumeration, and redefine
14683 all UNSPECV constants to be in the unspecv enumeration, so that
14684 dumps print which unspec/unspec_volatile this is.
14685 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14686 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14687 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14688 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14689 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14691 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14692 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14693 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14694 * config/rs6000/sync.md (isync, lwsync): Ditto.
14696 2011-03-21 Richard Guenther <rguenther@suse.de>
14698 * params.def (lto-min-partition): Fix typo.
14700 2011-03-21 Richard Guenther <rguenther@suse.de>
14703 * c-decl.c (grokdeclarator): Drop to the main variant only
14704 for array types. Drop flag_gen_aux_info check.
14706 2011-03-21 Richard Guenther <rguenther@suse.de>
14708 PR translation/47911
14709 * params.def (lto-partitions): Fix typo.
14710 (lto-min-partition): Fix wording.
14712 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14714 * config/rs6000/t-freebsd: Remove duplication from file.
14716 2011-03-21 Richard Guenther <rguenther@suse.de>
14718 PR middle-end/47661
14719 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14721 2011-03-21 Richard Guenther <rguenther@suse.de>
14724 * params.def (lto-partitions): Require at least 1 partition.
14726 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14728 * gthr-solaris.h: Remove.
14729 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14730 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14731 (LIB_SPEC): Likewise.
14732 * config/sol2.opt (threads): Remove.
14733 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14734 (sparc*-*-solaris2*): Likewise.
14735 * configure.ac (enable_threads): Enable solaris support.
14736 * configure: Regenerate.
14737 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14738 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14741 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14743 * config.gcc: Obsolete *-*-solaris2.8*.
14744 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14746 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14749 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14750 reference. Solaris 8 perl works.
14752 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14755 * doc/install.texi (Prerequisites): Move jar etc. up.
14756 Explain support library version requirements.
14758 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14761 * doc/install.texi (Prerequisites): Move Perl to build
14762 requirements. Always necessary on Solaris 2 with Sun ld.
14764 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14766 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14768 (Specific, i?86-*-solaris2.[89]): Likewise.
14769 (Specific, i?86-*-solaris2.10): Likewise.
14770 (Specific, mips-sgi-irix6): Likewise.
14771 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14772 Update for binutils 2.21.
14774 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14776 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14777 Allow -fuse-linker-plugin for non-default plugin linker.
14778 * configure: Regenerate.
14780 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14783 * gengtype.c (files_rules): Added rule for cp/parser.h.
14785 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14788 * config/s390/s390.c (s390_delegitimize_address): Don't call
14789 lowpart_subreg if orig_x has BLKmode.
14791 2011-03-21 Kai Tietz <ktietz@redhat.com>
14794 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14795 * tree.h (attribute_spec): Add new member affects_type_identity.
14796 * attribs.c (empty_attribute_table): Adjust attribute_spec
14798 * config/alpha/alpha.c: Likewise.
14799 * config/arc/arc.c: Likewise.
14800 * config/arm/arm.c: Likewise.
14801 * config/avr/avr.c: Likewise.
14802 * config/bfin/bfin.c: Likewise.
14803 * config/crx/crx.c: Likewise.
14804 * config/darwin.h: Likewise.
14805 * config/h8300/h8300.c: Likewise.
14806 * config/i386/cygming.h: Likewise.
14807 * config/i386/i386.c: Likewise.
14808 * config/ia64/ia64.c: Likewise.
14809 * config/m32c/m32c.c: Likewise.
14810 * config/m32r/m32r.c: Likewise.
14811 * config/m68hc11/m68hc11.c: Likewise.
14812 * config/m68k/m68k.c: Likewise.
14813 * config/mcore/mcore.c: Likewise.
14814 * config/mep/mep.c: Likewise.
14815 * config/microblaze/microblaze.c: Likewise.
14816 * config/mips/mips.c: Likewise.
14817 * config/rs6000/rs6000.c: Likewise.
14818 * config/rx/rx.c: Likewise.
14819 * config/sh/sh.c: Likewise.
14820 * config/sol2.h: Likewise.
14821 * config/sparc/sparc.c: Likewise.
14822 * config/spu/spu.c: Likewise.
14823 * config/stormy16/stormy16.c: Likewise.
14824 * config/v850/v850.c: Likewise.
14826 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14828 * simplify-rtx.c (simplify_binary_operation_1): Handle
14829 (xor (and A B) C) case when B and C are both constants.
14831 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14833 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14835 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14838 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14840 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14842 PR rtl-optimization/48156
14843 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14844 assume df and df_lr are not NULL.
14846 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14849 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14850 between a call and its CALL_ARG_LOCATION note.
14852 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14855 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14856 between a call and its corresponding CALL_ARG_LOCATION note.
14858 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14860 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14861 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14862 * haifa-sched.c (setup_ref_regs): Ditto.
14863 * caller-save.c (add_used_regs_1): Ditto.
14864 * dse.c (look_for_hardregs): Ditto.
14865 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14866 * sched-rgn.c (check_live_1): Ditto.
14868 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14870 * c-decl.c (diagnose_mismatched_decls): Give an error for
14871 redefining a typedef with variably modified type.
14873 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14875 * c-decl.c (grokfield): Don't allow typedefs for structures or
14876 unions with no tag by default.
14877 * doc/extend.texi (Unnamed Fields): Update.
14879 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14881 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14882 Rewrite using indirect functions.
14883 (lwp_slwpcb): Ditto.
14884 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14885 (avx_vinsertf128<mode>): Ditto.
14887 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14889 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14892 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14894 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14895 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14897 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14899 PR rtl-optimization/48170
14900 * gcse.c (hoist_code): Remove bogus asserts.
14902 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14904 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14905 computation for prologue/epilogue.
14907 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14909 * Makefile.in (check-consistency): Remove.
14911 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14914 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14915 arange_table_in_use is 0, but either text_section_used or
14916 cold_text_section_used is true. Don't call it if
14917 !info_section_emitted.
14919 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14921 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14922 FUNCTION_VALUE_REGNO_P): Remove.
14923 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14925 * config/avr/avr.c (avr_ret_register): Make static inline.
14926 (avr_function_value_regno_p): New function.
14927 (avr_libcall_value): Make static. Add 'func' argument.
14928 (avr_function_value): Make static. Rename 'func' argument to
14929 'fn_decl_or_type', forward it to avr_libcall_value. Call
14930 avr_ret_register function instead of RET_REGISTER macro.
14931 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14933 2011-03-18 Jason Merrill <jason@redhat.com>
14936 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14938 2011-03-18 Richard Guenther <rguenther@suse.de>
14940 * doc/install.texi (--enable-gold): Remove.
14941 (--with-plugin-ld): Document.
14942 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14944 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14946 PR middle-end/47790
14947 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14948 again after expansion changes.
14950 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14952 * combine.c (try_combine): Do simplification only call of
14953 subst() on i2 even when i1 is present. Update comments.
14955 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14957 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14958 and UNSPEC_PCREL_SYMOFF.
14960 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14962 * config/s390/s390.md: Use define_c_enum for the unspec constant
14965 2011-03-18 Richard Henderson <rth@redhat.com>
14966 Jakub Jelinek <jakub@redhat.com>
14969 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14970 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14972 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14974 PR middle-end/47725
14975 * combine.c (cant_combine_insn_p): Don't check zero/sign
14976 extended hard registers.
14978 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14980 PR middle-end/47725
14981 * combine.c (cant_combine_insn_p): Check zero/sign extended
14984 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14986 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14987 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14988 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14989 Change return type to bool.
14990 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14992 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14995 * var-tracking.c (prepare_call_arguments): If CALL target
14996 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14997 pc instead of looking it up using cselib_lookup and use
14998 Pmode for it if x has VOIDmode.
14999 * dwarf2out.c (gen_subprogram_die): If also both first and
15000 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15003 * function.c (assign_parms): For data.passed_pointer parms
15004 use MEM of data.entry_parm instead of data.entry_parm itself
15005 as DECL_INCOMING_RTL.
15006 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15007 also when passed and declared mode is the same, DECL_RTL
15008 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15011 2011-03-16 Jeff Law <law@redhat.com>
15013 PR rtl-optimization/37273
15014 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15015 handle them like argument loads from stack slots. Do not double
15016 count memory for memory constants and argument loads from stack slots.
15018 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15021 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15023 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15026 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15028 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15031 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15033 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15034 Clear call_arg_locations and call_arg_loc_last always.
15036 PR middle-end/48152
15037 * var-tracking.c (prepare_call_arguments): If argument needs to be
15038 passed by reference, adjust argtype and mode.
15040 2011-03-17 Richard Guenther <rguenther@suse.de>
15042 PR middle-end/48134
15043 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15044 a value make sure to fold the statement.
15046 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15049 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15050 return condition with !cfun->calls_alloca.
15052 2011-03-17 Richard Guenther <rguenther@suse.de>
15055 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15056 origin for decls in other ltrans units.
15057 (input_varpool_node): Likewise.
15059 2011-03-17 Richard Guenther <rguenther@suse.de>
15061 PR middle-end/48165
15062 * tree-object-size.c (compute_object_offset): Properly return
15063 the offset operand of MEM_REFs as sizetype.
15065 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15067 PR rtl-optimization/48141
15068 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15069 * dse.c: Include params.h.
15070 (active_local_stores_len): New variable.
15071 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15073 (record_store, check_mem_read_rtx): Decrease it when removing
15075 (scan_insn): Likewise. Increase it when adding to chain, if it
15076 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15077 set active_local_stores to NULL before the addition.
15078 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15080 PR rtl-optimization/48141
15081 * dse.c (record_store): If no positions are needed in an insn
15082 that cannot be deleted, at least unchain it from active_local_stores.
15084 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15087 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15088 (lookup_type_die_strip_naming_typedef): ... here.
15089 (get_context_die): Use it.
15090 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15091 the anonymous struct named by the naming typedef.
15093 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15096 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15097 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15099 2011-03-16 Jeff Law <law@redhat.com>
15101 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15102 check for operands of conditional. Allow type to be a pointer.
15104 2011-03-16 Richard Guenther <rguenther@suse.de>
15106 PR tree-optimization/48149
15107 * fold-const.c (fold_binary_loc): Fold
15108 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15110 2011-03-16 Richard Guenther <rguenther@suse.de>
15112 PR tree-optimization/26134
15113 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15114 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15115 (non_rewritable_mem_ref_base): Handle complex type component
15116 accesses, constrain offsets for vector and complex extracts
15119 2011-03-16 Richard Guenther <rguenther@suse.de>
15121 PR tree-optimization/48146
15122 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15123 operands avoiding the need for renaming.
15125 2011-03-16 Richard Guenther <rguenther@suse.de>
15127 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15128 constant folding. Move MEM_REF canonicalization first.
15129 Rely on fold_const_aggregate_ref for initializer folding.
15130 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15132 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15134 PR middle-end/48136
15135 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15136 arg0/arg1 or their arguments are always fold converted to matching
15139 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15142 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15145 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15146 Handle in-tree gold.
15147 (ld_vers): Extract binutils version for gold.
15148 (gcc_cv_ld_hidden): Handle gold here.
15149 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15150 * configure: Regenerate.
15151 * config.in: Regenerate.
15152 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15153 -fuse-linker-plugin otherwise.
15154 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15155 (LINK_COMMAND_SPEC): Use it.
15156 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15158 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15160 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15161 * calls.c: Remove debug.h include.
15162 (emit_call_1): Don't call virtual_call_token debug hook.
15163 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15164 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15165 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15166 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15167 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15168 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15169 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15170 dwarf2out_virtual_call): Remove.
15171 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15172 copy_call_info and virtual_call hooks.
15173 (dwarf2out_init): Don't initialize vcall_insn_table,
15174 debug_dcall_section and debug_vcall_section.
15175 (prune_unused_types): Don't mark nodes from dcall_table.
15176 (dwarf2out_finish): Don't output dcall or vcall tables.
15177 * final.c (final_scan_insn): Don't call direct_call or
15178 virtual_call debug hooks.
15179 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15180 virtual_call_token, copy_call_info and virtual_call hooks.
15181 (debug_nothing_uid): Remove prototype.
15182 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15183 copy_call_info and virtual_call hooks.
15184 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15185 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15186 * debug.c (do_nothing_debug_hooks): Likewise.
15187 (debug_nothing_uid): Remove.
15188 * doc/invoke.texi (-fenable-icf-debug): Remove.
15189 * common.opt (-fenable-icf-debug): Likewise.
15191 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15192 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15193 call's MEM. Handle functions returning aggregate through a hidden
15194 first pointer. For virtual calls add clobbered pc to call arguments
15196 * dwarf2out.c (gen_subprogram_die): Emit
15197 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15201 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15202 * rtl.h (ENTRY_VALUE_EXP): Define.
15203 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15204 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15205 * print-rtl.c (print_rtx): Likewise.
15206 * gengtype.c (adjust_field_rtx_def): Likewise.
15207 * var-tracking.c (vt_add_function_parameter): Adjust
15208 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15209 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15210 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15211 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15212 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15214 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15215 Call var_location debug hook even on CALL_INSNs.
15216 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15217 * rtl.def (ENTRY_VALUE): New.
15218 * dwarf2out.c: Include cfglayout.h.
15219 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15220 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15221 (struct call_arg_loc_node): New type.
15222 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15223 tail_call_site_count): New variables.
15224 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15225 DW_TAG_GNU_call_site_parameter.
15226 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15227 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15228 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15229 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15230 and DW_AT_GNU_all_source_call_sites.
15231 (mem_loc_descriptor): Handle ENTRY_VALUE.
15232 (add_src_coords_attributes): Don't add enything if
15233 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15234 (dwarf2out_abstract_function): Save and clear call_arg_location,
15235 call_site_count and tail_call_site_count around dwarf2out_decl call.
15236 (gen_call_site_die): New function.
15237 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15238 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15239 (dwarf2out_function_decl): Clear call_arg_locations,
15240 call_arg_loc_last, set call_site_count and tail_call_site_count
15241 to -1 and free block_map.
15242 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15243 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15244 followed by any real instructions.
15245 (dwarf2out_begin_function): Set call_site_count and
15246 tail_call_site_count to 0.
15247 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15248 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15249 attempt to force a DIE for it and worst case remove the attribute.
15250 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15251 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15253 * var-tracking.c: Include tm_p.h.
15254 (vt_stack_adjustments): For calls call note_register_arguments.
15255 (argument_reg_set): New variable.
15256 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15257 ensure the VALUE is resolved.
15258 (call_arguments): New variable.
15259 (prepare_call_arguments): New function.
15260 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15261 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15262 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15263 always use the best expression.
15264 (vt_expand_loc): Add ignore_cur_loc argument.
15265 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15266 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15267 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15268 note for all calls.
15269 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15270 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15271 argument. Don't call cselib_preserve_only_values and
15272 cselib_reset_table.
15273 (note_register_arguments): New function.
15274 (vt_initialize): Compute argument_reg_set. Call
15275 vt_add_function_parameters before processing basic blocks instead of
15276 afterwards. For calls call prepare_call_arguments before calling
15277 cselib_process_insn.
15278 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15279 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15280 (var-tracking.o): Depend on $(TM_P_H).
15281 * cfglayout.h (insn_scope): New prototype.
15282 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15283 * cfglayout.c (insn_scope): No longer static.
15284 * insn-notes.def (CALL_ARG_LOCATION): New.
15285 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15286 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15287 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15288 nothing for DECL_EXTERNAL BLOCK_VARS.
15290 2011-03-16 Alan Modra <amodra@gmail.com>
15293 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15294 create invalid offset address for vsx splat insn.
15295 * config/rs6000/predicates.md (splat_input_operand): New.
15296 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15298 2011-03-15 Xinliang David Li <davidxl@google.com>
15301 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15302 (normalize_preds): New function.
15303 (is_use_properly_guarded): Normalize def predicates.
15305 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15308 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15309 in the output template.
15311 2011-03-15 Richard Guenther <rguenther@suse.de>
15313 PR middle-end/47650
15314 * tree-pretty-print.c (dump_function_declaration): Properly
15315 dump unprototyped and varargs function types.
15317 2011-03-15 Richard Guenther <rguenther@suse.de>
15319 PR tree-optimization/13954
15320 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15323 2011-03-15 Richard Guenther <rguenther@suse.de>
15325 PR tree-optimization/48037
15326 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15327 selects into BIT_FIELD_REFs.
15328 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15331 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15333 PR tree-optimization/48129
15334 * builtins.c (fold_builtin_snprintf): Convert to type of
15335 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15336 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15338 2011-03-15 Richard Guenther <rguenther@suse.de>
15340 PR tree-optimization/41490
15341 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15342 value but with VUSE.
15343 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15345 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15346 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15347 * tree-tailcall.c (find_tail_calls): Ignore returns.
15349 2011-03-15 Richard Guenther <rguenther@suse.de>
15351 PR middle-end/48031
15352 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15353 or variable-indexed array accesses when in gimple form.
15355 2011-03-15 Richard Guenther <rguenther@suse.de>
15357 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15359 2011-03-15 Alan Modra <amodra@gmail.com>
15362 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15363 presume symbol_refs without a symbol_ref_decl are suitably
15364 aligned, nor other trees we may see here. Handle anchor symbols.
15365 (legitimate_constant_pool_address_p): Comment. Add mode param.
15366 Check cmodel=medium addresses. Adjust all calls.
15367 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15368 creating cmodel=medium optimized access to locals.
15369 * config/rs6000/constraints.md (R): Pass QImode to
15370 legitimate_constant_pool_address_p.
15371 * config/rs6000/predicates.md (input_operand): Pass mode to
15372 legitimate_constant_pool_address_p.
15373 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15376 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15379 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15380 64-bit constants being loaded into registers other than GPRs such
15381 as loading 0 into a VSX register.
15383 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15385 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15387 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15389 PR middle-end/47917
15390 * builtins.c (fold_builtin_snprintf): New function.
15391 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15392 (fold_builtin_4): Likewise.
15394 PR middle-end/38878
15395 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15396 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15397 and C - X == X also strip nops from +/-/p+ operand.
15398 When optimizing -X == C, fold C to arg0's type.
15401 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15402 emit it as add_AT_int instead of add_AT_unsigned.
15404 2011-03-14 Tom Tromey <tromey@redhat.com>
15406 * unwind-dw2.c: Include sys/sdt.h if it exists.
15407 (_Unwind_DebugHook): Use STAP_PROBE2.
15408 * config.in, configure: Rebuild.
15409 * configure.ac: Check for sys/sdt.h.
15411 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15413 * config/i386/i386.md (ROUND_FLOOR): New constant.
15414 (ROUND_CEIL): Ditto.
15415 (ROUND_TRUNC): Ditto.
15416 (ROUND_MXCSR): Ditto.
15417 (ROUND_NO_EXC): Ditto.
15418 (rint<mode>2): Use new defines instead of numerical constants.
15419 (floor<mode>2): Ditto.
15420 (ceil<mode>2): Ditto.
15421 (btrunc<mode>2): Ditto.
15422 * config/i386/i386-builtin-types.def: Define ROUND function type
15424 * config/i386/i386.c (enum ix86_builtins): Add
15425 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15426 (struct builtin_description): Add
15427 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15428 (ix86_expand_sse_round): New static function.
15429 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15431 (ix86_builtin_vectorized_function): Handle
15432 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15434 2011-03-14 Tom Tromey <tromey@redhat.com>
15436 * c-parser.c (c_parser_asm_string_literal): Clear
15437 warn_overlength_strings.
15439 2011-03-14 Tom Tromey <tromey@redhat.com>
15441 * c-parser.c (disable_extension_diagnostics): Save
15442 warn_overlength_strings.
15443 (restore_extension_diagnostics): Restore warn_overlength_strings.
15445 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15447 * BASE-VER: Change to 4.7.0.
15449 2011-03-14 Richard Guenther <rguenther@suse.de>
15451 PR middle-end/48098
15452 * tree.c (build_vector_from_val): Adjust assert to requirements
15455 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15458 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15460 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15462 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15463 terms of target_flags_explicit. Adjust copyright year.
15465 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15466 * config/rs6000/t-freebsd: New file. Add override for
15469 2011-03-13 Chris Demetriou <cgd@google.com>
15471 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15472 (-fno-diagnostics-show-option): this, to reflect current default.
15473 (-Werror=): Update text about -fno-diagnostics-show-option.
15475 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15478 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15479 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15480 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15481 mode is not V2DImode or V2DFmode.
15482 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15483 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15484 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15486 (movdi_internal64): Likewise.
15488 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15490 PR tree-optimization/47127
15491 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15493 (set_cloog_options): Same.
15494 (scop_to_clast): Same.
15495 (print_clast_stmt): Do not call cloog_state_malloc and
15497 (print_generated_program): Same.
15499 * graphite-clast-to-gimple.h (cloog_state): Declared.
15500 (scop_to_clast): Adjust declaration.
15501 * graphite.c (cloog_state): Defined here.
15502 (graphite_initialize): Call cloog_state_malloc.
15503 (graphite_finalize): Call cloog_state_free.
15505 2011-03-11 Jason Merrill <jason@redhat.com>
15507 * attribs.c (lookup_attribute_spec): Take const_tree.
15510 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15512 * config/sparc/sparc.c (sparc_option_override): Use
15513 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15515 2011-03-11 Richard Guenther <rguenther@suse.de>
15517 PR tree-optimization/48067
15518 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15519 multiplication result will be only used once on the target
15522 2011-03-11 Richard Guenther <rguenther@suse.de>
15524 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15526 2011-03-11 Richard Guenther <rguenther@suse.de>
15529 * tree.c (find_decls_types_r): Do not walk types only reachable
15530 from IDENTIFIER_NODEs.
15532 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15534 PR middle-end/48044
15535 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15536 all vnode->force_output nodes as needed.
15538 2011-03-11 Jason Merrill <jason@redhat.com>
15541 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15542 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15544 2011-03-11 Martin Jambor <mjambor@suse.cz>
15546 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15549 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15551 PR tree-optimization/48063
15552 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15553 inline functions called once if !tree_can_inline_p (node->callers).
15555 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15557 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15559 * config/score/score3.c: Delete.
15560 * config/score/score3.h: Delete.
15561 * config/score/mul-div.S: Delete.
15562 * config/score/sfp-machine.h: Add new file.
15563 * config/score/constraints.md: Add new file.
15564 * config/score/t-score-softfp: Add new file.
15565 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15566 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15567 (score7_extra_constraint): Delete.
15568 (score7_option_override): Remove unused code.
15569 * config/score/score.c: Remove score3 and score5 define and code.
15570 * config/score/score.h: Remove score3 and score5 define and code.
15571 * config/score/score.md: Remove score3 template and unusual insn.
15572 * config/score/score.opt: Remove score3 and score5 options.
15574 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15576 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15577 when _HPUX_SOURCE is defined.
15578 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15580 2011-03-10 Jason Merrill <jason@redhat.com>
15583 * stor-layout.c (layout_type): Don't set structural equality
15584 on arrays of incomplete type.
15585 * tree.c (type_hash_eq): Handle comparing them properly.
15587 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15590 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15591 result mode matches original rtl mode.
15593 2011-03-10 Nick Clifton <nickc@redhat.com>
15595 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15596 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15598 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15600 PR rtl-optimization/47866
15601 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15602 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15603 if target wasn't scalar.
15604 * function.c (assign_stack_temp_for_type): Assert that neither
15605 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15606 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15608 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15610 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15612 * config/s390/s390-protos.h (s390_label_align): New prototype.
15613 * config/s390/s390.c (s390_label_align): New function.
15614 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15616 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15619 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15620 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15621 (output_vec_const_move): Ditto.
15623 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15625 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15626 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15627 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15628 Change 'rclass' argument and result type to reg_class_t.
15629 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15631 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15633 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15634 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15635 (TARGET_MEMORY_MOVE_COST): Define.
15636 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15638 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15641 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15644 PR tree-optimization/48022
15645 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15648 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15651 * var-tracking.c (find_use_val): Return NULL for
15652 cui->sets && cui->store_p BLKmode MEMs.
15654 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15656 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15658 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15659 xstormy16_print_operand_address): Remove.
15660 * config/stormy16/stormy16.c (xstormy16_print_operand,
15661 xstormy16_print_operand_address): Make static.
15662 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15664 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15667 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15668 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15671 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15674 * cfgloopmanip.c (fix_bb_placements): Return immediately
15675 if FROM is BASE_LOOP's header.
15677 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15679 * gimplify.c (gimplify_function_tree): Fix building calls
15680 to __builtin_return_address.
15682 2011-03-07 Alan Modra <amodra@gmail.com>
15684 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15685 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15686 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15687 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15689 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15690 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15691 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15692 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15693 * config/rs6000/rs6000.c
15694 (rs6000_elf_end_indicate_exec_stack): Rename to..
15695 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15696 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15697 (rs6000_file_start): ..here.
15698 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15699 file scope variables.
15700 (call_ABI_of_interest): New function.
15701 (init_cumulative_args): Set above vars when function return value
15702 is a float, vector, or small struct.
15703 (rs6000_function_arg_advance_1): Likewise for function args.
15704 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15705 references float args.
15707 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15709 * doc/cfg.texi: Remove "See" before @ref.
15710 * doc/invoke.texi: Likewise.
15712 2011-03-05 Jason Merrill <jason@redhat.com>
15714 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15716 2011-03-05 Anthony Green <green@moxielogic.com>
15718 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15720 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15722 PR rtl-optimization/47899
15723 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15724 to flow_loop_nested_p when moving the loop upward.
15726 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15729 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15731 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15733 PR tree-optimization/47967
15734 * ipa-cp.c (build_const_val): Return NULL instead of creating
15735 VIEW_CONVERT_EXPR for mismatching sizes.
15736 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15737 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15738 give up on versioning.
15740 2011-03-05 Alan Modra <amodra@gmail.com>
15743 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15744 full cmodel medium/large lo_sum + high addresses.
15746 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15748 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15749 pool references in UNSPEC_LTREL_OFFSET.
15751 2011-03-04 Jan Hubicka <jh@suse.cz>
15754 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15755 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15756 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15758 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15759 cgraph_add_thunk): Add node pointers.
15760 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15761 associated to right node.
15762 (input_node): Update use of cgraph_same_body_alias
15763 and cgraph_add_thunk.
15765 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15767 * config/i386/i386.opt (mprefer-avx128): New flag.
15768 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15769 modes when the flag -mprefer-avx128 is on.
15771 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15773 * dwarf2out.c (compare_loc_operands): Fix address handling.
15775 2011-03-04 Alan Modra <amodra@gmail.com>
15777 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15779 2011-03-04 Richard Guenther <rguenther@suse.de>
15781 PR middle-end/47968
15782 * expmed.c (extract_bit_field_1): Prefer vector modes that
15783 vec_extract patterns can handle.
15785 2011-03-04 Richard Guenther <rguenther@suse.de>
15787 PR middle-end/47975
15788 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15790 2011-03-04 Richard Henderson <rth@redhat.com>
15792 * explow.c (emit_stack_save): Remove 'after' parameter.
15793 (emit_stack_restore): Likewise.
15794 * expr.h: Update to match.
15795 * builtins.c, calls.c, stmt.c: Likewise.
15796 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15797 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15798 * function.c (expand_function_end): Insert the emit_stack_save
15799 sequence before parm_birth_insn instead of after.
15801 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15803 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15804 (ssse3_pmaddubsw128): Ditto.
15805 (ssse3_pmaddubsw): Ditto.
15807 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15809 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15811 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15814 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15815 on TYPE_SIZE_UNIT if it is a DECL.
15818 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15819 first operand is not is_gimple_mem_ref_addr, try to fold it.
15820 If the operand still isn't is_gimple_mem_ref_addr, clear
15823 2011-03-03 Richard Guenther <rguenther@suse.de>
15825 PR middle-end/47283
15826 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15828 (refs_may_alias_p_1): For release branches return true if
15829 we are confused by our input.
15831 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15833 * config/s390/s390.c (s390_function_value): Rename to ...
15834 (s390_function_and_libcall_value): ... this.
15835 (s390_function_value): New function.
15836 (s390_libcall_value): New function.
15837 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15838 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15839 target macro definitions.
15840 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15842 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15844 * config/i386/freebsd64.h (CC1_SPEC): Define.
15845 * config/i386/linux64.h (CC1_SPEC): Define.
15846 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15848 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15850 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15852 * config/stormy16/stormy16.c: Include reload.h.
15853 (xstormy16_memory_move_cost): New function.
15854 (TARGET_MEMORY_MOVE_COST): Define.
15856 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15858 PR rtl-optimization/47925
15859 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15860 with side effects. Remove the more-specific check for volatile asms.
15862 2011-03-02 Alan Modra <amodra@gmail.com>
15865 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15866 toc relative addresses for valid offsets.
15868 2011-03-01 Richard Guenther <rguenther@suse.de>
15870 PR tree-optimization/47890
15871 * tree-vect-loop.c (get_initial_def_for_induction): Set
15872 related stmt properly.
15874 2011-03-01 Richard Guenther <rguenther@suse.de>
15877 * lto-streamer.c (lto_record_common_node): Also register
15878 the canonical type.
15880 2011-03-01 Richard Guenther <rguenther@suse.de>
15883 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15884 Do not stream DECL_ABSTRACT_ORIGIN.
15885 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15886 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15887 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15888 Do not stream DECL_ABSTRACT_ORIGIN.
15889 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15890 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15892 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15894 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15895 FUNCTION_VALUE_REGNO_P): Remove.
15896 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15897 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15898 Add 'outgoing' argument.
15899 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15901 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15902 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15904 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15907 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15908 (lookup_filename): Likewise.
15909 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15911 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15912 Jakub Jelinek <jakub@redhat.com>
15914 PR middle-end/47893
15915 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15916 (assign_stack_local_1): Change last argument type to int.
15917 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15918 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15919 don't record padding space into frame_space_list nor use those areas.
15920 (assign_stack_local): Adjust caller.
15921 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15922 of assign_stack_local, pass 0 as last argument.
15923 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15926 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15929 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15930 Use target address_mode and pointer_mode hooks instead of hardcoded
15931 Pmode and ptr_mode. Handle some simple cases of extending if
15932 POINTERS_EXTEND_UNSIGNED < 0.
15933 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15934 Call convert_debug_memory_address.
15935 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15936 convert_debug_memory_address.
15938 PR middle-end/46790
15939 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15940 * configure: Regenerated.
15941 * config.in: Regenerated.
15942 * varasm.c (default_function_section): Return NULL
15943 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15945 2011-02-28 Martin Jambor <mjambor@suse.cz>
15947 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15948 the description to match the printed values.
15950 2011-02-28 Richard Guenther <rguenther@suse.de>
15952 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15953 of the copied scope tree.
15955 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15957 * doc/extend.texi (Function Attributes): Avoid deeply (and
15958 wrongly) nested tables.
15960 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15962 PR middle-end/47903
15963 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15964 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15965 r isn't op0 nor op1.
15967 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15969 * config/avr/avr.md: Remove magic comment for emacs.
15971 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15974 * config/avr/avr.c (avr_option_override): Use error on bad options.
15975 (avr_help): New function.
15976 (TARGET_HELP): Define.
15978 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15981 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15982 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15984 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15986 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15987 (ARM Options): Ditto.
15988 (i386 and x86-64 Options): Ditto.
15989 (RX Options): Ditto.
15990 (SPARC Options): Ditto.
15992 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15994 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15995 FreeBSD 6 and later. Generally use cpu generic.
15997 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15999 * doc/cpp.texi: Update copyright years.
16001 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16004 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16006 2011-02-25 Jon Beniston <jon@beniston.com>
16009 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16010 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16011 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16012 (lm32_block_move_inline): Add type cast to remove warning.
16013 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16014 (gen_int_relational): Move declarations to start of function.
16016 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16018 PR tree-optimization/45470
16019 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16020 can throw internally only.
16021 * tree-vect-stmts.c (vectorizable_call): Likewise.
16023 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16025 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16026 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16027 * config/stormy16/stormy16-protos.h
16028 (xstormy16_preferred_reload_class): Remove.
16029 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16030 static. Change 'rclass' argument and return type to reg_class_t.
16031 (TARGET_PREFERRED_RELOAD_CLASS,
16032 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16034 2011-02-24 Richard Guenther <rguenther@suse.de>
16036 * lto-streamer-in.c (input_bb): Do not find referenced vars
16037 in debug statements.
16039 2011-02-23 Jason Merrill <jason@redhat.com>
16041 * common.opt (fabi-version): Document v5 and v6.
16043 2011-02-23 Richard Guenther <rguenther@suse.de>
16045 PR tree-optimization/47849
16046 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16048 2011-02-23 Jie Zhang <jie@codesourcery.com>
16050 * opts-common.c (decode_cmdline_option): Print empty string
16051 argument as "" in decoded->orig_option_with_args_text.
16052 * gcc.c (execute): Print empty string argument as ""
16053 in the verbose output.
16054 (do_spec_1): Keep empty string argument.
16056 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16058 * config.gcc: Declare score-* and crx-* obsolete.
16060 2011-02-23 Jie Zhang <jie@codesourcery.com>
16062 PR rtl-optimization/47763
16063 * web.c (web_main): Ignore naked clobber when replacing register.
16065 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16067 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16070 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16073 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16075 2011-02-22 Mike Stump <mikestump@comcast.net>
16077 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16079 * configure: Regenerate.
16081 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16083 PR rtl-optimization/46002
16084 * ira-color.c (update_copy_costs): Change class intersection
16085 test to reg_class_contents[] test of 'hard_regno'.
16087 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16089 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16090 than Driver option.
16091 * config/hpux11.opt (mt): Likewise.
16092 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16093 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16094 * config/vax/elf.opt (mno-asm-pic): Likewise.
16095 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16097 2011-02-21 Mike Stump <mikestump@comcast.net>
16100 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16101 tree so we can get save the type.
16102 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16103 for CFString instead of trying to use past the end of the builtins.
16104 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16105 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16106 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16107 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16108 Rename to darwin_builtin_cfstring.
16109 (darwin_init_cfstring_builtins): Return the built type.
16111 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16114 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16115 (_mm256_insert_epi64): Use _mm_insert_epi64.
16117 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16119 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16120 * config/stormy16/stormy16-protos.h
16121 (xstormy16_mode_dependent_address_p): Remove.
16122 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16123 Make static. Change return type to bool. Change argument type to
16124 const_rtx. Remove dead code.
16125 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16127 2011-02-21 Richard Guenther <rguenther@suse.de>
16130 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16131 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16132 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16134 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16135 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16137 2011-02-20 Richard Guenther <rguenther@suse.de>
16140 * tree.c (free_lang_data_in_decl): Clean builtins from
16141 the TU decl BLOCK_VARS.
16143 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16147 * haifa-sched.c (fix_tick_ready): Skip tick computation
16150 2011-02-19 Richard Guenther <rguenther@suse.de>
16153 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16154 Remove lazy BLOCK_VARS streaming.
16155 (lto_input_ts_block_tree_pointers): Likewise.
16156 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16158 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16160 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16162 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16164 * config/i386/biarch32.h, config/i386/mach.h,
16165 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16167 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16170 * config/i386/i386.md (peephole2 for shift and plus): Use
16171 operands[1] original mode in the first insn.
16173 2011-02-18 Mike Stump <mikestump@comcast.net>
16175 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16177 2011-02-18 Jan Hubicka <jh@suse.cz>
16179 PR middle-end/47788
16180 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16181 to zero when the function is not inlinable at all.
16183 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16185 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16186 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16187 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16188 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16189 * config/pa/t-pa64: Likewise.
16190 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16192 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16195 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16197 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16200 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16202 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16204 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16205 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16206 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16207 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16208 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16209 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16210 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16211 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16212 m32r_legitimate_address_p): New functions.
16213 * config/m32r/constraints.md (constraint "S"): Don't use
16214 STORE_PREINC_PREDEC_P.
16215 (constraint "U"): Don't use LOAD_POSTINC_P.
16217 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16219 PR rtl-optimization/46178
16220 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16221 compute ira_hard_regno_cover_class[].
16223 2011-02-18 Richard Guenther <rguenther@suse.de>
16226 * lto-streamer.h (lto_global_var_decls): Declare.
16227 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16228 statics for global var processing.
16230 2011-02-18 Richard Guenther <rguenther@suse.de>
16232 PR tree-optimization/47737
16233 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16234 edge dominance check.
16236 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16239 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16240 avoid invalid rtx sharing.
16242 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16244 * doc/cpp.texi (Obsolete Features): Add background on the
16245 origin of assertions.
16247 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16249 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16251 * config/darwin.c (output_objc_section_asm_op): Added support for
16253 (is_objc_metadata): New.
16254 (darwin_objc2_section): New.
16255 (darwin_objc1_section): New.
16256 (machopic_select_section): Added support for ABI v1 and v2.
16257 (darwin_emit_objc_zeroed): New.
16258 (darwin_output_aligned_bss): Detect objc metadata and treat it
16260 (darwin_asm_output_aligned_decl_common): Same.
16261 (darwin_asm_output_aligned_decl_local): Same.
16262 * config/darwin-sections.def: Updated for ABI v1 and v2.
16263 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16264 compiling Objective-C code for the NeXT runtime, default to using
16265 ABI version 0 for 32-bit, and version 2 for 64-bit.
16267 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16269 * common.opt (optimize_fast): New Variable.
16270 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16271 instead of local variable ofast.
16273 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16275 * doc/invoke.texi (fobjc-abi-version): Documented.
16276 (fobjc-nilcheck): Documented.
16277 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16280 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16283 * common.opt (export-dynamic): New Driver option.
16284 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16286 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16288 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16290 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16291 Jan Hubicka <jh@suse.cz>
16295 * cfgexpand.c (account_used_vars_for_block): Remove.
16296 (estimated_stack_frame_size): Use referenced vars.
16297 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16298 that were referenced in the original function. Test src_fn
16299 rather than cfun. Drop redundant get_var_ann.
16300 (setup_one_parameter): Drop redundant get_var_ann.
16301 (declare_return_variable): Likewise.
16302 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16303 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16304 * ipa-inline.c (compute_inline_parameters): Do not compute
16305 disregard_inline_limits here.
16306 (compute_inlinable_for_current, pass_inlinable): New.
16307 (pass_inline_parameters): Require PROP_referenced_vars.
16308 * cgraphunit.c (cgraph_process_new_functions): Don't run
16309 compute_inline_parameters explicitly unless function is in SSA form.
16310 (cgraph_analyze_function): Set .disregard_inline_limits.
16311 * tree-sra.c (convert_callers): Compute inliner parameters
16312 only for functions already in SSA form.
16314 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16316 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16317 -mlittle-endian-data.
16319 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16321 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16322 -mno-fpu, not -fpu and -no-fpu.
16323 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16324 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16326 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16329 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16330 input reload with PLUS RTX.
16332 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16334 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16335 of InverseVar(MDMX).
16337 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16339 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16342 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16344 * config/mn10300/mn10300.opt (mno-crt0): New.
16346 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16348 * config/m68k/uclinux.opt (static-libc): New Driver option.
16350 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16352 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16354 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16356 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16357 %{muser-extend-enabled}.
16359 2011-02-16 Richard Guenther <rguenther@suse.de>
16361 PR tree-optimization/47738
16362 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16363 the TODO from tree_predictive_commoning.
16365 2011-02-15 Jeff Law <law@redhat.com>
16368 2011-01-25 Jeff Law <law@redhat.com>
16370 PR rtl-optimization/37273
16371 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16372 handle them like argument loads from stack slots. Do not double
16373 count memory for memory constants and argument loads from stack slots.
16375 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16377 PR middle-end/47725
16378 * combine.c (cant_combine_insn_p): Revert the last change.
16380 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16383 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16384 mode for vector constants. Remove code that checks for TImode.
16386 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16390 * cgraph.h (compute_inline_parameters): Return void.
16391 * ipa-inline.c (compute_inline_parameters): Adjust.
16393 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16397 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16399 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16400 * ipa-inline.c (compute_inline_parameters): Adjust.
16402 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16406 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16407 Adjust all users. Pass FN to...
16408 * tree-flow-inline.h (first_referenced_var): ... this. Add
16410 * ipa-struct-reorg.c: Adjust.
16411 * tree-dfa.c: Adjust.
16412 * tree-into-ssa.c: Adjust.
16413 * tree-sra.c: Adjust.
16414 * tree-ssa-alias.c: Adjust.
16415 * tree-ssa-live.c: Adjust.
16416 * tree-ssa.c: Adjust.
16417 * tree-ssanames.c: Adjust.
16418 * tree-tailcall.c: Adjust.
16420 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16424 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16425 Adjust all callers.
16426 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16427 * tree-flow-inline.h: Adjust.
16428 * gimple-pretty-print.c: Adjust.
16429 * tree-into-ssa.c: Adjust.
16430 * tree-ssa.c: Adjust.
16431 * cfgexpand.c: Adjust.
16433 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16435 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16436 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16437 (EXTRA_CONSTRAINT): Delete.
16438 * config/iq2000/constraints.md: New file.
16439 * config/iq2000/iq2000.md: Include it.
16440 (define_insn ""): Delete.
16441 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16442 unsupported constraint letters from patterns.
16443 (call_value, call_value_internal1): Likewise.
16444 (call_value_multiple_internal1): Likewise.
16446 2011-02-15 Nick Clifton <nickc@redhat.com>
16448 * config/mn10300/mn10300.c: Include tm-constrs.h.
16449 (struct liw_data): New data structure describing an LIW candidate
16451 (extract_bundle): Use struct liw_data. Allow small integer
16452 operands for some instructions.
16453 (check_liw_constraints): Use struct liw_data. Remove swapped
16454 parameter. Add comments describing the checks. Fix bug when
16455 assigning the source of liw1 to the source of liw2.
16456 (liw_candidate): Delete. Code moved into extract_bundle.
16457 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16459 * config/mn10300/predicates.md (liw_operand): New predicate.
16460 Allows registers and small integer constants.
16461 * config/mn10300/constraints.md (O): New constraint. Accetps
16462 integers in the range -8 to +7 inclusive.
16463 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16464 for moving a small integer into a register. Give this alternative
16466 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16467 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16468 using the J,K,L and M constraints,
16469 (liw): Remove SI mode on second operands to allow for HI and QI
16471 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16474 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16476 PR middle-end/47725
16477 * combine.c (cant_combine_insn_p): Check zero/sign extended
16480 2011-02-15 Richard Guenther <rguenther@suse.de>
16482 PR tree-optimization/47743
16483 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16484 for a non-type-compatible VN lookup bail out.
16486 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16488 * config/fr30/constraints.md: New file.
16489 * config/fr30/fr30.md: Include it.
16490 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16491 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16492 (EXTRA_CONSTRAINT): Delete.
16494 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16496 * config/frv/constraints.md: New file.
16497 * config/frv/predicates.md: Include it.
16498 * config/frv/frv.c (reg_class_from_letter): Delete.
16499 (frv_option_override): Don't initialize it.
16500 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16501 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16502 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16503 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16504 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16505 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16506 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16507 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16508 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16509 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16510 (REG_CLASS_FROM_CONSTRAINT): Delete.
16512 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16514 PR middle-end/47581
16515 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16516 if frame size is 0 in a leaf function.
16518 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16521 * config/alpha/host-osf.c: New file.
16522 * config/alpha/x-osf: New file.
16523 * config.host (alpha*-dec-osf*): Use it.
16525 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16527 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16528 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16529 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16530 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16532 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16534 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16536 * config/stormy16/constraints.md: New file.
16537 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16538 Use satisfies_constraint_Q and satisfies_constraint_R.
16539 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16541 (xstormy16_legitiamte_address_p): Declare.
16542 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16543 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16544 (EXTRA_CONSTRAINT): Delete.
16545 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16547 (xstormy16_extra_constraint_p): Delete.
16549 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16551 PR tree-optimization/46494
16552 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16553 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16554 (pass_rtl_loop_done): Add TODO_verify_flow.
16555 * fwprop.c (pass_rtl_fwprop): Likewise.
16556 * modulo-sched.c (pass_sms): Likewise.
16557 * tree-ssa-dom.c (pass_dominator): Likewise.
16558 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16559 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16560 (pass_tree_loop_done): Likewise.
16561 * tree-ssa-pre.c (execute_pre): Likewise.
16562 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16563 * tree-ssa-sink.c (pass_sink_code): Likewise.
16564 * tree-vrp.c (pass_vrp): Likewise.
16566 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16568 * config/v850/constraints.md: New file.
16569 * config/v850/v850.md: Include it.
16570 * config/v850/predicates.md (reg_or_0_operand): Use
16571 satisfies_constraint_G.
16572 (special_symbolref_operand): Use satisfies_constraint_K.
16573 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16574 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16575 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16576 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16577 (EXTRA_CONSTRAINT): Delete.
16578 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16579 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16580 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16582 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16585 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16588 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16590 * config/mcore/constraints.md: New file.
16591 * config/mcore/mcore.md: Include it.
16592 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16593 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16594 (REG_CLASS_FROM_LETTER): Delete.
16595 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16596 insn_const_int_ok_for_constraint.
16597 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16598 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16599 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16600 (EXTRA_CONSTRAINT): Delete.
16602 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16605 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16606 (IS_SIGHANDLER): Define.
16607 (sparc64_is_sighandler): New function, split off from
16608 sparc64_fallback_frame_state.
16609 (sparc_is_sighandler): New function, split off from
16610 sparc_fallback_frame_state.
16611 (sparc64_fallback_frame_state): Merge with ...
16612 (sparc_fallback_frame_state): ... this into ...
16613 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16614 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16615 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16616 stack instead of hardcoded offsets.
16618 2011-02-14 Andriy Gapon <avg@freebsd.org>
16621 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16623 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16625 * configure: Regenerate.
16627 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16630 * gcc.c (asm_options): Correct spec matching --target-help.
16632 2011-02-12 Martin Jambor <mjambor@suse.cz>
16634 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16635 to gimple call error.
16637 2011-02-12 Mike Stump <mikestump@comcast.net>
16639 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16640 comments in backslash regions.
16642 2011-02-12 Mike Stump <mikestump@comcast.net>
16643 Jakub Jelinek <jakub@redhat.com>
16644 Iain Sandoe <iains@gcc.gnu.org>
16647 * dwarf2out.c (output_cfa_loc): When required, apply the
16648 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16649 (output_loc_sequence): Likewise.
16650 (output_loc_operands_raw): Likewise.
16651 (output_loc_sequence_raw): Likewise.
16652 (output_cfa_loc): Likewise.
16653 (output_loc_list): Suppress register number adjustment when
16654 calling output_loc_sequence()
16655 (output_die): Likewise.
16657 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16659 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16661 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16662 xtensa_memory_move_cost): New functions.
16663 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16665 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16668 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16669 in the current directory.
16670 * configure: Rebuilt.
16672 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16674 * config/darwin.c (darwin_override_options): Add a hunk missed
16675 from the commit of r168571. Trim comment line lengths and
16676 correct indents of the preceding block.
16678 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16680 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16683 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16685 * common.opt (nostartfiles): New Driver option.
16687 2011-02-11 Xinliang David Li <davidxl@google.com>
16689 PR tree-optimization/47707
16690 * tree-chrec.c (convert_affine_scev): Keep type precision.
16692 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16694 PR tree-optimization/47420
16695 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16697 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16699 PR rtl-optimization/47614
16700 * rtl.h (check_for_inc_dec): Declare.
16701 * dse.c (check_for_inc_dec): Externalize...
16702 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16703 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16705 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16708 * gcc.c (main): Do not compile inputs if there were errors in
16710 * opts-common.c (read_cmdline_option): Check for wrong language
16711 after other error checks.
16713 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16715 * cgraph.c: Fix comment typos.
16716 * cgraph.h: Likewise.
16717 * cgraphunit.c: Likewise.
16718 * ipa-cp.c: Likewise.
16719 * ipa-inline.c: Likewise.
16720 * ipa-prop.c: Likewise.
16721 * ipa-pure-const.c: Likewise.
16722 * ipa-ref.c: Likewise.
16723 * ipa-reference.c: Likewise.
16725 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16728 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16730 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16733 * doc/sourcebuild.texi (Require Support): Document
16734 dg-require-ascii-locale.
16736 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16738 * doc/lto.texi (Write summary): Fix missing parentheses.
16740 2011-02-10 DJ Delorie <dj@redhat.com>
16742 * config/m32c/m32c.c (m32c_option_override): Disable
16743 -fcombine-stack-adjustments until flag value tracking and compare
16744 optimization can be rewritten.
16746 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16748 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16750 (PROCESSOR_DEFAULT64): Likewise.
16752 2011-02-10 Richard Henderson <rth@redhat.com>
16754 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16755 change from 2011-02-03.
16756 * config/rx/rx.c (flags_from_code): Likewise.
16757 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16758 is valid, n/pz otherwise.
16759 (rx_select_cc_mode): Return CCmode if Y is not zero.
16761 2011-02-10 Richard Guenther <rguenther@suse.de>
16763 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16765 2011-02-10 Richard Guenther <rguenther@suse.de>
16767 PR tree-optimization/47677
16768 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16770 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16773 * combine.c (make_compound_operation): Only change shifts into
16774 multiplication for SCALAR_INT_MODE_P.
16776 2011-02-10 Jie Zhang <jie@codesourcery.com>
16780 2011-02-05 Jie Zhang <jie@codesourcery.com>
16782 * web.c (entry_register): Don't clobber the number of the
16783 first uninitialized reference in used[].
16785 2011-02-09 Richard Guenther <rguenther@suse.de>
16787 PR tree-optimization/47664
16788 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16791 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16795 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16797 (PROCESSOR_DEFAULT64): Same.
16798 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16800 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16802 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16804 2011-02-09 Martin Jambor <mjambor@suse.cz>
16806 PR middle-end/45505
16807 * tree-sra.c (struct access): New flags grp_scalar_read and
16808 grp_scalar_write. Changed description of assignment read and write
16810 (dump_access): Dump new flags, reorder all of them.
16811 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16812 to detect multiple scalar reads.
16813 (analyze_access_subtree): Use the new scalar read write flags instead
16814 of the old flags. Adjusted comments.
16816 2011-02-08 DJ Delorie <dj@redhat.com>
16819 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16822 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16824 * config/m68k/uclinux.opt: New.
16825 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16827 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16829 * config/cris/elf.opt (sim): New Driver option.
16831 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16833 * config/xtensa/elf.opt: New.
16834 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16836 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16838 * config/vax/elf.opt: New.
16839 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16841 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16843 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16845 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16847 * config/gnu-user.opt: New.
16848 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16849 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16850 *-*-uclinux*): Use gnu-user.opt.
16852 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16854 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16855 * config/i386/gnu.h (CPP_SPEC): Likewise.
16857 2011-02-08 Ian Lance Taylor <iant@google.com>
16859 * common.opt (fcx-limited-range): Add SetByCombined flag.
16860 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16861 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16862 (fassociative-math, freciprocal-math): Likewise.
16863 (funsafe-math-optimizations): Likewise.
16864 * opth-gen.awk: Handle SetByCombined.
16865 * optc-gen.awk: Likewise.
16866 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16867 (set_unsafe_math_optimizations_flags): Likewise.
16868 * doc/options.texi (Option properties): Document SetByCombined.
16870 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16872 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16873 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16874 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16875 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16876 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16878 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16880 PR tree-optimization/46834
16881 PR tree-optimization/46994
16882 PR tree-optimization/46995
16883 * graphite-sese-to-poly.c (used_outside_reduction): New.
16884 (detect_commutative_reduction): Call used_outside_reduction.
16885 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16886 translate_scalar_reduction_to_array only when at least one
16887 loop-phi/close-phi tuple has been detected.
16889 2011-02-08 Richard Guenther <rguenther@suse.de>
16891 PR middle-end/47639
16892 * tree-vect-generic.c (expand_vector_operations_1): Update
16894 (expand_vector_operations): ... not here. Cleanup EH info
16895 and the CFG if required.
16897 2011-02-08 Richard Guenther <rguenther@suse.de>
16899 PR tree-optimization/47641
16900 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16901 require type compatibility.
16903 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16905 * gimple-low.c (lower_function_body): Don't remove the location of
16906 the return statement here.
16907 (lower_gimple_return): Do it here instead but only if the return
16908 statement is actually used twice.
16910 2011-02-08 Richard Guenther <rguenther@suse.de>
16912 PR tree-optimization/47632
16913 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16914 unused up_to_stmt parameter, return whether cfg-cleanup is
16915 necessary, remove EH info properly.
16916 (forward_propagate_into_gimple_cond): Adjust caller.
16917 (forward_propagate_into_cond): Likewise.
16918 (forward_propagate_comparison): Likewise.
16919 (tree_ssa_forward_propagate_single_use_vars): Make
16920 forward_propagate_comparison case similar to the two others.
16922 2011-02-08 Nick Clifton <nickc@redhat.com>
16924 * config/mn10300/mn10300.opt (mliw): New command line option.
16925 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16926 (liw_bundling): New automaton.
16927 (liw): New attribute.
16928 (liw_op): New attribute.
16929 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16930 (movsi_internal): Add LIW attributes.
16931 (andsi3): Likewise.
16932 (iorsi3): Likewise.
16933 (xorsi3): Likewise.
16934 (addsi3): Separate register and immediate alternatives.
16935 Add LIW attributes.
16936 (subsi3): Likewise.
16938 (aslsi3): Likewise.
16939 (lshrsi3): Likewise.
16940 (ashrsi3): Likewise.
16941 (liw): New pattern.
16942 * config/mn10300/mn10300.c (liw_op_names): New
16943 (mn10300_print_operand): Handle 'W' operand descriptor.
16944 (extract_bundle): New function.
16945 (check_liw_constraints): New function.
16946 (liw_candidate): New function.
16947 (mn10300_bundle_liw): New function.
16948 (mn10300_reorg): New function.
16949 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16950 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16951 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16952 __LIW__ or __NO_LIW__.
16953 * doc/invoke.texi: Describe the -mliw command line option.
16955 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16957 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16958 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16959 pthread_mutex_unlock): Remove.
16960 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16961 * config/pa/t-pa64: Likewise.
16962 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16963 shared libc if not linking against libpthread.
16964 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16966 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16969 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16970 on 10.6 and later to ensure that we always use the unwinder from
16971 the system. Only add -no_compact_unwind when tarteting darwin
16974 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16977 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16978 (vec_interleave_lowv2sf): Ditto.
16979 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16980 (vec_extract_oddv2sf): Ditto.
16982 2011-02-07 Mike Stump <mikestump@comcast.net>
16985 Add __ieee_divdc3 entry point.
16986 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16988 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16989 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16990 * config/darwin.c (darwin_rename_builtins): Add.
16991 * config/darwin-protos.h (darwin_rename_builtins): Add.
16993 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16996 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16999 2011-02-07 Mike Stump <mikestump@comcast.net>
17001 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17003 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17006 * config/avr/libgcc.S (exit): Move .endfunc
17008 2011-02-07 Richard Guenther <rguenther@suse.de>
17010 PR tree-optimization/47615
17011 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17012 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17013 (run_scc_vn): Initialize it.
17014 (visit_reference_op_load): Use it.
17015 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17017 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17019 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17020 DImode trapping arithmetic libfuncs.
17022 2011-02-07 Richard Guenther <rguenther@suse.de>
17024 PR tree-optimization/47621
17025 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17027 (execute_update_addresses_taken): ... here. Make it more
17028 conservative in what we accept.
17030 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17032 * config/sparc/freebsd.h (ASM_SPEC): Define.
17033 * config/sparc/vxworks.h (ASM_SPEC): Define.
17035 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17037 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17039 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17041 * doc/invoke.texi: Remove reference to compiler internals from
17042 user documentation.
17044 * reg-notes.def: Remove REG_VALUE_PROFILE.
17045 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17047 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17049 PR middle-end/47610
17050 * varasm.c (default_section_type_flags): If decl is NULL,
17051 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17053 2011-02-05 Jie Zhang <jie@codesourcery.com>
17056 * web.c (entry_register): Don't clobber the number of the
17057 first uninitialized reference in used[].
17059 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17061 PR tree-optimization/46194
17062 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17063 (build_classic_dist_vector_1): Do not represent classic distance
17064 vectors when the access functions are variating in different loops.
17066 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17068 * config/mips/iris6.opt: New.
17069 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17071 2011-02-04 Richard Henderson <rth@redhat.com>
17072 Steve Ellcey <sje@cup.hp.com>
17075 * config/ia64/predicates.md (mux1_brcst_element): New.
17076 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17077 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17078 (ia64_unpack_sign): New.
17079 (ia64_expand_unpack): Rewrite using new routines.
17080 (ia64_expand_widen_sum): Ditto.
17081 (ia64_expand_dot_prod_v8qi): Ditto.
17082 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17083 routines, add endian check.
17084 (pmpy2_even): Rename from pmpy2_r, add endian check.
17085 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17086 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17087 (vec_widen_smult_hi_v4hi): Ditto.
17088 (vec_widen_umult_lo_v4hi): Ditto.
17089 (vec_widen_umult_hi_v4hi): Ditto.
17090 (mulv2si3): Change endian checks.
17091 (sdot_prodv4hi): Rewrite with new calls.
17092 (udot_prodv4hi): New.
17093 (vec_pack_ssat_v4hi): Add endian check.
17094 (vec_pack_usat_v4hi): Ditto.
17095 (vec_pack_ssat_v2si): Ditto.
17096 (max1_even): Rename from max1_r, add endian check.
17097 (max1_odd): Rename from max1_l, add endian check.
17098 (*mux1_rev): Format change.
17099 (*mux1_mix): Ditto.
17100 (*mux1_shuf): Ditto.
17101 (*mux1_alt): Ditto.
17102 (*mux1_brcst_v8qi): Use new predicate.
17103 (vec_extract_evenv8qi): Remove endian check.
17104 (vec_extract_oddv8qi): Ditto.
17105 (vec_interleave_lowv4hi): Format change.
17106 (vec_interleave_highv4hi): Ditto.
17107 (mix2_even): Rename from mix2_r, add endian check.
17108 (mix2_odd): Rename from mux2_l, add endian check.
17109 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17110 (vec_extract_evenodd_helper): Format change.
17111 (vec_extract_evenv4hi): Remove endian check.
17112 (vec_extract_oddv4hi): Remove endian check.
17113 (vec_interleave_lowv2si): Format change.
17114 (vec_interleave_highv2si): Format change.
17115 (vec_initv2si): Remove endian check.
17116 (vecinit_v2si): Add endian check.
17117 (reduc_splus_v2sf): Add endian check.
17118 (reduc_smax_v2sf): Ditto.
17119 (reduc_smin_v2sf): Ditto.
17120 (vec_initv2sf): Remove endian check.
17121 (fpack): Add endian check.
17122 (fswap): Add endian check.
17123 (vec_interleave_highv2sf): Add endian check.
17124 (vec_interleave_lowv2sf): Add endian check.
17125 (fmix_lr): Add endian check.
17126 (vec_setv2sf): Format change.
17127 (*vec_extractv2sf_0_be): Use shift to extract operand.
17128 (*vec_extractv2sf_1_be): New.
17129 (vec_pack_trunc_v4hi): Add endian check.
17130 (vec_pack_trunc_v2si): Format change.
17132 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17134 PR inline-asm/23200
17135 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17136 do bb, locus and block comparison and disallow loads if it is not set.
17137 (stmt_is_replaceable_p): New function.
17138 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17140 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17141 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17143 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17145 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17147 * config/rs6000/xilinx.opt: New.
17148 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17150 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17152 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17154 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17156 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17157 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17158 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17159 secondary_reload_info, xtensa_secondary_reload): Remove.
17160 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17161 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17162 (xtensa_preferred_reload_class): Make static. Change return and
17163 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17164 Use CONST_DOUBLE_P predicate.
17165 (xtensa_preferred_output_reload_class): New function.
17166 (xtensa_secondary_reload): Make static.
17168 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17170 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17171 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17172 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17174 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17176 PR middle-end/31490
17177 * output.h (SECTION_RELRO): Define.
17178 (SECTION_MACH_DEP): Adjust.
17179 (get_variable_section): New prototype.
17180 * varpool.c (varpool_finalize_named_section_flags): New function.
17181 (varpool_assemble_pending_decls): Call it.
17182 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17183 * cgraphunit.c (cgraph_output_in_order): Call
17184 varpool_finalize_named_section_flags.
17185 * varasm.c (get_section): Allow section flags conflicts between
17186 relro and read-only sections if the section hasn't been declared yet.
17187 Set SECTION_OVERRIDE after diagnosing section type conflict.
17188 (get_variable_section): No longer static.
17189 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17190 readonly sections that need relocations.
17191 (decl_readonly_section_1): New function.
17192 (decl_readonly_section): Use it.
17195 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17196 Steve Ellcey <sje@cup.hp.com>
17198 PR middle-end/31490
17199 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17200 if section attribute used.
17202 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17204 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17205 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17206 (darwin_init_sections): Remove assertion.
17208 2011-02-03 Nick Clifton <nickc@redhat.com>
17210 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17212 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17213 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17214 instead of "n" and "pz".
17215 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17218 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17221 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17222 fma, expand FMA_EXPR as fma{,f,l} call.
17225 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17226 copy them into a unsigned char variable and pass address of it to
17227 lto_output_data_stream.
17230 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17231 around backend_init_target and lang_dependent_init_target calls.
17232 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17233 (verify_cgraph_node): Don't call set_cfun here. Use
17234 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17235 Set error_found for incorrectly represented calls to thunks.
17237 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17240 PR rtl-optimization/43494
17241 * rtl.h (for_each_inc_dec_fn): New type.
17242 (for_each_inc_dec): Declare.
17243 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17244 (for_each_inc_dec_find_inc_dec): New fn.
17245 (for_each_inc_dec_find_mem): New fn.
17246 (for_each_inc_dec): New fn.
17247 * dse.c (struct insn_size): Remove.
17248 (replace_inc_dec, replace_inc_dec_mem): Remove.
17249 (emit_inc_dec_insn_before): New fn.
17250 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17251 (canon_address): Pass mem modes to cselib_lookup.
17252 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17253 (cselib_lookup_from_insn): Likewise.
17254 (cselib_subst_to_values): Likewise.
17255 * cselib.c (find_slot_memmode): New var.
17256 (cselib_find_slot): New fn. Use it instead of
17257 htab_find_slot_with_hash everywhere.
17258 (entry_and_rtx_equal_p): Use find_slot_memmode.
17259 (autoinc_split): New fn.
17260 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17261 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17262 Deal with autoinc. Special-case recursion into MEMs.
17263 (cselib_hash_rtx): Likewise.
17264 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17265 address and MEM modes.
17266 (cselib_subst_to_values): Add memmode, pass it on.
17268 (cselib_lookup): Add memmode argument, pass it on.
17269 (cselib_lookup_from_insn): Add memmode.
17270 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17271 (struct cselib_record_autoinc_data): New.
17272 (cselib_record_autoinc_cb): New fn.
17273 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17274 mode to cselib_lookup. Reset autoinced REGs here instead of...
17275 (cselib_process_insn): ... here.
17276 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17278 (add_uses): Likewise, also to cselib_subst_to_values.
17279 (add_stores): Likewise.
17280 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17281 cselib_subst_to_values.
17282 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17283 * gcse.c (do_local_cprop): Adjusted.
17284 * postreload.c (reload_cse_simplify_set): Adjusted.
17285 (reload_cse_simplify_operands): Adjusted.
17286 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17288 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17290 PR tree-optimization/45122
17291 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17292 unsafe assumptions when there's more than one loop exit.
17294 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17297 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17298 Document using vector double with the load/store builtins, and
17299 that the load/store builtins always use Altivec instructions.
17301 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17302 to use altivec memory instructions, even on VSX.
17303 (vector_altivec_store_<mode>): Ditto.
17305 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17308 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17309 V2DF, V2DI support to load/store overloaded builtins.
17311 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17312 altivec load/store builtins for V2DF/V2DI types.
17314 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17315 set avoid indexed addresses on power6 if -maltivec.
17316 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17317 vector_altivec_load/vector_altivec_store builtins.
17318 (altivec_expand_st_builtin): Ditto.
17319 (altivec_expand_builtin): Add VSX memory builtins.
17320 (rs6000_init_builtins): Add V2DI types to internal types.
17321 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17322 load/store builtins.
17323 (rs6000_address_for_altivec): Insure memory address is appropriate
17326 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17327 vec_vsx_ld and vec_vsx_st.
17328 (vsx_store_<mode>): Ditto.
17330 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17331 variables to hold long long types for VSX vector memory builtins.
17332 (RS6000_BTI_unsigned_long_long): Ditto.
17333 (long_long_integer_type_internal_node): Ditti.
17334 (long_long_unsigned_type_internal_node): Ditti.
17336 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17337 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17338 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17340 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17342 (vec_vsx_st): Ditto.
17344 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17346 * config/pa/pa-hpux10.opt: New.
17347 * config/hpux11.opt (pthread): New Driver option.
17348 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17349 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17351 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17353 * config/ia64/vms.opt: New.
17354 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17356 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17359 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17360 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17361 generator functions.
17362 (vsx_floatuns<VSi><mode>2): Ditto.
17363 (vsx_fix_trunc<mode><VSi>2): Ditto.
17364 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17366 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17368 * config/i386/djgpp.opt (posix): New Driver option.
17370 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17372 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17373 Move to the unsupported targets list.
17375 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17377 PR rtl-optimization/47525
17378 * df-scan.c: Update copyright years.
17379 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17380 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17382 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17384 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17385 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17386 (ASM_OUTPUT_ASCII): Remove.
17387 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17389 2011-02-02 Jeff Law <law@redhat.com>
17391 PR middle-end/47543
17392 * reload.c (find_reloads_address): Handle reg+d address where both
17393 components are invalid by reloading the entire address.
17395 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17396 Richard Guenther <rguenther@suse.de>
17398 PR tree-optimization/40979
17400 * passes.c (init_optimization_passes): After LIM call copy_prop
17401 and DCE to clean up.
17402 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17404 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17406 PR tree-optimization/47576
17407 PR tree-optimization/47555
17408 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17409 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17410 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17411 * tree-scalar-evolution.c (follow_ssa_edge): Use
17412 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17414 2011-02-02 Richard Guenther <rguenther@suse.de>
17416 PR tree-optimization/47566
17417 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17419 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17423 * tree-inline.c (declare_return_variable): Remove unused caller
17428 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17429 * cfgexpand.c (account_used_vars_for_block): Use them.
17430 * tree-nrv.c (tree_nrv): Likewise.
17431 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17432 (dump_scope_block): Likewise.
17433 (remove_unused_locals): Likewise.
17437 * tree-inline.c (declare_return_variable): Add result decl to
17438 local decls only once.
17439 * gimple-low.c (record_vars_into): Mark newly-created variables
17442 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17448 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17450 (no_real_insns_p, schedule_block, set_priorities): Drop special
17451 treatment of boundary debug insns.
17452 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17453 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17454 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17455 (BOUNDARY_DEBUG_INSN_P): Likewise.
17456 (SCHEDULE_DEBUG_INSN_P): Likewise.
17457 * sched-rgn.c (init_ready_list): Drop special treatment of
17458 boundary debug insns.
17459 * final.c (rest_of_clean_state): Clear notes' BB.
17461 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17463 * config/openbsd.opt (assert=): New Driver option.
17465 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17467 * config/i386/nto.opt: New.
17468 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17470 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17472 * config/i386/netware.opt: New.
17473 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17475 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17477 * config/interix.opt (posix): New Driver option.
17479 2011-02-01 DJ Delorie <dj@redhat.com>
17481 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17483 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17486 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17488 PR tree-optimization/47561
17489 * toplev.c (process_options): Print the Graphite flags. Add
17490 flag_loop_flatten to the list of options requiring Graphite.
17492 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17494 * config/i386/cygming.opt (posix): New Driver option.
17496 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17498 * config/arm/vxworks.opt: New.
17499 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17501 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17503 * config/alpha/elf.opt: New.
17504 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17505 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17507 2011-02-01 Richard Guenther <rguenther@suse.de>
17509 PR tree-optimization/47559
17510 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17511 store-motion on references that can throw.
17513 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17515 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17516 * tree-pass.h (TDF_CSELIB): New macro.
17517 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17518 cselib_lookup): Check for it rather than for TDF_DETAILS.
17520 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17523 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17524 is HOST_BIT_BUCKET.
17526 * opts.c (finish_options): Don't add x_aux_base_name if it is
17529 2011-02-01 Richard Guenther <rguenther@suse.de>
17531 PR tree-optimization/47555
17533 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17535 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17537 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17540 * config/lm32/t-lm32: Add multilib for all CPU options.
17542 2011-02-01 Richard Guenther <rguenther@suse.de>
17544 PR tree-optimization/47541
17545 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17546 sure to have a field at offset zero.
17548 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17550 * config/arc/arc.opt (EB, EL): New Driver options.
17552 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17554 * config/alpha/osf5.opt: New.
17555 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17557 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17559 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17561 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17563 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17564 -floop-interchange.
17565 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17566 is an alias of -floop-interchange and that it requires the
17567 Graphite infrastructure.
17568 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17569 flag_loop_interchange based on the value of flag_tree_loop_linear.
17571 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17572 Richard Guenther <rguenther@suse.de>
17574 PR tree-optimization/47538
17575 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17576 type instead of r1type, except for comparisons. For right
17577 shifts and comparisons punt if there are mismatches in
17578 sizetype vs. non-sizetype types.
17580 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17582 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17585 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17587 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17589 * configure: Regenerate.
17591 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17593 * configure.ac (gcc_cv_ld_static_option): Define.
17594 (gcc_cv_ld_dynamic_option): Define.
17595 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17597 (HAVE_LD_STATIC_DYNAMIC): Update message.
17598 (LD_STATIC_OPTION): Define.
17599 (LD_DYNAMIC_OPTION): Define.
17600 * configure: Regenerate.
17601 * config.in: Regenerate.
17602 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17603 HAVE_LD_STATIC_DYNAMIC]: Use them.
17605 2011-01-31 Nick Clifton <nickc@redhat.com>
17607 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17608 registers inside interrupt handlers if the handler is not a leaf
17611 2011-01-31 Nick Clifton <nickc@redhat.com>
17613 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17614 reg_renumber returning an INVALID_REGNUM.
17616 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17619 * doc/install.texi: Document host options discarded when cross
17620 configuring target libraries.
17622 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17625 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17628 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17630 (no_real_insns_p, schedule_block, set_priorities): Drop special
17631 treatment of boundary debug insns.
17632 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17633 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17634 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17635 (BOUNDARY_DEBUG_INSN_P): Likewise.
17636 (SCHEDULE_DEBUG_INSN_P): Likewise.
17637 * sched-rgn.c (init_ready_list): Drop special treatment of
17638 boundary debug insns.
17639 * final.c (rest_of_clean-state): Clear notes' BB.
17641 2011-01-31 Alan Modra <amodra@gmail.com>
17643 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17644 toc relative expressions as we do in print_operand_address.
17646 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17648 * doc/extend.texi: Follow spelling conventions.
17649 * doc/invoke.texi: Fix a typo.
17651 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17653 * config/hpux11.opt: New.
17654 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17655 ia64*-*-hpux*): Use hpux11.opt.
17657 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17659 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17662 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17664 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17667 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17669 * doc/install.texi (Binaries): Remove outdated reference for
17670 Motorola 68HC11/68HC12 downloads.
17672 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17674 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17677 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17680 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17683 2011-01-28 Ahmad Sharif <asharif@google.com>
17685 * value-prof.c (check_counter): Corrected error message.
17687 2011-01-29 Jie Zhang <jie@codesourcery.com>
17689 * config/arm/arm.c (arm_legitimize_reload_address): New.
17690 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17691 arm_legitimize_reload_address.
17692 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17694 2011-01-28 Ian Lance Taylor <iant@google.com>
17696 * godump.c (go_define): Ignore macros whose definitions include
17697 two adjacent operands.
17699 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17702 * varasm.c (force_const_mem): Store copy of x in desc->constant
17703 instead of x itself.
17704 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17705 itself into REG_EQUAL note.
17707 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17709 * config/freebsd.opt (posix, rdynamic): New Driver options.
17711 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17713 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17714 -Bstatic/-Bdynamic.
17715 * configure: Regenerate.
17717 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17719 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17720 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17722 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17724 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17725 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17726 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17727 (s390_preferred_reload_class): Make static. Change return and
17728 'rclass' argument type to reg_class_t.
17730 2011-01-27 Jan Hubicka <jh@suse.cz>
17732 PR middle-end/46949
17733 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17734 (process_function_and_variable_attributes): Check defined weakrefs.
17736 2011-01-27 Martin Jambor <mjambor@suse.cz>
17738 PR tree-optimization/47228
17739 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17740 build_ref_for_offset.
17742 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17744 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17746 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17748 PR rtl-optimization/46856
17749 * postreload.c (reload_combine_recognize_const_pattern): Do not
17750 separate cc0 setter and user on cc0 targets.
17752 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17755 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17756 passed a VOID_TYPE expression, immediately emit an error and
17757 return error_mark_node.
17759 2011-01-26 Jeff Law <law@redhat.com>
17761 PR rtl-optimization/47464
17762 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17763 rather than may_trap_p as needed.
17765 2011-01-26 DJ Delorie <dj@redhat.com>
17767 PR rtl-optimization/46878
17768 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17769 setter/user dependency as well.
17771 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17773 PR rtl-optimization/44469
17774 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17775 after removing trivially dead basic blocks.
17777 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17779 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17780 * config/frv/frv.h (LINK_SPEC): Likewise.
17781 * config/i386/netware.h (LINK_SPEC): Likewise.
17782 * config/m68k/linux.h (ASM_SPEC): Likewise.
17783 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17784 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17785 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17786 * config/sparc/linux.h (ASM_SPEC): Likewise.
17787 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17788 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17790 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17792 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17793 * config/frv/frv.h (ASM_SPEC): Likewise.
17794 * config/m68k/linux.h (ASM_SPEC): Likewise.
17795 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17796 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17797 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17798 * config/sparc/linux.h (ASM_SPEC): Likewise.
17799 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17800 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17802 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17804 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17805 * config/frv/frv.h (LINK_SPEC): Likewise.
17806 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17808 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17810 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17811 * config/frv/frv.h (ASM_SPEC): Likewise.
17812 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17813 * config/m68k/linux.h (ASM_SPEC): Likewise.
17814 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17815 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17816 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17817 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
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.
17821 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17823 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17826 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17828 (vec_extract_evenodd_help): Ditto.
17829 (vec_extract_evenv4hi): Ditto.
17830 (vec_extract_oddv4hi): Ditto.
17831 (vec_interleave_lowv2si): Ditto.
17832 (vec_interleave_highv2si): Ditto.
17833 (vec_extract_evenv2si): Ditto.
17834 (vec_extract_oddv2si: Ditto.
17835 (vec_pack_trunc_v2si): Ditto.
17837 2011-01-22 Jan Hubicka <jh@suse.cz>
17840 * cgraph.h (cgraph_local_info): New field can_change_signature.
17841 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17842 signature can change.
17843 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17845 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17846 (cgraph_function_versioning): We can not change signature of functions
17847 that don't allow that.
17848 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17849 (lto_input_node): Likewise.
17850 * ipa-inline.c (compute_inline_parameters): Compute
17851 local.can_change_signature.
17852 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17853 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17854 functions that can not change signature.
17855 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17856 init_cumulative_args): Do not use local calling conventions
17857 for functions that can not change signature.
17859 2011-01-22 Jan Hubicka <jh@suse.cz>
17861 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17863 2011-01-26 Richard Guenther <rguenther@suse.de>
17865 PR tree-optimization/47190
17866 * cgraphunit.c (process_common_attributes): New function.
17867 (process_function_and_variable_attributes): Use it.
17869 2011-01-26 Richard Guenther <rguenther@suse.de>
17872 * cgraphbuild.c (record_eh_tables): Record reference to personality
17875 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17878 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17879 non-debug insns from moving up.
17881 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17884 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17885 t-dlldir{,-x} fragment for build and add it to tmake_file.
17886 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17887 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17888 * config/i386/t-dlldir: New file.
17889 (SHLIB_DLLDIR): Define.
17890 * config/i386/t-dlldir-x: New file.
17891 (SHLIB_DLLDIR): Define.
17892 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17893 (SHLIB_INSTALL): Use it.
17895 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17898 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17899 lower bound of the allowed Thumb-2 coprocessor load/store
17900 index range to -256. Add explaining comment.
17902 2011-01-25 Ian Lance Taylor <iant@google.com>
17904 * godump.c (go_define): Improve lexing of macro expansion to only
17905 accept expressions which match Go spec.
17907 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17910 * tree.c (handle_dll_attribute): Handle it.
17911 * doc/extend.texi (@item dllexport): Mention it.
17912 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17914 2011-01-25 Ian Lance Taylor <iant@google.com>
17916 PR tree-optimization/26854
17917 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17918 (decl_jump_unsafe): Move higher in file, with no other change.
17919 (bind): Set has_jump_unsafe_decl if appropriate.
17920 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17921 (check_earlier_gotos): Likewise.
17922 (c_check_switch_jump_warnings): Likewise.
17924 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17926 * doc/invoke.texi (Warning Options): Add missing hyphen.
17927 (-fprofile-dir): Minor grammatical fixes.
17928 (-fbranch-probabilities): Likewise.
17930 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17934 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17936 (no_real_insns_p, schedule_block, set_priorities): Drop special
17937 treatment of boundary debug insns.
17938 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17939 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17940 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17941 (BOUNDARY_DEBUG_INSN_P): Likewise.
17942 (SCHEDULE_DEBUG_INSN_P): Likewise.
17943 * sched-rgn.c (init_ready_list): Drop special treatment of
17944 boundary debug insns.
17945 * final.c (rest_of_clean-state): Clear notes' BB.
17947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17949 * Makefile.in (LAMBDA_H): Removed.
17950 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17951 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17952 lambda-trans.o, and tree-loop-linear.o.
17953 (lto-symtab.o): Remove dependence on LAMBDA_H.
17954 (tree-loop-linear.o): Remove rule.
17955 (lambda-mat.o): Same.
17956 (lambda-trans.o): Same.
17957 (lambda-code.o): Same.
17958 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17959 (tree-vect-slp.o): Same.
17960 * hwint.h (gcd): Moved here.
17961 (least_common_multiple): Same.
17962 * lambda-code.c: Removed.
17963 * lambda-mat.c: Removed.
17964 * lambda-trans.c: Removed.
17965 * lambda.h: Removed.
17966 * tree-loop-linear.c: Removed.
17967 * lto-symtab.c: Do not include lambda.h.
17968 * omega.c (gcd): Removed.
17969 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17970 * tree-data-ref.c (print_lambda_vector): Moved here.
17971 (lambda_vector_copy): Same.
17972 (lambda_matrix_copy): Same.
17973 (lambda_matrix_id): Same.
17974 (lambda_vector_first_nz): Same.
17975 (lambda_matrix_row_add): Same.
17976 (lambda_matrix_row_exchange): Same.
17977 (lambda_vector_mult_const): Same.
17978 (lambda_vector_negate): Same.
17979 (lambda_matrix_row_negate): Same.
17980 (lambda_vector_equal): Same.
17981 (lambda_matrix_right_hermite): Same.
17982 * tree-data-ref.h: Do not include lambda.h.
17983 (lambda_vector): Moved here.
17984 (lambda_matrix): Same.
17985 (dependence_level): Same.
17986 (lambda_transform_legal_p): Removed declaration.
17987 (lambda_collect_parameters): Same.
17988 (lambda_compute_access_matrices): Same.
17989 (lambda_vector_gcd): Same.
17990 (lambda_vector_new): Same.
17991 (lambda_vector_clear): Same.
17992 (lambda_vector_lexico_pos): Same.
17993 (lambda_vector_zerop): Same.
17994 (lambda_matrix_new): Same.
17995 * tree-flow.h (least_common_multiple): Removed declaration.
17996 * tree-parloops.c (lambda_trans_matrix): Moved here.
17997 (LTM_MATRIX): Same.
17998 (LTM_ROWSIZE): Same.
17999 (LTM_COLSIZE): Same.
18000 (LTM_DENOMINATOR): Same.
18001 (lambda_trans_matrix_new): Same.
18002 (lambda_matrix_vector_mult): Same.
18003 (lambda_transform_legal_p): Same.
18004 * tree-pass.h (pass_linear_transform): Removed declaration.
18005 * tree-ssa-loop.c (tree_linear_transform): Removed.
18006 (gate_tree_linear_transform): Removed.
18007 (pass_linear_transform): Removed.
18008 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18009 flag_loop_interchange.
18011 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18013 PR tree-optimization/47265
18014 PR tree-optimization/47443
18015 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18016 if name still has some uses.
18018 2011-01-25 Martin Jambor <mjambor@suse.cz>
18020 PR tree-optimization/47382
18021 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18022 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18024 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18026 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18027 sjlj_except_unwind_info.
18029 2011-01-25 Richard Guenther <rguenther@suse.de>
18031 PR tree-optimization/47426
18032 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18033 visible functions results escape.
18035 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18038 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18039 (arm_get_frame_offsets): Use it.
18041 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18042 Jakub Jelinek <jakub@redhat.com>
18044 PR tree-optimization/47271
18045 * tree-if-conv.c (bb_postdominates_preds): New.
18046 (if_convertible_bb_p): Call bb_postdominates_preds.
18047 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18048 (predicate_scalar_phi): Call bb_postdominates_preds.
18050 2011-01-25 Nick Clifton <nickc@redhat.com>
18052 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18053 * config/rx/rx.c (rx_function_value): Likewise.
18054 (rx_promote_function_mode): Likewise.
18055 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18056 in order to make it legitimate.
18057 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18058 make sure that the first operand is the same as the result register.
18059 (addsi3_unspec): Delete.
18060 (subdi3): Do not accept immediate operands.
18061 (subdi3_internal): Likewise.
18063 2011-01-25 Jeff Law <law@redhat.com>
18065 PR rtl-optimization/37273
18066 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18067 handle them like argument loads from stack slots. Do not double
18068 count memory for memory constants and argument loads from stack slots.
18070 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18072 PR tree-optimization/47427
18073 PR tree-optimization/47428
18074 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18075 coalesce if the new root var would be TREE_READONLY.
18077 2011-01-25 Richard Guenther <rguenther@suse.de>
18079 PR middle-end/47414
18080 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18081 correct type for TBAA.
18083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18085 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18086 (close_phi_written_to_memory): Call for_each_index with
18087 dr_indices_valid_in_loop.
18089 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18091 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18092 when it is initialized.
18094 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18096 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18097 call to graphite_find_data_references_in_stmt.
18098 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18099 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18100 call to graphite_find_data_references_in_stmt.
18101 (analyze_drs_in_stmts): Same.
18102 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18103 in which the scalar analysis of indices is performed.
18104 (create_data_ref): Same. Update call to dr_analyze_indices.
18105 (find_data_references_in_stmt): Update call to create_data_ref.
18106 (graphite_find_data_references_in_stmt): Same.
18107 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18109 (create_data_ref): Same.
18110 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18111 call to create_data_ref.
18113 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18115 * graphite-sese-to-poly.c (build_poly_scop): Move
18116 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18118 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18120 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18121 VAR_DECL, PARM_DECL, and RESULT_DECL.
18123 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18125 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18126 in a reduction PBB.
18127 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18128 that have already been marked as PBB_IS_REDUCTION.
18130 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18132 * graphite-scop-detection.c (same_close_phi_node): New.
18133 (remove_duplicate_close_phi): New.
18134 (make_close_phi_nodes_unique): New.
18135 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18137 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18139 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18140 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18141 of both data references to be the same.
18143 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18145 * graphite-dependences.c (build_lexicographical_constraint): Remove
18146 the gdim parameter.
18147 (build_lexicographical_constraint): Adjust call to
18148 ppl_powerset_is_empty.
18149 (dependence_polyhedron): Same.
18150 (graphite_legal_transform_dr): Same.
18151 (graphite_carried_dependence_level_k): Same.
18152 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18154 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18158 * graphite-sese-to-poly.c
18159 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18160 (close_phi_written_to_memory): New.
18161 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18164 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18166 * doc/install.texi: Update the expected version number of PPL to 0.11.
18167 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18168 #if PPL_VERSION_MINOR < 11.
18170 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18172 * graphite-dependences.c: Include graphite-cloog-util.h.
18173 (new_poly_ddr): Inlined into dependence_polyhedron.
18174 (free_poly_ddr): Moved close by new_poly_ddr.
18175 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18176 Early return NULL when ppl_powerset_is_empty returns true.
18177 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18178 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18179 (graphite_legal_transform_dr): Call new_poly_ddr.
18180 (graphite_carried_dependence_level_k): Same.
18181 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18182 (dot_transformed_deps_stmt_1): Removed.
18183 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18184 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18185 (dot_deps_1): Call dot_deps_2.
18186 * Makefile.in (graphite-dependences.o): Add missing dependence on
18187 graphite-cloog-util.h.
18189 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18191 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18192 (build_lexicographical_constraint): Same.
18193 (dependence_polyhedron_1): Same.
18194 (graphite_legal_transform_dr): Same.
18195 (graphite_carried_dependence_level_k): Same.
18196 * graphite-ppl.c (ppl_powerset_is_empty): New.
18197 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18198 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18200 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18202 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18203 the "a followed by b" relation and document it.
18205 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18207 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18208 iteration when the bag of constraints is empty.
18210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18212 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18214 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18216 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18217 nest and two loop depths as parameters.
18218 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18219 lst_perfect_nestify.
18221 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18223 * graphite-dependences.c (print_pddr): Call
18224 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18226 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18228 * graphite-ppl.c (debug_gmp_value): New.
18229 * graphite-ppl.h (debug_gmp_value): Declared.
18231 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18233 * doc/install.texi: Document availability of cloog-0.16.
18235 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18237 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18238 invalid postdominance info.
18240 2011-01-24 Jan Hubicka <jh@suse.cz>
18243 * doc/extend.texi (weak pragma): Drop claim that it must
18244 appear before definition.
18245 * varasm.c (merge_weak, declare_weak): Only sanity check
18246 that DECL is not output at a time it is declared weak.
18248 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18250 * machmode.def: Fixed comments.
18252 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18254 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18256 2011-01-24 Paul Koning <ni1d@arrl.net>
18258 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18261 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18264 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18265 (block_info): Add scanned and prev.
18266 (move_or_delete_vzeroupper_2): Return if the basic block
18267 has been scanned and the upper 128bit state is unchanged
18268 from the last scan.
18269 (move_or_delete_vzeroupper_1): Return true if the exit
18271 (move_or_delete_vzeroupper): Visit basic blocks using the
18272 work-list based algorithm based on vt_find_locations in
18275 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18277 2011-01-24 Nick Clifton <nickc@redhat.com>
18279 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18280 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18281 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18282 then define __v850e1__.
18283 * doc/invoke.texi: Document -mv850es.
18285 2011-01-24 Richard Henderson <rth@redhat.com>
18287 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18288 compound unordered comparisons.
18289 * config/rx/rx.c (rx_split_fp_compare): Remove.
18290 * config/rx/rx-protos.h: Update.
18291 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18292 (cbranchsf4): Don't call rx_split_fp_compare.
18293 (*cbranchsf4): Use rx_split_cbranch.
18294 (*cmpsf): Don't accept "i" constraint.
18295 (*conditional_branch): Only valid after reload.
18296 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18298 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18301 * config/rs6000/altivec.md (vector constant splitters): Add
18302 support for creating vector single precision constants if -mvsx is
18303 used and we would create the constant using Altivec primitives.
18305 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18306 Richard Sandiford <rdsandiford@googlemail.com>
18308 PR rtl-optimization/47166
18309 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18310 mechanism for PRE_MODIFY and POST_MODIFY.
18311 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18314 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18316 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18318 2011-01-22 Jan Hubicka <jh@suse.cz>
18321 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18323 2011-01-22 Jan Hubicka <jh@suse.cz>
18325 PR tree-optimization/43884
18327 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18328 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18330 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18332 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18333 * config/s390/s390.c (s390_register_move_cost,
18334 s390_memory_move_cost): New.
18335 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18337 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18339 PR middle-end/47401
18340 * except.c (sjlj_assign_call_site_values): Move setting the
18341 crtl->uses_eh_lsda flag to ...
18342 (sjlj_mark_call_sites): ... here.
18343 (sjlj_emit_function_enter): Support NULL dispatch label.
18344 (sjlj_build_landing_pads): In a function with no landing pads
18345 that still has must-not-throw regions, generate code to register
18346 a personality function with empty LSDA.
18348 2011-01-21 Richard Henderson <rth@redhat.com>
18350 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18352 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18354 * compare-elim.c: New file.
18355 * Makefile.in (OBJS-common): Add it.
18356 (compare-elim.o): New.
18357 * common.opt (fcompare-elim): New.
18358 * opts.c (default_options_table): Add OPT_fcompare_elim.
18359 * tree-pass.h (pass_compare_elim_after_reload): New.
18360 * passes.c (init_optimization_passes): Add it.
18361 * recog.h: Protect against re-inclusion.
18362 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18363 * doc/invoke.texi (-fcompare-elim): Document it.
18364 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18365 * doc/tm.texi: Rebuild.
18367 2011-01-22 Nick Clifton <nickc@redhat.com>
18369 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18370 rx_split_fp_compare.
18372 2011-01-22 Nick Clifton <nickc@redhat.com>
18374 * config/rx/rx.md (UNSPEC_CONST): New.
18375 (deallocate_and_return): Wrap the amount popped off the stack in
18376 an UNSPEC_CONST in order to stop it being rejected by
18377 -mmax-constant-size.
18378 (pop_and_return): Add a "(return)" rtx.
18379 (call): Drop the immediate operand.
18380 (call_internal): Likewise.
18381 (call_value): Likewise.
18382 (call_value_internal): Likewise.
18383 (sibcall_internal): Likewise.
18384 (sibcall_value_internal): Likewise.
18385 (sibcall): Likewise. Generate an explicit call using
18387 (sibcall_value): Likewise.
18388 (mov<>): FAIL if a constant operand is not legitimate.
18389 (addsi3_unpsec): New pattern.
18391 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18392 (ok_for_max_constant): New function.
18393 (gen_safe_add): New function.
18394 (rx_expand_prologue): Use gen_safe_add.
18395 (rx_expand_epilogue): Likewise.
18396 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18399 2011-01-21 Jeff Law <law@redhat.com>
18401 PR tree-optimization/47053
18402 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18403 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18404 statements are deleted.
18405 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18406 is nonempty, then purge dead edges and cleanup the CFG.
18408 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18411 Temporarily revert:
18412 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18414 * tree-dfa.c (create_var_ann): Mark variable as used.
18416 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18418 PR middle-end/45566
18419 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18420 notes from other section in hot/cold partitioning even if
18421 last_action is -3. Increment call_site_base.
18423 PR rtl-optimization/47366
18424 * fwprop.c (forward_propagate_into): Return bool. If
18425 any changes are made, -fnon-call-exceptions is used and
18426 REG_EH_REGION note is present, call purge_dead_edges
18427 and return true if it purged anything.
18428 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18429 any EH edges were purged.
18431 2011-01-21 Jeff Law <law@redhat.com>
18433 PR rtl-optimization/41619
18434 * caller-save.c (setup_save_areas): Break out code to determine
18435 which hard regs are live across calls by examining the reload chains
18436 so that it is always used.
18437 Eliminate code which checked REG_N_CALLS_CROSSED.
18439 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18441 PR tree-optimization/47355
18442 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18443 NOP has non-debug uses beyond PHIs in new_bb.
18445 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18448 * cfgexpand.c (account_used_vars_for_block): Only account vars
18449 that are annotated as used.
18450 (estimated_stack_frame_size): Don't set TREE_USED.
18451 * tree-dfa.c (create_var_ann): Mark variable as used.
18453 2011-01-21 Richard Guenther <rguenther@suse.de>
18455 PR middle-end/47395
18456 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18458 2011-01-21 Richard Guenther <rguenther@suse.de>
18460 PR tree-optimization/47365
18461 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18462 (vn_reference_lookup_pieces): Adjust.
18463 (vn_reference_lookup): Likewise.
18464 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18465 (vn_reference_lookup_3): Only look through kills if in
18466 VN_WALKREWRITE mode.
18467 (vn_reference_lookup_pieces): Adjust.
18468 (vn_reference_lookup): Likewise.
18469 (visit_reference_op_load): Likewise.
18470 (visit_reference_op_store): Likewise.
18471 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18472 (compute_avail): Likewise.
18473 (eliminate): Likewise.
18475 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18477 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18478 DECL_IGNORED_P non-reg vars if they are used.
18480 PR tree-optimization/47391
18481 * varpool.c (const_value_known_p): Return false if
18484 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18487 * config/i386/i386.c (ix86_local_alignment): Handle
18488 case for va_list_type_node is nil.
18489 (ix86_canonical_va_list_type): Likewise.
18491 2011-01-21 Alan Modra <amodra@gmail.com>
18493 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18494 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18496 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18498 * config/arm/arm.md (define_attr type): Rename f_load
18499 and f_store to f_fpa_load and f_fpa_store. Update.
18500 (write_conflict): Deal with rename fallout.
18501 (*push_fp_multi): Likewise.
18502 * config/arm/fpa.md (f_load): Use f_fpa_load.
18503 (f_store): Use f_fpa_store.
18504 (*movsf_fpa): Likewise.
18505 (*movdf_fpa): Likewise.
18506 (*movxf_fpa): Likewise.
18507 (*thumb2_movsf_fpa): Likewise.
18508 (*thumb2_movdf_fpa): Likewise.
18509 (*thumb2_movxf_fpa): Likewise.
18510 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18511 f_loadd and f_stored.
18512 (*thumb2_movdi_vfp): Likewise.
18513 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18514 (*thumb2_movsi_vfp): Likewise.
18515 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18516 Use f_loads instead of f_load.
18517 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18519 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18521 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18522 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18523 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18524 (xtensa_mode_dependent_address_p): New function.
18525 (constantpool_address_p): Make static. Change return type to bool.
18526 Change argument type to const_rtx. Use CONST_INT_P predicate.
18528 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18531 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18533 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18536 * cfgexpand.c (expand_debug_expr): Instead of generating
18537 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18540 2011-01-20 Richard Guenther <rguenther@suse.de>
18542 PR middle-end/47370
18543 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18544 the pointer operand of MEM_REFs.
18546 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18548 PR tree-optimization/46130
18549 * ipa-split.c (consider_split): If return_bb contains non-virtual
18550 PHIs other than for retval or if split_function would not adjust it,
18553 2011-01-20 Richard Guenther <rguenther@suse.de>
18555 PR tree-optimization/47167
18556 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18557 Revert previous change, only avoid enumeral type changes.
18559 2011-01-19 Mike Stump <mikestump@comcast.net>
18561 * doc/tm.texi.in (BRANCH_COST): Englishify.
18562 * doc/tm.texi (BRANCH_COST): Likewise.
18564 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18567 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18568 (gen_scheduled_generic_parms_dies): New functions.
18569 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18570 generation for the end of CU compilation.
18571 (dwarf2out_finish): Generate template parameters DIEs here.
18573 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18576 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18577 debug bind stmt on merge edges.
18579 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18583 * function.c (instantiate_expr): Instantiate incoming rtl of
18584 implicit arguments, and recurse on VALUE_EXPRs.
18585 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18586 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18588 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18590 * c-parser.c (c_parser_for_statement): Initialize
18591 collection_expression.
18593 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18595 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18597 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18599 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18600 (LINK_SHLIB_SPEC): Don't use %(link_path).
18601 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18603 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18605 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18606 (NO_SHARED_LIB_SUPPORT): Remove.
18607 (LINK_SHLIB_SPEC): Remove one conditional definition.
18609 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18611 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18613 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18614 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18615 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18616 %{call_shared} and conditionals on these options not being passed.
18617 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18620 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18622 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18625 * ipa-split.c: Spelling fixes.
18627 2011-01-19 Richard Henderson <rth@redhat.com>
18629 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18630 (*mulsi3): Likewise.
18632 * longlong.h [__mn10300__] (count_leading_zeros): New.
18633 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18634 [__mn10300__] (add_ssaaaa, subddmmss): New.
18635 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18636 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18638 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18640 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18642 2011-01-19 Richard Henderson <rth@redhat.com>
18644 * config/mn10300/mn10300.md (addsi3_flags): New.
18645 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18646 (subsi3_flags, subc_internal, subdi3): New.
18647 (subdi3_internal, *subdi3_degenerate): New.
18648 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18650 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18651 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18652 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18653 * config/mn10300/mn10300-protos.h: Update.
18654 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18655 (return_ret): Likewise. Rename from return_internal_regs.
18656 (return_internal): Remove.
18658 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18659 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18660 (mn10300_legitimate_constant_p): Likewise.
18661 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18662 (mn10300_frame_size): New.
18663 (mn10300_expand_prologue): Use it.
18664 (mn10300_expand_epilogue): Likewise.
18665 (mn10300_initial_offset): Likewise.
18666 * config/mn10300/mn10300-protos.h: Update.
18667 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18668 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18669 (prologue, epilogue, return_internal): Tidy output code.
18670 (mn10300_store_multiple_operation, return): Likewise.
18671 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18672 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18673 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18674 (load_pic, am33_load_pic): New.
18675 (mn10300_load_pic0, mn10300_load_pic1): New.
18677 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18678 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18679 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18680 (cc_flags_for_mode, cc_flags_for_code): New.
18681 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18682 overflow flag is not valid. Validate that the flags we need
18683 for the comparison are valid.
18684 (mn10300_output_cmp): Remove.
18685 (mn10300_output_add): New.
18686 (mn10300_select_cc_mode): Use cc_flags_for_code.
18687 (mn10300_split_cbranch): New.
18688 (mn10300_match_ccmode): New.
18689 (mn10300_split_and_operand_count): New.
18690 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18692 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18693 (addsi3): ... here. Use mn10300_output_add.
18694 (*addsi3_flags): New.
18695 (*am33_subsi3, *mn10300_subsi3): Merge...
18696 (subsi3): ... here. Use attribute isa.
18697 (*subsi3_flags): New.
18698 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18700 (*am33_andsi3, *mn10300_andsi3): Merge...
18701 (andsi3): ... here.
18702 (*andsi3_flags): New.
18703 (andsi3 splitters): New.
18704 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18705 (iorsi3): ... here.
18706 (*iorsi3_flags): New.
18707 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18708 (xorsi3): ... here.
18709 (*xorsi3_flags): New.
18710 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18711 (one_cmplsi2): ... here.
18712 (*one_cmplsi2_flags): New.
18713 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18714 instead of "dax" in constraints. Use mn10300_split_cbranch.
18715 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18716 use matching constraints to eliminate a self-comparison.
18717 (*integer_conditional_branch): Rename from integer_conditional_branch.
18718 Use int_mode_flags to match CC_REG.
18719 (*cbranchsi4_btst, *btstsi): New.
18720 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18721 mn10300_split_cbranch.
18722 (*am33_cmpsf): Rename from am33_cmpsf.
18723 (*float_conditional_branch): Rename from float_conditional_branch.
18724 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18725 (zero_extendqisi2): ... here.
18726 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18727 (zero_extendhisi2): ... here.
18728 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18729 (extendqisi2): ... here.
18730 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18731 (extendhisi2): ... here.
18732 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18733 (ashlsi3): ... here.
18734 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18735 (lshrsi3): ... here.
18736 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18737 (ashrsi3): ... here.
18738 (consecutive add peephole): Remove.
18739 * config/mn10300/predicates.md (label_ref_operand): New.
18740 (int_mode_flags): New.
18741 (CCZN_comparison_operator): New.
18743 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18744 (throughput_42_latency_43): New reservation.
18745 (mulsidi3, umulsidi3): New expanders.
18746 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18747 the MDR register to allocation; separately allocate the low and
18748 high parts of the DImode result.
18749 (umulsidi3_internal): Similarly.
18750 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18751 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18752 (udivsi3, umodsi3): Remove.
18753 (udivmodsi4, divmodsi4): New expanders.
18754 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18755 (*divmodsi4): Simiarly.
18756 (ext_internal): New.
18758 * config/mn10300/constraints.md ("z"): New constraint.
18759 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18760 (FIXED_REGISTERS): Don't fix MDR.
18761 (CALL_USED_REGSITERS): Reformat nicely.
18762 (REG_ALLOC_ORDER): Add MDR.
18763 (enum regclass): Add MDR_REGS.
18764 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18765 (IRA_COVER_CLASSES): Add MDR_REGS.
18766 (REGNO_REG_CLASS): Handle MDR_REG.
18767 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18768 (mn10300_register_move_cost): Likewise.
18769 * config/mn10300/mn10300.md (MDR_REG): New.
18770 (*movsi_internal): Handle moves to/from MDR_REGS.
18772 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18774 (mn10300_secondary_reload): Tidy combination reload classes.
18775 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18776 addresses for AM33. Allow symbolic offsets for reg+imm.
18777 (mn10300_regno_in_class_p): New.
18778 (mn10300_legitimize_reload_address): New.
18779 * config/mn10300/mn10300.h (enum reg_class): Remove
18780 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18781 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18782 SP_OR_GENERAL_REGS.
18783 (REG_CLASS_NAMES): Update to match.
18784 (REG_CLASS_CONTENTS): Likewise.
18785 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18786 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18787 (REGNO_IN_RANGE_P): Remove.
18788 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18789 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18790 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18791 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18792 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18793 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18794 (REGNO_GENERAL_P): New.
18795 (HAVE_POST_MODIFY_DISP): New.
18796 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18797 (LEGITIMIZE_RELOAD_ADDRESS): New.
18798 * config/mn10300/mn10300-protos.h: Update.
18800 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18801 DATA_REGS for AM33 stack-pointer destination.
18802 (mn10300_preferred_output_reload_class): Likewise.
18803 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18804 into a form appropriate for ...
18805 (TARGET_SECONDARY_RELOAD): New.
18806 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18807 * config/mn10300/mn10300-protos.h: Update.
18808 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18809 reload_insi; use the "A" constraint for the scratch; handle AM33
18810 moves of sp to non-address registers.
18812 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18813 (*movqi_internal): ... here.
18814 (*am33_movhi, *mn10300_movhi): Merge into...
18815 (*movhi_internal): ... here.
18816 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18817 as the source/destination of moves from/to SP.
18818 (movsf): Only allow for AM33-2.
18819 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18820 any integer constant constraint. Only allow for AM33-2. Tidy
18821 all of the alternative outputs.
18822 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18823 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18825 (udivsi3, umodsi3): New patterns for MN103 only.
18827 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18829 * doc/tm.texi.in: Spell out that a lack of register class unions
18831 * doc/tm.texi: Regenerate.
18833 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18835 PR rtl-optimization/47337
18836 * dce.c (check_argument_store): New function.
18837 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18839 PR tree-optimization/47290
18840 * tree-eh.c (infinite_empty_loop_p): New function.
18841 (cleanup_empty_eh): Use it.
18843 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18846 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18847 (a64_expand_widen_sum): Ditto.
18848 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18849 (vec_extract_evenodd_help): Ditto.
18850 (vec_extract_evenv4hi): Ditto.
18851 (vec_extract_oddv4hi): Ditto.
18852 (vec_extract_evenv2si): Ditto.
18853 (vec_extract_oddv2si): Ditto.
18854 (vec_extract_evenv2sf): Ditto.
18855 (vec_extract_oddv2sf): Ditto.
18856 (vec_pack_trunc_v4hi: Ditto.
18857 (vec_pack_trunc_v2si): Ditto.
18858 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18859 (vec_interleave_highv8qi): Ditto.
18861 (vec_extract_oddv8qi): Ditto.
18862 (vec_interleave_lowv4hi): Ditto.
18863 (vec_interleave_highv4hi): Ditto.
18864 (vec_interleave_lowv2si): Ditto.
18865 (vec_interleave_highv2si): Ditto.
18867 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18869 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18870 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18871 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18872 (pa_c_mode_for_suffix): New.
18873 (TARGET_EXPAND_BUILTIN): Define.
18874 (TARGET_C_MODE_FOR_SUFFIX): Define.
18875 (pa_builtins): Define.
18876 (pa_init_builtins): Register __float128 type and init new support
18878 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18879 * config/pa/quadlib.c (_U_Qfcopysign): New.
18881 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18883 PR middle-end/46894
18884 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18885 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18888 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18890 PR tree-optimization/47179
18891 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18892 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18894 2011-01-18 Richard Guenther <rguenther@suse.de>
18896 PR rtl-optimization/47216
18897 * emit-rtl.c: Include tree-flow.h.
18898 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18899 of replicating it with different semantics.
18900 * Makefile.in (emit-rtl.o): Adjust.
18902 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18904 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18905 (cortex_a9_dp): Handle neon types correctly.
18907 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18909 PR rtl-optimization/47299
18910 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18911 subtarget. Use normal multiplication if both operands are constants.
18912 * expmed.c (expand_widening_mult): Don't try to optimize constant
18913 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18916 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18918 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18919 spacing after 'e.g.', typos, comma, hyphenation.
18921 2011-01-17 Richard Henderson <rth@redhat.com>
18923 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18924 (rx_restricted_mem_operand): New.
18925 (rx_shift_operand): Use register_operand.
18926 (rx_source_operand, rx_compare_operand): Likewise.
18927 * config/rx/rx.md (addsi3_flags): New expander.
18928 (adddi3): Rewrite as expander.
18929 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18930 (subsi3_flags): New expander.
18931 (subdi3): Rewrite as expander.
18932 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18934 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18935 (rx_init_builtins): Remove sat builtin.
18936 (rx_expand_builtin): Likewise.
18937 * config/rx/rx.md (ssaddsi3): New.
18938 (*sat): Rename from sat. Represent the CC_REG input.
18940 * config/rx/predicates.md (rshift_operator): New.
18941 * config/rx/rx.c (rx_expand_insv): Remove.
18942 * config/rx/rx-protos.h: Update.
18943 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18944 operand to the canonical position.
18945 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18946 (*bitclr, *bitclr_in_memory): Similarly.
18947 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18948 (insv): Retain the zero_extract in the expansion.
18950 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18951 (bswaphi2, bitinvert, revw): Likewise.
18953 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18954 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18955 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18956 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18957 (bitset, bitset_in_memory): Likewise.
18958 (bitinvert, bitinvert_in_memory): Likewise.
18959 (bitclr, bitclr_in_memory): Likewise.
18960 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18961 (rx_strend, rx_cmpstrn): Likewise.
18962 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18963 (bitop peep2 patterns): Remove.
18965 * config/rx/rx.c (rx_match_ccmode): New.
18966 * config/rx/rx-protos.h: Update.
18967 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18968 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18969 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18970 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18971 (fix_truncsfsi2, floatsisf2): Likewise.
18972 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18973 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18974 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18975 (*subsi3_flags, *xorsi3_flags): New.
18977 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18979 * config/rx/rx.c (rx_print_operand): Remove workaround for
18980 unsplit comparison operations.
18982 * config/rx/rx.md (movsicc): Split after reload.
18983 (*movsicc): Merge *movsieq and *movsine via match_operator.
18984 (*stcc): New pattern.
18986 * config/rx/rx.c (rx_float_compare_mode): Remove.
18987 * config/rx/rx.h (rx_float_compare_mode): Remove.
18988 * config/rx/rx.md (cstoresi4): Split after reload.
18989 (*sccc): New pattern.
18991 * config/rx/predicates.md (label_ref_operand): New.
18992 (rx_z_comparison_operator): New.
18993 (rx_zs_comparison_operator): New.
18994 (rx_fp_comparison_operator): New.
18995 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18996 Validate that the flags are set properly for the comparison.
18997 (rx_gen_cond_branch_template): Remove.
18998 (rx_cc_modes_compatible): Remove.
18999 (mode_from_flags): New.
19000 (flags_from_code): Rename from flags_needed_for_conditional.
19001 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19002 (rx_select_cc_mode): Likewise.
19003 (rx_split_fp_compare): New.
19004 (rx_split_cbranch): New.
19005 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19006 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19007 (*cbranchsf4): Similarly.
19008 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19009 match_operator and rx_split_cbranch.
19010 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19011 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19012 (*cmpsi): Rename from cmpsi.
19013 (*tstsi): Rename from tstsi.
19014 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19015 (*conditional_branch): Rename from conditional_branch.
19016 (*reveresed_conditional_branch): Remove.
19017 (b<code>): Remove expander.
19018 * config/rx/rx-protos.h: Update.
19020 * config/rx/rx.c (rx_compare_redundant): Remove.
19021 * config/rx/rx.md (cmpsi): Don't use it.
19022 * config/rx/rx-protos.h: Update.
19024 * config/rx/rx-modes.def (CC_F): New mode.
19025 * config/rx/rx.c (rx_select_cc_mode): New.
19026 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19027 * config/rx/rx-protos.h: Update.
19029 2011-01-17 Richard Henderson <rth@redhat.com>
19031 * except.c (dump_eh_tree): Fix stray ; after for statement.
19033 2011-01-17 Richard Guenther <rguenther@suse.de>
19035 PR tree-optimization/47313
19036 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19037 handling before copying the body. Properly deal with
19038 by-reference result in SSA form.
19040 2011-01-17 Ian Lance Taylor <iant@google.com>
19043 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19044 (struct_value_alias_set): Don't define.
19045 (sparc_option_override): Don't set sparc_sr_alias_set and
19046 struct_value_alias_set.
19047 (save_or_restore_regs): Use gen_frame_mem rather than calling
19049 (sparc_struct_value_rtx): Likewise.
19051 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19054 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19055 (_mm_maskstore_pd): Likewise.
19056 (_mm_maskload_ps): Likewise.
19057 (_mm_maskstore_ps): Likewise.
19058 (_mm256_maskload_pd): Change mask to __m256i.
19059 (_mm256_maskstore_pd): Likewise.
19060 (_mm256_maskload_ps): Likewise.
19061 (_mm256_maskstore_ps): Likewise.
19063 * config/i386/i386-builtin-types.def: Updated.
19064 (ix86_expand_special_args_builtin): Likewise.
19066 * config/i386/i386.c (bdesc_special_args): Update
19067 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19068 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19069 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19070 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19072 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19073 Use <avxpermvecmode> on mask register.
19074 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19076 2011-01-17 Olivier Hainque <hainque@adacore.com>
19077 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19078 Eric Botcazou <ebotcazou@adacore.com>
19081 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19082 if <= USHRT_MAX in 32-bit mode.
19084 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19086 * doc/install.texi (Configuration, Specific): Wrap long
19087 lines in examples. Allow line wrapping in long options
19088 and URLs where beneficial for PDF output.
19090 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19092 * config/mips/mips.c (mips_classify_symbol): Don't return
19093 SYMBOL_PC_RELATIVE for nonlocal labels.
19095 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19097 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19099 2011-01-15 Jan Hubicka <jh@suse.cz>
19101 PR tree-optimization/47276
19102 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19103 declarations as needed.
19105 2011-01-15 Martin Jambor <mjambor@suse.cz>
19107 * common.opt (fdevirtualize): New flag.
19108 * doc/invoke.texi (Option Summary): Document it.
19109 * opts.c (default_options_table): Add devirtualize flag.
19110 * ipa-prop.c (detect_type_change): Return immediately if
19111 devirtualize flag is not set.
19112 (detect_type_change_ssa): Likewise.
19113 (compute_known_type_jump_func): Likewise.
19114 (ipa_analyze_virtual_call_uses): Likewise.
19116 2011-01-14 Martin Jambor <mjambor@suse.cz>
19118 PR tree-optimization/45934
19119 PR tree-optimization/46302
19120 * ipa-prop.c (type_change_info): New type.
19121 (stmt_may_be_vtbl_ptr_store): New function.
19122 (check_stmt_for_type_change): Likewise.
19123 (detect_type_change): Likewise.
19124 (detect_type_change_ssa): Likewise.
19125 (compute_complex_assign_jump_func): Check for dynamic type change.
19126 (compute_complex_ancestor_jump_func): Likewise.
19127 (compute_known_type_jump_func): Likewise.
19128 (compute_scalar_jump_functions): Likewise.
19129 (ipa_analyze_virtual_call_uses): Likewise.
19130 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19132 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19134 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19135 * config/i386/i386.opt (msse5): New Alias.
19137 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19139 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19140 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19141 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19142 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19144 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19146 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19148 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19149 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19150 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19151 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19153 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19155 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19157 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19159 2011-01-14 Mike Stump <mikestump@comcast.net>
19161 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19162 * config/fr30/fr30.md: Likweise
19163 (movsi_push): Likewise.
19164 (movsi_pop): Likewise.
19165 (enter_func): Likewise.
19166 * config/moxie/moxie.md (movsi_push): Likewise.
19167 (movsi_pop): Likewise.
19169 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19171 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19172 %{no_archive} %{exact_version}.
19173 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19174 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19175 %{no_archive} %{exact_version}.
19176 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19177 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19178 * config/mips/vxworks.h: Likewise.
19180 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19182 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19184 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19186 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19187 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19189 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19191 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19194 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19196 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19198 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19199 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19201 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19202 Don't handle -shlib.
19204 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19206 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19207 (CC1_SPEC): Don't handle -profile.
19209 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19211 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19212 * config/mips/mips.h (CC1_SPEC): Likewise.
19214 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19216 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19217 * config/mips/mips.h (CC1_SPEC): Likewise.
19219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19221 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19222 * config/m32r/linux.h (LINK_SPEC): Likewise.
19223 * config/mips/linux.h (LINK_SPEC): Likewise.
19224 * config/mips/linux64.h (LINK_SPEC): Likewise.
19225 * config/sparc/linux.h (LINK_SPEC): Likewise.
19226 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19227 LINK_SPEC): Likewise.
19228 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19230 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19232 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19234 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19236 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19238 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19239 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19241 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19243 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19245 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19247 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19248 supports -Bstatic/-Bdynamic.
19249 * configure: Regenerate.
19251 2011-01-14 Jan Hubicka <jh@suse.cz>
19252 Jack Howarth <howarth@bromo.med.uc.edu>
19255 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19256 when checking debug_info_level. Test write_symbols instead of
19257 debug_hooks->var_location when setting flag_var_tracking_uninit.
19259 2011-01-14 Richard Guenther <rguenther@suse.de>
19261 PR tree-optimization/47179
19262 * target.def (ref_may_alias_errno): New target hook.
19263 * targhooks.h (default_ref_may_alias_errno): Declare.
19264 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19265 (default_ref_may_alias_errno): New function.
19266 * target.h (struct ao_ref_s): Declare.
19267 * tree-ssa-alias.c: Include target.h.
19268 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19269 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19270 (targhooks.o): Likewise.
19271 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19272 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19274 2011-01-14 Richard Guenther <rguenther@suse.de>
19276 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19278 2011-01-14 Richard Guenther <rguenther@suse.de>
19280 PR tree-optimization/47280
19281 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19282 return CFG changes.
19283 (tree_ssa_forward_propagate_single_use_vars): Deal with
19284 CFG changes from associate_plusminus.
19286 2011-01-14 Richard Guenther <rguenther@suse.de>
19288 PR middle-end/47281
19290 2011-01-11 Richard Guenther <rguenther@suse.de>
19292 PR tree-optimization/46076
19293 * tree-ssa.c (useless_type_conversion_p): Conversions from
19294 unprototyped to empty argument list function types are useless.
19296 2011-01-14 Richard Guenther <rguenther@suse.de>
19298 PR tree-optimization/47286
19299 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19301 2011-01-14 Martin Jambor <mjambor@suse.cz>
19303 PR middle-end/46823
19304 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19306 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19308 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19309 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19310 * config/xtensa/xtensa.c (xtensa_libcall_value,
19311 xtensa_function_value_regno_p): New functions.
19312 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19314 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19317 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19319 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19320 New function prototype.
19321 * config/i386/winnt.c (i386_pe_assemble_visibility):
19322 Warn only if attribute was specified by user.
19324 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19327 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19329 (floatunsdidf2_fcfidu): Ditto.
19331 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19333 * config/s390/s390.c (print_operand_address): Replace 'error' with
19334 'output_operand_lossage'.
19335 (print_operand): Likewise.
19337 2011-01-13 Jeff Law <law@redhat.com>
19339 PR rtl-optimization/39077
19340 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19341 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19342 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19343 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19344 * gcse.c (prune_insertions_deletions): New function.
19345 (compute_pre_data): Use it.
19347 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19350 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19352 (prune_unused_types_mark): Use it.
19354 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19356 PR rtl-optimization/45352
19357 * sel-sched.c: Update copyright years.
19358 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19359 in the advancing loop when we have issued issue_rate insns.
19361 2011-01-12 Richard Henderson <rth@redhat.com>
19363 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19364 (TARGET_MD_ASM_CLOBBERS): New.
19366 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19367 (TARGET_DELEGITIMIZE_ADDRESS): New.
19369 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19370 (clzsi2, *bsch): New patterns.
19372 * config/mn10300/mn10300.md (INT): New mode iterator.
19373 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19375 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19376 flag_split_wide_types.
19378 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19379 (mn10300_trampoline_init): Rewrite without a template, an immediate
19380 load and a direct branch.
19381 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19383 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19385 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19386 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19387 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19388 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19390 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19393 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19396 2011-01-12 Jan Hubicka <jh@suse.cz>
19399 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19400 (PLUGIN_COND_CLOSE): New macro.
19401 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19403 2011-01-12 Richard Guenther <rguenther@suse.de>
19406 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19407 register variables in a MEM_REF.
19409 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19411 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19412 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19413 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19414 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19415 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19416 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19417 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19418 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19419 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19420 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19421 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19422 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19423 * config/gnu-user.h: New. Copied from linux.h.
19424 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19425 GNU_USER_TARGET_STARTFILE_SPEC.
19426 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19427 GNU_USER_TARGET_ENDFILE_SPEC.
19428 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19429 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19430 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19431 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19432 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19433 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19434 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19435 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19436 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19437 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19438 * config/arm/linux-eabi.h (CC1_SPEC): Use
19439 GNU_USER_TARGET_CC1_SPEC.
19440 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19441 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19442 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19443 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19444 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19445 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19446 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19447 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19449 2011-01-12 Richard Guenther <rguenther@suse.de>
19452 * doc/invoke.texi (ffast-math): Document it is turned on
19455 2011-01-12 Jan Hubicka <jh@suse.cz>
19457 PR tree-optimization/47233
19458 * opts.c (common_handle_option): Disable ipa-reference with profile
19461 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19463 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19466 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19468 * c-parser.c (c_lex_one_token): Updated and reindented some
19469 comments. No changes in code.
19471 2011-01-11 Ian Lance Taylor <iant@google.com>
19473 * godump.c (go_output_var): Don't output the variable if there is
19474 already a type with the same name.
19476 2011-01-11 Ian Lance Taylor <iant@google.com>
19478 * godump.c (go_format_type): Don't generate float80.
19480 2011-01-11 Richard Henderson <rth@redhat.com>
19482 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19483 declaration. Rewrite for both speed and size.
19484 (mn10300_address_cost_1): Remove.
19485 (mn10300_register_move_cost): New.
19486 (mn10300_memory_move_cost): New.
19487 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19488 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19489 extensions, shifts, BSWAP, CLZ.
19490 (mn10300_wide_const_load_uses_clr): Remove.
19491 (TARGET_REGISTER_MOVE_COST): New.
19492 (TARGET_MEMORY_MOVE_COST): New.
19493 * config/mn10300/mn10300-protos.h: Update.
19494 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19496 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19497 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19498 * config/mn10300/mn10300-protos.h: Update.
19499 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19500 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19501 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19502 (*test_int_bitfield, *test_byte_bitfield): Remove.
19503 (*bit_test, *subreg_bit_test): Remove.
19504 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19506 * config/mn10300/constraints.md ("c"): Rename from "A".
19507 ("A", "D"): New constraint letters.
19508 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19509 (fmssf4, fnmasf4, fnmssf4): Likewise.
19511 * config/mn10300/mn10300.md (isa): New attribute.
19512 (enabled): New attribute.
19514 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19515 (abssf2, negsf2): Define only for hardware fp.
19516 (sqrtsf2): Reformat.
19517 (addsf3, subsf3, mulsf3): Merge expander and insn.
19519 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19520 (DEBUGGER_AUTO_OFFSET): Remove.
19521 (DEBUGGER_ARG_OFFSET): Remove.
19523 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19524 Emit register stores with the same offsets as the hardware.
19525 (mn10300_store_multiple_operation): Don't check that the register
19526 save offsets are monotonic.
19527 * config/mn10300/mn10300-protos.h: Update.
19529 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19531 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19532 in terms of the value on the stack, not the MDR register.
19534 2011-01-11 Jan Hubicka <jh@suse.cz>
19538 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19539 (symbol_alias_set_destroy, symbol_alias_set_contains,
19540 propagate_aliases_backward): Declare.
19541 * lto-streamer-out.c (struct sets): New sturcture.
19542 (trivally_defined_alias): New function.
19543 (output_alias_pair_p): Rewrite.
19544 (output_unreferenced_globals): Fix output of alias pairs.
19545 (produce_symtab): Likewise.
19546 * ipa.c (function_and_variable_visibility): Set weak alias destination
19548 * varasm.c (symbol_alias_set_t): Remove.
19549 (symbol_alias_set_destroy): Export.
19550 (propagate_aliases_forward, propagate_aliases_backward): New functions
19552 (compute_visible_aliases): ... this one; remove.
19553 (trivially_visible_alias): New
19554 (trivially_defined_alias): New.
19555 (remove_unreachable_alias_pairs): Rewrite.
19556 (finish_aliases_1): Reorganize code checking if alias is defined.
19557 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19560 2011-01-11 Richard Guenther <rguenther@suse.de>
19562 PR tree-optimization/46076
19563 * tree-ssa.c (useless_type_conversion_p): Conversions from
19564 unprototyped to empty argument list function types are useless.
19566 2011-01-11 Richard Guenther <rguenther@suse.de>
19568 PR middle-end/45235
19569 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19570 volatile MEMs as MEM_READONLY_P.
19572 2011-01-11 Richard Guenther <rguenther@suse.de>
19574 PR tree-optimization/47239
19575 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19577 2011-01-11 Jeff Law <law@redhat.com>
19579 PR tree-optimization/47086
19580 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19581 IVs from statements that might throw.
19583 2011-01-10 Jan Hubicka <jh@suse.cz>
19586 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19588 2011-01-10 Jan Hubicka <jh@suse.cz>
19591 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19592 when correcting profile.
19594 2011-01-10 Jan Hubicka <jh@suse.cz>
19597 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19598 DECL_FINI_PRIORITY.
19599 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19600 Restore DECL_FINI_PRIORITY.
19602 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19604 * doc/gimple.texi: Fix quoting of multi-word return values in
19605 @deftypefn statements. Ensure presence of return value. Wrap
19606 overlong @deftypefn lines.
19607 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19608 descriptions of removed functions.
19609 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19610 of multi-word return value in @deftypefn statement.
19612 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19614 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19615 (Conditional Expressions, Logical Operators)
19616 (Statement and operand traversals): Do not indent smallexample
19617 code. Fix duplicate function argument in example.
19619 2011-01-10 Jeff Law <law@redhat.com>
19621 PR tree-optimization/47141
19622 * ipa-split.c (split_function): Handle case where we are
19623 returning a value and the return block has a virtual operand phi.
19625 2011-01-10 Jan Hubicka <jh@suse.cz>
19627 PR tree-optimization/47234
19628 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19629 (pass_feedback_split_functions): Declare.
19630 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19632 * ipa-split.c (gate_split_functions): Update comments; disable
19633 split-functions for profile_arc_flag and branch_probabilities.
19634 (gate_feedback_split_functions): New function.
19635 (execute_feedback_split_functions): New function.
19636 (pass_feedback_split_functions): New global var.
19638 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19641 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19642 calling gimple_call_set_cannot_inline.
19644 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19646 * config/darwin-sections.def: Remove unused section.
19648 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19651 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19653 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19656 * c-parser.c (c_parser_declaration_or_fndef): Improved
19659 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19661 * config/i386/winnt.c (i386_pe_start_function): Make sure
19662 to switch back to function's section.
19664 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19668 * plugin.c: Move include of dlfcn.h from here...
19669 * system.h: ... to here.
19671 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19673 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19675 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19676 two extra empty pages in PDF output.
19678 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19681 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19682 for error recovery purposes behave as if it was not specified so
19683 that the default type is usd.
19685 2011-01-07 Jan Hubicka <jh@suse.cz>
19687 PR tree-optmization/46469
19688 * ipa.c (function_and_variable_visibility): Clear needed flags on
19689 nodes with external decls; handle weakrefs merging correctly.
19691 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19693 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19696 2011-01-07 Jan Hubicka <jh@suse.cz>
19698 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19699 and no longer claim that gold is required for linker plugin.
19700 * configure: Regenerate.
19701 * gcc.c (PLUGIN_COND): New macro.
19702 (LINK_COMMAND_SPEC): Use it.
19703 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19704 * config.in (HAVE_LTO_PLUGIN): New.
19705 * configure.ac (--with-lto-plugin): New parameter; autodetect
19708 2011-01-07 Jan Hubicka <jh@suse.cz>
19710 PR tree-optimization/46367
19711 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19712 when we can update original.
19713 (cgraph_mark_inline_edge): Sanity check.
19714 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19716 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19718 * config/spu/spu.h (ASM_COMMENT_START): Define.
19720 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19723 * gcc.c (%>S): New.
19724 (SWITCH_KEEP_FOR_GCC): Likewise.
19725 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19726 (do_spec_1): Handle "%>".
19728 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19730 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19733 * config/i386/i386.c (ix86_delegitimize_address): If
19734 simplify_gen_subreg fails, return orig_x.
19737 * value-prof.c (gimple_stringop_fixed_value): Handle
19738 lhs of the call properly.
19740 2011-01-07 Jan Hubicka <jh@suse.cz>
19743 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19745 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19747 * target.def (function_switched_text_sections): New hook.
19748 * doc/tm.texi: Regenerated.
19749 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19750 * final.c (default_function_switched_text_sections): New.
19751 (final_scan_insn): Call function_switched_text_sections when a
19752 mid-function section change occurs.
19753 * output.h (default_function_switched_text_sections): Declare.
19754 * config/darwin-protos.h (darwin_function_switched_text_sections):
19756 * config/darwin.c (darwin_function_switched_text_sections): New.
19757 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19759 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19761 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19762 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19763 the secondary code fragment when outputting for DWARF == 2.
19765 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19767 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19768 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19770 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19771 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19773 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19776 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19777 when it is not empty.
19779 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19782 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19783 (case ${target}): Add btver1.
19784 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19785 -march=native recognize btver1 processors.
19786 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19787 btver1 def_and_undef
19788 * config/i386/i386.c (struct processor_costs btver1_cost): New
19790 (m_BTVER1): New definition.
19791 (m_AMD_MULTIPLE): Includes m_BTVER1.
19792 (initial_ix86_tune_features): Add btver1 tune.
19793 (processor_target_table): Add btver1 entry.
19794 (static const char *const cpu_names): Add btver1 entry.
19795 (software_prefetching_beneficial_p): Add btver1.
19796 (ix86_option_override_internal): Add btver1 instruction sets.
19797 (ix86_issue_rate): Add btver1.
19798 (ix86_adjust_cost): Add btver1.
19799 * config/i386/i386.h (TARGET_BTVER1): New definition.
19800 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19801 (enum processor_type): Add PROCESSOR_BTVER1.
19802 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19804 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19807 * config/i386/i386.c (legitimize_tls_address)
19808 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19809 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19810 (tls_initial_exec_64_sun): New pattern.
19812 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19814 * doc/invoke.texi (Overall Options): Improve wording and markup
19815 of the description of -wrapper.
19817 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19819 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19820 rdynamic, threads): New Driver options.
19822 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19825 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19826 if coming from .tdata.
19827 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19829 2011-01-06 Jan Hubicka <jh@suse.cz>
19832 * collect2.c (main): Do not enable LTOmode when plugin is active.
19834 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19837 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19838 --version output if supported.
19839 * configure: Regenerate.
19841 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19843 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19846 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19849 * c-convert.c (convert): When converting a complex expression
19850 other than COMPLEX_EXPR to a different complex type, ensure
19851 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19852 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19853 when converting COMPLEX_TYPE.
19855 2011-01-06 Ira Rosen <irar@il.ibm.com>
19857 PR tree-optimization/47139
19858 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19859 only the last reduction value is used outside the loop. Update
19862 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19864 * config/rtems.opt: New.
19865 * config.gcc (*-*-rtems*): Use rtems.opt.
19867 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19869 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19870 processors do not support 3DNow instructions.
19872 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19874 * config/spu/spu.c (spu_option_override): Set parameter
19875 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19877 2011-01-05 Jan Hubicka <jh@suse.cz>
19879 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19880 at the command line.
19882 2011-01-05 Martin Jambor <mjambor@suse.cz>
19885 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19886 deltas on streamed outgoing edges.
19887 (output_node_opt_summary): Output info for outgoing edges only when
19888 the node is in new parameter set.
19889 (output_cgraph_opt_summary): New parameter set, passed to the two
19890 aforementioned functions. Update its forward declaration and its
19893 2011-01-05 Tom Tromey <tromey@redhat.com>
19895 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19896 operator to c_finish_omp_atomic.
19897 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19898 (build_unary_op): Update.
19899 (build_modify_expr): Update.
19900 (build_asm_expr): Update.
19902 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19904 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19905 newly inserted insns.
19906 (pad_bb): Likewise.
19907 (spu_emit_branch_hint): Likewise.
19908 (insert_hbrp_for_ilb_runout): Likewise.
19909 (spu_machine_dependent_reorg): Call df_finish_pass after
19910 schedule_insns returns.
19912 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19914 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19916 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19918 PR tree-optimization/47005
19919 * tree-sra.c (struct access): Add 'non_addressable' bit.
19920 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19921 (decide_one_param_reduction): Return 0 if the parameter is passed by
19922 reference and one of the accesses in the group is non_addressable.
19924 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19926 PR tree-optimization/47056
19927 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19928 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19929 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19931 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19933 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19934 initializer. Skip view conversions from aggregate types.
19936 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19939 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19941 2011-01-04 Philipp Thomas <pth@suse.de>
19943 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19946 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19948 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19949 on empty epilogue sequences.
19951 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19953 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19954 non-static): New Driver options.
19956 2011-01-04 Jie Zhang <jie@codesourcery.com>
19959 * gcc.c (default_compilers[]): Set combinable field to 0
19960 for all assembly languages.
19962 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19964 * config/mips/loongson3a.md: New file.
19965 * config/mips/mips.md: Include loongson3a.md.
19966 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19969 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19971 PR middle-end/47017
19972 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19973 instead of convert_memory_address_addr_space on the base expression.
19975 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19977 * config/spu/spu.c (spu_option_override): Update error text
19978 for bad -march= / -mtune= values.
19980 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19982 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19983 if branch-hint optimization will be performed.
19985 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19987 PR tree-optimization/47148
19988 * ipa-split.c (split_function): Convert arguments to
19989 DECL_ARG_TYPE if possible.
19991 PR tree-optimization/47155
19992 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19993 when computing uns.
19995 PR rtl-optimization/47157
19996 * combine.c (try_combine): If undobuf.other_insn becomes
19997 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19998 and set *new_direct_jump_p too.
20000 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20002 PR tree-optimization/47021
20003 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20005 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20007 * gcc.c (process_command): Update copyright notice dates.
20008 * gcov.c (print_version): Likewise.
20009 * gcov-dump.c (print_version): Likewise.
20010 * mips-tfile.c (main): Likewise.
20011 * mips-tdump.c (main): Likewise.
20013 2011-01-03 Martin Jambor <mjambor@suse.cz>
20015 PR tree-optimization/46801
20016 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20017 aggregate fields start at byte boundary instead of the bit-field flag.
20019 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20022 * gcc.c (main): Revert revision 168407.
20024 2011-01-03 Martin Jambor <mjambor@suse.cz>
20026 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20028 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20030 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20031 vector optab to expand vector/scalar shift, update gimple to vector.
20033 2011-01-03 Martin Jambor <mjambor@suse.cz>
20035 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20038 2011-01-03 Martin Jambor <mjambor@suse.cz>
20040 PR tree-optimization/46984
20041 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20043 (cgraph_create_indirect_edge): Fixed line length.
20044 (cgraph_indirect_call_info): Declare.
20045 (cgraph_make_edge_direct) Update declaration.
20046 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20047 (cgraph_create_indirect_edge): Use it.
20048 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20050 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20051 the new thunk_delta representation.
20052 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20054 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20055 (ipa_read_indirect_edge_info): Likewise.
20056 * lto-cgraph.c (output_edge_opt_summary): New function.
20057 (output_node_opt_summary): Call it on all outgoing edges.
20058 (input_edge_opt_summary): New function.
20059 (input_node_opt_summary): Call it on all outgoing edges.
20061 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20064 * gcc.c (main): Don't check have_o when settting combine_inputs.
20066 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20068 * regrename.c: Add general comment describing the pass.
20069 (struct du_head): Remove 'length' field.
20070 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20071 (regrename_optimize): Do not sort chains. Rework comments, add others.
20072 Force renaming to the preferred class (if any) in the first pass and do
20073 not consider registers that belong to it in the second pass.
20074 (create_new_chain): Do not set 'length' field.
20075 (scan_rtx_reg): Likewise.
20077 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20079 PR tree-optimization/47140
20080 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20081 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20082 to bit_value_binop.
20084 PR rtl-optimization/47028
20085 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20086 parm_birth_insn instead of at the beginning of first bb.
20088 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20090 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20091 Remove the word "see" before "@pxref".
20092 * doc/rtl.texi: Remove the word "see" before "@pxref".
20094 2011-01-01 Jan Hubicka <jh@suse.cz>
20096 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20099 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20102 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20105 Copyright (C) 2011 Free Software Foundation, Inc.
20107 Copying and distribution of this file, with or without modification,
20108 are permitted in any medium without royalty provided the copyright
20109 notice and this notice are preserved.