1 2011-07-01 Jakub Jelinek <jakub@redhat.com>
3 * tree-object-size.c (pass_through_call): Handle
4 BUILT_IN_ASSUME_ALIGNED.
6 2011-07-01 Martin Jambor <mjambor@suse.cz>
8 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
13 * explow.c (update_nonlocal_goto_save_area): Use proper mode
15 * function.c (expand_function_start): Likewise.
17 2011-07-01 Richard Guenther <rguenther@suse.de>
20 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
21 may have unknown refs.
23 2011-07-01 Kai Tietz <ktietz@redhat.com>
25 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
27 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
30 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
31 (Specific, mips-sgi-irix6): Likewise.
33 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
38 2011-07-01 Jakub Jelinek <jakub@redhat.com>
40 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
41 [idx]= and [idx1 ... idx2]= before initializers if needed for
44 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
46 * config.gcc (score-*-elf): Remove score7.o.
47 * config/score/t-score-elf: Likewise.
48 * config/score/score.c: Merge score7 to score.c and
49 remove forwarding functions.
50 * config/score/score7.c: Deleted.
51 * config/score/score7.h: Deleted.
53 2011-07-01 Richard Guenther <rguenther@suse.de>
55 PR tree-optimization/49603
56 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
59 2011-06-30 Martin Jambor <mjambor@suse.cz>
61 * tree-sra.c (struct access): Rename total_scalarization to
62 grp_total_scalarization
63 (completely_scalarize_var): New function.
64 (sort_and_splice_var_accesses): Set total_scalarization in the
65 representative access.
66 (analyze_access_subtree): Propagate total scalarization accross the
67 tree, no holes in totally scalarized trees, simplify coverage
69 (analyze_all_variable_accesses): Call completely_scalarize_var instead
70 of completely_scalarize_record.
72 2011-06-30 Richard Henderson <rth@redhat.com>
74 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
75 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
76 * config/i386/i386.c: Don't include dwarf2out.h.
77 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
78 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
79 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
80 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
81 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
83 2011-06-30 Richard Henderson <rth@redhat.com>
85 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
86 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
87 * final.c (final_scan_insn): Look for it, and invoke
88 dwarf2out_frame_debug before the insn if found.
90 2011-06-30 Richard Henderson <rth@redhat.com>
92 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
93 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
95 2011-06-30 Richard Henderson <rth@redhat.com>
97 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
98 Define a vector of this type.
99 (regs_saved_in_regs): Use a VEC.
100 (num_regs_saved_in_regs): Remove.
101 (compare_reg_or_pc): New.
102 (record_reg_saved_in_reg): Split out from...
103 (dwarf2out_flush_queued_reg_saves): ... here.
104 (clobbers_queued_reg_save): Update for VEC.
105 (reg_saved_in): Likewise.
106 (dwarf2out_frame_debug_init): Likewise.
107 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
108 (dwarf2out_frame_debug_cfa_register): Likewise.
110 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
112 PR tree-optimization/49572
113 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
114 type of the RHS instead of that of the LHS for the expression type.
116 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
118 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
121 2011-06-30 Richard Guenther <rguenther@suse.de>
123 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
124 * tree-ssa-structalias.c (create_variable_info_for): Do not
125 add initial constraints for non-var-decls. Properly handle
126 globals in other ltrans partitions.
127 (intra_create_variable_infos): Manually create constraints for
128 the fake no-alias parameter.
129 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
130 and assert there are no clones.
132 2011-06-30 Richard Guenther <rguenther@suse.de>
134 PR tree-optimization/46787
135 * tree-data-ref.c (dr_address_invariant_p): Remove.
136 (find_data_references_in_stmt): Invariant accesses are ok now.
137 * tree-vect-stmts.c (vectorizable_load): Handle invariant
139 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
142 2011-06-30 Martin Jambor <mjambor@suse.cz>
144 PR tree-optimization/49094
145 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
146 (build_accesses_from_assign): Use it.
148 2011-06-30 Jakub Jelinek <jakub@redhat.com>
150 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
151 handling of BUILT_IN_ASSUME_ALIGNED.
154 * dwarf2out.c (output_abbrev_section): Don't return early
155 if abbrev_die_table_in_use is 1.
156 (dwarf2out_finish): Instead don't call output_abbrev_section
157 nor emit abbrev_section_label in that case.
159 2011-06-30 Nick Clifton <nickc@redhat.com>
161 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
164 2011-06-30 Jakub Jelinek <jakub@redhat.com>
166 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
167 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
169 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
171 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
172 both pattern and original statements if necessary.
173 (vect_transform_loop): Likewise.
174 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
175 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
176 Mark the pattern statement only if the original statement doesn't
178 (process_use): Call vect_mark_relevant with additional parameter.
179 (vect_mark_stmts_to_be_vectorized): Likewise.
180 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
181 (vect_analyze_stmt): Handle both pattern and original statements
183 (vect_transform_stmt): Don't store vectorized pattern statement
184 in the original statement.
185 (vect_is_simple_use_1): Use related pattern statement only if the
186 original statement is irrelevant.
187 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
189 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
191 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
193 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
195 (TARGET_AVX128_OPTIMAL): New definition.
196 * config/i386/i386.c (initial_ix86_tune_features): Initialize
197 X86_TUNE_AVX128_OPTIMAL entry.
198 (ix86_option_override_internal): Enable the generation
199 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
200 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
201 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
203 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
205 PR tree-optimization/49539
206 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
207 names by means of stmt_references_abnormal_ssa_name.
208 (associate_plusminus): Call can_propagate_from before propagating
209 from definition statements.
210 (ssa_forward_propagate_and_combine): Remove superfluous newline.
212 2011-06-29 Richard Guenther <rguenther@suse.de>
214 * doc/invoke.texi: Document -scev dump modifier.
215 * tree-pass.h (TDF_SCEV): New dump flag.
216 * tree-dump.c (dump_option_value_in): Add scev.
217 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
218 * tree-scalar-evolution.c: Likewise.
220 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
222 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
223 (cxa_type_match): Correct declaration.
224 (__gnu_unwind_pr_common): Reconstruct
225 additional indirection when __cxa_type_match returns
226 succeeded_with_ptr_to_base.
228 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
230 PR rtl-optimization/49114
231 * reload.c (struct replacement): Remove SUBREG_LOC member.
232 (push_reload): Do not set it.
233 (push_replacement): Likewise.
234 (subst_reload): Remove dead code.
235 (copy_replacements): Remove assertion.
236 (copy_replacements_1): Do not handle SUBREG_LOC.
237 (move_replacements): Likewise.
238 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
239 Detect subregs via recursive descent instead of via SUBREG_LOC.
241 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
243 * config/avr/avr.c (avr_encode_section_info): Dispatch to
244 default_encode_section_info.
246 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
248 PR tree-optimization/49545
249 * builtins.c (get_object_alignment_1): Update function comment.
250 Do not use DECL_ALIGN for functions, but test
251 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
252 * fold-const.c (get_pointer_modulus_and_residue): Don't check
254 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
256 2011-06-29 Jakub Jelinek <jakub@redhat.com>
259 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
260 for non-MODE_INT modes instead of asserting the mode has MODE_INT
263 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
266 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
267 about uninitialized data attributed 'progmem' from here...
268 (avr_encode_section_info): ...to this new function.
269 (TARGET_ENCODE_SECTION_INFO): New define.
270 (avr_section_type_flags): For data in ".progmem.data", remove
271 section flag SECTION_WRITE.
273 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
275 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
277 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
278 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
279 (__umulhisi3): Ditto.
280 * config/avr/avr.md (mulhisi3): New insn expender.
281 (umulhisi3): New insn expender.
282 (*mulhisi3_call): New insn.
283 (*umulhisi3_call): New insn.
285 2011-06-28 Joseph Myers <joseph@codesourcery.com>
287 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
289 2011-06-28 Richard Henderson <rth@redhat.com>
291 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
292 all code and arguments that handled pushes. Update all callers.
294 2011-06-28 Richard Henderson <rth@redhat.com>
296 * config/arm/arm.c (arm_output_function_prologue): Don't call
297 thumb1_output_function_prologue.
298 (arm_expand_prologue): Avoid dead store.
299 (number_of_first_bit_set): Use ctz_hwi.
300 (thumb1_emit_multi_reg_push): New.
301 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
302 to emit the entire prologue as rtl.
303 (thumb1_output_interwork): Split out from
304 thumb1_output_function_prologue.
305 (thumb1_output_function_prologue): Remove.
306 (arm_attr_length_push_multi): Handle thumb1.
307 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
308 (prologue_thumb1_interwork): New.
309 (*push_multi): Allow thumb1; use push_mult_memory_operand.
310 * config/arm/predicates.md (push_mult_memory_operand): New.
312 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
314 * config/sparc/sync.md (*stbar): Delete.
315 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
317 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
319 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
321 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
324 (TARGET_64BIT_DEFAULT): Define.
325 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
327 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
329 2011-06-28 Joseph Myers <joseph@codesourcery.com>
331 * common.opt (in_lto_p): New Variable entry.
332 * flags.h (in_lto_p): Move to common.opt.
333 * gcc.c: Include params.h.
334 (set_option_handlers): Also use common_handle_option and
335 target_handle_option.
336 (main): Call global_init_params, finish_params and
338 * opts.c (debug_type_names): Move from toplev.c.
339 (print_filtered_help): Access quiet_flag through opts pointer.
340 (common_handle_option): Return early in the driver for some
341 options. Access in_lto_p, dwarf_version and
342 warn_maybe_uninitialized through opts pointer.
343 * toplev.c (in_lto_p): Move to common.opt.
344 (debug_type_names): Move to opts.c.
345 * Makefile.in (OBJS): Remove opts.o.
346 (OBJS-libcommon-target): Add opts.o.
347 (gcc.o): Update dependencies.
349 2011-06-28 Kai Tietz <ktietz@redhat.com>
351 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
354 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
356 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
357 with '=' constraint modifier.
358 (*divdf3_vfp): Likewise.
359 ("*mulsf3_vfp"): Likewise.
360 ("*muldf3_vfp"): Likewise.
361 ("*mulsf3negsf_vfp"): Likewise.
362 ("*muldf3negdf_vfp"): Likewise.
364 2011-06-28 Nick Clifton <nickc@redhat.com>
366 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
367 relaxation when performing an incremental link.
369 2011-06-28 Kai Tietz <ktietz@redhat.com>
371 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
372 within BB from last to first.
374 2011-06-28 Joseph Myers <joseph@codesourcery.com>
376 * genattr-common.c: New. Based on genattr.c.
377 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
378 (MOSTLYCLEANFILES): Add insn-attr-common.h.
379 (opts.o): Update dependencies.
380 (.PRECIOUS): Add insn-attr-common.h.
381 (simple_rtl_generated_h): Add insn-attr-common.h.
382 (build/genattr-common.o): New.
383 (genprogrtl): Add attr-common.
384 * genattr.c (main): Include insn-attr-common.h. Don't generate
385 definitions of DELAY_SLOTS or INSN_SCHEDULING.
386 * opts.c: Include insn-attr-common.h instead of rtl.h and
389 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
391 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
392 avr-*-* and avr-*-rtems* targets.
394 * config/avr/elf.h: New file.
395 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
396 (TARGET_ASM_SELECT_SECTION): Define.
397 (INIT_SECTION_ASM_OP): Undefine.
398 (FINI_SECTION_ASM_OP): Undefine.
399 (READONLY_DATA_SECTION_ASM_OP): Undefine.
400 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
401 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
403 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
404 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
405 (MAX_OFILE_ALIGNMENT): Move to elf.h.
406 (STRING_LIMIT): Move to elf.h.
407 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
408 (ASM_DECLARE_OBJECT_NAME): Remove.
410 (ASM_OUTPUT_SKIP): Remove.
411 (DWARF2_DEBUGGING_INFO): Remove.
412 (OBJECT_FORMAT_ELF): Remove.
413 (USER_LABEL_PREFIX): Remove.
414 (ASM_OUTPUT_EXTERNAL): Remove.
415 (ASM_OUTPUT_ASCII): Remove.
416 (TYPE_ASM_OP): Remove.
417 (SIZE_ASM_OP): Remove.
418 (WEAK_ASM_OP): Remove.
419 (STRING_ASM_OP): Remove.
420 (SET_ASM_OP): Remove.
421 (ASM_WEAKEN_LABEL): Remove.
422 (TYPE_OPERAND_FMT): Remove.
423 (ASM_DECLARE_FUNCTION_SIZE): Remove.
424 (ASM_FINISH_DECLARE_OBJECT): Remove.
425 (NO_DOLLAR_IN_LABEL): Remove.
426 (ASM_GENERATE_INTERNAL_LABEL): Remove.
427 (ASM_OUTPUT_CASE_LABEL): Remove.
428 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
429 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
430 (gas_output_ascii): Remove.
431 (gas_output_limited_string): Remove.
432 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
433 * config/avr/avr-protos.h
434 (gas_output_ascii): Remove prototye.
435 (gas_output_limited_string): Remove prototype.
437 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
440 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
443 2011-06-27 Jan Hubicka <jh@suse.cz>
445 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
446 node instead of references in node.
448 2011-06-27 Richard Henderson <rth@redhat.com>
450 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
451 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
454 2011-06-27 Jakub Jelinek <jakub@redhat.com>
456 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
458 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
459 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
460 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
461 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
462 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
463 (evaluate_stmt, execute_fold_all_builtins): Handle
464 BUILT_IN_ASSUME_ALIGNED.
465 * tree-ssa-dce.c (propagate_necessity): Likewise.
466 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
467 call_may_clobber_ref_p_1): Likewise.
468 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
469 (expand_builtin_assume_aligned): New function.
470 * doc/extend.texi (__builtin_assume_aligned): Document.
473 * cselib.c (promote_debug_loc): If cselib_preserve_constants
474 and l has two DEBUG_INSN owned locs instead of just one, adjust
475 the second location's setting_insn too.
477 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
480 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
482 2011-06-27 Nick Clifton <nickc@redhat.com>
484 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
485 convert bit position of highest bit set into a count of the high
488 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
490 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
492 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
495 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
498 2011-06-27 Richard Guenther <rguenther@suse.de>
500 PR tree-optimization/49394
501 * passes.c (execute_one_pass): Restore current_pass after
502 applying IPA transforms.
504 2011-06-27 Kai Tietz <ktietz@redhat.com>
506 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
507 out of type precision after operation.
508 (find_bswap): Take for limit value the integer auto-
509 promotion into account.
511 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
513 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
514 forward scan as well.
516 2011-06-27 Tristan Gingold <gingold@adacore.com>
519 * config/vms/vms-protos.h: New file.
520 * config/vms/vms-crtlmap.map: New file.
521 * config/vms/vms.c: New file.
522 * config/vms/make-crtlmap.awk: New file.
523 * config/vms/vms-crtl.h: File removed.
524 * config/vms/vms-crtl-64.h: File removed.
525 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
526 * config/alpha/vms64.h: Do not include vms-crtl-64.h
527 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
528 clear some builtins on VMS. Calls vms_patch_builtins.
529 (avms_asm_output_external): Remove.
530 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
531 (struct crtl_name_spec): Remove
532 (DO_CTRL_NAMES): Remove.
533 * config/ia64/vms.h (struct crtl_name_spec): Remove
534 (DO_CTRL_NAMES): Remove.
535 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
536 clear some builtins on VMS. Calls vms_patch_builtins.
537 (ia64_asm_output_external): Remove DO_CRTL_NAME.
538 * config/ia64/vms64.h: Do not include vms-crtl-64.h
539 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
542 2011-06-27 Tristan Gingold <gingold@adacore.com>
544 * config/alpha/alpha.c (alpha_end_function): Always generate .end
547 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
549 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
550 the function receives nonlocal gotos.
552 2011-06-27 Richard Guenther <rguenther@suse.de>
554 PR tree-optimization/49536
555 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
556 For non-scalar inner types use a scalar type according to
557 the scalar inner mode.
559 2011-06-27 Richard Guenther <rguenther@suse.de>
561 PR tree-optimization/49365
562 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
564 2011-06-27 Richard Guenther <rguenther@suse.de>
566 PR tree-optimization/49169
567 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
568 the alignment of function decls.
570 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
573 * config/darwin.c (darwin_mergeable_string_section): Place string
574 constants in '.cstring' rather than '.const' when CF/NSStrings are
577 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
579 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
580 (emit_save_register_window): Likewise.
581 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
582 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
583 Swap back %o7/%i7 in register naming.
585 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
588 * config/darwin.c (darwin_override_options): Improve warning when
589 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
590 is given with fpie/fPIE.
591 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
592 * config/darwin9.h (PIE_SPEC): New.
594 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
596 * timevar.c (timevar_print): Increase width for display of timevar
599 2011-06-24 Jakub Jelinek <jakub@redhat.com>
602 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
603 instead of TYPE_CHAIN for chain_next for types.
605 2011-06-24 Richard Henderson <rth@redhat.com>
607 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
608 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
609 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
610 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
611 (sparc_flat_expand_prologue): Emit individual instructions
612 instead of one of the above.
614 2011-06-24 Easwaran Raman <eraman@google.com>
616 PR rtl-optimization/49429
618 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
619 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
620 used to copy y into x.
621 * calls.c (initialize_argument_information): Mark
622 an argument addressable if it is passed by invisible reference.
623 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
624 if it is passed by reference.
626 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
628 PR rtl-optimization/49504
629 * rtlanal.c (nonzero_bits1): Properly handle addition or
630 subtraction of a pointer in Pmode if pointers extend unsigned.
631 (num_sign_bit_copies1): Likewise.
633 2011-06-24 Martin Jambor <mjambor@suse.cz>
635 PR tree-optimizations/49516
636 * tree-sra.c (sra_modify_assign): Choose the safe path for
637 aggregate copies if we also did scalar replacements.
639 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
642 * config/arm/predicates.md (add_operator): New.
643 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
646 2011-06-24 Andi Kleen <ak@linux.intel.com>
648 * tree-sra.c (type_internals_preclude_sra_p): Add msg
649 parameter. Split up ifs and report reason in *msg.
651 (find_var_candiate): Add msg variable.
652 Split up ifs and report reason to reject.
653 (find_param_candidates): Add msg variable.
654 Pass msg to type_internals_preclude_sra_p.
656 2011-06-23 Jeff Law <law@redhat.com>
659 * reload.h (reload): Change to return a bool.
660 * ira.c (ira): If requested by reload, run a fast DCE pass after
661 reload has completed. Fix comment typo.
662 * reload1.c (need_dce): New file scoped static.
663 (reload): Set reload_completed here. Return whether or not a DCE
664 pass after reload is needed.
665 (delete_dead_insn): Set need_dce as needed.
668 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
669 to detect threading through joiner block. If there was already
670 an edge to the new target, then do not change the PHI nodes.
672 2011-06-23 Jakub Jelinek <jakub@redhat.com>
674 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
675 get_pointer_alignment to see if base isn't sufficiently aligned.
677 2011-06-23 Jan Hubicka <jh@suse.cz>
679 PR tree-optimize/49373
680 * tree-pass.h (all_late_ipa_passes): Declare.
681 * cgraphunit.c (init_lowered_empty_function): Fix properties.
682 (cgraph_optimize): Execute late passes; remove unreachable funcions
683 after materialization.
684 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
686 * passes.c (all_late_ipa_passes): Declare.
687 (dump_passes, register_pass): Handle late ipa passes.
688 (init_optimization_passes): Move ipa_pta to late passes; schedule
689 fixup_cfg at beggining of all_passes.
690 (apply_ipa_transforms): New function.
691 (execute_one_pass): When doing simple ipa pass, apply all transforms.
693 2011-06-23 Joseph Myers <joseph@codesourcery.com>
695 * params.c: Include common/common-target.h. Don't include tm.h.
696 (lang_independent_params): Move from toplev.c.
697 (global_init_params): New.
698 * params.h (global_init_params): Declare.
699 * target.def (default_params): Move to common-target.def.
700 * toplev.c (lang_independent_options): Remove.
701 (lang_independent_params): Move to params.c.
702 (general_init): Use global_init_params.
703 * common/common-target.def (option_default_params): Move from
705 * common/config/ia64/ia64-common.c: Include params.h.
706 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
708 * common/config/rs6000/rs6000-common.c: Include params.h.
709 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
711 * common/config/sh/sh-common.c: Include params.h.
712 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
714 * common/config/spu/spu-common.c: Include params.h.
715 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
717 * config/ia64/ia64.c (ia64_option_default_params,
718 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
719 * config/rs6000/rs6000.c (rs6000_option_default_params,
720 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
721 * config/sh/sh.c (sh_option_default_params,
722 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
723 * config/spu/spu.c (spu_option_default_params,
724 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
725 * Makefile.in (OBJS): Remove params.o.
726 (OBJS-libcommon-target): Add params.o.
727 (params.o, $(common_out_object_file)): Update dependencies.
728 * doc/tm.texi: Regenerate.
730 2011-06-23 Alan Modra <amodra@gmail.com>
733 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
734 invocation for 2011-06-09 changes.
736 2011-06-22 Jakub Jelinek <jakub@redhat.com>
739 * omp-low.c (expand_omp_for_static_nochunk): Only
740 use n ceil/ nthreads size for the first
741 n % nthreads threads in the team instead of
742 all threads except for the last few ones which
743 get less work or none at all.
746 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
749 2011-06-22 Richard Guenther <rguenther@suse.de>
751 PR tree-optimization/49493
752 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
753 Refer to the alias target of variables.
754 (associate_varinfo_to_alias_1): Remove.
755 (ipa_pta_execute): Do not associate aliases with anything.
756 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
757 (cgraph_function_node): Likewise.
758 (cgraph_function_or_thunk_node): Likewise.
759 (varpool_variable_node): Likewise.
761 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
763 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
765 * config.gcc (arm*-*-linux*): Default to gnu tls.
766 (arm*-*-*): Add --with-tls option.
767 (all_defaults): Add 'tls'.
769 2011-06-22 Richard Henderson <rth@redhat.com>
771 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
772 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
773 (dwarf2out_frame_debug_cfa_window_save): Rename from
774 dwarf2out_window_save; make static.
775 * tree.h (dwarf2out_window_save): Don't declare.
777 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
778 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
779 (emit_save_register_window): Rename from gen_save_register_window;
780 emit the insn and add REG_CFA_* notes.
781 (sparc_expand_prologue): Update to match.
782 * config/sparc/sparc.md (save_register_window_1): Simplify from
783 save_register_window<P:mode>.
785 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
788 * config/i386/i386.md (*lea_general_2): Always allow SImode.
789 (*lea_general_2_zext): Likewise.
790 (imul to lea peepholes): Use const359_operand and check
791 TARGET_PARTIAL_REG_STALL.
793 * config/i386/predicates.md (const359_operand): New.
795 2011-06-22 Michael Matz <matz@suse.de>
797 * cgraphunit.c (assemble_thunk): Use correct return type.
799 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
800 Dmitry Melnik <dm@ispras.ru>
802 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
803 (neon_output_shift_immediate): Ditto.
804 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
806 (neon_output_shift_immediate): Ditto.
807 * config/arm/neon.md (vashl<mode>3): Modified constraint.
808 (vashr<mode>3_imm): New insn pattern.
809 (vlshr<mode>3_imm): Ditto.
810 (vashr<mode>3): Modified constraint.
811 (vlshr<mode>3): Ditto.
812 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
814 (imm_for_neon_rshift_operand): Ditto.
815 (imm_lshift_or_reg_neon): Ditto.
816 (imm_rshift_or_reg_neon): Ditto.
818 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
820 2011-06-22 Jakub Jelinek <jakub@redhat.com>
822 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
823 builtin calls even if likelyvalue is not CONSTANT.
824 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
825 Return get_value_for_expr of first operand
826 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
827 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
828 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
829 their non-checking counterparts.
830 (call_may_clobber_ref_p_1): Likewise.
831 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
832 like their non-checking counterparts.
833 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
834 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
835 like their non-checking counterparts.
836 (find_func_clobbers): Likewise.
837 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
838 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
840 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
841 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
842 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
843 of base type reference as argument.
844 (resolve_addr_in_expr): Likewise. Fix keep computation.
845 (convert_descriptor_to_signed): Renamed to...
846 (convert_descriptor_to_mode): ... this. For wider types convert
847 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
849 (typed_binop): New function.
850 (scompare_loc_descriptor, ucompare_loc_descriptor,
851 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
852 default to unsigned type instead of signed.
855 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
856 (gimple_build_debug_source_bind_stat): New prototype.
857 (gimple_build_debug_source_bind): Define.
858 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
859 gimple_debug_source_bind_get_value,
860 gimple_debug_source_bind_get_value_ptr,
861 gimple_debug_source_bind_set_var,
862 gimple_debug_source_bind_set_value): New inlines.
863 * gimple.c (gimple_build_debug_source_bind_stat): New function.
864 * gimple-pretty-print.c (dump_gimple_debug): Handle
865 GIMPLE_DEBUG_SOURCE_BIND.
866 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
867 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
868 * tree-parloops.c (eliminate_local_variables,
869 separate_decls_in_region): Likewise.
870 (separate_decls_in_region_debug): Renamed from
871 separate_decls_in_region_debug_bind. Handle
872 gimple_debug_source_bind_p.
873 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
875 (DECL_HAS_DEBUG_ARGS_P): Define.
876 (struct tree_function_decl): Add has_debug_args_flag field.
877 * tree.c (debug_args_for_decl): New variable.
878 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
879 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
880 (rewrite_debug_stmt_uses): New function.
881 (rewrite_stmt): Use it to rewrite debug stmt uses.
882 * rtl.def (DEBUG_PARAMETER_REF): New.
883 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
884 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
886 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
887 * print-rtl.c (print_rtx): Likewise.
888 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
889 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
890 debug stmts in the first bb.
891 * tree-inline.c (remap_ssa_name): If remapping default def
892 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
893 a source bind debug stmt.
894 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
895 (maybe_move_debug_stmts_to_successors): Likewise.
896 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
897 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
898 debug args vector from old_decl to new_decl.
899 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
900 or modified parameters, add debug bind stmts before call
901 setting DEBUG_EXPR_DECL which is remembered in debug args
903 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
904 on DECL_DEBUG_EXPRs from debug args vector.
905 (expand_debug_source_expr): New function.
906 (expand_debug_locations): Use it for source bind insns.
907 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
908 * var-tracking.c (prepare_call_arguments): Add debug args
909 to call_arguments if any.
910 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
911 output_loc_operands, output_loc_operands_raw,
912 resolve_addr_in_expr, compare_loc_operands): Handle
913 DW_OP_GNU_parameter_ref.
914 (get_ref_die_offset, parameter_ref_descriptor): New functions.
915 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
916 (gen_subprogram_die): Handle parameters identified by
919 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
921 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
922 * doc/install.texi (Configuration): Document --with-tls.
923 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
924 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
925 (arm_tls_descseq_addr): New.
926 (legitimize_tls_address): Add tlsdesc support.
927 (arm_cannot_copy_insn_p): Check for tlscall.
928 (arm_emit_tls_decoration): Likewise.
929 * config/arm/arm.h (TARGET_GNU2_TLS): New.
930 (OPTION_DEFAULT_SPECS): Add with-tls support.
931 * config/arm/arm.md (R1_REGNUM): Define.
933 * config/arm/arm.opt (tls_type): New enumeration type and values.
934 (mtls-dialect): New switch.
935 * config/arm/arm-opts.h (enum tls_type): New.
937 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
939 * attribs.c (register_attribute): Added assert to check that all
940 attribute specs are registered with a name that is not empty and
941 does not start with '_'.
942 (decl_attributes): Avoid the lookup of the "naked" attribute spec
943 if the function has no attributes.
944 * tree.c (is_attribute_with_length_p): Removed.
945 (is_attribute_p): Removed.
946 (private_is_attribute_p): New.
947 (private_lookup_attribute): New.
948 (lookup_attribute): Removed.
949 (lookup_ident_attribute): New.
950 (remove_attribute): Require the first argument to be in the form
951 'text', not '__text__'. Updated asserts.
952 (merge_attributes): Use lookup_ident_attributes instead of
954 (merge_dllimport_decl_attributes): Use remove_attribute.
955 (attribute_list_contained): Likewise.
956 (attribute_list_equal): Immediately return 1 if the arguments are
958 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
959 'int'. Require the first argument to be in the form 'text', not
960 '__text__'. Require the second argument to be an identifier.
961 (lookup_attribute): Made inline. Require the first argument to be
962 in the form 'text', not '__text__'.
963 (private_is_attribute_p, private_lookup_attribute): New.
966 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
968 * builtins.c: Add sync_ or SYNC__ to builtin names.
969 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
970 * omp-low.c: Add sync_ or SYNC__ to builtin names.
972 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
975 * config/avr/avr.md (extzv): New expander.
977 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
978 * config/avr/constraints.md (C04): New constraint.
979 * doc/md.texi (Machine Constraints): Document it.
981 2011-06-21 Jakub Jelinek <jakub@redhat.com>
984 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
985 unsignedp argument instead of 1 for clrsb_optab.
986 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
987 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
988 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
989 * optabs.c (widen_leading): Call widen_operand and expand_unop
990 with 0 as unsignedp argument instead of 1 for clrsb_optab.
991 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
993 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
995 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
997 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
999 * gensupport.c (add_define_attr): New static function.
1000 (is_predicable): Allow multi-alternative lists for the "predicable"
1002 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1003 (process_one_cond_exec): Call alter_attrs_for_insn.
1004 * doc/md.texi (Defining Attributes): Mention some standard names.
1005 (Conditional Execution): Update documentation for "predicable".
1007 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1008 __builtin_clrsbll): Document.
1009 * doc/rtl.texi (clrsb): New entry.
1010 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1011 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1012 (expand_unop): Handle clrsb_optab.
1013 (init_optabs): Initialize it.
1014 * optabs.h (enum optab_index): New entry OTI_clrsb.
1015 (clrsb_optab): Define.
1016 * genopinit.c (optabs): Add an entry for it.
1017 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1018 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1019 BUILT_IN_CLRSBLL): New.
1020 * rtl.def (CLRSB): New code.
1021 * dwarf2out.c (mem_loc_descriptor): Handle it.
1022 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1023 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1025 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1026 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1027 (__ctzDI2): Move declaration.
1028 * config/bfin/bfin.md (clrsbsi2): New expander.
1029 (signbitssi2): Use the CLRSB rtx.
1030 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1031 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1033 2011-06-21 Richard Guenther <rguenther@suse.de>
1035 * ipa-inline-transform.c (inline_transform): Fix previous change.
1037 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1039 PR tree-optimization/49478
1040 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1041 with constant operand.
1043 2011-06-21 Richard Guenther <rguenther@suse.de>
1045 * ipa-inline-transform.c (inline_transform): Fix typo.
1047 2011-06-21 Richard Guenther <rguenther@suse.de>
1049 PR tree-optimization/49483
1050 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1051 VIEW_CONVERT_EXPR conversions.
1053 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1055 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1056 * config/avr/avr-tables.opt: New file (generated).
1057 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1058 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1060 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1061 (avr_option_override): Don't process -mmcu= argument here. Set
1062 avr_current_device using avr_mcu_index.
1063 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1064 * config/avr/avr.opt (mmcu=): Use Enum.
1065 * config/avr/t-avr (avr-devices.o): Update dependencies.
1066 ($(srcdir)/config/avr/avr-tables.opt): New.
1067 * target.def (help): Remove.
1068 * doc/tm.texi.in (TARGET_HELP): Remove.
1069 * doc/tm.texi: Regenerate.
1070 * opts.c: Don't include target.h.
1071 (common_handle_option): Don't call targetm.help.
1072 * system.h (TARGET_HELP): Poison.
1073 * Makefile.in (opts.o): Update dependencies.
1075 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1077 * config/usegld.h: New file.
1078 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1079 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1080 (LIB_SPEC): Likewise. Search /lib.
1081 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1082 (RDYNAMIC_SPEC): Handle GNU ld.
1083 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1085 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1086 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1087 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1088 (STACK_CHECK_STATIC_BUILTIN): Define.
1089 * config/sol2.opt (compat-bsd): Remove.
1090 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1091 * config/sol2-bi.h: New file.
1092 * config/sol2-gld.h: Remove.
1093 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1094 (NO_DBX_BNSYM_ENSYM): Remove.
1095 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1096 (STACK_CHECK_STATIC_BUILTIN): Remove.
1097 Test USE_GLD instead of TARGET_GNU_LD.
1098 * config/i386/sol2-10.h: Rename to ...
1099 * config/i386/sol2-bi.h .. this.
1100 (SUBTARGET_EXTRA_SPECS): Redefine.
1101 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1102 (MULTILIB_DEFAULTS): Remove.
1103 (DEFAULT_ARCH32_P): Define.
1104 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1105 (ARCH64_SUBDIR): Define.
1106 Test USE_GLD instead of TARGET_GNU_LD.
1107 (I386_EMULATION): Rename to ...
1108 (ARCH32_EMULATION): ... this.
1109 (X86_64_EMULATION): Rename to ...
1110 (ARCH64_EMULATION): ... this.
1111 (TARGET_LD_EMULATION): Remove.
1112 (LINK_ARCH_SPEC): Remove.
1113 * config/i386/sol2-gas.h: Remove.
1114 * config/i386/t-sol2-10: Rename to ...
1115 * config/i386/t-sol2-64: ... this.
1116 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1117 (AS_SPARC64_FLAG): Define.
1118 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1119 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1120 depending on TARGET_CPU_DEFAULT.
1121 (CPP_CPU_SPEC): Redefine.
1122 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1123 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1124 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1125 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1126 ASM_ARCH_DEFAULT_SPEC): Redefine.
1127 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1128 LINK_ARCH_DEFAULT_SPEC.
1129 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1130 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1131 (ARCH64_SUBDIR): Define.
1132 (LINK_ARCH64_SPEC): Redefine.
1133 (CC1_SPEC): Redefine.
1134 (OPTION_DEFAULT_SPECS): Redefine.
1135 (MULTILIB_DEFAULTS): Define.
1136 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1137 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1138 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1139 (NO_DBX_BNSYM_ENSYM): Remove.
1140 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1141 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1142 (TARGET_ASM_NAMED_SECTION): Likewise.
1143 (STACK_CHECK_STATIC_BUILTIN): Remove.
1144 * config/sparc/sol2-bi.h: Remove.
1145 * config/sparc/sol2-gas-bi.h: Remove.
1146 * config/sparc/sol2-gas.h: Remove.
1147 * config/sparc/sol2-gld-bi.h: Remove.
1148 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1150 (*-*-solaris2*): ... here.
1152 2011-06-21 Christian Bruel <christian.bruel@st.com>
1155 * ipa-inline.c (can_inline_edge_p): Check
1156 !DECL_DISREGARD_INLINE_LIMITS.
1158 2011-06-21 Christian Bruel <christian.bruel@st.com>
1161 * cgraphunit.c (process_function_and_variable_attributes): warn when
1162 always_inline functions that are not inline.
1163 * ipa-inline-transform.c (inline_transform): Always call
1165 * tree-inline.c (tree_inlinable_function_p): Use error instead
1167 (expand_call_inline): Likewise.
1169 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1171 * Makefile.in (dg_target_exps): Set.
1172 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1173 instead of 7, try to divide it more evenly.
1175 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1178 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1179 (avx256_split_unaligned_store): New definition.
1180 (ix86_option_override_internal): Enable avx256 unaligned load/store
1181 splitting only when avx256_split_unaligned_load/store is set.
1183 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1185 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1186 open chain in a smaller mode without failing the entire block.
1188 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1191 * combine.c (cant_combine_insn_p): Don't check zero/sign
1192 extended hard registers.
1194 2011-06-21 Alan Modra <amodra@gmail.com>
1196 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1197 CONST high part large-toc address.
1198 (rs6000_tls_referenced_p): Make static.
1199 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1201 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1204 * combine.c (cant_combine_insn_p): Check zero/sign extended
1207 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1210 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1211 one of the operands is a register.
1213 2011-06-20 Kai Tietz <ktietz@redhat.com>
1215 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1216 operations in combination with binary and.
1218 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1220 * regrename.c (do_replace): Don't update notes.
1222 2011-06-20 Alan Modra <amodra@gmail.com>
1224 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1225 of toc-relative address in CONST.
1226 (rs6000_delegitimize_address): Recognize changed address.
1227 (rs6000_legitimize_reload_address): Likewise.
1228 (rs6000_emit_move): Don't force these constants to memory.
1229 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1230 toc-relative address in CONST.
1231 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1232 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1234 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1236 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1237 (count_trailing_zeros): Likewise.
1239 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1242 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1243 .init_array can be used with .ctors on targets.
1244 * configure: Regenerated.
1246 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1248 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1249 if the element type is volatile.
1251 2011-06-18 Jan Hubicka <jh@suse.cz>
1253 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1255 (lto_symtab_resolve_can_prevail_p): Likewise.
1256 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1257 * cgraphbuild.c (record_reference): Remove extra body alias code.
1258 (mark_load): Likewise.
1259 (mark_store): Likewise.
1260 * cgraph.h (varpool_node): Remove extra_name filed;
1261 add alias_of and extraname_alias.
1262 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1263 (varpool_alias_aliased_node): New inline function.
1264 (varpool_variable_node): New function.
1265 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1266 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1267 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1268 (input_varpool_node): Likewise.
1269 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1270 (varpool_externally_visible_p): Remove extra body alias code.
1271 (function_and_variable_visibility): Likewise.
1272 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1273 (ipa_pta_execute): Use it.
1274 * varpool.c (varpool_remove_node): Remove extra name alias code.
1275 (varpool_mark_needed_node): Likewise.
1276 (varpool_analyze_pending_decls): Analyze aliases.
1277 (assemble_aliases): New functoin.
1278 (varpool_assemble_decl): Use it.
1279 (varpool_create_variable_alias): New function.
1280 (varpool_extra_name_alias): Rewrite.
1281 (varpool_for_node_and_aliases): New function.
1283 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1286 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1287 last_arg_constant and last argument doesn't match its predicate,
1288 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1289 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1290 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1291 spelling of error message.
1292 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1293 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1294 const_0_to_255_operand instead of const_int_operand.
1297 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1299 * config/i386/sse.md (blendbits): Remove mode attribute.
1300 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1301 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1302 Check integer value of operand 3 in insn constraint.
1304 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1306 PR rtl-optimization/48542
1307 * reload.c (find_equiv_reg): Stop looking when finding a
1309 * reload1.c (reload_as_needed): Invalidate all reload
1310 registers when crossing a setjmp-type call.
1312 2011-06-16 Jeff Law <law@redhat.com>
1314 * tree-ssa-threadupdate.c (struct redirection_data): New field
1316 (THREAD_TARGET2): Define.
1317 (redirection_data_eq): Also check that the intermediate edge is equal.
1318 (lookup_redirection_data): Drop useless argument. Extract the
1319 outgoing_edge and intermediate edge from E. Callers updated.
1320 (copy_phi_args, update_destination_phis): New functions.
1321 (fix_duplicate_block_edges): Likewise.
1322 (create_edge_and_update_destination_phis): Duplicate all the edges
1323 hung off e->aux. Use copy_phi_args.
1324 (create_duplicates): Use fix_duplicate_block_edges.
1325 (fixup_template_block): Likewise.
1326 (redirect_edges): If necessary, redirect the joiner block's incoming
1327 edge to the duplicate of the joiner block.
1328 (thread_block): Don't muck up loops when threading through a joiner
1330 (thread_through_loop_header): Handle threading through a joiner block.
1331 (mark_threaded_blocks, register_jump_thread): Likewise.
1332 * tree-flow.h (register_jump_thread): Add new argument. Callers
1334 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1335 (thread_across_edge): Handle threading through a joiner block.
1337 2011-06-16 Martin Jambor <mjambor@suse.cz>
1339 PR tree-optimization/49343
1340 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1341 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1343 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1345 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1346 inside RTX_CODE ifdef.
1348 2011-06-16 Tom de Vries <tom@codesourcery.com>
1351 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1352 Disallow NULL pointer for pointer arithmetic.
1354 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1358 2011-06-10 Wei Guozhi <carrot@google.com>
1361 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1362 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1363 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1365 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1367 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1368 (arm_legitimate_ldrd_p): New prototype.
1369 (arm_output_ldrd): New prototype.
1370 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1371 (arm_legitimate_ldrd_p): New function.
1372 (arm_output_ldrd): New function.
1374 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1377 * doc/tm.texi.in: Update Copyright date.
1378 * doc/tm.texi: Regenerate.
1379 * targhooks.c (default_setup_incoming_varargs): Replace
1380 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1381 (default_pretend_outgoing_varargs_named): Likewise.
1382 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1383 (hook_callee_copies_named): Likewise.
1384 (default_function_arg_advance): Likewise.
1385 (default_function_arg): Likewise.
1386 (default_function_incoming_arg): Likewise.
1387 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1388 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1389 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1390 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1391 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1392 * targhooks.h (default_setup_incoming_varargs): Likewise.
1393 (default_pretend_outgoing_varargs_named): Likewise.
1394 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1395 (hook_callee_copies_named): Likewise.
1396 (default_function_arg_advance): Likewise.
1397 (default_function_arg): Likewise.
1398 (default_function_incoming_arg): Likewise.
1399 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1400 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1401 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1402 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1403 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1404 * target.def (pass_by_reference): Likewise.
1405 (setup_incoming_varargs, strict_argument_naming): Likewise.
1406 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1407 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1408 (function_incoming_arg): Likewise.
1409 * target.h: Don't include "tm.h" .
1410 (cumulative_args_t): New typedef.
1411 [GCC_TM_H] (get_cumulative_args): New static inline function.
1412 [GCC_TM_H] (pack_cumulative_args): Likewise.
1413 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1414 argument type with cumulative_args_t.
1415 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1416 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1417 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1418 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1419 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1420 (frv_function_arg_1): Likewise.
1421 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1422 (s390_function_arg_advance, s390_function_arg): Likewise.
1423 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1424 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1425 (m32c_strict_argument_naming): Likewise.
1426 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1427 (spu_function_arg_advance): Likewise.
1428 (spu_setup_incoming_varargs): Likewise. Make static.
1429 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1431 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1432 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1433 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1434 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1435 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1436 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1437 (mep_pass_by_reference, mep_function_arg): Likewise.
1438 (mep_function_arg_advance): Likewise.
1439 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1440 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1441 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1442 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1443 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1444 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1445 (ix86_setup_incoming_varargs): Likewise.
1446 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1447 (sh_strict_argument_naming): Likewise.
1448 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1449 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1450 (sh_function_arg_advance, sh_function_arg): Likewise.
1451 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1452 (pdp11_function_arg_advance): Likewise.
1453 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1455 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1456 * config/avr/avr.c (avr_function_arg): Likewise.
1457 (avr_function_arg_advance): Likewise.
1458 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1459 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1460 (xtensa_function_arg_1): Likewise.
1461 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1463 (xstormy16_function_arg): Likewise.
1464 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1465 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1466 (fr30_function_arg_advance): Likewise.
1467 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1468 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1469 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1470 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1471 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1472 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1473 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1474 (cris_function_arg, cris_function_incoming_arg): Likewise.
1475 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1476 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1477 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1478 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1479 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1480 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1481 (mn10300_arg_partial_bytes): Likewise.
1482 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1483 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1484 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1485 (ia64_function_arg_1): Likewise.
1486 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1487 (m68k_function_arg): Likewise.
1488 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1489 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1490 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1491 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1492 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1493 (picochip_arg_advance): Likewise.
1494 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1495 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1496 (mcore_function_arg_advance): Likewise.
1497 * config/score/score.c (score_pass_by_reference): Likewise.
1498 (score_function_arg_advance): Likewise.
1499 (score_arg_partial_bytes): Likewise. Make static.
1500 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1501 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1502 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1503 (arm_function_arg, arm_function_arg_advance): Likewise.
1504 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1505 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1506 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1507 (pa_function_arg): Likewise.
1508 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1509 (mips_function_arg, mips_function_arg_advance): Likewise.
1510 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1511 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1512 * config/vax/vax.c (vax_function_arg): Likewise.
1513 (vax_function_arg_advance): Likewise.
1514 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1515 (h8300_function_arg_advance): Likewise.
1516 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1517 (v850_strict_argument_naming, v850_function_arg): Likewise.
1518 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1519 (v850_setup_incoming_varargs): Likewise.
1520 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1521 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1522 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1523 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1525 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1526 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1527 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1528 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1529 * calls.c (emit_call_1): Change type of args_so_far to
1530 cumulative_args_t. Changed all callers.
1531 (initialize_argument_information): Likewise.
1532 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1533 * dse.c (get_call_args): Likewise.
1534 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1535 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1536 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1537 New member args_so_far_v. Changed all users.
1538 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1539 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1540 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1541 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1542 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1543 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1545 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1546 m32r_pass_by_reference.
1548 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1550 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1551 argument to be a VEC of statements.
1552 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1553 assert that pattern statements have to have their vector type set.
1554 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1555 Change the first argument to be a VEC of statements. Update
1557 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1558 (vect_handle_widen_mult_by_const): New function.
1559 (vect_recog_widen_mult_pattern): Change the first argument to be a
1560 VEC of statements. Update documentation. Check that the constant is
1561 INTEGER_CST. Support multiplication by a constant that fits an
1562 intermediate type - call vect_handle_widen_mult_by_const.
1563 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1564 call. Handle additional pattern statements if necessary.
1566 2011-06-16 Nick Clifton <nickc@redhat.com>
1569 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1570 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1571 md_file, extra_modes, out_file and extra_options are these are all
1572 deduced from cpu_type.
1574 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1576 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1577 truncation mask to 63.
1579 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1583 * longlong.h: Add AVR support:
1584 (count_leading_zeros): New macro.
1585 (count_trailing_zeros): New macro.
1586 (COUNT_LEADING_ZEROS_0): New macro.
1587 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1588 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1589 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1590 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1591 (LIB2FUNCS_EXCLUDE): Add _clz.
1592 * config/avr/libgcc.S (XCALL): Move up in file.
1593 (XJMP): New C Macro.
1594 (DEFUN): New asm macro.
1595 (ENDF): New asm macro.
1596 (__ffssi2): New function.
1597 (__ffshi2): New function.
1598 (__loop_ffsqi2): New function.
1599 (__ctzsi2): New function.
1600 (__ctzhi2): New function.
1601 (__clzdi2): New function.
1602 (__clzsi2): New function.
1603 (__clzhi2): New function.
1604 (__paritydi2): New function.
1605 (__paritysi2): New function.
1606 (__parityhi2): New function.
1607 (__parityqi2): New function.
1608 (__popcounthi2): New function.
1609 (__popcountsi2): New function.
1610 (__popcountdi2): New function.
1611 (__popcountqi2): New function.
1612 (__bswapsi2): New function.
1613 (__bswapdi2): New function.
1614 (__ashldi3): New function.
1615 (__ashrdi3): New function.
1616 (__lshrdi3): New function.
1617 Fix suspicous lines.
1619 2011-06-16 Richard Guenther <rguenther@suse.de>
1621 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1623 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1625 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1626 equality compares against zero for the lower bit.
1628 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1630 PR tree-optimization/49419
1631 * tree-vrp.c (execute_vrp): Call init_range_assertions
1632 before estimate_numbers_of_iterations, call
1633 free_number_of_iterations_estimates before calling
1634 remove_range_assertions.
1636 2011-06-16 Revital Eres <revital.eres@linaro.org>
1638 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1639 (struct partial_schedule): Add rows_length field.
1640 (verify_partial_schedule): Check rows_length.
1641 (ps_insert_empty_row): Handle rows_length.
1642 (create_partial_schedule): Likewise.
1643 (free_partial_schedule): Likewise.
1644 (reset_partial_schedule): Likewise.
1645 (create_ps_insn): Remove rest_count argument.
1646 (remove_node_from_ps): Update rows_length.
1647 (add_node_to_ps): Update rows_length and call create_ps_insn
1648 without passing row_rest_count.
1649 (rotate_partial_schedule): Update rows_length.
1651 2011-06-16 Revital Eres <revital.eres@linaro.org>
1653 * ddg.c (add_intra_loop_mem_dep): New function.
1654 (build_intra_loop_deps): Call it.
1656 2011-06-13 Jeff Law <law@redhat.com>
1658 * df-problems.c (df_lr_local_compute): Manually CSE
1659 PIC_OFFSET_TABLE_REGNUM.
1660 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1661 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1663 2011-06-13 Jan Hubicka <jh@suse.cz>
1665 * cgraphunit.c (handle_alias_pairs): New function.
1666 (cgraph_finalize_compilation_unit): Use it.
1667 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1668 as externally visible.
1670 2011-06-15 Richard Guenther <rguenther@suse.de>
1672 * expr.c (expand_expr_real_2): Reduce all integral types to
1674 (expand_expr_real_1): Likewise.
1676 2011-06-15 Martin Jambor <mjambor@suse.cz>
1678 PR tree-optimization/48613
1679 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1680 ipa_node_params_vector is NULL.
1682 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1685 * dwarf2out.c (dw_loc_list_node): Add force field.
1686 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1687 location in the list, even if it is modified before first real insn.
1688 (output_loc_list): Emit empty ranges with force flag set.
1689 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1691 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1694 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1695 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1696 above a fence. Update comments.
1697 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1698 placed just above it. Do not allow NULL place_to_insert.
1700 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1702 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1703 (slpeel_tree_peel_loop_to_edge): Don't call
1704 remove_dead_stmts_from_loop.
1705 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1706 remove irrelevant pattern statements. For irrelevant statements
1707 check if it is the last statement of a detected pattern, use
1708 corresponding pattern statement instead.
1709 (destroy_loop_vec_info): No need to remove pattern statements,
1710 only free stmt_vec_info.
1711 (vect_transform_loop): For irrelevant statements check if it is
1712 the last statement of a detected pattern, use corresponding
1713 pattern statement instead.
1714 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1715 pattern statements. Set basic block for the new statement.
1716 (vect_pattern_recog): Update documentation.
1717 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1718 operands of pattern statements.
1719 (vectorizable_call): Fix printing. In case of a pattern statement
1720 use the lhs of the original statement when creating a dummy
1721 statement to replace the original call.
1722 (vect_analyze_stmt): For irrelevant statements check if it is
1723 the last statement of a detected pattern, use corresponding
1724 pattern statement instead.
1725 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1726 statements use gsi of the original statement.
1728 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1730 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1731 common/common-target-def.h.
1732 * target.def (default_target_flags, handle_option,
1733 supports_split_stack, optimization_table, init_struct,
1734 except_unwind_info, unwind_tables_default, have_named_sections):
1735 Move to common/common-target.def.
1736 * target.h (enum opt_levels, struct default_options): Move to
1737 common/common-target.h.
1738 * targhooks.c (default_except_unwind_info,
1739 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1740 default_target_handle_option, empty_optimization_table): Move to
1741 common/common-targhooks.c.
1742 * targhooks.h (default_except_unwind_info,
1743 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1744 default_target_handle_option, empty_optimization_table): Move to
1745 common/common-targhooks.h.
1746 * common/common-target-def.h: Include common/common-targhooks.h.
1747 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1749 * common/common-target.def (handle_option, option_init_struct,
1750 option_optimization_table, default_target_flags,
1751 except_unwind_info, supports_split_stack, unwind_tables_default,
1752 have_named_sections): Move from target.def.
1753 (HOOK_PREFIX): Undefine at end of file.
1754 * common/common-target.h: Include input.h.
1755 (enum opt_levels, struct default_options): Move from target.h.
1756 * common/common-targhooks.c, common/common-targhooks.h: New.
1757 * config.gcc (target_has_targetm_common): Default to yes.
1758 (moxie*): Set target_has_targetm_common=no.
1759 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1760 * doc/tm.texi: Regenerate.
1761 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1762 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1763 (GCC_OBJS): Remove vec.o.
1764 (OBJS): Remove hooks.o and vec.o.
1765 (OBJS-libcommon-target): Add vec.o, hooks.o and
1766 common/common-targhooks.o.
1767 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1768 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1769 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1770 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1771 Update dependencies.
1772 (common/common-targhooks.o): New.
1773 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1774 * common/config/pa/pa-common.c: Include more headers. Take
1775 copyright dates from pa.c.
1776 (pa_option_optimization_table, pa_handle_option,
1777 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1778 TARGET_HANDLE_OPTION): Move from pa.c.
1779 * common/config/alpha/alpha-common.c,
1780 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1781 common/config/bfin/bfin-common.c,
1782 common/config/cris/cris-common.c,
1783 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1784 common/config/h8300/h8300-common.c,
1785 common/config/i386/i386-common.c,
1786 common/config/ia64/ia64-common.c,
1787 common/config/iq2000/iq2000-common.c,
1788 common/config/lm32/lm32-common.c,
1789 common/config/m32c/m32c-common.c,
1790 common/config/m32r/m32r-common.c,
1791 common/config/m68k/m68k-common.c,
1792 common/config/mcore/mcore-common.c,
1793 common/config/mep/mep-common.c,
1794 common/config/microblaze/microblaze-common.c,
1795 common/config/mips/mips-common.c,
1796 common/config/mmix/mmix-common.c,
1797 common/config/mn10300/mn10300-common.c,
1798 common/config/pdp11/pdp11-common.c,
1799 common/config/picochip/picochip-common.c,
1800 common/config/rs6000/rs6000-common.c,
1801 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1802 common/config/score/score-common.c, common/config/sh/sh-common.c,
1803 common/config/sparc/sparc-common.c,
1804 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1805 common/config/vax/vax-common.c,
1806 common/config/xstormy16/xstormy16-common.c,
1807 common/config/xtensa/xtensa-common.c: New.
1808 * config/alpha/alpha.c: Include common/common-target.h.
1809 (alpha_option_optimization_table, alpha_handle_option,
1810 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1811 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1812 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1813 * config/arm/arm.c (arm_option_optimization_table,
1814 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1815 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1817 * config/avr/avr.c (avr_option_optimization_table,
1818 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1820 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1821 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1822 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1823 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1824 * config/cris/cris.c (cris_option_optimization_table,
1825 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1826 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1828 * config/fr30/fr30.c (fr30_option_optimization_table,
1829 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1831 * config/frv/frv.c (frv_option_optimization_table,
1832 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1833 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1834 * config/h8300/h8300.c (h8300_option_optimization_table,
1835 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1836 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1837 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1838 * config/i386/i386.c: Include common/common-target.h.
1839 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1840 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1841 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1842 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1843 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1844 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1845 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1846 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1847 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1848 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1849 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1850 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1851 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1852 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1853 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1854 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1855 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1856 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1857 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1858 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1859 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1860 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1861 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1862 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1863 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1864 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1865 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1866 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1867 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1868 ix86_option_optimization_table, ix86_option_init_struct,
1869 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1870 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1871 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1873 * config/i386/t-i386 (i386.o): Update dependencies.
1874 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1875 * config/ia64/ia64.c (ia64_option_optimization_table,
1876 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1877 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1878 ia64_handle_option): Move to ia64-common.c.
1879 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1880 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1881 * config/lm32/lm32.c (lm32_option_optimization_table,
1882 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1884 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1886 * config/m32r/m32r.c (m32r_option_optimization_table,
1887 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1888 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1889 m32r_handle_option): Move to m32r-common.c.
1890 (m32r_memory_move_cost): Remove comment referring to
1891 TARGET_HANDLE_OPTION.
1892 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1893 Move to m68k-common.c.
1894 * config/mcore/mcore.c (mcore_option_optimization_table,
1895 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1896 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1897 * config/mep/mep.c (mep_option_optimization_table,
1898 mep_handle_option, TARGET_HANDLE_OPTION,
1899 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1900 Move to mep-common.c.
1901 * config/microblaze/microblaze.c
1902 (microblaze_option_optimization_table,
1903 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1904 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1905 * config/mips/mips.c (mips_handle_option,
1906 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1907 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1909 * config/mmix/mmix.c (mmix_option_optimization_table,
1910 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1911 Move to mmix-common.c.
1912 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1913 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1914 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1915 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1916 * config/pa/pa.c: Include common/common-target.h.
1917 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1918 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1919 pa_handle_option): Move to pa-common.c.
1920 (pa_option_override): Use targetm_common.except_unwind_info.
1921 (pa_asm_output_mi_thunk, pa_function_section): Use
1922 targetm_common.have_named_sections.
1923 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1924 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1925 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1926 pdp11_handle_option, pdp11_option_init_struct): Move to
1928 * config/picochip/picochip.c (picochip_option_optimization_table,
1929 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1930 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1931 * config/rs6000/rs6000.c: Include common/common-target.h.
1932 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1933 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1934 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1935 rs6000_handle_option): Move to rs6000-common.c.
1936 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1937 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1938 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1939 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1940 * config/s390/s390.c (processor_flags_table,
1941 s390_option_optimization_table, s390_option_init_struct,
1942 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1943 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1944 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1945 * config/s390/s390.h (processor_flags_table): Declare.
1946 * config/score/score.c (score_option_optimization_table,
1947 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1948 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1949 score_handle_option): Move to score-common.c.
1950 * config/sh/sh.c (sh_option_optimization_table,
1951 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1952 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1953 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1954 * config/sparc/sparc.c: Include common/common-target.h.
1955 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1956 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1957 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1958 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1959 spu_option_init_struct): Move to spu-common.c.
1960 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1961 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1962 * config/v850/v850.c (small_memory_physical_max,
1963 v850_handle_memory_optionn v850_handle_option,
1964 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1965 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1967 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1968 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1969 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1970 Move to xtensa-common.c.
1971 * cfglayout.c: Include common/common-target.h.
1972 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1973 * cfgrtl.c: Include common/common-target.h.
1974 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1975 targetm_common.have_named_sections.
1976 * dbxout.c: Include common/common-target.h.
1977 (dbxout_function_end): Use targetm_common.have_named_sections.
1978 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1979 targetm_common.except_unwind_info.
1980 * dwarf2out.c: Include common/common-target.h.
1981 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1982 dwarf2out_begin_prologue, dwarf2out_frame_init,
1983 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1984 targetm_common.except_unwind_info.
1985 * except.c: Include common/common-target.h.
1986 (init_eh, finish_eh_generation,
1987 output_one_function_exception_table): Use
1988 targetm_common.except_unwind_info.
1989 (switch_to_exception_section): Use targetm_common.have_named_sections.
1990 * explow.c: Include common/common-target.h.
1991 * expr.c: Include common/common-target.h.
1992 (build_personality_function): Use targetm_common.except_unwind_info.
1993 * function.c: Include common/common-target.h.
1994 (expand_function_end): Use targetm_common.except_unwind_info.
1995 * haifa-sched.c: Include common/common-target.h.
1996 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1997 * lto-opts.c: Include common/common-target.h instead of target.h.
1998 (lto_reissue_options): Use targetm_common.handle_option.
1999 * opts.c: Include common/common-target.h.
2000 (target_handle_option): Use targetm_common.handle_option.
2001 (init_options_struct): Update comment referring to
2002 targetm.target_option.optimization. Use
2003 targetm_common.default_target_flags,
2004 targetm_common.unwind_tables_default and
2005 targetm_common.option_init_struct.
2006 (default_options_optimization): Use
2007 targetm_common.option_optimization_table.
2008 (finish_options): Use targetm_common.except_unwind_info,
2009 targetm_common.unwind_tables_default,
2010 targetm_common.have_named_sections and
2011 targetm_common.supports_split_stack.
2012 * toplev.c: Include common/common-target.h.
2013 (process_options): Use targetm_common.have_named_sections.
2014 * tree-tailcall.c: Include common/common-target.h.
2015 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2016 * tree.c: Include common/common-target.h.
2017 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2018 * varasm.c: Include common/common-target.h.
2019 (resolve_unique_section, hot_function_section,
2020 default_function_section): Use targetm_common.have_named_sections.
2022 2011-06-14 Easwaran Raman <eraman@google.com>
2024 PR rtl-optimization/44194
2025 * dse.c: Include tree-flow.h
2026 (insn_info): Add new field non_frame_wild_read.
2027 (group_info): Add new fields escaped_n and escaped_p.
2028 (kill_on_calls): New variable.
2029 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2030 (dse_step0): Initialize kill_on_calls.
2031 (can_escape): New function.
2032 (set_usage_bits): Add additional parameter; record information
2033 about escaped locations.
2034 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2035 (dse_step2_nospill): Set kill_on_calls based on
2036 group->escaped_n and group->escaped_n.
2037 (add_wild_read): Refactor into...
2038 (reset_active_stores): ... New function, and
2039 (free_read_records): ... New function.
2040 (add_non_frame_wild_read): New function.
2041 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2042 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2043 (dse_step5_nospill): Call scan_reads_nospill for instructions
2044 marked as non_frame_wild_read.
2045 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2047 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2049 * common/common-target-def.h, common/common-target.def,
2050 common/common-target.h, common/config/default-common.c,
2051 common/config/pa/pa-common.c: New files.
2052 * Makefile.in (common_out_file, common_out_object_file,
2053 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2054 (OBJS-libcommon-target): Include $(common_out_object_file).
2055 (prefix.o): Update dependencies.
2056 ($(common_out_object_file), common/common-target-hooks-def.h,
2057 s-common-target-hooks-def-h): New.
2058 (s-tm-texi): Also check timestamp on common-target.def.
2059 (build/genhooks.o): Update dependencies.
2060 * config.gcc (common_out_file, target_has_targetm_common): Define.
2061 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2062 TARGET_ALWAYS_STRIP_DOTDOT.
2063 * configure.ac (common_out_object_file): Define.
2064 (common_out_file, common_out_object_file): Substitute.
2065 (common): Create directory.
2066 * configure: Regenerate.
2067 * doc/tm.texi.in (targetm_common): Document.
2068 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2069 * doc/tm.texi: Regenerate.
2070 * genhooks.c (hook_array): Also include common/common-target.def.
2071 * prefix.c (tm.h): Don't include.
2072 (common/common-target.h): Include.
2073 (ALWAYS_STRIP_DOTDOT): Don't define.
2074 (update_path): Use targetm_common.always_strip_dotdot instead of
2075 ALWAYS_STRIP_DOTDOT.
2076 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2078 2011-06-14 David Li <davidxl@google.com>
2080 * passes.c (execute_function_todo): Remove TODO_dump_func.
2081 (execute_one_pass): Remove TODO_dump_func.
2082 (execute_function_dump): New function.
2083 * tree-vrp.c: Remove TODO_dump_func.
2084 * regrename.c: Remove TODO_dump_func.
2085 * fwprop.c: Remove TODO_dump_func.
2086 * tree-into-ssa.c: Remove TODO_dump_func.
2087 * tree-complex.c: Remove TODO_dump_func.
2088 * tracer.c: Remove TODO_dump_func.
2089 * tree-loop-distribution.c: Remove TODO_dump_func.
2090 * postreload-gcse.c: Remove TODO_dump_func.
2091 * postreload.c: Remove TODO_dump_func.
2092 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2093 * tree-tailcall.c: Remove TODO_dump_func.
2094 * ipa-cp.c: Remove TODO_dump_func.
2095 * final.c: Remove TODO_dump_func.
2096 * tree-emutls.c: Remove TODO_dump_func.
2097 * omp-low.c: Remove TODO_dump_func.
2098 * tree-ssa-dse.c: Remove TODO_dump_func.
2099 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2100 * auto-inc-dec.c: Remove TODO_dump_func.
2101 * reorg.c: Remove TODO_dump_func.
2102 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2103 * tree-ssa-ccp.c: Remove TODO_dump_func.
2104 * compare-elim.c: Remove TODO_dump_func.
2105 * mode-switching.c: Remove TODO_dump_func.
2106 * modulo-sched.c: Remove TODO_dump_func.
2107 * tree-call-cdce.c: Remove TODO_dump_func.
2108 * cse.c: Remove TODO_dump_func.
2109 * web.c: Remove TODO_dump_func.
2110 * tree-stdarg.c: Remove TODO_dump_func.
2111 * lto-streamer-out.c: Remove TODO_dump_func.
2112 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2113 * tree-ssa-dom.c: Remove TODO_dump_func.
2114 * tree-nrv.c: Remove TODO_dump_func.
2115 * loop-init.c: Remove TODO_dump_func.
2116 * gimple-low.c: Remove TODO_dump_func.
2117 * ipa-inline.c: Remove TODO_dump_func.
2118 * tree-ssa-sink.c: Remove TODO_dump_func.
2119 * jump.c: Remove TODO_dump_func.
2120 * ifcvt.c: Remove TODO_dump_func.
2121 * tree-ssa-loop.c: Remove TODO_dump_func.
2122 * recog.c: Remove TODO_dump_func.
2123 * dse.c: Remove TODO_dump_func.
2124 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2125 * matrix-reorg.c: Remove TODO_dump_func.
2126 * tree-eh.c: Remove TODO_dump_func.
2127 * regmove.c: Remove TODO_dump_func.
2128 * function.c: Remove TODO_dump_func.
2129 * tree-vectorizer.c: Remove TODO_dump_func.
2130 * ipa-split.c: Remove TODO_dump_func.
2131 * gcse.c: Remove TODO_dump_func.
2132 * tree-if-conv.c: Remove TODO_dump_func.
2133 * init-regs.c: Remove TODO_dump_func.
2134 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2135 * implicit-zee.c: Remove TODO_dump_func.
2136 * lower-subreg.c: Remove TODO_dump_func.
2137 * bt-load.c: Remove TODO_dump_func.
2138 * tree-dfa.c: Remove TODO_dump_func.
2139 * except.c: Remove TODO_dump_func.
2140 * emit-rtl.c: Remove TODO_dump_func.
2141 * store-motion.c: Remove TODO_dump_func.
2142 * cfgexpand.c: Remove TODO_dump_func.
2143 * tree-cfgcleanup.c: Remove TODO_dump_func.
2144 * cfgcleanup.c: Remove TODO_dump_func.
2145 * tree-ssa-pre.c: Remove TODO_dump_func.
2146 * tree-sra.c: Remove TODO_dump_func.
2147 * tree-mudflap.c: Remove TODO_dump_func.
2148 * tree-ssa-copy.c: Remove TODO_dump_func.
2149 * cfglayout.c: Remove TODO_dump_func.
2150 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2151 * tree-ssa-dce.c: Remove TODO_dump_func.
2152 * ira.c: Remove TODO_dump_func.
2153 * tree-ssa.c: Remove TODO_dump_func.
2154 * integrate.c: Remove TODO_dump_func.
2155 * tree-optimize.c: Remove TODO_dump_func.
2156 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2157 * tree-object-size.c: Remove TODO_dump_func.
2158 * combine.c: Remove TODO_dump_func.
2159 * bb-reorder.c: Remove TODO_dump_func.
2160 * cprop.c: Remove TODO_dump_func.
2161 * var-tracking.c: Remove TODO_dump_func.
2162 * tree-profile.c: Remove TODO_dump_func.
2163 * tree-vect-generic.c: Remove TODO_dump_func.
2164 * reg-stack.c: Remove TODO_dump_func.
2165 * sched-rgn.c: Remove TODO_dump_func.
2166 * tree-ssa-structalias.c: Remove TODO_dump_func.
2167 * tree-switch-conversion.c: Remove TODO_dump_func.
2168 * tree-cfg.c: Remove TODO_dump_func.
2169 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2170 * combine-stack-adj.c: Remove TODO_dump_func.
2171 * dce.c: Remove TODO_dump_func.
2172 * tree-ssanames.c: Remove TODO_dump_func.
2173 * regcprop.c: Remove TODO_dump_func.
2175 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2178 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2179 and properly handle result not in Pmode.
2181 2011-06-14 Robert Millan <rmh@gnu.org>
2183 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2184 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2187 * config/i386/kfreebsd-gnu64.h: New file.
2188 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2189 with `i386/kfreebsd-gnu64.h'.
2191 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2192 (GNU_USER_LINK_EMULATION64): New macros.
2193 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2194 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2195 of hardcoding `elf_i386' and `elf_x86_64'.
2197 2011-06-14 Nick Clifton <nickc@redhat.com>
2200 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2203 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2205 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2208 * tree.h (DECL_NONSHAREABLE): Define.
2209 (struct tree_decl_common): Change decl_common_unused to
2210 decl_nonshareable_flag.
2211 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2212 Ignore vars with DECL_NONSHAREABLE bit set.
2213 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2214 on stores to automatic aggregate vars.
2216 PR rtl-optimization/49390
2218 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2220 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2223 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2224 Tom de Vries <tom@codesourcery.com>
2227 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2228 Document changed semantics.
2229 (max_stmt_executions, max_stmt_executions_int): Declare.
2230 * tree-data-ref.c (estimated_loop_iterations)
2231 (estimated_loop_iterations_int): Move functions...
2232 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2233 (estimated_loop_iterations_int): here.
2234 (record_estimate): Change nb_iterations_upper_bound and
2235 nb_iterations_estimate semantics.
2236 (max_stmt_executions, max_stmt_executions_int): New function.
2237 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2238 (max_stmt_executions_tree): this.
2239 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2240 estimated_loop_iterations_tree.
2241 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2242 max_stmt_executions_int instead of estimated_loop_iterations_int.
2243 * predict.c (predict_loops): Idem.
2244 * tree-parloops.c (parallelize_loops): Idem.
2245 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2246 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2247 (init_omega_for_ddr_1): Idem.
2248 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2249 (loop_prefetch_arrays): Idem
2250 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2251 max_stmt_executions instead of estimated_loop_iterations.
2252 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2253 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2254 instead of nb_iterations_upper_bound.
2256 2011-06-13 Jan Hubicka <jh@suse.cz>
2258 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2260 2011-06-14 Richard Henderson <rth@redhat.com>
2263 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2264 (based_loc_descr): Assert it's true.
2265 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2266 aborting immediately.
2268 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2269 Mingfeng Wu <mingfeng@faraday-tech.com>
2271 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2273 2011-06-13 Jan Hubicka <jh@suse.cz>
2275 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2277 2011-06-13 Jan Hubicka <jh@suse.cz>
2279 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2280 similarly to DECL_COMDAT.
2281 * cgraphunit.c (cgraph_analyze_function): Likewise.
2282 * ipa.c (function_and_variable_visibility): Likewise.
2284 2011-06-13 Jan Hubicka <jh@suse.cz>
2286 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2287 BINFO_VIRTUALS when streaming for ltrans unit.
2289 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2291 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2292 (movdi_internal64): Same.
2294 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2297 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2298 a set of similar patterns, where the MATCH_OPERAND for the function
2299 argument is replaced with individual references to hardware registers.
2300 (save_fpregs_<mode>): Ditto
2301 (restore_gpregs_<mode>): Ditto
2302 (return_and_restore_gpregs_<mode>): Ditto
2303 (return_and_restore_fpregs_<mode>): Ditto
2304 (return_and_restore_fpregs_aix_<mode>): Ditto
2306 2011-06-13 Jan Hubicka <jh@suse.cz>
2308 * ipa-utils.c (postorder_stack): New structure.
2309 (ipa_reverse_postorder): Handle aliases.
2311 2011-06-13 Jan Hubicka <jh@suse.cz>
2313 * ipa-inline.c (reset_edge_caches): Walk aliases.
2314 (update_caller_keys): Do not test inlinability of aliases.
2315 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2316 (do_estimate_growth): Fix typo.
2318 2011-06-13 Jan Hubicka <jh@suse.cz>
2320 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2321 (can_remove_node_now_p): ... here; handle same comdat groups.
2322 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2323 (inline_call): Update use of can_remove_node_now_p.
2325 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2327 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2328 condition to disallow non-identical memory locations.
2329 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2330 preference to bit manipulation instructions.
2332 2011-06-13 Jan Hubicka <jh@suse.cz>
2334 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2335 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2336 (nonremovable_p): New function.
2337 (cgraph_can_remove_if_no_direct_calls_p): New function.
2338 (used_from_object_file_p): New functoin.
2339 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2340 references from aliases.
2341 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2342 * ipa-inline.c (check_caller_edge): New function.
2343 (want_inline_function_called_once_p): Use it; accept aliases called
2345 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2347 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2350 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2351 correctly for the case with Quad vectors.
2353 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2354 Ira Rosen <ira.rosen@linaro.org>
2356 PR tree-optimization/49352
2357 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2358 all, make sure loop_use_stmt after the loop is a def stmt of a used
2359 SSA_NAME that is the only one defined inside of the loop. Don't
2360 check for COND_EXPR and GIMPLE_BINARY_RHS.
2361 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2362 check_reduction is true.
2364 2011-06-11 Jan Hubicka <jh@suse.cz>
2367 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2369 2011-06-11 Jan Hubicka <jh@suse.cz>
2372 * ipa-inline-transform.c: Include tree-pass.h
2373 (inline_transform): Set TODO_update_ssa_only_virtuals.
2374 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2376 2011-06-11 Jan Hubicka <jh@suse.cz>
2379 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2382 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2384 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2385 Take number of iterations to peel into account for equally frequent
2386 misalignment values.
2388 2011-06-11 Jan Hubicka <jh@suse.cz>
2390 * lto-streamer-out.c (produce_symtab): Stream out the newly
2391 represented aliases.
2393 2011-06-11 Jan Hubicka <jh@suse.cz>
2395 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2397 (ipa_update_after_lto_read): Likewise.
2398 (ipa_write_node_info): Do not sream call_with_var_arguments.
2399 (ipa_read_node_info): Likewise.
2401 2011-06-11 Jan Hubicka <jh@suse.cz>
2403 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2405 2011-06-11 Jan Hubicka <jh@suse.cz>
2407 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2408 (lto_symtab_resolve_can_prevail_p): Likewise.
2409 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2410 * cgraph.c (same_body_aliases_done): New global var.
2411 (cgraph_same_body_alias_1): Rename to ...
2412 (cgraph_create_function_alias): ... this one; reorg to new
2414 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2415 record references when asked to.
2416 (cgraph_add_thunk): Fix formating.
2417 (cgraph_get_node): Kill same body alias code.
2418 (cgraph_node_for_asm): Likewise.
2419 (cgraph_remove_same_body_alias): Remove.
2420 (cgraph_remove_node): Kill same body alias code.
2421 (cgraph_mark_address_taken_node): Mark also the aliased function
2422 as having address taken.
2423 (dump_cgraph_node): Dump same body aliases.
2424 (cgraph_for_node_thunks_and_aliases): Update for new alias
2426 (cgraph_for_node_and_aliases): Likewise.
2427 * cgraph.h (same_body): Kll pointer.
2428 (same_body_alias): Update comment.
2429 (same_body_aliases_done): Declare.
2430 (cgraph_remove_same_body_alias): Remove declaration.
2431 (cgraph_create_function_alias): Declare.
2432 (cgraph_process_same_body_aliases): Declare.
2433 (cgraph_function_with_gimple_body_p): Check for alias.
2434 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2435 (cgraph_alias_aliased_node): New function.
2436 (cgraph_function_node): Update for new aliases.
2437 (cgraph_function_or_thunk_node): Likewise.
2438 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2439 (inline_call): Remove dead aliases.
2440 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2441 name hack for same body aliases.
2442 (clone_of_p): Look through aliases.
2443 (verify_cgraph_node): Verify aliases.
2444 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2445 (cgraph_process_same_body_aliases): New function.
2446 (process_function_and_variable_attributes): Disable weakref warning on
2448 (cgraph_analyze_functions): Handle aliases.
2449 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2450 (assemble_thunks): Rename to ...
2451 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2452 (cgraph_expand_function): Remove alias output code.
2453 (cgraph_output_in_order): Skip aliases.
2454 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2455 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2456 (ipa_record_reference): Do not assert on alias references.
2457 (ipa_ref_has_aliases_p): New function.
2458 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2459 (ipa_ref_has_aliases_p): Declare.
2460 * lto-cgraph.c (lto_output_node): Handle aliases.
2461 (input_node): Likewise.
2462 * lto-streamer-out.c (lto_output): Skip aliases.
2463 (produce_symtab): Kill same_body_alias code.
2464 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2465 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2466 * ipa-inline.c (update_caller_keys): Walk aliases.
2467 (inline_small_functions): Fix thinko in previous patch.
2468 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2469 (function_and_variable_visibility): Do not walk same body aliases.
2470 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2471 (ipa_pta_execute): Use it.
2473 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2475 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2476 (*vec_dupv2df): Rename from vec_dupv2df.
2477 (vec_dupv2df): New expander.
2479 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2481 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2483 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2485 * config/i386/i386.md: Use default value in "isa" attribute.
2486 * config/i386/sse.md: Ditto.
2487 * config/i386/mmx.md: Ditto.
2489 2011-06-10 Wei Guozhi <carrot@google.com>
2492 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2493 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2494 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2496 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2498 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2499 (arm_legitimate_ldrd_p): New prototype.
2500 (arm_output_ldrd): New prototype.
2501 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2502 (arm_legitimate_ldrd_p): New function.
2503 (arm_output_ldrd): New function.
2505 2011-06-10 David Li <davidxl@google.com>
2507 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2508 * passes.c (passr_eq): New function.
2509 (create_pass_tab): New function.
2510 (pass_traverse): New function.
2511 (dump_one_pass): New function.
2512 (dump_pass_list): New function.
2513 (dump_passes): New function.
2515 2011-06-10 Jan Hubicka <jh@suse.cz>
2517 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2518 setting the nothrow flag.
2519 * ipa-reference.c (propagate): Skip aliases.
2520 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2521 (propagate_nothrow): Skip aliases; do not update cgraph.
2522 (local_pure_const): Do not update cgraph.
2523 * tree-profile.c (tree_profiling): Do fixup_cfg.
2525 2011-06-10 Jan Hubicka <jh@suse.cz>
2527 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2528 (cgraph_local_node_p): ... here; handle aliases.
2529 (has_addr_references_p): Break out from ...;
2530 (cgraph_remove_unreachable_nodes) ... here.
2532 2011-06-10 Jan Hubicka <jh@suse.cz>
2534 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2535 * common.opt (flag_inline_functions_called_once): Do not
2538 2011-06-10 Jan Hubicka <jh@suse.cz>
2540 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2541 (ipcp_initialize_node_lattices): Do not deal with aliases;
2542 Do not try to propagate through thunks.
2543 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2545 2011-06-10 Jan Hubicka <jh@suse.cz>
2547 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2549 (ipa_read_node_info): Likewise.
2551 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2554 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2555 (build_and_insert_call): Likewise.
2556 (build_and_insert_ref): New.
2557 (gimple_expand_builtin_pow): Minor cleanup.
2558 (gimple_expand_builtin_cabs): New.
2559 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2561 2011-06-10 Jan Hubicka <jh@suse.cz>
2563 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2564 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2565 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2566 (ipcp_propagate_stage): Skip aliases when propagating.
2567 (ipcp_need_redirect_p): Skip aliases.
2568 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2569 collect_callers_of_node.
2570 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2572 (ipa_compute_jump_functions): Look through aliases.
2574 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2576 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2578 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2580 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2582 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2584 2011-06-10 Jan Hubicka <jh@suse.cz>
2586 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2587 Update call of gimple_get_virt_method_for_binfo.
2588 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2589 refuse_thunks parameter.
2590 (gimple_fold_call): Update.
2591 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2593 2011-06-10 Jan Hubicka <jh@suse.cz>
2595 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2596 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2597 worker for cgraph_for_node_and_aliases.
2598 (convert_callers_for_node): Break out from ...
2599 (convert_callers): ... here.
2600 (modify_function): Use collect_callers_of_node.
2601 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2603 2011-06-10 Richard Guenther <rguenther@suse.de>
2605 PR tree-optimization/49361
2606 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2607 when not already in gimple form.
2609 2011-06-10 Richard Guenther <rguenther@suse.de>
2612 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2613 FOR_EACH_PHI_OR_STMT_USE.
2615 2011-06-10 Jan Hubicka <jh@suse.cz>
2617 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2618 (clone_inlined_nodes): ... here.
2619 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2620 to real destination prior inlining.
2621 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2622 can_early_inline_edge_p, want_early_inline_function_p,
2623 want_early_inline_function_p, want_inline_small_function_p,
2624 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2625 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2626 add_new_edges_to_heap, inline_small_functions, flatten_function,
2627 inline_always_inline_functions, early_inline_small_functions): Use
2628 cgraph_function_or_thunk_node.
2629 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2630 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2631 (do_estimate_edge_growth_1): Break out from ...
2632 (do_estimate_growth) ... here; walk aliases.
2633 (inline_generate_summary): Skip aliases.
2635 2011-06-10 Richard Guenther <rguenther@suse.de>
2637 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2638 forward when combining, visit inserted stmts when a stmt was changed.
2640 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2642 * tree.h (error_operand_p): Add.
2643 * dbxout.c (dbxout_type_fields): Use the latter.
2644 * c-decl.c (add_stmt): Likewise.
2645 * gimplify.c (omp_add_variable, omp_notice_variable,
2646 gimplify_scan_omp_clauses): Likewise.
2648 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2650 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2651 when a value is actually passed in regs.
2653 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2654 Laurent Rougé <laurent.rouge@menta.fr>
2656 * doc/invoke.texi (SPARC options): Add -mflat.
2657 * config/sparc/sparc.opt: Likewise.
2658 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2659 (sparc_flat_expand_prologue): Declare.
2660 (sparc_flat_expand_epilogue): Likewise.
2661 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2662 (CPP_ENDIAN_SPEC): Replace with...
2663 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2664 (CPP_SPEC): Adjust to above change.
2665 (EXTRA_SPECS): Likewise.
2666 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2667 (INCOMING_REGNO): Likewise.
2668 (OUTGOING_REGNO): Likewise.
2669 (LOCAL_REGNO): Likewise.
2670 (SETUP_FRAME_ADDRESSES): Likewise.
2671 (FIXED_REGISTERS): Set 0 for %fp.
2672 (CALL_USED_REGISTERS): Likewise.
2673 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2674 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2675 (RETURN_ADDR_REGNUM): Define.
2676 (RETURN_ADDR_RTX): Use it.
2677 (INCOMING_RETURN_ADDR_REGNUM): Define.
2678 (INCOMING_RETURN_ADDR_RTX): Use it.
2679 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2680 (EH_RETURN_REGNUM): Define.
2681 (EH_RETURN_STACKADJ_RTX): Use it.
2682 (EH_RETURN_HANDLER_RTX): Delete.
2683 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2684 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2686 (struct machine_function): Add frame_size, apparent_frame_size,
2687 frame_base_reg, frame_base_offset, n_global_fp_regs and
2688 save_local_in_regs_p fields.
2689 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2690 sparc_frame_base_offset, sparc_n_global_fp_regs,
2691 sparc_save_local_in_regs_p): New macros.
2692 (sparc_option_override): Error out if -fcall-saved-REG is specified
2694 (eligible_for_restore_insn): Fix formatting.
2695 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2696 (eligible_for_sibcall_delay): Likewise.
2697 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2698 (sparc_legitimate_address_p): Adjust to above change.
2699 (save_global_or_fp_reg_p): New predicate.
2700 (return_addr_reg_needed_p): Likewise.
2701 (save_local_or_in_reg_p): Likewise.
2702 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2703 (SORR_SAVE, SORR_RESTORE): Delete.
2704 (sorr_pred_t): New typedef.
2705 (sorr_act_t): New enum.
2706 (save_or_restore_regs): Rename to...
2707 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2708 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2709 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2710 mechanism. Add CFI information for double-word saves in 32-bit mode.
2711 (emit_adjust_base_to_offset): New function extracted from...
2712 (emit_save_or_restore_regs): ...this. Rename the rest to...
2713 (emit_save_or_restore_regs_global_fp_regs): ...this.
2714 (emit_save_or_restore_regs_local_in_regs): New function.
2715 (gen_create_flat_frame_[123]): New functions.
2716 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2717 (sparc_flat_expand_prologue): New function.
2718 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2719 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2720 (sparc_flat_expand_epilogue): New function.
2721 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2722 (output_return): Likewise.
2723 (output_sibcall): Likewise.
2724 (sparc_output_mi_thunk): Likewise.
2725 (sparc_frame_pointer_required): Likewise.
2726 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2727 function optimization.
2728 * config/sparc/sparc.md (flat): New attribute.
2729 (prologue): Add TARGET_FLAT handling.
2730 (save_register_window): Disable if TARGET_FLAT.
2731 (create_flat_frame_[123]): New patterns.
2732 (epilogue): Add TARGET_FLAT handling.
2733 (sibcall_epilogue): Likewise.
2734 (eh_return): New expander.
2735 (eh_return_internal): New insn and splitter.
2736 (return_internal): Add TARGET_FLAT handling.
2737 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2738 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2739 (nonlocal_goto): Add TARGET_FLAT handling.
2740 * config/sparc/t-elf: Add -mflat multilib.
2741 * config/sparc/t-leon: Likewise.
2743 2011-06-10 Jan Hubicka <jh@suse.cz>
2745 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2746 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2747 (self_recursive_p): Use cgraph_function_node.
2748 (propagate_pure_const): Likewise.
2749 (propagate_nothrow): Likewise.
2750 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2751 cgraph_function_node.
2752 (propagate_bits): Likewise.
2753 (propagate): Likewise.
2755 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2756 Richard Earnshaw <rearnsha@arm.com>
2758 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2759 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2760 (*thumb2_movdi_vfp): Delete.
2761 (*arm_movdi_vfp_cortexa8): Delete.
2762 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2763 (*movdi_vfp_cortexa8): Likewise.
2765 2011-06-10 Richard Guenther <rguenther@suse.de>
2767 * stor-layout.c (initialize_sizetypes): Give names to all
2770 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2772 PR tree-optimization/49318
2773 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2774 irrelevant pattern statements.
2776 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2778 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2781 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2784 2011-06-09 Jan Hubicka <jh@suse.cz>
2786 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2787 do not recompute reachable flag.
2788 (cgraph_finalize_function, cgraph_analyze_functions): Set
2789 redefined_extern_inline here.
2791 2011-06-09 Jan Hubicka <jh@suse.cz>
2793 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2794 (cgraph_only_called_directly_p): ... this one; bring offline.
2795 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2796 varpool_used_from_object_file_p): Drop names from the declaratoin.
2797 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2798 collect_callers_of_node): New.
2799 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2800 (cgraph_edge_recursive_p): Use cgraph_function_node.
2801 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2802 (cgraph_node_cannot_be_local_p_1): Break out from ...
2803 (cgraph_node_can_be_local_p): ... here; walk aliases.
2804 (cgraph_for_node_thunks_and_aliases): New function.
2805 (cgraph_for_node_and_aliases): New function.
2806 (cgraph_make_node_local_1): Break out from ...
2807 (cgraph_make_node_local) ... here; use
2808 cgraph_for_node_thunks_and_aliases.
2809 (cgraph_set_nothrow_flag_1): Break out from ...
2810 (cgraph_set_nothrow_flag) ... here;
2811 use cgraph_for_node_thunks_and_aliases.
2812 (cgraph_set_const_flag_1): Break out from ...
2813 (cgraph_set_const_flag) ... here;
2814 use cgraph_for_node_thunks_and_aliases.
2815 (cgraph_set_pure_flag_1): Break out from ...
2816 (cgraph_set_pure_flag) ... here;
2817 use cgraph_for_node_thunks_and_aliases.
2818 (cgraph_propagate_frequency_1): Break out from ...
2819 (cgraph_propagate_frequency) ... here; use
2820 cgraph_for_node_thunks_and_aliases.
2821 (cgraph_used_from_object_file_p): Do not care about aliases.
2822 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2824 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2826 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2828 PR rtl-optimization/49154
2829 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2830 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2831 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2832 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2833 * config/cris/cris.h (cris_register_move_cost): Remove
2834 !TARGET_V32 code. Tweak comments.
2836 2011-06-09 Jan Hubicka <jh@suse.cz>
2838 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2841 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2843 PR rtl-optimization/49154
2844 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2845 is a matching slot in the hashtable, assign it to classes_ptr.
2847 PR rtl-optimization/49154
2848 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2850 * doc/tm.texi: Regenerate.
2852 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2855 * config/sh/sh.md (UNSPEC_CHKADD): New.
2856 (chk_guard_add): New define_insn_and_split.
2857 (symGOT_load): Use chk_guard_add instead of blockage.
2859 2011-06-09 Kai Tietz <ktietz@redhat.com>
2861 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2863 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2865 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2867 2011-06-09 Wei Guozhi <carrot@google.com>
2870 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2871 (peephole2 for conditional move): Generate 16 bit instructions.
2873 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2875 * config/i386/i386.md (*movdi_internal_rex64): Merge
2876 alternatives 6 and 8.
2878 2011-06-09 David Li <davidxl@google.com>
2880 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2881 * passes.c (passr_eq): New function.
2882 (create_pass_tab): New function.
2883 (pass_traverse): New function.
2884 (dump_one_pass): New function.
2885 (dump_pass_list): New function.
2886 (dump_passes): New function.
2888 2011-06-09 David Li <davidxl@google.com>
2890 * tree-complex.c (tree_lower_complex): Gate cleanup.
2891 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2892 (execute_optimize_stdarg): Ditto.
2893 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2894 (execute_cleanup_eh_1): Ditto.
2895 (execute_cleanup_eh): Ditto.
2896 * gcse.c (gate_rtl_pre): Ditto.
2897 (execute_rtl_pre): Ditto.
2898 * except.c (finish_eh_generation): Ditto.
2899 (convert_to_eh_region_ranges): Ditto.
2900 * cprop.c (one_cprop_pass): Ditto.
2902 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2905 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2906 in all basic blocks.
2908 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2910 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2911 (HAVE_ENABLE_EXECUTE_STACK): Define.
2912 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2913 (HAVE_ENABLE_EXECUTE_STACK): Define.
2914 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2915 (HAVE_ENABLE_EXECUTE_STACK): Define.
2916 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2917 (ENABLE_EXECUTE_STACK): Remove.
2918 (HAVE_ENABLE_EXECUTE_STACK): Define.
2919 [IN_LIBGCC2]: Don't include <windows.h>.
2920 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2921 (HAVE_ENABLE_EXECUTE_STACK): Define.
2922 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2923 (HAVE_ENABLE_EXECUTE_STACK): Define.
2924 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2925 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2926 (HAVE_ENABLE_EXECUTE_STACK): Define.
2927 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2928 (HAVE_ENABLE_EXECUTE_STACK): Define.
2929 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2930 (HAVE_ENABLE_EXECUTE_STACK): Define.
2931 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2932 (HAVE_ENABLE_EXECUTE_STACK): Define.
2933 * config/alpha/alpha.c (alpha_trampoline_init): Test
2934 HAVE_ENABLE_EXECUTE_STACK.
2935 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2936 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2937 (sparc64_initialize_trampoline): Likewise.
2938 * libgcc2.c [L_enable_execute_stack]: Remove.
2939 * system.h (ENABLE_EXECUTE_STACK): Poison.
2940 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2941 * doc/tm.texi: Regenerate.
2942 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2944 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2947 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2948 variable. After resetting and rescanning insn continue with previous
2951 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2953 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2954 (gcc_cv_ld_hidden): Likewise.
2955 * configure: Regenerate.
2956 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2957 (ix86_stack_protect_fail): Mark unused.
2958 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2959 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2960 [TARGET_MACHO]: Don't define.
2961 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2962 (TARGET_STACK_PROTECT_FAIL): Likewise.
2963 (rs6000_stack_protect_fail): Mark unused.
2964 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2965 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2967 2011-06-08 Andi Kleen <ak@linux.intel.com>
2969 * varasm.c (get_section): Print location of other conflict
2970 for section conflicts.
2972 2011-06-08 Andi Kleen <ak@linux.intel.com>
2974 * config/i386/driver-i386.c (host_detect_local_cpu):
2975 Add model 0x2d Intel CPU.
2977 2011-06-08 Andi Kleen <ak@linux.intel.com>
2979 * reginfo.c (global_regs_decl): Add.
2980 (globalize_reg): Add decl parameter. Compute location. Pass location
2981 to warnings and add inform. Store decl in global_regs_decl.
2982 * rtl.h (globalize_reg): Update prototype.
2983 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2985 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2987 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2989 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2992 * config/sh/predicates.md (general_movsrc_operand): Check
2993 mode for memory with indexed address for QI and HImode.
2994 (general_movdst_operand): Likewise.
2996 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2998 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3000 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3002 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3003 (num_ssa_operands): Likewise.
3004 (op_iter_init_phiuse): Forward-declare.
3005 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3007 2011-06-08 Nick Clifton <nickc@redhat.com>
3009 * doc/invoke.texi (ARM Options): Update description of
3012 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3014 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3015 unknown Intel family 0x6 CPUs.
3017 2011-06-08 Martin Jambor <mjambor@suse.cz>
3019 * tree-sra.c (mark_rw_status): Removed.
3020 (analyze_access_subtree): New parameter parent instead of
3021 mark_read and mark_write, propagate from that.
3023 2011-06-08 Julian Brown <julian@codesourcery.com>
3025 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3026 for double-precision helper functions in hard-float mode if only
3027 single-precision arithmetic is supported in hardware.
3029 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3031 PR rtl-optimization/49303
3032 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3033 code_motion_path_driver returned 0 or 1.
3034 (sel_region_finish): Clear h_d_i_d.
3036 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3038 * config/sh/sh.c (prepare_move_operands): Set pic register
3039 appropriately for global and local dynamic tls models even
3040 if flag_pic is unset.
3042 2011-06-07 Jason Merrill <jason@redhat.com>
3044 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3046 2011-06-07 Xinliang David Li <davidxl@google.com>
3047 * passes.c (enable_disable_pass): Handle assembler name.
3048 (is_pass_explicitly_enabled_or_disabled): Ditto.
3050 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3052 PR tree-optimization/48497
3053 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3055 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3057 PR tree-optimization/46728
3058 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3059 to use gimple_val_nonnegative_real_p.
3060 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3061 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3063 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3065 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3067 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3069 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3072 2011-06-07 Richard Guenther <rguenther@suse.de>
3074 * stor-layout.c (initialize_sizetypes): Initialize all
3075 sizetypes based on target definitions.
3076 (set_sizetype): Remove.
3077 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3078 * tree.h (set_sizetype): Remove.
3080 2011-06-07 Nick Clifton <nickc@redhat.com>
3082 * config.gcc: Unify V850 architecture options and add support for
3083 newer V850 architectures.
3084 * config/v850/t-v850e: Delete.
3086 2011-06-07 Richard Guenther <rguenther@suse.de>
3088 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3089 Call set_sizetype from here.
3091 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3093 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3094 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3096 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3097 Andrew Stubbs <ams@codesourcery.com>
3099 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3101 * doc/md.texi (Canonicalization of Instructions): Document widening
3102 multiply canonicalization.
3104 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3106 PR gcov-profile/49299
3107 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3109 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3111 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3113 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3114 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3115 vect_recog_pow_pattern): Likewise.
3116 (vect_pattern_recog_1): Remove declaration.
3117 (widened_name_p): Remove declaration. Add new argument to specify
3118 whether to check that both types are either signed or unsigned.
3119 (vect_recog_widen_mult_pattern): Update documentation. Handle
3120 unsigned patterns and multiplication by constants.
3121 (vect_pattern_recog_1): Update vect_recog_func references. Use
3122 statement information from the statement returned from pattern
3123 detection functions.
3124 (vect_pattern_recog): Update vect_recog_func reference.
3125 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3126 multiplication by a constant use the type of the other operand.
3128 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3130 PR rtl-optimization/49145
3131 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3133 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3136 * dwarf2out.c (native_encode_initializer): Decrement count in each
3140 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3144 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3145 if stmt folded into nothing.
3146 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3147 a bb folded into nothing, just update cgraph edges and move to next bb.
3148 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3149 to be NULL. Don't compute count and frequency if new_call is NULL.
3151 2011-06-04 Diego Novillo <dnovillo@google.com>
3153 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3154 (cgraph.o): Likewise.
3155 (cgraphunit.o): Likewise.
3156 * cgraphunit.c: Include lto-streamer.h
3157 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3159 * lto-streamer-in.c (unpack_value_fields): Call
3160 streamer_hooks.unpack_value_fields if set.
3161 (lto_materialize_tree): For unhandled nodes, first try to
3162 call lto_streamer_hooks.alloc_tree, if it exists.
3163 (lto_input_ts_decl_common_tree_pointers): Move reading of
3164 DECL_INITIAL to lto_streamer_read_tree.
3165 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3166 (lto_streamer_read_tree): New.
3167 (lto_reader_init): Rename from lto_init_reader.
3168 Move initialization code to lto/lto.c.
3169 * lto-streamer-out.c (pack_value_fields): Call
3170 streamer_hooks.pack_value_fields if set.
3171 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3172 call streamer_hooks.indexable_with_decls_p before giving up.
3173 (lto_output_ts_decl_common_tree_pointers): Move handling
3174 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3175 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3176 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3177 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3178 (lto_streamer_write_tree): New.
3179 (lto_output): Call lto_streamer_init directly.
3180 (lto_writer_init): Remove.
3181 * lto-streamer.c (streamer_hooks): New.
3182 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3183 instead of lto_preload_common_nodes.
3184 (lto_is_streamable): Move from lto-streamer.h
3185 (lto_streamer_hooks_init): New.
3186 (streamer_hooks): New.
3187 (streamer_hooks_init): New.
3188 * lto-streamer.h (struct output_block): Forward declare.
3189 (struct lto_input_block): Likewise.
3190 (struct data_in): Likewise.
3191 (struct bitpack_d): Likewise.
3192 (struct streamer_hooks): Declare.
3193 (streamer_hooks): Declare.
3194 (lto_streamer_hooks_init): Declare.
3195 (lto_streamer_write_tree): Declare.
3196 (lto_streamer_read_tree): Declare.
3197 (streamer_hooks_init): Declare.
3198 (lto_is_streamable): Move to lto-streamer.c
3200 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3202 * longlong.h (smul_ppmm): The resulting register pair contains the
3203 higher order word first.
3205 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3207 PR tree-optimization/46728
3208 * builtins.c (powi_table): Remove.
3209 (powi_lookup_cost): Remove.
3210 (powi_cost): Remove.
3211 (expand_powi_1): Remove.
3212 (expand_powi): Remove.
3213 (expand_builtin_pow_root): Remove.
3214 (expand_builtin_pow): Remove.
3215 (expand_builtin_powi): Eliminate handling of constant exponent.
3216 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3218 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3220 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3222 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3224 * dce.c (reset_unmarked_insns_debug_uses): New.
3225 (delete_unmarked_insns): Skip debug insns.
3226 (prescan_insns_for_dce): Likewise.
3227 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3228 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3229 active reg can be found.
3230 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3231 (convert_regs_1): Use it.
3233 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3235 * tree-pretty-print.c (dump_function_header): Add flags.
3236 Don't dump decl_uid with nouid.
3237 * tree-pretty-print.h (dump_function_header): Adjust.
3238 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3239 * passes.c (pass_init_dump_file): Pass dump_flags on.
3240 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3242 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3245 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3247 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3249 PR tree-optimization/49243
3250 * calls.c (setjmp_call_p): Also check if fndecl has the
3251 returns_twice attribute.
3253 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3255 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3258 2011-06-06 Richard Henderson <rth@redhat.com>
3259 Georg-Johann Lay <avr@gjlay.de>
3262 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3264 * config/avr/avr.md ("insv"): New insn expander.
3265 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3266 "*insv.not.io", "*insv.reg"): New insns.
3268 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3271 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3272 to nonimmediate_operand from memory_operand for the operand that is to
3273 be forced to memory by the expander. Lose the constraints.
3275 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3277 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3278 EH return when delayed branches are disabled.
3280 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3282 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3283 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3285 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3286 Simplify MODE_V1DF and MODE_V2SF handling.
3287 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3288 Simplify MODE_SF handling.
3290 2011-06-04 Jan Hubicka <jh@suse.cz>
3292 PR tree-optimization/48893
3293 PR tree-optimization/49091
3294 PR tree-optimization/49179
3295 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3298 2011-06-04 Jan Hubicka <jh@suse.cz>
3301 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3304 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3306 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3308 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3311 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3312 to be strictly smaller than 1 << shiftcount.
3314 2011-06-04 Jan Hubicka <jh@suse.cz>
3316 PR tree-optimize/48929
3317 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3320 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3323 * calls.c (emit_call_1): Prefer the __builtin declaration of
3326 2011-06-03 Diego Novillo <dnovillo@google.com>
3328 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3329 (lto_input_tree_pointers): Likewise.
3330 * lto-streamer-out.c (pack_value_fields): Likewise.
3331 (lto_output_tree_pointers): Likewise.
3332 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3333 and OPTIMIZATION_NODE.
3335 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3337 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3338 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3339 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3340 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3341 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3342 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3343 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3344 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3345 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3346 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3347 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3348 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3349 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3350 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3351 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3352 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3353 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3354 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3355 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3356 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3357 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3358 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3359 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3360 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3361 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3362 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3363 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3364 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3365 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3366 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3367 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3368 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3369 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3370 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3371 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3372 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3373 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3374 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3375 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3376 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3377 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3378 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3379 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3380 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3381 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3382 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3383 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3384 * system.h (MD_UNWIND_SUPPORT): Poison.
3385 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3386 * doc/tm.texi: Regenerate.
3387 * unwind-dw2.c: Include md-unwind-support.h instead of
3389 * config/ia64/unwind-ia64.c: Likewise.
3390 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3392 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3394 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3396 2011-06-03 Richard Henderson <rth@redhat.com>
3397 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3399 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3400 (sigill_hdlr): Correct insn, insn size.
3401 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3403 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3405 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3407 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3408 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3409 * config/mips/t-iris: Remove.
3410 * config/mips/t-irix6: New file.
3411 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3413 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415 * Makefile.in (LIB2ADDEHDEP): Remove.
3416 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3417 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3418 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3419 * config/t-darwin (LIB2ADDEHDEP): Remove.
3420 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3421 * config/t-linux (LIB2ADDEHDEP): Remove.
3423 2011-06-03 Diego Novillo <dnovillo@google.com>
3425 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3426 (lto_register_var_decl_in_symtab): Likewise.
3427 (lto_register_function_decl_in_symtab): Likewise.
3428 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3429 logic to uniquify_nodes.
3431 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3433 * config/alpha/t-osf5: Remove.
3434 * config/alpha/t-osf-pthread: Remove.
3435 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3436 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3438 2011-06-03 Julian Brown <julian@codesourcery.com>
3440 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3441 (strongarm1110): Use strongarm tuning.
3442 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3443 * config/arm/arm.c (arm_strongarm_tune): New.
3444 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3445 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3446 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3447 setting, using previous defaults or 1 for Cortex-A5.
3448 (arm_option_override): Set max_insns_skipped from current tuning.
3450 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3452 * doc/install.texi (Options specification): Document --with-specs.
3454 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3456 * config/arm/neon.md (orndi3_neon): Actually split it.
3458 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3460 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3461 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3463 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3466 * target.def (delay_sched2, delay_vartrack): New.
3467 * doc/tm.texi.in: Update.
3468 * doc/tm.texi: Rebuild.
3469 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3470 * var-tracking.c (gate_handle_var_tracking): Likewise.
3471 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3472 (bfin_flag_var_tracking): Drop.
3473 (output_file_start): Don't save and override flag_var_tracking.
3474 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3475 (bfin_reorg): Test original variables.
3476 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3477 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3478 (ia64_flag_var_tracking): Drop.
3479 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3480 (ia64_file_start): Don't save and override flag_var_tracking.
3481 (ia64_override_options_after_change): Ditto
3482 flag_schedule_insns_after_reload.
3483 (ia64_reorg): Test original variables.
3484 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3485 (picochip_flag_var_tracking): Drop.
3486 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3487 (picochip_option_override): Don't save and override
3488 flag_schedule_insns_after_reload.
3489 (picochip_asm_file_start): Ditto flag_var_tracking.
3490 (picochip_reorg): Test original variables.
3491 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3492 (TARGET_DELAY_VARTRACK): Define.
3493 (spu_var_tracking): New.
3494 (spu_machine_dependent_reorg): Call it.
3495 (asm_file_start): Don't save and override flag_var_tracking.
3497 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3500 * config/sh/predicates.md (general_movsrc_operand): Return 0
3501 for memory and memory subreg of which address is an invalid
3502 indexed address for QI and HImode.
3503 (general_movdst_operand): Likewise.
3505 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3507 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3508 edges only, when there is a non-local label in the function.
3509 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3511 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3513 * config/i386/constraints.md (Y3): New register constraint.
3514 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3515 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3516 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3517 *sse2_interleave_lowv2df.
3519 2011-06-02 Julian Brown <julian@codesourcery.com>
3521 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3522 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3523 (arm_cortex_a5_tune): New.
3525 2011-06-02 Julian Brown <julian@codesourcery.com>
3527 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3528 * config/arm/arm.c (arm_default_branch_cost): New.
3529 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3530 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3531 (arm_fa726_tune): Set branch_cost field using
3532 arm_default_branch_cost.
3533 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3534 current_tune structure.
3535 * dojump.c (tm_p.h): Include file.
3537 2011-06-02 Julian Brown <julian@codesourcery.com>
3539 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3541 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3542 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3543 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3545 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3546 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3547 (arm_fa726te_tune): Add prefer_constant_pool setting.
3548 (arm_v6t2_tune, arm_cortex_tune): New.
3549 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3550 prefer_constant_pool setting.
3552 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3554 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3556 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3557 (*movdf_internal) <case 6,7,8>: Ditto.
3559 * config/i386/constraints.md (Y4): New register constraint.
3560 * config/i386/sse.md (vec_set<mode>_0): Merge with
3561 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3562 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3563 *vec_extractv2di_1_sse.
3564 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3565 and *vec_concatv2di_rex64_sse.
3567 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3570 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3571 of cgraph_local_info for null before attempting to use it.
3573 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3575 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3576 (current_function_dynamic_alloc_count): Delete.
3577 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3578 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3579 (expand_builtin_update_setjmp_buf): Remove dead code.
3580 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3581 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3583 * function.c (instantiate_virtual_regs): Likewise.
3584 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3585 for a block with a single abnormal incoming edge.
3586 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3587 (SETJMP_VIA_SAVE_AREA): Delete.
3588 * config/sparc/sparc-protos.h (load_got_register): Declare.
3589 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3590 (load_got_register): Make global.
3591 (sparc_frame_pointer_required): Add 'static'.
3592 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3593 (sparc_builtin_setjmp_frame_value): New function.
3594 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3595 (save_stack_nonlocal): New expander.
3596 (restore_stack_nonlocal): Likewise.
3597 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3598 (nonlocal_goto_internal): New insn.
3599 (goto_handler_and_restore): Delete.
3600 (builtin_setjmp_setup): Likewise.
3601 (do_builtin_setjmp_setup): Likewise.
3603 (builtin_setjmp_receiver): New expander.
3605 2011-06-01 David Li <davidxl@google.com>
3608 * tree-pretty-print.c (dump_function_header): Format cleanup.
3610 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3613 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3614 needed when original operands are used for msw_skip comparison.
3616 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3619 * var-tracking.c (add_uses, add_stores): Don't call
3620 cselib_subst_to_values on ENTRY_VALUE.
3622 2011-06-01 Diego Novillo <dnovillo@google.com>
3624 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3625 output_record_start with LTO_null instead of output_zero.
3626 (lto_output_ts_binfo_tree_pointers): Likewise.
3627 (lto_output_tree): Likewise.
3628 (output_eh_try_list): Likewise.
3629 (output_eh_region): Likewise.
3630 (output_eh_lp): Likewise.
3631 (output_eh_regions): Likewise.
3632 (output_bb): Likewise.
3633 (output_function): Likewise.
3634 (output_unreferenced_globals): Likewise.
3635 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3636 instead of NUM_TREE_CODES.
3637 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3638 (lto_output_int_in_range): Change << to >> when shifting VAL.
3640 2011-06-01 Diego Novillo <dnovillo@google.com>
3642 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3643 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3645 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3648 * optabs.h (valid_multiword_target_p): Declare.
3649 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3650 doing multi-word operations.
3651 * optabs.c (expand_binop): Likewise.
3652 (expand_doubleword_bswap): Likewise.
3653 (expand_absneg_bit): Likewise.
3654 (expand_unop): Likewise.
3655 (expand_copysign_bit): Likewise.
3656 (multiword_target_p): New function.
3658 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3660 PR rtl-optimization/48830
3661 PR rtl-optimization/48808
3662 PR rtl-optimization/48792
3663 * reload.c (push_reload): Check contains_reg_of_mode.
3664 * reload1.c (strip_paradoxical_subreg): New function.
3665 (gen_reload_chain_without_interm_reg_p): Use it to handle
3666 paradoxical subregs.
3667 (emit_output_reload_insns, gen_reload): Likewise.
3669 2011-06-01 David Li <davidxl@google.com>
3671 * predict.c : Change pass name
3674 * tree-profile.c: Ditto.
3677 2011-06-01 David Li <davidxl@google.com>
3679 * tree-pretty-print.c (dump_function_header): New function.
3680 * final.c (rest_of_clean_state): Use header dumper.
3681 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3682 * passes.c (pass_init_dump_file): Use header dumper.
3684 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3686 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3687 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3688 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3690 (mem_loc_descriptor): Use them.
3692 * var-tracking.c (create_entry_value): New function.
3693 (vt_add_function_parameter): Use it.
3695 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3697 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3698 Include <signal.h>, <ucontext.h>.
3699 (sigill_caught): Define.
3700 (sigill_hdlr): New function.
3701 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3702 insns can be executed.
3703 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3704 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3706 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3708 * config/t-slibgcc-darwin: Move to ...
3709 * config/t-slibgcc-dummy: ... this. Clarify comments.
3710 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3711 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3712 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3713 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3714 Remove i386/t-crtstuff from tmake_file.
3715 (i[34567]86-*-solaris2*): Remove t-svr4,
3716 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3718 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3719 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3720 sparc/t-crtfm from tmake_file.
3721 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3722 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3724 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3725 * config/i386/t-nwld (SHLIB_LINK): Remove.
3726 * config/i386/t-rtems-i386: Rename to ...
3727 * config/i386/t-rtems: ... this.
3728 ($(T)crti.o, $(T)crtn.o): Remove.
3729 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3730 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3731 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3732 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3733 EXTRA_MULTILIB_PARTS): Remove.
3734 * config/sparc/t-sol2-64: Likewise.
3735 * config/sparc/t-sol2: Remove.
3736 * config/sparc/t-crtin: Remove.
3737 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3738 * config/i386/gmon-sol2.c: Remove.
3739 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3740 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3741 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3742 * config/i386/sol2-gc1.asm: Remove.
3743 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3744 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3745 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3746 * config/t-slibgcc-sld: Remove.
3748 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3750 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3751 base_type_for_mode with op_mode instead of mode.
3753 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3755 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3757 * config/arm/arm-tune.md: Regenerate.
3758 * config/arm/arm-tables.opt: Regenerate.
3759 * config/arm/arm.c (FL_DIV): Rename...
3760 (FL_THUMB_DIV): ... to this.
3761 (FL_ARM_DIV): Define.
3762 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3763 (arm_arch_hwdiv): Remove.
3764 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3765 (arm_issue_rate): Add cortexr5.
3766 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3767 __ARM_ARCH_EXT_IDIV__.
3768 (TARGET_IDIV): Define.
3769 (arm_arch_hwdiv): Remove.
3770 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3771 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3772 (divsi3, udivsi3): New patterns.
3773 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3774 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3776 2011-06-01 Martin Jambor <mjambor@suse.cz>
3778 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3779 * ipa-utils.c (searchc): Set scc_no.
3781 2011-06-01 Martin Jambor <mjambor@suse.cz>
3783 * ipa-utils.c (searchc_env): New field allow_overwritable.
3784 (searchc): do not ignore edges to overwritable nodes if indicated
3785 by env->allow_overwritable.
3786 (ipa_reduced_postorder): Set env.allow_overwritable.
3788 2011-06-01 Richard Guenther <rguenther@suse.de>
3790 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3792 * lto-streamer.c (lto_record_common_node): Take node pointer,
3793 do not register types.
3794 (lto_preload_common_nodes): Explicitly skip preloading nodes
3795 that differ between frontends.
3797 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3799 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3802 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3804 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3805 parameter value for dump. Dump cost on outermost call only.
3806 (rs6000_memory_move_cost): Dump cost on outermost call only.
3808 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3810 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3811 DW_OP_GNU_convert ops.
3813 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3814 cselib_preserve_constants.
3815 (cselib_lookup_1): If cselib_preserve_constants,
3816 a new VALUE is being created for REG and there is a VALUE for the
3817 same register in wider mode, add another loc with lowpart SUBREG of
3819 (cselib_subst_to_values): Handle ENTRY_VALUE.
3820 * var-tracking.c (replace_expr_with_values): Return NULL for
3822 * dwarf2out.c (convert_descriptor_to_signed): New function.
3823 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3824 instead of two shifts.
3825 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3826 the right mode if needed.
3827 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3828 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3829 convert_descriptor_to_signed.
3830 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3831 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3834 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3836 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3838 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3839 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3840 (SWI248x): New mode iterator, rename from X87MODEI.
3841 (X87MODEI): Remove mode iterator.
3842 (X87MODEI12): Ditto.
3843 (SSEMODEI24): Ditto.
3845 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3847 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3848 * doc/invoke.texi: Document max-vartrack-expr-depth.
3849 * var-tracking.c (EXPR_DEPTH): New.
3850 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3852 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3854 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3855 * config/i386/sse.md: Add n to negated FMA pattern names.
3857 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3859 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3861 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3863 * gengtype-state.c (read_state_params_structs): Initialize previous.
3865 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3867 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3868 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3870 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3872 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3873 registers. Penalize F*r->o alternative to prevent partial memory
3874 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3875 CONST_DOUBLE immediates when optimizing function for size. Do not move
3876 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3877 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3878 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3879 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3881 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3883 (fp_register_operand splitters): Use fp_register_operand
3884 constraint. Do not use FP_REG_P in insn condition.
3885 (any_fp_register_operand splitters): Use any_fp_register_operand
3886 constraint. Do not use ANY_FP_REG_P in insn condition.
3888 2011-05-31 Jan Hubicka <jh@suse.cz>
3890 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3891 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3892 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3893 (lto_output_edge): Use output_enum and var_len_unsigned.
3894 (lto_output_varpool_node): Likewise.
3895 (input_overwrite_node): Do not take resolution parameter;
3896 extract it from a bitpack.
3897 (input_node): Do not read resolution; use input_enum and
3899 (input_varpool_node): Likewise.
3900 (input_edge): Likewise.
3901 (input_cgraph_1): Likewise.
3903 2011-05-31 Richard Guenther <rguenther@suse.de>
3905 * gimple.c (gimple_register_canonical_type): Do not register
3906 any types via gimple_register_type.
3908 2011-05-31 Jan Hubicka <jh@suse.cz>
3910 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3913 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3915 PR rtl-optimization/49235
3916 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3917 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3919 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3921 PR tree-optimization/49093
3922 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3925 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3928 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3929 for concrete functions containing the code of cloned functions.
3931 2011-05-31 Richard Guenther <rguenther@suse.de>
3933 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3935 (forward_propagate_into_comparison_1): ... this.
3936 (forward_propagate_comparison): Rename to ...
3937 (forward_propagate_into_comparison): ... this. Split out
3938 real forward propagation code to ...
3939 (forward_propagate_comparison): ... this.
3940 (forward_propagate_into_gimple_cond): Remove looping.
3941 (forward_propagate_into_cond): Likewise.
3942 (simplify_not_neg_expr): Return whether we have done something.
3943 (simplify_gimple_switch): Likewise.
3944 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3945 (ssa_forward_propagate_and_combine): ... this. Re-structure
3946 to do a forward forward-propagation walk on BBs and a backward
3947 stmt combining walk on BBs. Consistently re-scan changed statements.
3948 (pass_forwprop): Adjust.
3950 2011-05-30 Ian Lance Taylor <iant@google.com>
3952 * godump.c (go_format_type): Correct length of name added to
3953 obstack for anonymous field.
3955 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3958 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3959 part of the second operand is 0.
3961 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3963 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3964 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3965 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3966 (*movdf_internal_rex64): Do not penalize F->r alternative.
3967 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3968 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3969 when optimizing function for size. Do not move CONST_DOUBLEs
3970 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3971 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3972 SUBREGs. Do not check for MEM_P operands in the insn condition,
3973 check for ANY_FP_REGNO_P instead.
3974 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3975 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3977 * config/i386/i386.c (ix86_option_override_internal): Do not
3978 set TARGET_INTEGER_DFMODE_MOVES here.
3980 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3983 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3985 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3987 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3988 DW_TAG_rvalue_reference_type even for
3989 -gdwarf-4 -fno-debug-types-section.
3991 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3993 PR tree-optimization/46728
3994 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3995 (build_and_insert_binop): New.
3996 (gimple_expand_builtin_pow): Reorder args for
3997 build_and_insert_call; use build_and_insert_binop; add more
3998 optimizations for fractional exponents.
4000 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4005 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4007 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4009 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4010 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4011 TS_BASE instead of TS_COMMON.
4012 * varasm.c (assemble_name): Remove assert.
4014 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4016 * config.gcc: Keep obselete list sorted.
4018 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4019 Eric Botcazou <ebotcazou@adacore.com>
4021 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4022 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4023 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4024 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4025 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4027 2011-05-30 Richard Guenther <rguenther@suse.de>
4029 * gimple.c (gimple_types_compatible_p_1): Compare record
4030 and union type members properly.
4032 2011-05-30 Richard Guenther <rguenther@suse.de>
4034 PR tree-optimization/49210
4035 * ipa-split.c (split_function): Care for the case where the call
4036 result is not trivially convertible to the result holding variable.
4038 2011-05-30 Richard Guenther <rguenther@suse.de>
4040 PR tree-optimization/49218
4041 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4044 2011-05-30 Richard Guenther <rguenther@suse.de>
4046 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4047 New function split out from ...
4048 (forward_propagate_into_gimple_cond): ... here. Adjust.
4049 (forward_propagate_into_cond): Likewise.
4050 (forward_propagate_comparison): Also propagate into
4051 comparisons on assignment RHS. Change return value to
4052 behave similar to forward_propagate_into_cond.
4053 (tree_ssa_forward_propagate_single_use_vars): Handle
4054 strict-overflow warnings properly for forward_propagate_comparison.
4056 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4058 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4060 * configure: Regenerate.
4062 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4064 PR tree-optimization/49199
4065 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4066 non-reduction operands are either defined in the loop or by induction.
4068 2011-05-29 Xinliang David Li <davidxl@google.com>
4070 * opts-global.c (handle_common_deferred_options): Handle new options.
4071 * passes.c (register_one_dump_file): Call register_pass_name.
4072 (execute_one_pass): Check explicit enable/disable flag.
4073 (passr_hash): New function.
4075 (register_pass_name): Ditto.
4076 (get_pass_by_name): Ditto.
4079 (enable_pass): Ditto.
4080 (disable_pass): Ditto.
4081 (is_pass_explicitly_enabled_or_disabled): Ditto.
4083 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4085 * config/i386/i386.md (*movoi_internal_avx): Use
4086 standard_sse_constant_opcode for alternative 0.
4087 (*movti_internal_sse): Ditto.
4088 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4090 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4092 (*movsi_internal): Ditto.
4093 (*movdi_internal): Ditto. Add ssecvt type moves.
4095 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4098 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4100 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4102 PR rtl-optimization/49095
4103 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4104 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4106 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4109 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4110 recurse_p argument. Only follow register copies if it is set,
4111 and prevent mips_find_pic_call_symbol from recursing.
4112 (mips_find_pic_call_symbol): Add a recurse_p argument.
4113 Pass it to mips_pic_call_symbol_from_set.
4114 (mips_annotate_pic_calls): Update accordingly.
4116 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4118 * emit-rtl.c (try_split): Use a loop to search for
4119 NOTE_INSN_CALL_ARG_LOCATIONs.
4121 2011-05-29 Richard Guenther <rguenther@suse.de>
4123 PR tree-optimization/49217
4124 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4126 2011-05-28 Jan Hubicka <jh@suse.cz>
4128 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4130 (string_slot_free): Remove
4131 (create_output_block): Initialize obstack.
4132 (destroy_output_block): Free obstack.
4133 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4134 the string unless it needs to be added into the hash.
4135 (lto_output_string_with_length): Add persistent attribute;
4136 handle NULL strings.
4137 (lto_output_string): Add PERSISTENT parameter.
4138 (output_string_cst, output_identifier): Simplify.
4139 (lto_output_location_bitpack): Update.
4140 (lto_output_builtin_tree): Update.
4141 * lto-streamer.h (struct output_block): Add obstack.
4142 (lto_output_string, lto_output_string_with_length): Remove
4143 declarations; functions are static now.
4145 2011-05-28 Jan Hubicka <jh@suse.cz>
4147 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4148 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4149 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4150 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4151 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4152 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4153 unpack_ts_decl_with_vis_value_fields,
4154 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4155 lto_get_builtin_tree): Use enum and variable length i/o.
4156 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4157 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4159 (bp_pack_enum, bp_unpack_enum): New macros.
4161 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4163 * genrecog.c: Remove redundant forward declarations.
4165 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4167 * config.gcc: Deprecate mips*-*-openbsd*.
4169 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4172 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4175 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4178 * gengtype.c (vec_prefix_type): New function.
4179 (note_def_vec): Use vec_prefix_type and change the length
4180 attribute to be based on the prefix.
4181 * vec.c: Include coretypes.h before vec.h.
4182 (struct vec_prefix): Remove.
4183 (vec_gc_p_reserve): Change the offsetof to sizeof.
4184 (vec_gc_p_reserve_exact): Likewise.
4185 (vec_heap_p_reserve): Likewise.
4186 (vec_heap_p_reserve_exact): Likewise.
4187 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4188 (vec_stack_p_reserve): Change the offsetof to sizeof.
4189 (vec_stack_p_reserve_exact): Likewise.
4190 * vec.h (struct vec_prefix): New struct definition.
4191 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4192 (VEC_T_GTY(T,B)): Likewise.
4193 (DEF_VEC_FUNC_P(T)): Use prefix field.
4194 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4195 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4197 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4199 PR tree-optimization/46728
4200 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4201 (powi_as_mults): Add gimple_set_location.
4202 (build_and_insert_call): New.
4203 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4204 0.5, 0.25, 0.75, 1./3., or 1./6.
4206 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4208 * doc/contrib.texi: Update copyright years.
4209 (Contributors): Add Zdenek Sojka.
4211 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4213 * c-decl.c (c_push_function_context): Copy the current statement
4215 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4216 (finish_struct): Call building_stmt_list_p instead of checking
4218 * c-parser.c (c_parser_postfix_expression): Likewise.
4219 * c-typeck.c (c_end_compound_stmt): Likewise.
4220 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4221 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4222 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4223 (free_stmt_list): Likewise.
4224 * tree.h (struct tree_statement_list): Include typed_tree instead
4226 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4227 as TS_TYPED instead of TS_COMMON.
4229 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4230 Uros Bizjak <ubizjak@gmail.com>
4232 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4233 (HAVE_AS_IX86_TLSGDPTL): Define.
4234 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4235 (HAVE_AS_IX86_TLSLDMPLT): Define.
4236 * configure: Regenerate.
4237 * config.in: Regenerate.
4238 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4239 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4240 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4241 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4242 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4244 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4246 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4248 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4250 (INSN_COND, INSN_REVERSE_COND): New macros.
4251 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4253 (sched_get_condition_with_rev): Cache the results, and look them up
4255 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4256 are clobbered by the current insn.
4257 * target.def (exposed_pipline): New sched data hook.
4258 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4259 * doc/tm.texi: Regenerate.
4261 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4263 PR tree-optimization/49170
4264 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4267 2011-05-27 Richard Guenther <rguenther@suse.de>
4270 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4273 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4275 * haifa-sched.c (sched_scan_info): Remove.
4276 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4278 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4280 (sched_scan): Remove.
4281 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4282 static. All callers changed.
4283 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4284 static. All callers changed.
4285 (sched_init_luids): Remove all arguments except the first. All
4286 callers changed. Don't use sched_scan.
4287 (haifa_init_h_i_d): Likewise.
4288 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4289 manually rather than using sched_init_luids. Likewise with
4290 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4291 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4292 rather than sched_init_luids with NULL args.
4293 * sel-sched-ir.c (new_insns): Remove variable.
4294 (sched_scan): New static function, previously in haifa-sched.c. Remove
4295 all arguments but the first two; all callers changed.
4296 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4297 rather than sched_init_luids.
4298 (sel_init_bbs): Remove second argument. All callers changed.
4299 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4300 with NULL arguments.
4301 (create_insn_rtx_from_pattern): Likewise.
4302 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4303 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4304 (sched_init_insn_luid, sched_extend_luids): Declare.
4305 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4308 2011-05-27 Richard Guenther <rguenther@suse.de>
4311 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4312 A CMP B ? (T) true : (T) false for non-integral types T again.
4314 2011-05-27 Jan Hubicka <jh@suse.cz>
4316 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4317 so 0 means NULL string.
4318 (lto_output_string_with_length): ... here.
4319 (lto_output_string, output_string_cst, output_identifier): Update
4320 handling of NULL strings.
4321 (lto_output_location_bitpack): New function.
4322 (lto_output_location): Use it.
4323 (lto_output_tree_ref): Use output_record_start.
4324 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4326 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4328 (input_string_internal): ... here;
4329 (input_string_cst, input_identifier, lto_input_string): Update handling
4331 (lto_input_location_bitpack): New function
4332 (lto_input_location): Use it.
4333 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4335 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4336 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4337 (bp_pack_value): Sanity check the value range.
4338 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4340 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4343 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4345 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4346 call_arg_location instructions down the floor.
4348 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4350 PR rtl-optimization/49154
4351 * ira.c (setup_pressure_classes): Process class without sublcasses
4352 as a candidate for pressure classes.
4354 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4356 PR rtl-optimization/48575
4357 * genrecog.c (position_type): New enum.
4358 (position): New structure.
4359 (decision): Use position structure instead of a string.
4360 (root_pos, peep2_insn_pos_list): New variables.
4361 (next_position, compare_positions): New functions.
4362 (new_decision): Use position structures instead of strings.
4363 (maybe_both_true): Likewise.
4364 (change_state): Likewise.
4365 (write_tree): Likewise.
4366 (make_insn_sequence): Likewise.
4368 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4370 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4371 TS_BASE instead of TS_COMMON.
4372 (find_decls_types_r): Check for TS_TYPED structure before looking at
4374 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4376 (BLOCK_CHAIN): Use new chain field.
4378 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4380 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4381 moves expensive on Power7 also.
4383 2011-05-26 Richard Guenther <rguenther@suse.de>
4385 * fold-const.c (fold_unary_loc): Remove bogus code.
4387 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4389 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4391 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4392 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4393 TS_BASE instead of TS_COMMON.
4394 * varasm.c (assemble_name): Remove assert.
4396 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4398 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4400 * libgcc-std.ver: Delete file.
4402 2011-05-26 Richard Guenther <rguenther@suse.de>
4404 PR tree-optimization/48702
4405 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4406 only when we know the base address is within bounds.
4407 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4408 assume the base address of TARGET_MEM_REFs is in bounds.
4410 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4413 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4414 declaration in TARGET_SOLARIS.
4416 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4418 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4419 The instruction is then expanded explicitly.
4420 (supported_compare): Callable instruction.
4421 (compare): Likewise.
4423 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4426 * gimplify.c (shortcut_cond_r): Don't special case
4427 COND_EXPRs if they have void type on one of their arms.
4429 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4431 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4432 to reduce duplication, and to achieve a slightly more logical order
4435 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4437 PR tree-optimization/49161
4438 * tree-vrp.c (struct case_info): New type.
4439 (compare_case_labels): Sort case_info structs instead of
4440 trees, and not primarily by CASE_LABEL uids but by
4441 label_for_block indexes.
4442 (find_switch_asserts): Put case labels into struct case_info
4443 array instead of TREE_VEC, adjust sorting, compare label_for_block
4444 values instead of CASE_LABELs.
4446 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4448 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4449 ("orndi3_neon"): Likewise.
4450 ("bic<mode>3_neon"): Likewise.
4452 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4454 PR tree-optimization/49038
4455 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4456 Ensure at least one epilogue iteration if required by data
4458 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4459 to mark loops that require peeling for gaps.
4460 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4461 (vect_get_known_peeling_cost): Take peeling for gaps into
4463 (vect_transform_loop): Generate epilogue if required by data
4465 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4466 loop as requiring an epilogue if there are gaps in the end of
4469 2011-05-25 Ian Lance Taylor <iant@google.com>
4471 * godump.c (go_format_type): Output the first field with a usable
4474 2011-05-25 Ian Lance Taylor <iant@google.com>
4476 * godump.c (go_format_type): Check for invalid type names, pointer
4477 target types, and struct field types.
4479 2011-05-25 Jason Merrill <jason@redhat.com>
4481 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4483 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4485 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4487 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4489 * config/i386/i386.md (*movqi_extv_1)): Put back
4490 "register_operand" check in "type" calculation.
4491 (*movqi_extzv_2): Likewise.
4493 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4495 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4497 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4500 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4501 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4502 __divxc3, __divtc3): Wrap definitions in #ifndef.
4504 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4507 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4508 "register_operand" check and replace q_regs_operand with
4509 QIreg_operand in "type" calculation.
4510 (*movqi_extv_1): Likewise.
4511 (*movqi_extzv_2_rex64): Likewise.
4512 (*movqi_extzv_2): Likewise.
4514 * config/i386/predicates.md (QIreg_operand): New.
4516 2011-05-25 Richard Guenther <rguenther@suse.de>
4518 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4519 type-based offset disambiguation, streamline MEM_REF and
4520 TARGET_MEM_REF handling.
4522 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4524 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4525 (bdesc_special_args): Add pause intrinsic.
4527 * config/i386/i386.md (UNSPEC_PAUSE): New.
4530 * config/i386/ia32intrin.h (__pause): Likewise.
4532 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4535 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4537 PR tree-optimization/46728
4538 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4539 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4541 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4543 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4544 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4545 instead of TS_COMMON.
4547 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4549 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4550 LIBGCC2_GNU_PREFIX is defined.
4552 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4553 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4554 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4555 __clz_tab): Define using __N.
4556 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4557 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4558 * target.def (libfunc_gnu_prefix): New hook.
4559 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4560 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4561 * doc/tm.texi: Regenerate.
4562 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4563 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4565 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4566 (init_optabs): Likewise for the bswap libfuncs.
4567 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4569 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4570 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4571 * libgcc-std.ver: Remove.
4572 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4573 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4575 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4576 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4577 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4578 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4579 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4580 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4581 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4582 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4583 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4584 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4586 2011-05-25 Jan Hubicka <jh@suse.cz>
4588 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4589 (lto_output_tree): Use output_record_start.
4590 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4591 (lto_get_pickled_tree): Use input_record_start.
4592 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4593 (lto_value_range_error): New function.
4594 * lto-streamer.h (lto_value_range_error): Declare.
4595 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4596 (lto_output_enum, lto_input_enum): New macros.
4598 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4600 * common.opt (flag_stack_usage_info): New variable.
4601 (-Wstack-usage): New option.
4602 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4603 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4604 <OPT_fstack_usage>: Likewise.
4605 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4606 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4607 of flag_stack_usage.
4608 (emit_library_call_value_1): Likewise.
4609 * explow.c (allocate_dynamic_stack_space): Likewise.
4610 * function.c (instantiate_virtual_regs ): Likewise.
4611 (prepare_function_start): Likewise.
4612 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4613 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4614 * config/arm/arm.c (arm_expand_prologue): Likewise.
4615 (thumb1_expand_prologue): Likewise.
4616 * config/avr/avr.c (expand_prologue): Likewise.
4617 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4618 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4619 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4620 * config/mips/mips.c (mips_expand_prologue): Likewise.
4621 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4622 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4623 * config/s390/s390.c (s390_emit_prologue): Likewise.
4624 * config/sh/sh.c (sh_expand_prologue): Likewise.
4625 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4626 * config/spu/spu.c (spu_expand_prologue): Likewise.
4628 2011-05-25 Richard Guenther <rguenther@suse.de>
4630 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4631 (gimple_canonical_types_compatible_p): Likewise.
4633 2011-05-25 Jan Hubicka <jh@suse.cz>
4636 * ipa.c (function_and_variable_visibility): Only add to same
4637 comdat group list if DECL_ONE_ONLY.
4639 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4641 PR rtl-optimization/49014
4642 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4644 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4647 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4649 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4651 PR rtl-optimization/48757
4652 * ira-build.c (loop_with_eh_edge_p): Rename to
4653 loop_with_complex_edge_p, check edges on complexity, make function
4655 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4658 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4660 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4661 force flag_ira_share_save_slots to 0.
4663 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4665 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4666 (vt_initialize): Set PROLOGUE_BB unconditionally.
4667 Add block comment about CFA_BASE_RTX machinery.
4668 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4669 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4671 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4674 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4675 parsing of syntax error in ObjC instance variable lists. In
4676 particular, avoid an infinite loop if there is a stray ']'.
4677 Updated error message.
4679 2011-05-24 Ian Lance Taylor <iant@google.com>
4681 * godump.c (go_define): Don't accept a string immediately after
4684 2011-05-24 Ian Lance Taylor <iant@google.com>
4686 * godump.c (struct godump_container): Add invalid_hash field.
4687 (go_format_type): Return false if type is found in invalid_hash.
4688 (go_output_typedef): Add invalid type to invalid_hash.
4689 (go_finish): Create and delete invalid_hash.
4691 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4693 PR tree-optimization/46728
4694 * tree-ssa-math-opts.c (powi_table): New.
4695 (powi_lookup_cost): New.
4697 (powi_as_mults_1): New.
4698 (powi_as_mults): New.
4699 (gimple_expand_builtin_powi): New.
4700 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4701 (gate_cse_sincos): Remove sincos/cexp restriction.
4703 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4706 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4708 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4709 * mips-tdump.c: Likewise.
4711 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4714 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4715 add -mno-XXX. Handle FMA.
4717 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4719 PR rtl-optimization/48633
4720 * ira-build.c (loop_with_eh_edge_p): New function.
4721 (mark_loops_for_removal): Use it.
4723 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4725 PR rtl-optimization/48971
4726 * ira.c (setup_pressure_classes): Don't check register move cost
4727 for classes with one registers. Don't add pressure class if there
4728 is a pressure class with the same available hard registers.
4729 Check contains_reg_of_mode. Fix a typo in collecting
4730 temp_hard_regset. Ignore hard registers not belonging to a class.
4732 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4735 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4737 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4738 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4740 PR gcov-profile/48845
4741 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4743 2011-05-24 Richard Guenther <rguenther@suse.de>
4745 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4746 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4747 (gimple_types_compatible_p_1): Adjust.
4748 (iterative_hash_canonical_type): Do not bother about complete vs.
4750 (gimple_canonical_types_compatible_p): Likewise.
4752 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4754 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4756 2011-05-24 Richard Guenther <rguenther@suse.de>
4759 * gimple.c (gimple_register_canonical_type): Revert
4761 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4762 does not for a tree for the case where it matters. Cache
4763 pointer-type alias-sets.
4765 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4767 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4768 (OBJS): Remove options.o, opts-common.o and prefix.o.
4769 (OBJS-libcommon-target): New.
4770 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4771 (BACKEND): Include libcommon-target.a.
4772 (MOSTLYCLEANFILES): Include libcommon-target.a.
4773 (libcommon-target.a): New.
4774 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4777 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4779 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4780 parts of output shared with the driver.
4781 * optc-gen.awk: Don't generate parts of output not shared with the
4783 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4784 * doc/options.texi (SourcerInclude): Mention options-save.c.
4785 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4786 (OBJS): Add options-save.o.
4787 (options-save.c, options-save.o): New.
4788 (options.o): Update dependencies.
4789 (gcc-options.o): Remove.
4790 (mostlyclean): Remove options-save.c.
4792 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4795 * dbxout.c: Include cgraph.h.
4796 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4797 and without value expr, return NULL if no varpool node exists for
4798 it or if it is not needed.
4799 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4802 * c-decl.c (start_decl): Convert expr to void_type_node.
4804 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4806 PR rtl-optimization/48826
4807 * emit-rtl.c (try_split): When splitting a call that is followed
4808 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4810 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4812 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4813 parameters passed in memory prefer using DECL_INCOMING_RTL over
4814 the pseudos it will be copied into.
4816 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4819 * config/i386/i386.c (ix86_option_override_internal): Save the
4820 initial options after checking vzeroupper.
4822 2011-05-23 David Li <davidxl@google.com>
4824 PR tree-optimization/48988
4825 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4826 Initialize has_valid_pred for each pred chain.
4828 2011-05-23 Richard Guenther <rguenther@suse.de>
4830 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4831 (iterative_hash_gimple_type): Always hash type names.
4833 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4835 * c-typeck.c (build_function_call_vec): Tweak call to
4836 check_function_arguments.
4838 2011-05-23 Richard Guenther <rguenther@suse.de>
4840 PR tree-optimization/49115
4841 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4842 is not necessarily carried out, do not claim it kills the ref.
4843 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4845 2011-05-23 Richard Guenther <rguenther@suse.de>
4848 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4849 what pointer types we accept for folding.
4851 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4853 * gthr-gnat.c: Remove.
4854 * gthr-gnat.h: Remove.
4855 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4856 * config/t-freebsd (LIB2ADDEH): Likewise.
4857 * config/t-linux (LIB2ADDEH): Likewise.
4858 * config/t-sol2 (LIB2ADDEH): Likewise.
4859 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4860 * configure.ac (target_thread_file): Remove gnat handling.
4861 * configure: Regenerate.
4862 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4864 2011-05-23 Tristan Gingold <gingold@adacore.com>
4865 Eric Botcazou <ebotcazou@adacore.com>
4867 * gcov.c (create_file_names): If no object directory is specified,
4868 keep the directory of the file.
4870 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4872 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4873 * configure: Regenerate.
4875 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4878 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4879 failed and the comparison has a single bit signed type, use
4880 constm1_rtx instead of const1_rtx for true value.
4881 (do_store_flag): If ops->type is single bit signed type, disable
4882 signel bit test optimization and pass -1 instead of 1 as last
4883 parameter to emit_store_flag_force.
4885 2011-05-23 Tom de Vries <tom@codesourcery.com>
4888 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4890 (infer_loop_bounds_from_undefined): Use new function.
4892 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4894 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4895 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4896 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4898 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4900 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4902 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4903 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4906 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4908 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4910 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4912 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4913 UNSPEC_MOVE_PIC pattern.
4915 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4917 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4918 (sparc-*-rtems*): Likewise.
4919 (sparc64-*-elf*): Likewise.
4920 (sparc64-*-rtems*): Likewise.
4921 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4922 * config/sparc/t-crtin: New file.
4923 * config/sparc/t-sol2 (crti.o): Delete rule.
4925 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4926 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4927 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4928 (ENDFILE_SPEC): Add crtn.o.
4930 2011-05-22 Tom de Vries <tom@codesourcery.com>
4933 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4934 CODE_CONTAINS_STRUCT (TS_COMMON).
4936 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4939 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4940 only after deciding which mode to use.
4942 2011-05-22 Tom de Vries <tom@codesourcery.com>
4945 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4946 for call to get_shiftadd_cost.
4948 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4951 * config/i386/cpuid.h (bit_MMXEXT): New define.
4953 2011-05-22 Nick Clifton <nickc@redhat.com>
4955 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4956 initialisation of non-existant args[2] element. Use args[] array
4957 not arg[] array to pass arguments to build_function_type_list.
4959 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4961 PR tree-optimization/49087
4962 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4964 2011-05-21 Jason Merrill <jason@redhat.com>
4967 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4968 static storage duration.
4970 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4972 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4975 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4977 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4978 false if there are call-saved registers here...
4979 (sparc_can_use_return_insn_p): ...but here instead.
4980 (save_or_restore_regs): Fix thinko.
4981 (sparc_expand_prologue): Use current_function_is_leaf.
4982 (sparc_frame_pointer_required): Likewise.
4984 2011-05-21 Nick Clifton <nickc@redhat.com>
4987 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4989 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4991 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4992 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4994 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4996 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4997 * optc-gen.awk: Move common code to opt-read.awk.
4998 * opth-gen.awk: Likewise.
4999 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5001 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5003 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5005 2011-05-20 Tom de Vries <tom@codesourcery.com>
5008 * tree-ssa-loop-ivopts.c: Include expmed.h.
5009 (get_shiftadd_cost): New function.
5010 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5012 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5015 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5016 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5018 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5020 * Makefile.in: Update comment referring to $(OBJS-common).
5022 2011-05-20 Ian Lance Taylor <iant@google.com>
5024 * godump.c (go_output_typedef): Put enum constants in the macro
5025 hash table to avoid duplicate Go const definitions.
5027 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5029 * Makefile.in (LIBDEPS): Add libcommon.a.
5031 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5032 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5033 pretty-print.o and version.o.
5034 (OBJS-libcommon): New.
5035 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5036 (BACKEND): Add libcommon.a.
5037 (MOSTLYCLEANFILES): Likewise.
5039 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5040 (cpp$(exeext)): Likewise.
5041 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5042 pretty-print.o and input.o.
5043 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5044 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5046 (mips-tfile): Don't explicitly use version.o.
5047 (mips-tdump): Likewise.
5048 (gcov.o): Depend on $(DIAGNOSTIC_H).
5049 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5050 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5051 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5052 * gcov-dump.c: Include intl.h and diagnostic.h.
5053 (main): Initialize diagnostics.
5054 * gcov.c: Include diagnostic.h.
5056 (main): Initialize diagnostics.
5057 * lto-wrapper.c: Include diagnostic.h.
5058 (main): Initialize diagnostics.
5060 2011-05-20 Michael Matz <matz@suse.de>
5062 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5064 2011-05-20 Michael Matz <matz@suse.de>
5065 Richard Guenther <rguenther@suse.de>
5067 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5068 use lto_streamer_cache_append directly instead of returning a VEC.
5069 (preload_common_node): Remove.
5070 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5072 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5074 2011-05-20 Richard Guenther <rguenther@suse.de>
5076 PR tree-optimization/49079
5077 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5078 MEM_REFs correctly for the trailing array access detection.
5079 Special case constants the same way as decls for overall size
5082 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5084 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5087 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5089 PR tree-optimization/49073
5090 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5091 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5092 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5094 2011-05-20 Richard Guenther <rguenther@suse.de>
5097 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5098 of pointer types the same way the middle-end does.
5100 2011-05-20 Richard Guenther <rguenther@suse.de>
5102 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5103 or pointer-to chains. Delay all fixup to uniquify_nodes.
5105 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5107 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5108 (fma4_fmaddsub): Likewise
5110 2011-05-19 Jan Hubicka <jh@suse.cz>
5112 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5113 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5114 (type_pair_cache): New static var.
5115 (lookup_type_pair): Use fixed sized custom hash; make inline.
5116 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5117 calls of lookup_type_pair.
5118 (print_gimple_types_stats): Remove cache stats.
5119 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5122 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5124 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5125 when TARGET_RDRND is active.
5126 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5127 Generate dummy SImode target register when target is NULL.
5129 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5131 * config/arm/arm-fpus.def: New.
5132 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5134 * config/arm/arm-tables.opt: Regenerate.
5135 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5136 (arm_option_override): Don't decode FPU name to string here.
5137 * config/arm/arm.opt (mfpu=): Use Enum.
5138 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5139 Update dependencies.
5141 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5143 * collect2.c: Include diagnostic.h.
5144 (fatal_perror, fatal, error, fancy_abort): Remove.
5145 (main): Set progname. Call xmalloc_set_program_name and
5146 diagnostic_initialize.
5147 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5148 scan_libraries, resolve_lib_name): Call fatal_error instead of
5149 fatal and fatal_perror.
5150 * collect2.h (error, fatal, fatal_perror): Don't declare.
5151 * tlink.c: Include diagnostic-core.h.
5152 (recompile_files): Call fatal_error instead of fatal_perror.
5153 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5154 pretty-print.o and input.o.
5155 (collect2.o, tlink.o): Update dependencies.
5157 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5159 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5161 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5164 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5165 COMDAT group syntax, both SPARC and x86 variants.
5166 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5167 * configure: Regenerate.
5168 * config/sol2.h (TARGET_SOLARIS): Define.
5169 (PUSHSECTION_FORMAT): Remove.
5170 (SECTION_NAME_FORMAT): Define.
5171 * config/sol2.c: Include hashtab.h.
5172 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5173 expansion, using SECTION_NAME_FORMAT.
5174 (solaris_comdat_htab): New variable.
5175 (struct comdat_entry): Define.
5176 (comdat_hash): New function.
5177 (comdat_eq): New function.
5178 (solaris_elf_asm_comdat_section): New function.
5179 (solaris_define_comdat_signature): New function.
5180 (solaris_code_end): New function.
5181 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5182 (solaris_code_end): Declare.
5183 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5184 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5186 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5187 Remove ATTRIBUTE_UNUSED.
5188 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5189 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5190 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5191 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5192 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5193 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5194 (PUSHSECTION_FORMAT): Remove.
5195 (SECTION_NAME_FORMAT): Redefine.
5197 2011-05-19 Kai Tietz <ktietz@redhat.com>
5199 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5200 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5201 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5203 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5204 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5206 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5208 2011-05-19 Richard Guenther <rguenther@suse.de>
5211 * tree-object-size.c (addr_object_size): If the pointed-to
5212 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5214 2011-05-19 Richard Guenther <rguenther@suse.de>
5216 * gimple.c (gimple_types_compatible_p_1): Compare names of
5217 the types themselves.
5218 (iterative_hash_gimple_type): And hash them that way.
5219 (gimple_register_type_1): If we register a main variant properly
5220 initialize the leader to ourselves.
5222 2011-05-19 Tom de Vries <tom@codesourcery.com>
5225 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5226 get_loop_invariant_expr_id.
5227 (get_loop_invariant_expr_id): Use get_expr_id.
5228 (parm_decl_cost): New function.
5229 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5230 Improve bound cost estimation. Use different inv_expr_id for elim and
5233 2011-05-19 Tom de Vries <tom@codesourcery.com>
5236 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5237 cost_base.cost == 0.
5239 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5242 * config/i386/sse.md
5243 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5246 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5248 PR tree-optimization/49039
5249 * tree-vrp.c (extract_range_from_binary_expr): For
5250 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5251 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5253 2011-05-18 Tom de Vries <tom@codesourcery.com>
5256 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5258 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5260 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5261 (*tls_global_dynamic_64): Ditto.
5262 (*tls_local_dynamic_base_32_gnu): Ditto.
5263 (*tls_local_dynamic_base_64): Ditto.
5264 (tls_initial_exec_64_sun): Ditto.
5266 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5268 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5269 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5271 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5272 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5273 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5274 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5275 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5276 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5277 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5279 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5281 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5282 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5283 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5284 target_thread_pointer, arm_structure_size_boundary, struct
5285 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5286 struct abi_name, arm_all_abis): Remove.
5287 (arm_option_override) Don't process most enumerated option values here.
5288 Don't process target_fpe_name here. Work with integer not string for
5289 structure size boundary; use separate diagnostics for each case.
5290 * config/arm/arm.h (enum float_abi_type, enum
5291 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5293 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5294 arm_structure_size_boundary): Remove.
5295 * config/arm/arm.opt (mabi=): Use Enum and Init.
5296 (arm_abi_type): New Enum and EnumValue entries.
5297 (mfloat-abi=): Use Enum and Init.
5298 (float_abi_type): New Enum and EnumValue entries.
5299 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5300 (mfp16-format=): Use Enum and Init.
5301 (arm_fp16_format_type): New Enum and EnumValue entries.
5302 (mstructure-size-boundary=): Use UInteger and Init.
5303 (mtp=): Use Enum and Init.
5304 (arm_tp_type): New Enum and EnumValue entries.
5306 2011-05-18 Richard Guenther <rguenther@suse.de>
5308 PR tree-optimization/49018
5309 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5310 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5311 gimple_has_side_effects.
5313 2011-05-18 Richard Guenther <rguenther@suse.de>
5315 * gimple.c (gimple_register_type_1): New function, split out from ...
5316 (gimple_register_type): ... here. Avoid infinite recursion.
5318 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5320 PR tree-optimization/41881
5321 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5322 reduction_chains along with a macro for its access.
5323 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5324 (destroy_loop_vec_info): Free reduction chains.
5325 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5326 (vect_is_slp_reduction): New function.
5327 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5328 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5329 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5330 definition types for reduction chains.
5331 (vect_supported_load_permutation_p): Don't allow permutations for
5333 (vect_analyze_slp_instance): Support reduction chains.
5334 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5335 (vect_get_constant_vectors): Handle reduction chains.
5336 (vect_schedule_slp_instance): Mark the first statement of the
5337 reduction chain as reduction.
5339 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5341 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5342 names for group elements access.
5343 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5344 reduction chains as well. Remove data reference and interleaving
5345 related words from the fields names.
5346 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5348 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5349 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5350 vect_update_interleaving_chain, vect_same_range_drs,
5351 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5352 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5353 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5354 vect_analyze_group_access, vect_analyze_data_ref_access,
5355 vect_create_data_ref_ptr, vect_transform_strided_load,
5356 vect_record_strided_load_vectors): Likewise.
5357 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5358 vect_model_load_cost, vectorizable_store, vectorizable_load,
5359 vect_remove_stores, new_stmt_vec_info): Likewise.
5360 * tree-vect-slp.c (vect_build_slp_tree,
5361 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5363 2011-05-18 Richard Guenther <rguenther@suse.de>
5366 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5367 operand verification.
5368 (verify_gimple_assign_binary): Likewise.
5369 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5370 to non-1-precision BOOLEAN_TYPEs.
5372 2011-05-18 Tom de Vries <tom@codesourcery.com>
5375 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5377 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5379 PR tree-optimization/49000
5380 * tree-ssa.c (execute_update_addresses_taken): Call
5381 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5382 be rewritten and decl has been marked for renaming, reset
5385 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5387 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5388 enum_opts_set when testing if attributes have set -mfpmath=.
5390 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5392 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5394 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5396 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5398 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5399 id.transform_lang_insert_block with NULL.
5401 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5403 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5404 (output_fp_compare): Change args 3 and 4 to bool.
5405 (ix86_expand_call): Change arg 6 to bool.
5406 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5407 (ix86_attr_length_vex_default): Change arg 3 to bool.
5408 * config/i386/i386.md: Update all uses.
5409 * config/i386/i386.c: Ditto.
5410 (ix86_flags_dependent): Change return type to bool.
5412 2011-05-17 Richard Guenther <rguenther@suse.de>
5414 * gimple.c (type_hash_pair_compare): Fix comparison.
5416 2011-05-17 Richard Guenther <rguenther@suse.de>
5418 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5419 case some more, fix final hash value of the non-singleton case.
5421 2011-05-17 Richard Guenther <rguenther@suse.de>
5425 2011-05-16 Richard Guenther <rguenther@suse.de>
5427 * gimple.c (gimple_types_compatible_p_1): Use names of the
5428 type itself, not its main variant.
5429 (iterative_hash_gimple_type): Likewise.
5431 2011-05-17 Richard Guenther <rguenther@suse.de>
5433 * gimple.c (gimple_register_canonical_type): Use the main-variant
5434 leader for computing the canonical type.
5436 2011-05-17 Nick Clifton <nickc@redhat.com>
5438 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5441 * config/rx/rx.md: Add peephole to remove redundant extensions
5443 (bitset_in_memory): Use rx_restricted_mem_operand.
5444 (bitinvert_in_memory): Likewise.
5445 (bitclr_in_memory): Likewise.
5447 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5448 Nick Clifton <nickc@redhat.com>
5450 * config/rx/rx.md: Add peepholes to match a register move followed
5451 by a comparison of the moved register. Replace these with an
5452 addition of zero that does both actions in one instruction.
5454 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5457 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5458 predicate to allow CONST_INT.
5459 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5461 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5463 * opts-common.c (opt_enum_arg_to_value): New.
5464 * opts.h (opt_enum_arg_to_value): Declare.
5465 * config/i386/i386.opt (fpmath): Remove.
5466 (mfpmath=): Use Enum, Init and Save.
5467 (fpmath_unit): New Enum and EnumValue entries.
5468 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5469 name for function fpmath state.
5470 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5471 * config/i386/i386.c: Include diagnostic.h.
5472 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5473 (ix86_target_string): Take enum fpmath_unit value instead of string.
5474 (ix86_debug_options): Update call to ix86_target_string.
5475 (ix86_option_override_internal): Don't process fpmath strings here.
5476 (x86_function_specific_save, ix86_function_specific_restore):
5477 Don't handle fpmath state specially.
5478 (ix86_function_specific_print): Pass fpmath state to
5479 ix86_target_string instead of printing in this function.
5480 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5481 Handle enum attributes.
5482 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5483 (ix86_valid_target_attribute_tree): Update option_strings
5484 handling. Handle fpmath as enum option.
5485 (ix86_can_inline_p): Update field names for function fpmath state.
5486 (ix86_expand_builtin): Update call to ix86_target_string.
5487 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5488 (ix86_fpmath): Remove.
5489 * config/i386/t-i386 (i386.o): Update dependencies.
5491 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5493 PR preprocessor/48677
5494 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5495 from decoded_options[0], not from itself.
5497 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5499 * config/i386/constraints.md (z): New constraint.
5500 * config/i386/i386.c (c): New mode attribute.
5501 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5502 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5503 constraint for operand 0.
5504 (*call_vzeroupper): Ditto.
5505 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5506 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5507 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5508 Use "lzm" constraint for operand 0.
5509 (*call_pop_vzeroupper): Ditto.
5510 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5511 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5512 constraint for operand 0.
5513 (*sibcall_vzeroupper): Ditto.
5514 (*sibcall_rex64_ms_sysv): Ditto.
5515 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5516 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5517 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5518 (*sibcall_pop_vzeroupper): Ditto.
5519 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5520 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5521 mode iterator. Use "<c>zm" constraint for operand 1.
5522 (*call_value_vzeroupper): Ditto.
5523 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5525 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5526 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5527 *call_value_pop_1. Use "lzm" constraint for operand 1.
5528 (*call_value_pop_vzeroupper): Ditto.
5529 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5530 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5531 mode iterator. Use "Uz" constraint for operand 1.
5532 (*sibcall_value_vzeroupper): Ditto.
5533 (*sibcall_value_rex64_ms_sysv): Ditto.
5534 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5535 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5536 constraint for operand 1.
5537 (*sibcall_value_pop_vzeroupper): Ditto.
5538 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5539 and "z" constraint for operand 2.
5540 (*tls_global_dynamic_32_gnu): Ditto.
5541 (*tls_local_dynamic_base_32_gnu): Ditto.
5542 (*tls_local_dynamic_base_64): Ditto.
5543 (*tls_local_dynamic_32_once): Ditto.
5544 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5546 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5548 2011-05-16 Richard Guenther <rguenther@suse.de>
5550 * gimple.c (gimple_types_compatible_p_1): Use names of the
5551 type itself, not its main variant.
5552 (iterative_hash_gimple_type): Likewise.
5554 2011-05-16 Richard Guenther <rguenther@suse.de>
5556 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5557 always visit pointer target and function result and argument types.
5559 2011-05-16 Jason Merrill <jason@redhat.com>
5562 * tree-inline.c (copy_statement_list): Put back recursion.
5564 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5568 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5569 * config/avr/avr.md ("*ior<mode>qi.byte0",
5570 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5572 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5575 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5576 register is needed for a function argument.
5578 2011-05-16 Richard Guenther <rguenther@suse.de>
5580 * gimple.c (struct type_hash_pair): New type.
5581 (type_hash_pair_compare): New function.
5582 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5584 2011-05-16 Revital Eres <revital.eres@linaro.org>
5586 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5588 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5590 * config/i386/i386.md (floating point move splitters): Fix
5591 usage of standard_80387_constant_p.
5592 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5594 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5596 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5598 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5600 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5601 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5602 (tree_ssa_lim_finalize): Likewise.
5604 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5606 * config/i386/constraint.md (Yd, Yx): New register constraints.
5607 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5608 Yd conditional register constraint.
5609 (*movtf_internal): Use standard_sse_constant_opcode.
5610 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5611 Yx conditional register constraint.
5612 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5613 Yd conditional register constraint. Use standard_sse_constant_p to
5614 check for valid SSE constants and call standard_sse_constant_opcode to
5616 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5617 constants and call standard_sse_constant_opcode to output SSE insn.
5618 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5619 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5620 optimize_size is set.
5621 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5623 2011-05-14 Tobias Burnus <burnus@net-b.de>
5625 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5627 2011-05-13 Martin Jambor <mjambor@suse.cz>
5629 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5630 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5631 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5632 (evaluate_conditions_for_ipcp_clone): Removed.
5633 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5634 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5635 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5637 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5639 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5640 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5641 lieu of MAY_HAVE_DEBUG_STMTS.
5642 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5643 debug statements if !MAY_HAVE_DEBUG_STMTS.
5645 2011-05-13 Martin Thuresson <martint@google.com>
5647 PR gcov-profile/47793
5648 * libgcov.c (gcov_exit): Support relative profile paths.
5649 * doc/invoke.texi (-fprofile-dir): Update for above change.
5651 2011-05-13 Richard Guenther <rguenther@suse.de>
5653 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5654 type-pair caching, do not compare hashes.
5656 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5659 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5660 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5662 2011-05-13 Kai Tietz <ktietz@redhat.com>
5664 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5665 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5666 compatible type for TRUTH_NOT_EXPR.
5668 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5670 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5671 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5672 can_create_pseudo_p ().
5674 2011-05-13 Richard Guenther <rguenther@suse.de>
5677 * gimple.c (iterative_hash_gimple_type): Revert change in
5678 pointer target and function result and argument hashing.
5680 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5682 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5683 (*movxf_internal_nointeger): Ditto.
5684 (*movdf_internal_rex64): Ditto.
5685 (*movdf_internal): Ditto.
5686 (*movdf_internal_nointeger): Ditto.
5687 (*movsf_internal): Ditto.
5688 (sincos splitters): Use can_create_pseudo ().
5690 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5692 * config/i386/i386-opts.h: New.
5693 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5694 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5695 ix86_section_threshold): Remove.
5696 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5697 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5699 (ix86_option_override_internal): Don't decode strings for options
5700 other than -march=, -mtune= and -mfpmath=. Don't allow for
5701 __attribute__ uses in remaining diagnostics for options with
5702 string arguments. Don't check for integer arguments being negative.
5703 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5704 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5705 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5706 ix86_branch_cost, ix86_section_threshold): Remove.
5707 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5709 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5711 (masm=): Use Enum and Init.
5712 (asm_dialect): New Enum and EnumValue entries.
5713 (mbranch-cost=): Use UInteger.
5714 (mlarge-data-threshold=): Use UInteger and Init.
5715 (mcmodel=): Use Enum and Init.
5716 (cmodel): New Enum and EnumValue entries.
5717 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5718 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5719 mregparm=): Use UInteger.
5720 (mstringop-strategy=): Use Enum and Init.
5721 (stringop_alg): New Enum and EnumValue entries.
5722 (mtls-dialect=): Use Enum and Init.
5723 (tls_dialect): New Enum and EnumValue entries.
5724 (mabi=): Use Enum and Init.
5725 (calling_abi): New Enum and EnumValue entries.
5726 (mveclibabi=): Use Enum and Init.
5727 (ix86_veclibabi): New Enum and EnumValue entries.
5729 2011-05-13 Nick Clifton <nickc@redhat.com>
5731 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5732 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5734 2011-05-13 Kai Tietz <ktietz@redhat.com>
5737 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5738 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5739 (gimple_boolify): Check for cast for boolean_type_node instead for
5742 2011-05-13 Richard Guenther <rguenther@suse.de>
5744 PR tree-optimization/48172
5745 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5746 multiplying by number of iterations for equal step.
5747 (vect_create_cond_for_alias_checks): Likewise.
5749 2011-05-13 Andreas Schwab <schwab@redhat.com>
5751 * configure.ac: Use AS_HELP_STRING throughout.
5752 * configure: Regenerate.
5754 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5756 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5757 (ix86_emit_restore_regs_using_mov): Likewise.
5758 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5760 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5762 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5763 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5764 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5765 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5766 RTX_OK_FOR_OLO10_P): ...here.
5767 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5770 2011-05-12 Kai Tietz <ktietz@redhat.com>
5772 * gimplify.c (gimple_boolify): Re-boolify expression
5773 arguments even if expression type is of kind BOOLEAN_TYPE.
5774 (gimplify_boolean_expr): Removed.
5775 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5776 and XOR. Additional take care that we keep expression's type.
5777 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5778 of TRUTH_AND|OR|XOR_EXPR.
5780 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5782 PR tree-optimization/48975
5783 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5784 on all bbs here and free and clear ifc_bbs at the end.
5786 2011-05-12 Richard Guenther <rguenther@suse.de>
5788 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5789 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5790 until after simple checks.
5791 (gimple_types_compatible_p): Likewise.
5792 (iterative_hash_gimple_type): Always hash pointer targets
5793 and function return and argument types.
5794 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5795 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5796 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5797 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5798 completely in the simple compare section.
5799 (gimple_register_canonical_type): Query the cache again after
5802 2011-05-12 Richard Guenther <rguenther@suse.de>
5804 PR tree-optimization/48172
5805 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5806 the number of iterations from the segment size calculation.
5807 (vect_create_cond_for_alias_checks): Adjust.
5809 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5812 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5813 if validate_subreg fails.
5815 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5817 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5818 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5821 2011-05-12 DJ Delorie <dj@redhat.com>
5823 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5824 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5825 created builtin into rx_builtins array.
5826 (rx_builtin_decl): New function.
5827 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5829 2011-05-12 DJ Delorie <dj@redhat.com>
5830 Nick Clifton <nickc@redhat.com>
5832 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5833 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5834 (rx_is_legitimate_address): Add pre-decrement and post-increment
5835 addressing in HImode and QImode. Fix test for out of range
5837 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5838 (rx_align_for_label): Test label before extracting its usage count.
5839 (rx_adjust_insn_lengths): Fix selection of insn codes.
5840 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5842 2011-05-11 Jason Merrill <jason@redhat.com>
5844 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5846 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5848 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5849 reindent the subsequent block.
5851 2011-05-11 Satoru Takabayashi <satorux@google.com>
5852 Paul Pluzhnikov <ppluzhnikov@google.com>
5854 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5855 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5856 * config.in: Add LINKER_HASH_STYLE.
5857 * configure.ac: Add --with-linker-hash-style.
5858 * configure: Regenerate.
5860 2011-05-11 Richard Guenther <rguenther@suse.de>
5863 * gimple.c (iterative_hash_canonical_type): Fix typo.
5865 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/i386.c (legitimize_tls_address)
5868 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5869 expanders directly for TARGET_GNU2_TLS. Determine pic and
5870 __tls_get_addr symbol reference here. Update call to
5871 gen_tls_global_dynamic_{32,64} for added arguments.
5872 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5873 expanders directly for TARGET_GNU2_TLS. Determine
5874 __tls_get_addr symbol reference here. Update call to
5875 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5876 unique UNSPEC REG_EQUIV to libcall block.
5877 (ix86_tls_get_addr): Declare static.
5878 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5879 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5880 Do not determine pic and __tls_get_addr symbol reference here. Do not
5881 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5882 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5883 (tls_global_dynamic_64): Add operand 2. Do not determine
5884 __tls_get_addr symbol reference here. Do not call
5885 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5886 (tls_local_dynamic_base64): Ditto for operand 1.
5888 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5890 * function.c (expand_function_start): Initialize stack_check_probe_note
5891 only if the generic stack checking mechanism is used.
5893 2011-05-11 Richard Guenther <rguenther@suse.de>
5895 PR tree-optimization/15256
5896 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5897 (A & B) | C, combine (A op CST1) op CST2.
5898 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5899 visit assigns that have uses.
5901 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5903 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5904 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5905 (unpack_ts_type_common_value_fields): ...this. Update comment.
5906 (unpack_value_fields): Adjust for renaming.
5907 (lto_input_ts_type_tree_pointers): Split into...
5908 (lto_input_ts_type_common_tree_pointer): ...this and...
5909 (lto_input_ts_type_non_common_tree_pointers): ...this.
5910 (lto_input_tree_pointers): Adjust for above split.
5911 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5912 (pack_ts_type_common_value_fields): ...this. Update comment.
5913 (lto_output_ts_type_tree_pointers): Split into...
5914 (lto_output_ts_type_common_tree_pointers): ...this and...
5915 (lto_output_ts_type_non_common_tree_pointers): ...this.
5916 (lto_output_tree_pointers): Adjust for above split.
5917 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5918 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5919 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5920 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5922 (struct tree_type): Split into...
5923 (struct tree_type_common: ...this and...
5924 (struct tree_type_with_lang_specific): ...this and...
5925 (struct tree_type_non_common): ...this. Adjust accessor macros
5927 (TYPE_VALUES_RAW): Define.
5928 (union tree_node): Update for above changes.
5929 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5931 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5932 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5933 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5934 * treestructu.def (TS_TYPE): Remove.
5935 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5938 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5941 * tree-ssa.c (reset_debug_uses): New function.
5942 * tree-flow.h (reset_debug_uses): New prototype.
5943 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5944 * tree-loop-distribution.c (generate_loops_for_partition): Call
5945 reset_debug_uses on the stmts that will be removed. Keep around
5946 all debug stmts, don't count them as bits in partition bitmap.
5947 (generate_builtin): Don't count debug stmts or labels as bits in
5950 2011-05-11 Richard Guenther <rguenther@suse.de>
5952 * gimple.c (gimple_type_hash_1): Merge with ...
5953 (gimple_type_hash): ... this.
5954 (gtc_visit): Remove mode parameter and simplify accordingly.
5955 (gimple_types_compatible_p_1): Likewise.
5956 (gimple_types_compatible_p): Likewise.
5957 (iterative_hash_gimple_type): Likewise.
5959 (gimple_type_eq): Adjust.
5961 2011-05-11 Revital Eres <revital.eres@linaro.org>
5963 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5964 enters the branch create an anti edge in the opposite direction
5965 to prevent the creation of reg-moves.
5966 * modulo-sched.c: Adjust comment to reflect the fact we are
5967 scheduling closing branch.
5968 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5969 (stage_count): New field in struct partial_schedule.
5970 (calculate_stage_count): New function.
5971 (normalize_sched_times): Rename to reset_sched_times and handle
5972 incrementing the sched time of the nodes by a constant value
5973 passed as parameter.
5974 (duplicate_insns_of_cycles): Skip closing branch.
5975 (sms_schedule_by_order): Schedule closing branch.
5976 (ps_insn_find_column): Handle closing branch.
5977 (sms_schedule): Call reset_sched_times and adjust the code to
5978 support scheduling of the closing branch.
5979 (ps_insert_empty_row): Update calls to normalize_sched_times
5980 and rotate_partial_schedule functions.
5982 2011-05-11 Richard Guenther <rguenther@suse.de>
5985 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5987 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5989 * opts.c (finish_options): Move warning settings from process_options.
5990 * toplev.c (process_options): Move warning settings to finish_options.
5992 2011-05-11 Richard Guenther <rguenther@suse.de>
5994 PR tree-optimization/18041
5995 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5996 (simplify_bitwise_binary): ... this. Handle operand conversions
5997 by applying them to the result instead.
5998 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6000 2011-05-11 Richard Guenther <rguenther@suse.de>
6002 * gimple.c (gimple_canonical_types_compatible_p): Split out
6003 from gimple_types_compatible_p and friends. Do not recurse
6004 to pointed-to types.
6005 (gimple_canonical_type_eq): Use it.
6006 (iterative_hash_canonical_type): Split out from
6007 iterative_hash_gimple_type and friends. Do not recurse
6008 to pointed-to types.
6009 (gimple_canonical_type_hash): Use it, allocate the hash here.
6011 2011-05-11 Revital Eres <revital.eres@linaro.org>
6013 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6016 2011-05-11 Revital Eres <revital.eres@linaro.org>
6018 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6019 instead of PREV_INSN.
6021 2011-05-11 Revital Eres <revital.eres@linaro.org>
6023 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6024 * loop-doloop.c (doloop_condition_get): Likewise.
6025 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6027 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6029 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6031 * tree.def (CASE_LABEL_EXPR): Add an operand.
6032 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6034 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6036 * c-decl.c (c_override_global_bindings_to_false): Remove.
6037 (global_bindings_p): Don't check
6038 c_override_global_bindings_to_false.
6039 * c-tree.h (c_override_global_bindings_to_false): Remove.
6040 * c-typeck.c (composite_type): Don't set
6041 c_override_global_bindings_to_false.
6043 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6045 PR target/48857, 48495
6046 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6048 (VSX_MOVE_MODE): Ditto.
6049 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6050 VSX vector types. Add V2DImode.
6051 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6052 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6053 (MODES_TIEABLE_P): Ditto.
6055 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6056 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6058 (init_cumulative_args): Ditto.
6059 (rs6000_function_arg_boundary): Ditto.
6060 (rs6000_function_arg_advance_1): Ditto.
6061 (rs6000_function_arg): Ditto.
6062 (rs6000_function_ok_for_sibcall): Ditto.
6063 (emit_frame_save): Ditto.
6064 (rs6000_function_value): Ditto.
6065 (rs6000_libcall_value): Ditto.
6067 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6069 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6070 i386/darwin-lib.h to $libgcc_tm_file.
6071 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6073 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6075 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6077 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6079 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6080 * config/rs6000/rs6000-tables.opt: New file (generated).
6081 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6082 rs6000/rs6000-tables.opt to extra_options.
6083 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6084 * config/rs6000/rs6000.c (rs6000_select): Remove.
6085 (processor_target_table): Move contents to rs6000-cpus.def.
6086 (darwin_rs6000_override_options): Check
6087 global_options_set.x_rs6000_cpu_index instead of
6088 rs6000_select[1].string.
6089 (rs6000_option_override_internal): Likewise.
6090 (rs6000_handle_option): Don't assert that global structures are in
6091 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6092 (rs6000_default_cpu): New variable.
6093 (rs6000_file_start): Set it instead of local default_cpu. Check
6094 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6095 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6096 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6097 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6098 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6099 rs6000_select): Remove.
6100 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6102 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6103 * config/rs6000/t-rs6000
6104 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6105 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6106 global_options_set.x_rs6000_cpu_index instead of
6107 rs6000_select[1].string.
6108 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6109 global_options_set.x_rs6000_cpu_index instead of
6110 rs6000_select[1].string.
6112 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6114 * config.gcc (libgcc_tm_file): Define instead of including files
6115 from ../../libgcc/config/ in tm_file.
6116 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6117 * configure: Regenerate.
6118 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6119 libgcc_tm.h, cs-libgcc_tm.h): New.
6120 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6121 (clean): Remove libgcc_tm.h.
6122 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6123 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6124 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6126 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6129 * config/avr/avr.c (avr_ret_register): Return unsigned int
6131 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6132 it to avr_libcall_value.
6133 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6135 (avr_expand_binop_builtin): Ditto.
6136 (avr_expand_unop_builtin): Ditto.
6138 2011-05-10 DJ Delorie <dj@redhat.com>
6140 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6141 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6142 * config/rx/rx.c (rx_align_for_label): Add label and
6143 uses_threshold parameters. Do not align when the label is not
6145 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6147 2011-05-10 Richard Guenther <rguenther@suse.de>
6149 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6150 a series of conversions and apply foldings similar to what
6152 (tree_ssa_forward_propagate_single_use_vars): Call it.
6154 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6156 PR tree-optimization/48611
6157 PR tree-optimization/48794
6158 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6159 referenced from RESX or EH_DISPATCH arguments.
6162 * dfp.c (decimal_to_decnumber): Handle conversion from
6163 dconst{1,2,m1,half}.
6165 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6167 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6168 for !flag_prefer_avx128.
6169 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6171 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6173 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6174 (fold_ternary_loc): Use expr_location_or.
6176 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6179 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6180 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6181 Pmode and mem_mode is not VOIDmode.
6183 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6185 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6186 TYPE_QUAL_RESTRICT): Convert to enum.
6188 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6190 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6191 (const_pow2_1_to_8_operand): Ditto.
6192 (const_pow2_1_to_128_operand): Ditto.
6193 (const_pow2_1_to_32768_operand): Ditto.
6194 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6195 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6196 in insn constraint to check integer value of operand 3.
6197 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6199 (PINSR_MODE): New mode iterator.
6200 (sse2p4_1): New mode attribute.
6201 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6202 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6203 iterator. Use const_int_operand instead of
6204 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6205 exact_log2 in insn constraint to check integer value of operand 3.
6207 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6209 * config/i386/sse.md (blendbits): Remove mode attribute.
6210 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6211 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6212 Check integer value of operand 3 in insn constraint.
6214 2011-05-09 Richard Guenther <rguenther@suse.de>
6216 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6218 (lto_symtab_merge): Likewise. Do not register types here.
6219 (lto_symtab_merge_decls_2): Likewise.
6220 (lto_symtab_merge_decls_1): Likewise.
6221 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6222 * gimple.c (enum gtc_mode): Declare.
6223 (gimple_types_compatible_p): Make static.
6225 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6227 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6228 temporary register to match Pmode.
6230 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6232 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6233 and *vec_concatv4si_1_avx.
6235 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6237 PR rtl-optimization/48927
6238 * ira-conflicts.c (commutative_constraint_p): Use
6239 recog_data.alternative_enabled_p to disable alternatives where
6240 "enabled" attribute is false.
6241 (get_dup_num): Ditto.
6242 * ira-lives.c (single_reg_class): Ditto.
6243 (ira_implicitly_set_insn_hard_regs): Ditto.
6245 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6247 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6248 (dataflow_set_preserve_mem_locs): Likewise.
6250 2011-05-09 Philipp Thomas <pth@suse.de>
6252 * config/mep/mep.c (mep_validate_vliw): Syntax description
6253 should not be translated.
6255 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6257 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6258 * config/mips/mips-tables.opt: New file (generated).
6259 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6260 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6261 MIPS_ARCH_OPTION_NATIVE): Define.
6262 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6264 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6265 mips_parse_cpu): Remove.
6266 (mips_cpu_info_from_opt, mips_default_arch): New.
6267 (mips_handle_option): Don't assert that global structures are in
6268 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6269 (mips_option_override): Use new variables and functions to set
6270 state of these options. Use strcmp to check for individual CPU names.
6271 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6273 * config/mips/mips.opt (march=): Use ToLower and Enum.
6274 (mips): Use ToLower, Enum and Var.
6275 (mtune=): Use ToLower and Enum.
6276 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6278 2011-05-08 Jan Hubicka <jh@suse.cz>
6280 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6281 Arrange type pairs to be UID ordered.
6282 (gimple_lookup_type_leader): Make inline.
6284 2011-05-09 Nick Clifton <nickc@redhat.com>
6287 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6291 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6294 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6296 * combine.c (simplify_comparison): Abstract out parts into...
6297 (simplify_compare_const): ... new function.
6298 (try_combine): Generalize parallel arithmetic/compare combining
6299 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6301 2011-05-08 Jan Hubicka <jh@suse.cz>
6303 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6304 (cgraph_create_virtual_clone): Call hooks once virtual clone
6306 * cgraph.h (cgraph_clone_node): Update prototype.
6307 * ipa-cp.c (ipcp_estimate_growth): Use
6308 estimate_ipcp_clone_size_and_time.
6309 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6310 * lto-cgraph.c (input_node): Update.
6311 * ipa-inline.c (recursive_inlining): Update.
6312 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6313 (evaluate_conditions_for_known_args): Break out from ...
6314 (evaluate_conditions_for_edge): ... here.
6315 (evaluate_conditions_for_ipcp_clone): New function.
6316 (inline_node_duplication_hook): Update clone summary based
6318 (estimate_callee_size_and_time): Rename to ...
6319 (estimate_node_size_and_time): take NODE instead of EDGE;
6320 take POSSIBLE_TRUTHS as argument.
6321 (estimate_callee_size_and_time): Update.
6322 (estimate_ipcp_clone_size_and_time): New function.
6323 (do_estimate_edge_time): Update.
6325 2011-05-08 Richard Guenther <rguenther@suse.de>
6329 * expmed.c (expand_shift_1): Compute adjusted constant shift
6332 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6334 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6336 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6338 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6340 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6342 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6344 2011-05-07 Jan Hubicka <jh@suse.cz>
6346 * ipa-inline-transform.c (inline_call): Account when program size
6348 * ipa-inline.c (relative_time_benefit): New function.
6349 (edge_badness): Reorganize to be power 2 based; fix thinko when
6350 computing badness for negative growth; update comments to match
6351 reality; better dumps.
6353 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6355 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6356 type to bool and adjust comment.
6357 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6358 (fold_mathfn_compare): Remove calls to global_bindings_p.
6359 (fold_inf_compare): Likewise.
6360 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6361 * c-tree.h (global_bindings_p): Adjust prototype.
6362 * c-decl.c (global_bindings_p): Return bool and simplify.
6364 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6366 PR tree-optimization/48837
6367 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6368 when accumulator transformation is performed.
6370 2011-05-06 Jan Hubicka <jh@suse.cz>
6372 * i386.h (ix86_tune_indices): Add
6373 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6374 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6375 * i386.c (initial_ix86_tune_features): Add
6376 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6377 (software_prefetching_beneficial_p): Remove predicate.
6378 (ix86_option_override_internal): Use new macro.
6380 2011-05-06 Jan Hubicka <jh@suse.cz>
6382 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6384 2011-05-06 Jan Hubicka <jh@suse.cz>
6386 * cgraph.c (cgraph_add_thunk): Create real function node instead
6387 of alias node; finalize it and mark needed/reachale; arrange visibility
6388 to be right and add it into the corresponding same comdat group list.
6389 (dump_cgraph_node): Dump thunks.
6390 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6391 cgraph_function_with_gimple_body_p,
6392 cgraph_first_function_with_gimple_body,
6393 cgraph_next_function_with_gimple_body): New functions.
6394 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6396 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6397 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6398 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6399 devirtualization when optimizing.
6400 (verify_cgraph_node): Verify thunks.
6401 (cgraph_analyze_function): Analyze thunks.
6402 (cgraph_mark_functions_to_output): Output thunks only in combination
6403 with function they are assigned to.
6404 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6405 alias into normal node.
6406 (assemble_thunks): New functoin.
6407 (cgraph_expand_function): Use it.
6408 * lto-cgraph.c (lto_output_node): Stream thunks.
6409 (input_overwrite_node): Stream in thunks.
6410 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6411 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6412 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6413 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6414 (inline_analyze_function): Do not care about thunk jump functions.
6415 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6416 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6417 cgraph_function_with_gimple_body_p.
6418 * passes.c (do_per_function_toporder): Use
6419 cgraph_function_with_gimple_body_p.
6420 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6421 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6422 (function_called_by_processed_nodes_p): Likewise.
6424 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6426 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6427 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6429 (mabi=): Replace with separate entries for mabi=altivec,
6430 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6431 mabi=ieeelongdouble and mabi=ibmlongdouble.
6432 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6433 check for -mabi=spe without SPE ABI support here.
6434 (rs6000_handle_option): Replace OPT_mabi_ handling with
6435 OPT_mabi_altivec and OPT_mabi_spe handling.
6437 2011-05-06 Cary Coutant <ccoutant@google.com>
6439 * dwarf2out.c (contains_subprogram_definition): New function.
6440 (should_move_die_to_comdat): Call it.
6442 2011-05-06 Jeff Law <law@redhat.com>
6444 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6445 remove_ctrl_stmt_and_useless_edges.
6446 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6447 (fixup_template_block, thread_single_edge): Likewise.
6448 (mark_threaded_blocks): Use THREAD_TARGET.
6450 2011-05-06 Alan Modra <amodra@gmail.com>
6453 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6454 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6456 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6458 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6459 constraint modifier to "r".
6461 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6463 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6464 fall through for OPT_mcmodel_.
6466 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6468 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6470 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6472 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6475 * config/arm/arm.opt (marm): Document it.
6476 (mthumb): Reject negative variant.
6478 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6481 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6482 Fix typo in "ccvt" variable name.
6484 2011-05-06 Tristan Gingold <gingold@adacore.com>
6487 * config/vms/vms-ar.c (main): Remove cwd variable.
6489 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6492 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6494 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6496 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6497 * gimplify.c (gimplify_switch_expr): Likewise.
6498 * omp-low.c (expand_omp_sections): Likewise.
6499 * tree-eh.c (lower_try_finally_switch): Likewise.
6500 (lower_eh_dispatch): Likewise.
6501 * tree.h (build_case_label): Declare.
6502 * tree.c (build_case_label): Define.
6504 2011-05-05 Jason Merrill <jason@redhat.com>
6507 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6508 (copy_statement_list): Don't recurse.
6509 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6512 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6514 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6515 through from -mfpu= handling.
6516 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6518 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6520 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6523 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6525 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6527 (hppa[12]*-*-hpux11*): Ditto.
6528 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6529 * config/ia64/hpux-unix2003.h: New.
6530 * config/pa/pa-hpux1131.opt: New.
6531 * config/pa/pa-hpux1131.h: New.
6532 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6533 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6534 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6536 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6539 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6540 instead of mode as 3rd argument to recursive call.
6541 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6542 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6544 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6545 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6546 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6547 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6549 2011-05-05 Julian Brown <julian@codesourcery.com>
6551 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6552 parenthesis in D-register case.
6554 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6556 * opt-functions.awk (var_type_struct): Handle Enum options.
6557 * optc-gen.awk: Don't check range of variables of character type.
6558 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6559 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6560 rs6000_sdata_name, rs6000_explicit_options): Remove.
6561 (rs6000_option_override_internal): Check for -malign-power here.
6562 Use global_options_set instead of rs6000_explicit_options.
6563 (rs6000_parse_fpu_option): Remove.
6564 (rs6000_handle_option): Access variables via opts and opts_set
6565 pointers. Use error_at and warning_at. Add fall-through
6566 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6567 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6568 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6569 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6570 here. Don't use rs6000_parse_fpu_option.
6571 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6572 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6573 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6575 (mspe): Use Var and Save.
6576 (mtraceback=): Use Enum and Var.
6577 (rs6000_traceback_type): New Enum and EnumValue entries.
6578 (mfloat-gprs=): Use Enum, Var and Save.
6579 (rs6000_float_gprs): New Enum and EnumValue entries.
6580 (mlong-double-): use Var and Save.
6581 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6582 (malign-): Use Enum and Var.
6583 (rs6000_alignment_flags): New Enum and EnumValue entries.
6585 (fpu_type_t): New Enum and EnumValue entries.
6586 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6587 global_options_set instead of rs6000_explicit_options.
6588 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6589 global_options_set instead of rs6000_explicit_options.
6590 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6591 global_options_set instead of rs6000_explicit_options.
6592 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6593 global_options_set instead of rs6000_explicit_options.
6594 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6595 global_options_set instead of rs6000_explicit_options.
6596 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6597 global_options_set instead of rs6000_explicit_options.
6598 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6600 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6601 global_options_set instead of rs6000_explicit_options.
6602 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6603 (rs6000_cmodel): New Enum and EnumValue entries.
6604 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6605 global_options_set instead of rs6000_explicit_options.
6606 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6607 (mtls-size=): Use Enum and Var.
6608 (rs6000_tls_size): New Enum and EnumValue entries.
6610 2011-05-05 Michael Matz <matz@suse.de>
6612 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6613 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6614 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6615 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6616 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6617 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6618 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6619 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6620 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6621 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6622 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6623 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6624 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6625 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6626 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6627 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6629 2011-05-05 Richard Guenther <rguenther@suse.de>
6631 * expmed.c (expand_variable_shift): Rename to ...
6632 (expand_shift_1): ... this. Take an expanded shift amount.
6633 For rotates recurse directly not building trees for the shift amount.
6634 (expand_variable_shift): Wrap around expand_shift_1.
6635 (expand_shift): Adjust.
6637 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6639 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6641 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6643 * tree.h (get_pending_sizes): Remove prototype.
6644 (put_pending_size): Likewise.
6645 (put_pending_sizes): Likewise.
6646 * stor-layout.c (pending_sizes): Delete.
6647 (get_pending_sizes): Likewise.
6648 (put_pending_size): Likewise.
6649 (put_pending_sizes): Likewise.
6650 (variable_size): Do not call put_pending_size and tidy up.
6651 * function.h (struct function): Remove dont_save_pending_sizes_p.
6652 * lto-streamer-in.c (input_function): Do not stream it.
6653 * lto-streamer-out.c (output_function): Likewise.
6654 * tree-inline.c (initialize_cfun): Do not copy it.
6655 * c-decl.c (store_parm_decls): Do not set it.
6656 * omp-low.c (create_task_copyfn): Likewise.
6657 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6659 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6661 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6663 (*movdf_internal): Ditto.
6664 (*movdf_internal_nointeger): Ditto.
6665 (*movsf_internal): Ditto.
6667 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6669 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6670 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6671 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6672 (c_variable_size): Remove.
6673 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6674 call put_pending_sizes.
6675 (get_parm_info): Add parameter expr. Use it to set
6676 arg_info->pending_sizes.
6677 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6679 * c-parser.c (c_parser_parms_declarator): Update call to
6680 c_parser_parms_list_declarator.
6681 (c_parser_parms_list_declarator): Take parameter expr. Update
6682 call to push_parm_decl. Update recursive call. Don't call
6683 get_pending_sizes. Update calls to get_parm_info.
6684 (c_parser_objc_method_definition): Update calls to
6685 c_parser_objc_method_decl and objc_start_method_definition.
6686 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6687 (c_parser_objc_method_decl): Add parameter expr. Update call to
6689 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6690 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6691 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6693 2011-05-05 Michael Hope <michael.hope@linaro.org>
6696 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6699 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6701 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6702 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6703 (spu_output_mi_thunk): New function.
6705 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6707 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6708 targetm.asm_out.print_operand.
6709 * config/sol2.c: Include target.h.
6711 2011-05-04 Jan Hubicka <jh@suse.cz>
6713 * ipa-inline.c (reset_edge_caches): New function.
6714 (update_caller_keys): Add check_inlinablity_for; do not
6715 reset edge caches; remove now unnecesary loop.
6716 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6717 (update_all_callee_keys): Likewise.
6718 (inline_small_functions): Sanity check cache; update code
6721 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6723 PR rtl-optimization/47612
6724 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6725 as the last insn of the sequence to be moved.
6727 2011-05-04 Tobias Burnus <burnus@net-b.de>
6730 * doc/invoke.texi (Ofast): Document that it
6731 enables Fortran's -fno-protect-parens.
6733 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6735 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6737 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6739 * stor-layout.c (variable_size): Do not issue errors.
6741 2011-05-04 Richard Guenther <rguenther@suse.de>
6743 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6744 for array-ref indices.
6745 (tree_coverage_counter_addr): Likewise.
6746 (build_fn_info_type): Use size_int for index types.
6747 (build_gcov_info): Likewise.
6749 2011-05-04 Richard Guenther <rguenther@suse.de>
6751 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6753 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6754 for constructor indices.
6755 (push_init_level): Likewise.
6757 2011-05-04 Richard Guenther <rguenther@suse.de>
6759 * explow.c (promote_mode): Move variable declarations before code.
6761 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6763 * tree.h (build_function_type_array): Declare.
6764 (build_varargs_function_type_array): Declare.
6765 (build_function_type_vec, build_varargs_function_type_vec): Define.
6766 * tree.c (build_function_type_array_1): New function.
6767 (build_function_type_array): New function.
6768 (build_varargs_function_type_array): New function.
6770 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6772 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6773 before setting STMT_VINFO_TYPE.
6775 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6777 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6778 instead of spu_pass_by_reference.
6780 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6782 * calls.c (emit_library_call_value_1): Invoke
6783 promote_function_mode hook on libcall arguments.
6784 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6785 argument being NULL.
6786 * targhooks.c (default_promote_function_mode): Lisewise.
6787 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6788 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6790 * doc/tm.texi: Document that TYPE argument might be NULL.
6792 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6794 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6796 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6799 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6801 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6803 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6804 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6806 * mips-tfile.c: ... here.
6807 Don't include coretypes.h, tm.h, filenames.h.
6808 (saber_stop): Remove definition and all calls.
6809 [__SABER__]: Remove.
6810 (__LINE__): Remove default.
6811 (Size_t, Ptrdiff_t): Remove definitions.
6812 Replace by size_t, ptrdiff_t.
6813 [!MIPS_DEBUGGING_INFO]: Remove.
6814 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6815 (progname): Add const.
6817 Replace all uses by static.
6818 (ALIGN_SYMTABLE_OFFSET): Remove default.
6819 * mips-tdump.c: Don't include coretypes.h, tm.h.
6820 Remove !MIPS_IS_STAB guard.
6821 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6822 $(TM_H), filenames.h dependencies.
6823 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6825 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6828 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6829 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6831 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6834 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6835 account and save/restore RETS.
6836 (PROFILE_BEFORE_PROLOGUE): Define.
6837 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6838 the push insn to use predecrement.
6840 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6843 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6845 2011-05-04 Nick Clifton <nickc@redhat.com>
6847 * config/mn10300/mn10300.c: Include cfgloop.h.
6849 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6850 Lcc or a FLcc insn into the instruction stream.
6851 (mn10300_block_contains_call): New function. Returns true if the
6852 given basic block contains a CALL insn.
6853 (mn10300_loop_contains_call_insn): New function. Returns true if
6854 the given loop contains a CALL insn.
6855 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6856 to use the SETLB and Lcc or FLcc insns.
6857 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6858 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6859 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6860 disable the SETLB optimization.
6861 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6862 __SETLB__ or __NO_SETLB__.
6863 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6864 (movsf_internal): Handle MDR register.
6865 (cmpsi): Make visible.
6866 (setlb): New pattern.
6868 (FLcc): New pattern.
6870 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6873 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6874 for reg<->xmm moves.
6875 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6876 (vec_concatv2di_rex64_sse): Ditto.
6877 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6878 (*vec_extractv2di_1_rex64): Ditto.
6881 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6883 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6885 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6887 2011-05-04 Richard Guenther <rguenther@suse.de>
6889 * tree.h (int_const_binop): Remove notrunc argument.
6890 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6891 create integer constants that are properly truncated.
6892 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6893 (const_binop): Remove zero notrunc argument to int_const_binop.
6894 (size_binop_loc): Likewise.
6895 (fold_div_compare): Likewise.
6896 (maybe_canonicalize_comparison_1): Likewise.
6897 (fold_comparison): Likewise.
6898 (fold_binary_loc): Likewise.
6899 (multiple_of_p): Likewise.
6900 * expr.c (store_constructor): Likewise.
6901 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6902 (maybe_fold_stmt_addition): Likewise.
6903 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6904 * stor-layout.c (layout_type): Likewise.
6905 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6906 * tree-sra.c (build_ref_for_offset): Likewise.
6907 (build_user_friendly_ref_for_offset): Likewise.
6908 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6909 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6910 * tree-ssa-loop-niter.c (inverse): Likewise.
6911 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6912 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6913 * tree-switch-conversion.c (check_range): Likewise.
6914 (build_constructors): Likewise.
6915 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6916 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6917 (extract_range_from_assert): Likewise.
6918 (vrp_int_const_binop): Likewise.
6919 (extract_range_from_binary_expr): Likewise.
6920 (extract_range_from_unary_expr): Likewise.
6921 (check_array_ref): Likewise.
6922 (find_case_label_range): Likewise.
6923 (simplify_div_or_mod_using_ranges): Likewise.
6924 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6925 comparing case labels for merging.
6927 2011-05-03 Mark Wielaard <mjw@redhat.com>
6929 * dwarf2out.c (debug_str_hash_forced): Removed.
6930 (gen_label_for_indirect_string): Removed.
6931 (get_debug_string_label): Removed.
6932 (AT_string_form): Generate label directly.
6933 (output_indirect_string): Test indirect_string_node for
6934 DW_FORM_strp instead of checking label and refcount.
6935 (prune_indirect_string): Removed.
6936 (prune_unused_types): Don't check debug_str_hash_forced or
6937 call prune_indirect_string.
6939 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6942 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6944 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6948 * combine.c (try_combine): Skip debug insns at m_split tests.
6950 2011-04-26 Mark Wielaard <mjw@redhat.com>
6953 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6954 when info_section_emitted.
6956 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6958 * config/mips/mips-opts.h: New.
6959 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6961 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6962 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6963 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6965 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6967 (mips_abi, mips_code_readable): Don't declare.
6968 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6969 (mabi=): Use Enum and Var.
6970 (mips_abi): New Enum and EnumValue entries.
6971 (mcode-readable=): Use Enum and Var.
6972 (mips_code_readable_setting): New Enum and EnumValue entries.
6973 (mr10k-cache-barrier=): Use Enum and Var.
6974 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6976 2011-05-03 Jan Hubicka <jh@suse.cz>
6978 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6979 replace hash by pointer map.
6980 (cgraph_node_set_element_def, cgraph_node_set_element,
6981 const_cgraph_node_set_element, varpool_node_set_element_def,
6982 varpool_node_set_element, const_varpool_node_set_element): Remove.
6983 (free_cgraph_node_set, free_varpool_node_set): New function.
6984 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6985 * tree-emutls.c: Free varpool node set.
6986 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6987 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6988 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6989 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6990 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6991 Move here from ipa.c; implement using pointer_map
6992 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6993 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6994 debug_cgraph_node_set, varpool_node_set_new,
6995 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6996 dump_varpool_node_set, debug_varpool_node_set):
6997 Move to ipa-uitls.c.
6998 * passes.c (ipa_write_summaries): Update.
7000 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7002 From Mike Frysinger:
7003 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7004 bf542/bf544/bf547/bf548/bf549.
7006 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7008 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7010 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7013 * config/bfin/bfin.md (MOVCC): New mode_macro.
7014 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7015 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7016 comments from generated assembly.
7018 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7021 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7022 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7023 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7024 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7025 * config/bfin/lib1funcs.asm (___muldi3): New function.
7027 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7029 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7030 build_function_type_list instead of build_function_type.
7031 Rearrange initialization of `args' to do so.
7033 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7035 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7036 instead of build_function_type.
7038 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7040 * config/rs6000/rs6000.c (spe_init_builtins): Call
7041 build_function_type_list instead of build_function_type.
7042 (paired_init_builtins, altivec_init_builtins): Likewise.
7043 (builtin_function_type): Likewise.
7045 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7047 * config/sh/sh.c (sh_media_init_builtins): Call
7048 build_function_type_list instead of build_function_type.
7050 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7052 * config/sparc/sparc.c (sparc_file_end): Call
7053 build_function_type_list instead of build_function_type.
7055 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7057 * config/alpha/alpha.c (alpha_init_builtins): Call
7058 build_function_type_list instead of build_function_type.
7060 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7062 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7063 build_function_type_list instead of build_function_type.
7065 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7067 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7068 build_function_type_list instead of build_function_type.
7069 Delete `endlink' variable.
7071 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7073 * config/avr/avr.c (avr_init_builtins): Call
7074 build_function_type_list instead of build_function_type.
7076 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7078 * config/picochip/picochip.c (picochip_init_builtins): Call
7079 build_function_type_list instead of build_function_type.
7080 Delete `endlink' variable.
7082 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7084 * config/bfin/bfin.c (bfin_init_builtins): Call
7085 build_function_type_list instead of build_function_type.
7087 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7090 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7091 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7093 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7096 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7097 libbffastfp overrides libgcc when -mfast-fp.
7099 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7101 Originally from Bernd Schmidt
7102 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7103 * config/bfin/bfin.c (override_options): Test it and error if
7106 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7108 Originally From Bernd Schmidt
7109 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7112 2011-05-03 Jeff Law <law@redhat.com>
7114 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7115 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7116 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7117 than accessing AUX field directly. Free the AUX field before
7119 (thread_block, thread_through_loop_header): Likewise.
7120 (thread_single_edge, mark_threaded_blocks): Likewise.
7121 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7122 (register_jump_thread): Do not attempt to thread to a NULL edge.
7124 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7126 * function.c (init_function_start): Call decide_function_section.
7127 * varasm.c (decide_function_section): New function.
7128 (assemble_start_function): When not using
7129 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7130 or first_function_block_is_cold.
7131 * rtl.h (decide_function_section): Declare.
7133 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7134 Jakub Jelinek <jakub@redhat.com>
7137 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7138 only succeed if req_mode is the same as set_mode.
7140 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7142 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7143 * genemit.c (gen_exp): Handle RETURN.
7144 * emit-rtl.c (verify_rtx_sharing): Likewise.
7145 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7146 * rtl.c (copy_rtx): RETURN is shared.
7147 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7149 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7150 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7151 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7152 * config/cris/cris.c (cris_expand_return): Likewise.
7153 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7154 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7155 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7156 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7157 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7159 * config/v850/v850.c (expand_epilogue): Likewise.
7160 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7161 * config/arm/arm.md (epilogue): Likewise.
7162 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7163 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7164 variable to ret_reg.
7166 2011-05-03 Richard Guenther <rguenther@suse.de>
7169 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7170 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7171 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7173 2011-05-03 Richard Guenther <rguenther@suse.de>
7175 * c-decl.c (grokdeclarator): Instead of looking at
7176 TREE_OVERFLOW check if the constant fits in the index type.
7178 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7180 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7181 (vec_store_lanes<mode><mode>): Likewise.
7183 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7185 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7186 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7187 convert_optab_index values.
7188 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7189 * genopinit.c (optabs): Initialize the new optabs.
7190 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7191 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7192 (expand_STORE_LANES): New functions.
7193 * tree.h (build_array_type_nelts): Declare.
7194 * tree.c (build_array_type_nelts): New function.
7195 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7196 (vect_model_load_cost): Likewise.
7197 (vect_store_lanes_supported, vect_load_lanes_supported)
7198 (vect_record_strided_load_vectors): Declare.
7199 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7200 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7201 (vect_transform_strided_load): Split out statement recording into...
7202 (vect_record_strided_load_vectors): ...this new function.
7203 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7204 (write_vector_array, create_array_ref): New functions.
7205 (vect_model_store_cost): Add store_lanes_p argument.
7206 (vect_model_load_cost): Add load_lanes_p argument.
7207 (vectorizable_store): Try to use store-lanes functions for
7209 (vectorizable_load): Likewise load-lanes and loads.
7210 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7211 to vect_model_store_cost.
7212 (vect_build_slp_tree): Likewise vect_model_load_cost.
7214 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7216 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7217 * hooks.c (hook_bool_mode_uhwi_false): New function.
7218 * target.def (array_mode_supported_p): New hook.
7219 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7220 * doc/tm.texi: Regenerate.
7221 * stor-layout.c (mode_for_array): New function.
7222 (layout_type): Use it.
7223 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7224 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7226 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7229 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7230 for -fstack-check if the size to allocate is negative.
7232 2011-05-02 Lawrence Crowl <crowl@google.com>
7234 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7235 (timevar_cond_start): New for starting a timer only when it is not
7237 (timevar_cond_stop): New for stopping a timer when it was not already
7240 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7241 (timevar_cond_start): New as above.
7242 (timevar_cond_stop): New as above.
7244 * timevar.def: Add start/stop timers for compiler phases,
7245 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7246 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7247 and TV_PHASE_FINALIZE.
7248 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7249 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7250 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7251 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7252 Make unused TV_OVERLOAD into a start/stop timer.
7254 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7255 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7256 to indicate that they are start/stop timers.
7258 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7259 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7260 Move initialization to do_compile.
7261 (do_compile): Add initialization from above.
7262 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7264 * c-decl.c (c_write_global_declarations): Add start/stop of
7265 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7267 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7268 or TV_PARSE_INLINE, as appropriate.
7269 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7270 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7272 2011-05-02 Jason Merrill <jason@redhat.com>
7275 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7277 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7280 * c-decl.c (finish_decl): Only create a composite if the types are
7283 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7285 * config/fr30/fr30-protos.h (Mmode): Don't define.
7286 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7287 definition where used.
7288 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7289 define. Expand definitions where used.
7290 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7291 Expand definitions where used.
7292 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7293 rx_function_arg, rx_function_arg_advance,
7294 rx_function_arg_boundary): Expand definitions of those macros.
7295 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7296 definition where used.
7298 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7300 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7302 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7303 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7304 with *movv2sf_internal_rex64_avx.
7305 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7306 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7307 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7308 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7309 "vex" in "prefix" attribute calculation.
7310 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7312 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7315 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7316 inputs match the output.
7318 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7321 * config/m68k/m68k.c (m68k_expand_prologue): Set
7322 current_function_static_stack_size.
7324 2011-05-02 Jan Hubicka <jh@suse.cz>
7326 * lto-streamer.c (lto_streamer_cache_insert_1,
7327 lto_streamer_cache_lookup, lto_streamer_cache_create,
7328 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7329 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7331 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7333 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7334 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7335 config/m68k/t-opts: New files.
7336 * config/m68k/m68k-tables.opt: New file (generated).
7337 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7338 extra_options and m68k/t-opts to tmake_file.
7339 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7340 (all_isas): Initialize using m68k-isas.def.
7341 (all_microarchs): Initialize using m68k-microarchs.def.
7342 (m68k_find_selection): Remove.
7343 (m68k_handle_option): Don't assert that global structures are in
7344 use. Use error_at. Access variables via opts pointer. Don't
7345 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7346 directly for -m68020-40 and -m68020-60.
7347 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7348 m68k_tune_entry here.
7349 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7351 (m68k_library_id_string): Remove declaration.
7352 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7353 (m68k_library_id_string): New Variable.
7354 (march=, mcpu=, mtune=): Use Enum and Var.
7356 2011-05-02 Richard Guenther <rguenther@suse.de>
7358 * varasm.c (output_constructor_regular_field): Compute zero-based
7359 index with double-ints. Make sure to ICE instead of producing
7361 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7362 in asserts. Properly use a signed type.
7364 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7366 * config/i386/sse.md (V): New mode iterator.
7367 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7369 (V_256): Rename from AVX256MODE.
7370 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7371 condition to all users.
7373 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7374 condition to all users.
7375 (VF_128): Make V4SF mode unconditional.
7376 (VF_256): Rename from AVX256MODEF2P.
7377 (VI4F_128): Rename from SSEMODE4S.
7378 (VI8F_128): Rename from SSEMODE2D.
7379 (VI4F_256): Rename from AVX256MODE8P.
7380 (VI8F_256): Rename from AVX256MODE4P.
7381 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7382 (ssescalarmodesuffix): Remove SF and DF modes.
7383 (SSEMODE124): Remove.
7384 (SSEMODE1248): Ditto.
7385 (SSEMODEF2P): Ditto.
7386 (AVXMODEF2P): Ditto.
7387 (AVXMODEFDP): Ditto.
7388 (AVXMODEFSP): Ditto.
7389 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7391 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7393 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7394 xop_pcmov_<mode>256. Use V mode iterator.
7396 Adjust RTX patterns globally for renamed mode attributes.
7398 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7400 * haifa-sched.c (sched_emit_insn): Emit insn before first
7401 non-scheduled insn. Inform back-end about new insn. Add
7402 new insn to scheduled_insns list.
7404 2011-05-02 Richard Guenther <rguenther@suse.de>
7406 PR tree-optimization/48822
7407 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7408 (process_scc): Indicate which iteration we start.
7410 2011-05-02 Jan Hubicka <jh@suse.cz>
7412 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7413 (lto_section_overrun): New.
7414 * lto-section-out.c (append_block): Rename to ...
7415 (lto_append_block): ... this one; export.
7416 (lto_output_1_stream): Move lto lto-streamer.h
7417 (lto_output_data_stream): Update.
7418 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7419 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7422 2011-05-02 Richard Guenther <rguenther@suse.de>
7424 * tree.c (tree_code_counts): New global array.
7425 (record_node_allocation_statistics): Count individual tree codes.
7426 (dump_tree_statistics): Dump individual code stats.
7428 2011-05-01 Jan Hubicka <jh@suse.cz>
7430 * ipa-inline.c (caller_growth_limits): Fix thinko when
7431 looking for largest stack frame.
7432 * ipa-inline.h (dump_inline_summary): Declare.
7433 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7435 (dump_inline_summary): Export.
7436 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7438 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7440 * reginfo.c (memory_move_cost): Change rclass argument type form
7441 'enum reg_class' to reg_class_t.
7442 * reload.h (memory_move_cost): Update prototype.
7443 * postreload.c reload_cse_simplify_set): Change type dclass var to
7445 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7447 (ira_allocate_and_set_costs): Change aclass argument type form
7448 'enum reg_class' to reg_class_t.
7449 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7450 Change aclass argument type to reg_class_t.
7451 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7453 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7454 memory_move_cost call.
7456 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7457 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7458 Change type tmp var to reg_class_t.
7460 2011-04-30 Jan Hubicka <jh@suse.cz>
7462 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7463 inlining into function with flatten attribute.
7464 (want_inline_small_function_p): Be more realistic about inlining
7465 cold calls where callee size grows.
7467 2011-04-30 Jan Hubicka <jh@suse.cz>
7469 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7472 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7474 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7475 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7476 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7477 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7478 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7479 (print_operand): Rename to...
7480 (sparc_print_operand): ...this. Make static. Adjust
7481 sparc_print_operand function call.
7482 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7485 2011-04-30 Jan Hubicka <jh@suse.cz>
7488 * ipa-inline.c (early_inliner): Disable when doing late
7489 addition of function.
7491 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7493 * dwarf2out.c (get_address_mode): New inline.
7494 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7495 if not dwarf_strict emit
7496 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7497 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7498 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7499 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7500 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7501 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7502 mem_loc_descriptor callers.
7503 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7504 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7505 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7506 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7507 (base_types): New variable.
7508 (get_base_type_offset, calc_base_type_die_sizes,
7509 base_type_for_mode, mark_base_types, base_type_cmp,
7510 move_marked_base_types): New functions.
7511 (calc_die_sizes): Assert that die_offset is 0 or equal to
7513 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7514 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7515 callers. If not dwarf_strict, call mem_loc_descriptor even for
7516 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7517 (gen_subprogram_die): Don't give up on call site parameters
7518 with non-integral or large integral modes. Adjust
7519 mem_loc_descriptor callers.
7520 (prune_unused_types): Call prune_unused_types_mark on base_types
7522 (resolve_addr): Call mark_base_types.
7523 (dwarf2out_finish): Call move_marked_base_types.
7525 PR tree-optimization/48809
7526 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7528 (gen_inbound_check): Don't compute index_expr - range_min in utype
7529 again, instead reuse SSA_NAME initialized in build_arrays.
7530 Remove two useless gsi_for_stmt calls.
7532 2011-04-29 Jeff Law <law@redhat.com>
7534 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7536 2011-04-29 Martin Jambor <mjambor@suse.cz>
7538 * cgraph.h (cgraph_postorder): Remove declaration.
7539 * ipa-utils.h (ipa_free_postorder_info): Declare.
7540 (ipa_reverse_postorder): Likewise.
7541 * cgraphunit.c: Include ipa-utils.h.
7542 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7543 * ipa-inline.c: Include ipa-utils.h.
7544 (ipa_inline): Update call to ipa_reverse_postorder.
7545 * ipa-pure-const.c (propagate_pure_const): Update call to
7546 ipa_reduced_postorder and ipa_print_order. Call
7547 ipa_free_postorder_info to clean up.
7548 (propagate_nothrow): Likewise.
7549 * ipa-reference.c (propagate): Removed a useless call to
7550 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7551 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7552 * ipa.c: Include ipa-utils.h.
7553 (ipa_profile): Update call to ipa_reverse_postorder.
7554 (cgraph_postorder): Moved to...
7555 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7556 (ipa_utils_print_order): Renamed to ipa_print_order.
7557 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7559 (ipa_free_postorder_info): New function.
7560 * passes.c: Include ipa-utils.h.
7561 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7562 (ipa_write_summaries): Likewise.
7563 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7564 (cgraphunit.o): Likewise.
7566 (ipa-inline.o): Likewise.
7568 2011-04-29 Jan Hubicka <jh@suse.cz>
7570 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7571 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7572 * ipa-inline.h (clause_t): Turn into unsigned int.
7573 * ipa-inline-analysis.c (add_clause): Do more simplification.
7574 (and_predicates): Shortcut more cases.
7575 (predicates_equal_p): Move forward; check that clauses are properly
7577 (or_predicates): Shortcut more cases.
7578 (edge_execution_predicate): Rewrite as...
7579 (set_cond_stmt_execution_predicate): ... this function; handle
7580 __builtin_constant_p.
7581 (set_switch_stmt_execution_predicate): New .
7582 (compute_bb_predicates): New.
7583 (will_be_nonconstant_predicate): Update TODO.
7584 (estimate_function_body_sizes): Use compute_bb_predicates
7585 and free them later, always try to estimate if stmt is constant.
7586 (estimate_time_after_inlining, estimate_size_after_inlining):
7587 Gracefully handle optimized out edges.
7588 (read_predicate): Fix off by one error.
7590 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7592 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7594 2011-04-27 Xinliang David Li <davidxl@google.com>
7596 * tree-profile.c (init_ic_make_global_vars): Set
7597 tls attribute on ic vars.
7598 * coverage.c (coverage_end_function): Initialize
7599 function_list with zero.
7601 2011-04-29 Richard Guenther <rguenther@suse.de>
7603 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7604 for the type of the result.
7605 (fold_builtin_isascii): Likewise.
7606 (fold_builtin_toascii): Use integer_type_node where appropriate.
7607 (fold_builtin_logb): Likewise.
7608 (fold_builtin_frexp): Likewise.
7609 (fold_builtin_strstr): Likewise.
7610 (fold_builtin_strpbrk): Likewise.
7611 (fold_builtin_fputs): Likewise.
7612 (fold_builtin_sprintf): Likewise.
7613 (fold_builtin_snprintf): Likewise.
7614 (fold_builtin_printf): Likewise.
7615 (do_mpfr_remquo): Use a proper type for the assigned constant.
7616 (do_mpfr_lgamma_r): Likewise.
7617 * dwarf2out.c (resolve_one_addr): Use size_int.
7618 * except.c (init_eh): Likewise.
7619 (assign_filter_values): Use integer_type_node for filter values.
7620 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7622 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7623 for EH region numbers.
7624 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7625 for the shift amount.
7627 2011-04-29 Richard Guenther <rguenther@suse.de>
7629 * expr.h (expand_shift): Rename to ...
7630 (expand_variable_shift): ... this.
7631 (expand_shift): Take a constant shift amount.
7632 * expmed.c (expand_shift): Rename to ...
7633 (expand_variable_shift): ... this.
7634 (expand_shift): New wrapper around expand_variable_shift.
7635 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7636 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7637 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7638 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7639 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7640 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7641 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7642 emit_store_flag_1, emit_store_flag): Likewise.
7643 * builtins.c (expand_builtin_signbit): Likewise.
7644 * calls.c (load_register_parameters): Likewise.
7645 * function.c (assign_parm_setup_block): Likewise.
7646 * lower-subreg.c (resolve_shift_zext): Likewise.
7647 * optabs.c (widen_bswap, expand_abs_nojump,
7648 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7649 * spu/spu.c (spu_expand_extv): Likewise.
7650 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7652 2011-04-29 Richard Guenther <rguenther@suse.de>
7654 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7655 for the remapped region number.
7656 * predict.c (build_predict_expr): Use integer_type_node for the
7658 * fold-const.c (fold_binary_loc): Use integer_type_node for
7659 the shift amount. Use a proper type for the PLUS_EXPR operand.
7661 2011-04-29 Michael Matz <matz@suse.de>
7663 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7664 other trees that just builtins.
7665 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7667 2011-04-29 Richard Guenther <rguenther@suse.de>
7669 * tree-nested.c (get_trampoline_type): Use size_int.
7670 (get_nl_goto_field): Likewise.
7671 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7673 (lower_eh_constructs_2): Likewise.
7674 (lower_resx): Likewise.
7675 (lower_eh_dispatch): Likewise.
7676 * tree-mudflap.c (mf_build_string): Use size_int.
7677 (mudflap_register_call): Use integer_type_node for the flag.
7678 (mudflap_enqueue_constant): Use size_int.
7679 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7680 instead of rebuilding it.
7682 2011-04-29 Richard Guenther <rguenther@suse.de>
7684 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7685 Handle OBJ_TYPE_REF.
7686 (find_func_aliases_for_call): Use it more consistently.
7688 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7690 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7691 (rank_for_schedule): Use it.
7692 (schedule_block): Set it.
7694 2011-04-28 David Li <davidxl@google.com>
7696 * tree.c (crc32_string): Use crc32_byte.
7697 (crc32_byte): New function.
7698 * tree.h (crc32_byte): New function.
7699 * gcov.c (read_graph_file): Handle new cfg_cksum.
7700 (read_count_file): Ditto.
7701 * profile.c (instrument_values): Ditto.
7702 (get_exec_counts): Ditto.
7703 (read_profile_edge_counts): Ditto.
7704 (compute_branch_probabilities): Ditto.
7705 (compute_value_histograms): Ditto.
7706 (branch_prob): Ditto.
7707 (end_branch_prob): Ditto.
7708 * coverage.c (read_counts_file): Ditto.
7709 (get_coverage_counts): Ditto.
7710 (tree_coverage_counter_addr): Ditto.
7711 (coverage_checksum_string): Ditto.
7712 (coverage_begin_output): Ditto.
7713 (coverage_end_function): Ditto.
7714 (build_fn_info_type): Ditto.
7715 (build_fn_info_value): Ditto.
7716 * libgcov.c (gcov_exit): Ditto.
7717 * gcov-dump.c (tag_function): Ditto.
7718 (compute_checksum): Remove.
7720 2011-04-29 Alan Modra <amodra@gmail.com>
7722 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7723 unspec plus offset. Tidy macho code.
7725 2011-04-29 Martin Jambor <mjambor@suse.cz>
7727 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7728 node instead of a decl. Update all callers.
7729 * cgraph.h: Update declaration.
7731 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7733 PR tree-optimization/48765
7734 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7735 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7736 to indicate if loop aware SLP is being used. Scan the statements
7737 and update the vectorization factor according to the type of
7738 vectorization before statement analysis.
7739 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7740 pass it to vect_analyze_loop_operations.
7741 (vectorizable_reduction): Set number of copies to 1 in case of pure
7743 * tree-vect-stmts.c (vectorizable_conversion,
7744 vectorizable_assignment, vectorizable_shift,
7745 vectorizable_operation, vectorizable_type_demotion,
7746 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7748 (vectorizable_condition): Move the check that it is not SLP
7749 vectorization before the number of copies check.
7750 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7751 to vectorize the loop using SLP.
7753 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7756 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7759 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7761 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7762 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7763 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7764 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7765 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7767 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7768 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7769 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7770 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7771 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7772 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7774 * config/i386/linux.h (REG_NAME): Don't define.
7775 * config/i386/linux64.h (REG_NAME): Don't define.
7776 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7777 Undefine before defining.
7779 2011-04-28 Jan Hubicka <jh@suse.cz>
7781 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7782 nonconstant_names array.
7783 (estimate_function_body_sizes): Build nonconstant_names array; handle
7784 BUILT_IN_CONSTANT_P.
7786 2011-04-28 Richard Guenther <rguenther@suse.de>
7790 2011-04-28 Richard Guenther <rguenther@suse.de>
7792 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7793 as late as possible.
7795 2011-04-28 Richard Guenther <rguenther@suse.de>
7797 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7798 (debug_constraint): Do it here.
7799 (dump_constraints): And here.
7800 (rewrite_constraints): And here.
7801 (dump_constraint_edge): Remove.
7802 (dump_constraint_graph): Rewrite to produce DOT output.
7803 (solve_constraints): Build succ graph as late as possible.
7804 Dump constraint graphs before and after solving.
7806 2011-04-28 Richard Guenther <rguenther@suse.de>
7808 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7809 New function split out from ...
7810 (find_func_aliases): ... here. Call it.
7811 (find_func_aliases_for_call): Likewise.
7813 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7815 * internal-fn.h (internal_fn_name_array): Declare.
7816 (internal_fn_flags_array): Likewise.
7818 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7820 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7821 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7823 (ssemodefsuffix): Remove.
7824 (ssevecmodesuffix): New mode attribute.
7825 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7826 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7827 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7828 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7829 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7830 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7831 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7832 ssemodesuffix mode attribute.
7833 (float splitters): Use ssevecmodesuffix mode attribute.
7834 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7835 (sseinsmode): Rename from avxvecmode.
7836 (avxsizesuffix): Rename from avxmodesuffix.
7837 (sseintvecmode): Rename from avxpermvecmode.
7838 (ssedoublevecmode): Rename from ssedoublesizemode.
7839 (ssehalfvecmode): Rename from avxhalfvecmode.
7840 (ssescalarmode): Rename from avxscalarmode.
7841 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7842 templates for ssemodesuffix mode attribute.
7843 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7846 Adjust RTX patterns globally for renamed mode attributes.
7848 2011-04-27 Jan Hubcika <jh@suse.cz>
7850 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7851 * ipa-inline-analysis.c: Include alloc-pool.h.
7852 (edge_predicate_pool): New.
7853 (trye_predicate_p): New function
7854 (false_predicate_p): New function.
7855 (add_clause): Sanity check that false clauses are "optimized";
7856 never add clauses to predicate that is already known to be false.
7857 (and_predicate): Use flase_predicate_p.
7858 (evaulate_predicate): Rename to ...
7859 (evaluate_predicate): ... this one; update all callers; assert
7860 that false is not listed among possible truths.
7861 (dump_predicate): Use true_predicate_p.
7862 (account_size_time): Use false_predicate_p.
7863 (evaulate_conditions_for_edge): Rename to ...
7864 (evaluate_conditions_for_edge) ... this one.
7865 (edge_set_predicate): New function.
7866 (inline_edge_duplication_hook): Duplicate edge predicates.
7867 (inline_edge_removal_hook): Free edge predicates.
7868 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7869 (dump_inline_summary): Update.
7870 (estimate_function_body_sizes): Set edge predicates.
7871 (estimate_calls_size_and_time): Handle predicates.
7872 (estimate_callee_size_and_time): Update.
7873 (remap_predicate): Add toplev_predicate; update comment.
7874 (remap_edge_predicates): New function.
7875 (inline_merge_summary): Compute toplev predicate; update.
7876 (read_predicate): New function.
7877 (read_inline_edge_summary): Use it.
7878 (inline_read_section): Likewise.
7879 (write_predicate): New function.
7880 (write_inline_edge_summary): Use it.
7881 (inline_write_summary): Likewise.
7882 (inline_free_summary): Free alloc pool and edge summary vec.
7884 2011-04-27 Richard Guenther <rguenther@suse.de>
7886 * tree-ssa-structalias.c (changed_count): Remove.
7887 (changed): Use a bitmap.
7888 (unify_nodes): Adjust.
7889 (do_sd_constraint): Likewise.
7890 (do_ds_constraint): Likewise.
7891 (do_complex_constraint): Likewise.
7892 (solve_graph): Likewise.
7894 2011-04-27 Jan Hubicka <jh@suse.cz>
7896 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7898 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7900 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7901 (avx_vperm2f128_*_operand): Ditto.
7902 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7903 Use avx_vpermilp_parallel in insn condition.
7904 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7905 Use avx_vperm2f128_parallel in insn condition.
7907 2011-04-27 Richard Guenther <rguenther@suse.de>
7909 * Makefile.in (tree-ssa-structalias.o): Remove
7910 gt-tree-ssa-structalias.h dependency.
7911 (GTFILES): Remove tree-ssa-structalias.c.
7912 * tree.c (allocate_decl_uid): New function.
7913 (make_node_stat): Use it.
7914 (copy_node_stat): Likewise.
7915 * tree.h (allocate_decl_uid): Declare.
7916 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7917 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7918 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7919 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7920 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7921 (struct heapvar_map): Likewise.
7922 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7923 heapvar_insert): Likewise.
7924 (make_heapvar_for): Rename to ...
7925 (make_heapvar): ... this. Simplify.
7926 (fake_var_decl_obstack): New global var.
7927 (build_fake_var_decl): New function.
7928 (make_constraint_from_heapvar): Adjust.
7929 (handle_lhs_call): Likewise.
7930 (create_function_info_for): Likewise.
7931 (intra_create_variable_infos): Likewise.
7932 (init_alias_vars): Allocate fake_var_decl_obstack.
7933 (init_alias_heapvars, delete_alias_heapvars): Remove.
7934 (compute_points_to_sets): Do not call init_alias_heapvars.
7935 (ipa_pta_execute): Likewise.
7936 (delete_points_to_sets): Free fake_var_decl_obstack.
7938 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7940 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7941 (si_from_UTItype, si_to_UTItype): New functions.
7942 (__udivmodti4): Use them to implement type-punning.
7943 * config/spu/multi3.c (union qword_TItype): New data type.
7944 (si_from_TItype, si_to_TItype): New functions.
7945 (__multi3): Use them to implement type-punning.
7947 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7949 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7951 2011-04-27 Jan Hubicka <jh@suse.cz>
7953 * ipa-prop.c (function_insertion_hook_holder): New holder.
7954 (ipa_add_new_function): New function.
7955 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7956 Register/deregister holder.
7958 2011-04-27 Richard Guenther <rguenther@suse.de>
7960 PR tree-optimization/48772
7961 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7963 2011-04-27 Richard Guenther <rguenther@suse.de>
7965 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7966 TARGET_MEM_REF handling.
7968 2011-04-27 Nick Clifton <nickc@redhat.com>
7970 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7971 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7972 (REG_CLASS_NAMES): Likewise.
7973 (REG_CLASS_CONTENTS): Likewise.
7974 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7975 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7976 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7977 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7978 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7979 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7980 duplicate register classes.
7981 (frv_class_likely_spilled_p): Likewise.
7982 (frv_register_move_cost): Likewise.
7984 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7985 end of the regno_reg_class array.
7987 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7990 * c-typeck.c (build_binary_op): Don't wrap arguments if
7991 int_operands is true.
7993 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7996 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7997 targetm.calls.must_pass_in_stack for void type.
7999 2011-04-26 Jan Hubicka <jh@suse.cz>
8001 * cgraphbuild.c (build_cgraph_edges): Update call
8002 of cgraph_create_edge and cgraph_create_indirect_edge.
8003 * cgraph.c (cgraph_create_edge_including_clones,
8004 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8005 cgraph_update_edges_for_call_stmt_node): Do not take nest
8006 argument; do not initialize call_stmt_size/time.
8007 (dump_cgraph_node): Do not dump nest.
8008 (cgraph_clone_edge): Do not take loop_nest argument;
8009 do not propagate it; do not clone call_stmt_size/time.
8010 (cgraph_clone_node): Likewise.
8011 (cgraph_create_virtual_clone): Update.
8012 * cgraph.h (struct cgraph_edge): Remove
8013 call_stmt_size/call_stmt_time/loop_nest.
8014 (cgraph_create_edge, cgraph_create_indirect_edge,
8015 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8017 * tree-emutls.c (gen_emutls_addr): Update.
8018 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8019 loop_nest; handle indirect calls, too.
8020 (clone_inlined_nodes): Do not care about updating inline summaries.
8021 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8022 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8023 stream call_stmt_size/call_stmt_time/loop_nest.
8024 * ipa-inline.c (edge_badness): Update.
8025 (ipa_inline): dump summaries after inlining.
8026 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8028 (inline_edge_summary): New function.
8029 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8030 (inline_edge_removal_hook): Handle edge summaries.
8031 (inline_edge_duplication_hook): New hook.
8032 (inline_summary_alloc): Alloc hooks.
8033 (initialize_growth_caches): Do not register removal hooks.
8034 (free_growth_caches); Do not free removal hook.
8035 (dump_inline_edge_summary): New function.
8036 (dump_inline_summary): Use it.
8037 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8038 (inline_update_callee_summaries): New function.
8039 (inline_merge_summary): Use it.
8040 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8041 (read_inline_edge_summary): New function.
8042 (inline_read_section): Use it.
8043 (write_inline_edge_summary): New function.
8044 (inline_write_summary): Use it.
8045 (inline_free_summary): Free edge new holders.
8046 * tree-inline.c (copy_bb): Update.
8048 2011-04-26 Jason Merrill <jason@redhat.com>
8050 * tree-eh.c (lower_try_finally_switch): Create the label along with
8051 the CASE_LABEL_EXPR.
8053 2011-04-26 David S. Miller <davem@davemloft.net>
8054 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8056 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8057 * configure: Regenerate.
8059 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8062 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8064 (VEC_reduc): New code iterator and splitters for vector reduction.
8065 (VEC_reduc_name): Ditto.
8066 (VEC_reduc_rtx): Ditto.
8067 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8068 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8070 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8071 support for extracting SF on VSX.
8073 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8074 generating xscvspdp.
8075 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8076 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8077 double add, minimum, maximum vector reduction.
8078 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8079 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8080 optimize double vector reduction.
8081 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8083 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8085 * config/fr30/fr30.h (inhibit_libc): Don't define.
8086 * config/m32r/m32r-protos.h: Correct comment.
8087 * config/v850/v850.h (GHS_default_section_names,
8088 GHS_current_section_names): Use tree, not union tree_node *.
8090 2011-04-26 Xinliang David Li <davidxl@google.com>
8092 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8093 * c-family/c-opts.c (c_common_handle_option): Set
8094 warn_maybe_uninitialized.
8095 * opts.c (common_handle_option): Ditto.
8096 * common.opt: New option.
8097 * tree-ssa.c (warn_uninit): Add one more parameter.
8098 (warn_uninitialized_var): Pass warning code.
8099 * tree-flow.h: Interface change.
8101 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8103 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8104 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8105 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8107 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8109 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8110 * config/mips/mips.opt (mmips-tfile): Remove.
8112 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8113 mips-tdump reference to ...
8114 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8115 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8116 reference by Tru64 UNIX.
8118 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8121 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8122 is error_mark_node, set value to NULL.
8124 PR tree-optimization/48734
8125 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8126 if return value from maybe_fold_*_comparsions isn't something
8127 the code is prepared to handle.
8129 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8131 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8133 (ext_QIreg_nomode_operands): Remove.
8134 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8138 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8140 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8142 2011-04-26 Richard Guenther <rguenther@suse.de>
8144 * c-typeck.c (build_unary_op): Do not expand array-refs via
8145 pointer arithmetic. Only adjust qualifiers for function types.
8147 2011-04-26 Richard Guenther <rguenther@suse.de>
8150 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8151 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8152 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8153 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8155 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8157 * doc/extend.texi: Document __underlying_type.
8159 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8161 * config/rs6000/titan.md (automata_option "progress"): Remove.
8163 2011-04-25 Jeff Law <law@redhat.com>
8165 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8167 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8169 * system.h (ENUM_BITFIELD): Remove.
8171 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8172 Eric Botcazou <ebotcazou@adacore.com>
8174 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8175 for STORE_FLAG_VALUE==-1 case.
8177 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8180 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8181 LEGITIMATE_PIC_OPERAND_P.
8183 2011-04-24 Jan Hubicka <jh@suse.cz>
8185 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8187 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8188 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8189 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8190 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8191 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8192 Sanity check predicate length.
8193 (remap_predicate): Likewise; sanity check jump functions.
8194 (inline_read_section, inline_write_summary): Sanity check
8197 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8200 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8201 __is_literal_type, and __is_trivial; update throughout about
8202 possibly cv-qualified void types.
8204 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8206 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8207 testsuite and make it version agnostic.
8209 2011-04-22 Jan Hubicka <jh@suse.cz>
8211 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8213 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8216 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8217 to VOID_TYPE even around MODIFY_EXPR.
8219 2011-04-22 Mike Stump <mikestump@comcast.net>
8221 * gensupport.c (read_md_rtx): Fix typo in comment.
8222 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8225 2011-04-22 Jan Hubicka <jh@suse.cz>
8227 * gengtype.c (open_base_files): Add ipa-inline.h include.
8228 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8229 ipa-prop.c; update all uses.
8230 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8231 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8232 merge summary of inlined function into former caller.
8233 * ipa-inline.c (max_benefit): Remove.
8234 (edge_badness): Compensate for removal of benefits.
8235 (update_caller_keys): Use
8236 reset_node_growth_cache/reset_edge_growth_cache.
8237 (update_callee_keys): Likewise.
8238 (update_all_callee_keys): Likewise.
8239 (inline_small_functions): Do not collect max_benefit; do not reset
8240 estimated_growth; call free_growth_caches and initialize_growth_caches.
8241 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8242 struct size_time_entry): New structures.
8243 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8244 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8245 and estimated_growth.
8246 (edge_growth_cache_entry): New structure.
8247 (node_growth_cache, edge_growth_cache): New global vars.
8248 (estimate_growth): Turn into inline.
8249 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8250 initialize_growth_caches, free_growth_caches): Declare.
8251 (estimate_edge_growth): Rewrite.
8252 (estimate_edge_time): Implement as inline cache lookup.
8253 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8255 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8256 (NUM_CONDITIONS): New constant.
8257 (predicate_conditions): New enum.
8258 (IS_NOT_CONSTANT): New constant.
8259 (edge_removal_hook_holder): New var.
8260 (node_growth_cache, edge_growth_cache): New global vars.
8261 (true_predicate, single_cond_predicate, false_predicate,
8262 not_inlined_predicate, add_condition, add_clause, and_predicates,
8263 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8264 dump_clause, dump_predicate, account_size_time,
8265 evaulate_conditions_for_edge): New functions.
8266 (inline_summary_alloc): Move to heap.
8267 (inline_node_removal_hook): Clear condition and entry vectors.
8268 (inline_edge_removal_hook): New function.
8269 (initialize_growth_caches, free_growth_caches): New function.
8270 (dump_inline_summary): Update.
8271 (edge_execution_predicate): New function.
8272 (will_be_nonconstant_predicate): New function.
8273 (estimate_function_body_sizes): Compute BB and constantness predicates.
8274 (compute_inline_parameters): Do not clear estimated_growth.
8275 (estimate_edge_size_and_time): New function.
8276 (estimate_calls_size_and_time): New function.
8277 (estimate_callee_size_and_time): New function.
8278 (remap_predicate): New function.
8279 (inline_merge_summary): New function.
8280 (do_estimate_edge_time): New function based on...
8281 (estimate_edge_time): ... this one.
8282 (do_estimate_edge_growth): New function.
8283 (do_estimate_growth): New function based on....
8284 (estimate_growth): ... this one.
8285 (inline_analyze_function): Analyze after deciding on jump functions.
8286 (inline_read_section): New function.
8287 (inline_read_summary): Use it.
8288 (inline_write_summary): Write all the new data.
8289 * ipa-prop.c (ipa_get_param_decl_index): Export.
8290 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8291 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8293 (ipa_get_lattice): Move here from ipa-cp.c
8294 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8295 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8296 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8297 cgraph_edge_inlinable_p): Remove.
8298 * cgraphunit.c: Include ipainline.h
8299 (cgraph_process_new_functions): Update call of
8300 compute_inline_parameters.
8302 2011-04-22 Richard Guenther <rguenther@suse.de>
8304 * tree.c (build_int_cst): Properly create canonicalized integer
8306 (build_int_cst_type): Remove scary comments.
8308 2011-04-22 Xinliang David Li <davidxl@google.com>
8310 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8311 by default when -Wno-error is not specified.
8312 * opts-global.c (decode_options): Remove call to
8313 control_warning_options.
8315 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8317 PR tree-optimization/48717
8318 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8319 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8321 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8323 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8324 definition where used.
8326 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8329 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8330 TREE_STATIC variables declared inside of some OpenMP construct.
8332 2011-04-22 Martin Jambor <mjambor@suse.cz>
8335 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8337 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8340 * c-typeck.c (pop_init_level): Do not warn about initializing
8343 2011-04-22 Alan Modra <amodra@gmail.com>
8345 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8346 when returning call_cookie.
8347 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8348 pointers, to functions with no more vector args than the current
8349 function, and some non-local calls for ABI_V4.
8350 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8351 sibcall_nonlocal_aix64): Combine to ..
8352 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8353 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8354 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8355 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8356 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8358 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8359 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8360 sibcall_value_symbolic_64): Delete.
8362 2011-04-21 Xinliang David Li <davidxl@google.com>
8364 * cgraph.h: Remove pid.
8365 * cgraph.c: Remove pid.
8366 * value-prof.c (init_node_map): New function.
8367 (del_node_map): New function.
8368 (find_func_by_funcdef_no): New function.
8369 (gimple_ic_transform): Call new function.
8370 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8371 * function.c (get_last_funcdef_no): New function.
8372 * function.h (get_last_funcdef_no): New function.
8373 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8374 to libgcov function.
8375 (tree-profiling): Call node map init and delete function.
8377 2011-04-21 Ian Lance Taylor <iant@google.com>
8379 * godump.c (go_format_type): Use exported Go name for anonymous
8382 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8384 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8385 Call builtin_function_type_list instead of builtin_function_type.
8386 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8388 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8390 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8391 build_function_type_list instead of build_function_type.
8392 Delete variable `endlink'.
8394 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8396 * config/s390/s390.c (s390_init_builtins): Call
8397 build_function_type_list instead of build_function_type.
8399 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8401 * config/ia64/ia64.c (ia64_init_builtins): Call
8402 build_function_type_list instead of builtin_function_type.
8404 2011-04-21 Easwaran Raman <eraman@google.com>
8406 * cfgexpand.c (stack_var): Remove OFFSET...
8407 (add_stack_var): ...and its reference here...
8408 (expand_stack_vars): ...and here.
8409 (stack_var_cmp): Sort by descending order of size.
8410 (partition_stack_vars): Change heuristic.
8411 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8412 (dump_stack_var_partition): Add newline after each partition.
8414 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8415 Jeff Law <law@redhat.com>
8417 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8418 * gengtype.c (matching_file_name_substitute): Likewise.
8420 2011-04-21 Richard Guenther <rguenther@suse.de>
8423 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8425 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8427 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8429 2011-04-21 Richard Guenther <rguenther@suse.de>
8431 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8434 2011-04-21 Richard Guenther <rguenther@suse.de>
8436 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8437 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8438 Use DECL_P, not SSA_VAR_P.
8439 (ptr_derefs_may_alias_p): Likewise.
8440 (ptr_deref_may_alias_ref_p_1): Likewise.
8441 (decl_refs_may_alias_p): Likewise.
8442 (refs_may_alias_p_1): Likewise.
8443 (ref_maybe_used_by_call_p_1): Likewise.
8444 (call_may_clobber_ref_p_1): Likewise.
8445 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8446 are either MEM_REF or TARGET_MEM_REF.
8447 (indirect_refs_may_alias_p): Likewise.
8448 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8449 for MEM_EXPR of indirect calls.
8451 2011-04-21 Tristan Gingold <gingold@adacore.com>
8453 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8454 (dst_file_info_struct): Remove flen field.
8455 (lookup_filename): Remove code that set flen field.
8457 2011-04-21 Tristan Gingold <gingold@adacore.com>
8459 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8461 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8464 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8465 vec_extract and vec_concat for non-SSE4_1 targets.
8467 2011-04-21 Richard Guenther <rguenther@suse.de>
8469 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8472 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8474 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8476 (FILE): Don't undefine.
8478 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8480 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8482 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8484 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8485 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8486 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8488 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8489 definitions where used.
8490 * config/microblaze/microblaze.h (struct microblaze_args): Use
8491 rtx, not struct rtx_def *.
8492 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8494 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8495 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8496 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8497 not struct rtx_def *.
8498 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8500 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8502 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8504 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8506 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8507 operand_equal_p to compare DR_BASE_ADDRESSes.
8508 (vect_check_interleaving): Likewise.
8510 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8513 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8514 for all Neon struct constants.
8516 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8518 * target.def (legitimate_constant_p): New hook.
8519 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8520 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8521 * doc/tm.texi: Regenerate.
8522 * hooks.h (hook_bool_mode_rtx_true): Declare.
8523 * hooks.c (hook_bool_mode_rtx_true): Define.
8524 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8525 * calls.c (precompute_register_parameters): Replace uses of
8526 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8527 (emit_library_call_value_1): Likewise.
8528 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8529 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8530 * ira-costs.c (scan_one_insn): Likewise.
8531 * recog.c (general_operand, immediate_operand): Likewise.
8532 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8533 * reload1.c (init_eliminable_invariants): Likewise.
8535 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8537 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8538 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8540 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8541 * config/alpha/predicates.md (input_operand): Update call to
8542 alpha_legitimate_constant_p.
8544 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8545 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8546 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8547 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8548 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8549 (arm_legitimate_constant_p): New functions.
8550 (arm_cannot_force_const_mem): Make static.
8552 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8554 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8555 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8556 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8557 instead of bfin_legitimate_constant_p.
8558 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8559 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8561 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8563 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8565 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8566 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8567 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8568 (frv_legitimate_constant_p): Make static. Add a mode argument.
8570 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8571 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8572 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8574 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8575 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8576 * config/i386/i386.c (legitimate_constant_p): Rename to...
8577 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8579 (ix86_cannot_force_const_mem): Update accordingly.
8580 (ix86_legitimate_address_p): Likewise.
8581 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8582 * config/i386/i386.md: Update commentary.
8584 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8585 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8586 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8587 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8589 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8591 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8592 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8593 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8594 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8596 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8597 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8598 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8600 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8601 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8602 (m32r_legitimate_constant_p): New function.
8604 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8605 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8606 LEGITIMATE_CONSTANT_P.
8607 (LEGITIMATE_CONSTANT_P): Delete.
8608 * config/m68k/m68k.c (m68k_expand_prologue): Call
8609 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8610 (m68k_legitimate_constant_p): New function.
8611 * config/m68k/m68k.md: Update comments.
8613 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8614 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8615 (mcore_legitimate_constant_p): New function.
8617 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8618 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8619 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8620 Add a mode argument.
8621 (mep_legitimate_address): Update accordingly.
8622 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8624 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8626 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8627 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8628 static. Check OP's mode for VOIDmode.
8629 (microblaze_legitimate_constant_p): New function.
8630 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8632 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8633 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8634 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8635 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8636 * config/mips/predicates.md: Update comments.
8638 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8639 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8640 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8641 (mmix_legitimate_constant_p): Make static, return a bool, and take
8643 (mmix_print_operand_address): Update accordingly.
8645 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8647 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8648 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8649 static. Add a mode argument.
8650 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8652 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8654 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8655 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8656 (pa_legitimate_constant_p): New function.
8658 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8660 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8661 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8662 (pdp11_legitimate_constant_p): New function.
8664 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8665 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8666 (rs6000_legitimate_constant_p): New function.
8668 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8669 (rx_legitimate_constant_p): ...this.
8670 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8671 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8672 (rx_legitimate_constant_p): ...this.
8673 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8674 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8676 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8677 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8678 * config/s390/s390.c (legitimate_constant_p): Rename to...
8679 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8680 and add a mode argument.
8681 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8683 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8685 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8686 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8687 (sh_legitimate_constant_p): New function.
8689 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8690 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8691 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8692 (legitimate_constant_p): Rename to...
8693 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8695 (constant_address_p): Update accordingly.
8697 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8698 argument and return a bool.
8699 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8700 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8701 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8702 (spu_rtx_costs): Update accordingly.
8703 * config/spu/predicates.md (vec_imm_operand): Likewise.
8705 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8707 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8708 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8709 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8711 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8712 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8713 * config/vax/vax.c (legitimate_constant_p): Likewise.
8715 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8716 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8717 (xtensa_legitimate_constant_p): New function.
8719 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8721 * target.def (cannot_force_const_mem): Add a mode argument.
8722 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8723 * doc/tm.texi: Regenerate.
8724 * hooks.h (hook_bool_mode_rtx_false): Declare.
8725 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8726 (hook_bool_mode_const_rtx_true): Likewise.
8727 (hook_bool_mode_rtx_false): New function.
8728 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8729 to be non-VOID. Update call to cannot_force_const_mem.
8730 (find_reloads): Update accordingly.
8731 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8732 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8734 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8735 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8736 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8737 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8738 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8739 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8740 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8741 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8742 (m68k_cannot_force_const_mem): ...this new function.
8743 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8745 (mips_const_insns, mips_legitimize_const_move): Update calls.
8746 (mips_secondary_reload_class): Likewise.
8747 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8748 (pa_cannot_force_const_mem): ...this new function.
8749 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8750 (rs6000_cannot_force_const_mem): ...this new function.
8751 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8753 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8754 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8756 (xtensa_cannot_force_const_mem): ...this new function.
8758 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8760 * config/mips/mips.c (mips16_build_function_stub): Call
8761 build_function_type_list instead of build_function_type.
8762 (mips16_build_call_stub): Likewise.
8764 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8766 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8767 instead of build_function_type.
8769 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8771 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8772 instead of build_function_type.
8774 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8777 * config/i386/i386.md (insv): Change operand 0 constraint to
8778 "register_operand". Change operand 1 and 2 constraint to
8779 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8780 * config/i386/sse.md (sse4_1_pinsrb): Export.
8781 (sse2_pinsrw): Ditto.
8782 (sse4_1_pinsrd): Ditto.
8783 (sse4_1_pinsrq): Ditto.
8784 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8785 * config/i386/i386.c (ix86_expand_pinsr): New.
8787 2011-04-20 Easwaran Raman <eraman@google.com>
8789 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8790 containing union type only with -fstrict-aliasing.
8792 2011-04-20 Jim Meyering <meyering@redhat.com>
8794 Remove useless if-before-free tests.
8795 * calls.c (expand_call, save_area): Likewise.
8796 * cfgcleanup.c (try_forward_edges): Likewise.
8797 * collect2.c (collect_execute): Likewise.
8798 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8799 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8800 * coverage.c (coverage_checksum_string): Likewise.
8801 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8802 * cselib.c (cselib_init): Likewise.
8803 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8804 (df_set_clean_cfg): Likewise.
8805 * function.c (free_after_compilation): Likewise.
8806 * gcc.c (do_spec_1, main): Likewise.
8807 * gcov.c (create_file_names): Likewise.
8808 * gensupport.c (identify_predicable_attribute): Likewise.
8809 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8810 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8811 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8812 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8813 * ipa-pure-const.c (local_pure_const): Likewise.
8814 * ipa-reference.c (propagate): Likewise.
8815 * ira-costs.c (free_ira_costs): Likewise.
8816 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8817 * matrix-reorg.c (mat_free): Likewise.
8818 * prefix.c (get_key_value): Likewise.
8819 * profile.c (compute_value_histograms): Likewise.
8820 * reload1.c (free_reg_equiv): Likewise.
8821 * sched-deps.c (free_deps): Likewise.
8822 * sel-sched-ir.c (fence_clear): Likewise.
8823 * sese.c (set_rename, if_region_set_false_region): Likewise.
8824 * tree-data-ref.c (free_rdg): Likewise.
8825 * tree-eh.c (lower_try_finally): Likewise.
8826 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8827 * tree-ssa-live.c (delete_var_map): Likewise.
8828 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8829 * tree-ssa-pre.c (phi_trans_add): Likewise.
8831 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8833 PR tree-optimization/48611
8834 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8835 beyond ERT_MUST_NOT_THROW region.
8837 2011-04-20 Catherine Moore <clm@codesourcery.com>
8839 * config/mips/mips.opt (mfix-24k): New.
8840 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8841 * config/mips/mips.md (length): Increase by 4 for stores if
8843 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8844 all noreorder if fixing 24K errata.
8845 * doc/invoke.texi: Document mfix-24k.
8847 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8849 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8850 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8852 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8854 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8855 (const_ok_for_op): ... to here.
8857 2011-04-20 Kai Tietz <ktietz@redhat.com>
8859 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8860 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8862 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8864 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8866 2011-04-20 Richard Guenther <rguenther@suse.de>
8868 PR tree-optimization/47892
8869 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8872 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8874 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8876 2011-04-20 Tristan Gingold <gingold@adacore.com>
8878 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8880 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8884 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8885 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8886 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8887 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8888 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8890 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8893 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8894 (avr_asm_named_section, avr_asm_output_aligned_common,
8895 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8896 New functions to update...
8897 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8898 (avr_asm_init_sections): Overwrite section callbacks for
8899 data_section, bss_section.
8900 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8902 (avr_file_end): ...here.
8904 2011-04-20 Richard Guenther <rguenther@suse.de>
8907 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8908 objects and types here. Adjust for their offset before comparing.
8910 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8912 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8915 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8917 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8918 (GIMPLE_H): Include $(INTERNAL_FN_H).
8919 (OBJS-common): Add internal-fn.o.
8920 (internal-fn.o): New rule.
8921 * internal-fn.def: New file.
8922 * internal-fn.h: Likewise.
8923 * internal-fn.c: Likewise.
8924 * gimple.h: Include internal-fn.h.
8925 (GF_CALL_INTERNAL): New gf_mask.
8926 (gimple_statement_call): Put fntype into a union with a new
8928 (gimple_build_call_internal): Declare.
8929 (gimple_build_call_internal_vec): Likewise.
8930 (gimple_call_same_target_p): Likewise.
8931 (gimple_call_internal_p): New function.
8932 (gimple_call_internal_fn): Likewise.
8933 (gimple_call_fntype): Return null for internal calls.
8934 (gimple_call_set_fntype): Assert that the function is not internal.
8935 (gimple_call_set_fn): Likewise.
8936 (gimple_call_set_fndecl): Likewise.
8937 (gimple_call_set_internal_fn): New function.
8938 (gimple_call_addr_fndecl): Handle null functions.
8939 (gimple_call_return_type): Likewise null types.
8940 * gimple.c (gimple_build_call_internal_1): New function.
8941 (gimple_build_call_internal): Likewise.
8942 (gimple_build_call_internal_vec): Likewise.
8943 (gimple_call_same_target_p): Likewise.
8944 (gimple_call_flags): Handle calls to internal functions.
8945 (gimple_call_fnspec): New function.
8946 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8947 (gimple_has_side_effects): Handle null functions.
8948 (gimple_rhs_has_side_effects): Likewise.
8949 (gimple_call_copy_skip_args): Handle calls to internal functions.
8950 * cfgexpand.c (expand_call_stmt): Likewise.
8951 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8952 * gimple-fold.c (gimple_fold_call): Handle null functions.
8953 (gimple_fold_stmt_to_constant_1): Don't fold
8954 calls to internal functions.
8955 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8957 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8958 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8959 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8960 (do_warn_unused_result): Likewise.
8961 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8962 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8963 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8964 the target of a call.
8965 (initialize_hash_element): Update accordingly.
8966 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8967 (iterative_hash_hashable_expr): Handle calls to internal functions.
8968 (print_expr_hash_elt): Likewise.
8969 * tree-ssa-pre.c (can_value_number_call): Likewise.
8970 (eliminate): Handle null functions.
8971 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8972 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8973 (find_func_aliases): Likewise.
8974 * value-prof.c (gimple_ic_transform): Likewise.
8975 (gimple_indirect_call_to_profile): Likewise.
8976 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8977 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8979 2011-04-19 Jan Hubicka <jh@suse.cz>
8981 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8982 * ipa-inline.c (inline_small_functions): Compute summaries first,
8983 populate heap later.
8985 2011-04-19 Jan Hubicka <jh@suse.cz>
8987 * cgraph.h (save_inline_function_body): Remove.
8988 * ipa-inline-transform.c: New file, broke out of...
8989 * ipa-inline.c: ... this one; Update toplevel comment.
8990 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8992 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8993 (cgraph_mark_inline_edge): Rename to inline_call; move to
8994 ipa-inline-transform.c.
8995 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8996 move to ipa-inline-transform.c
8997 (recursive_inlining, inline_small_functions, flatten_function,
8998 ipa_inline, inline_always_inline_functions,
8999 early_inline_small_functions): Update.
9000 (inline_transform): Move to ipa-inline-transform.c.
9001 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9003 * Makefile.in (ipa-inline-transform.o): New file.
9004 * cgraphunit.c (save_inline_function_body): Move to
9005 ipa-inline-transform.c
9007 2011-04-19 DJ Delorie <dj@redhat.com>
9009 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9010 registers if we already know there aren't any.
9011 (m32c_emit_epilogue): Don't emit a barrier here.
9012 (m32c_emit_eh_epilogue): Likewise.
9013 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9014 operands at expand time.
9015 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9017 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9018 duplicates. Provide aliases instead.
9019 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9020 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9023 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9025 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9026 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9027 (general_or_i64_p, sparc_register_move_cost): New function.
9029 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9031 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9032 Add lynx, mipssde. Sort table.
9034 2011-04-19 Xinliang David Li <davidxl@google.com>
9036 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9039 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9042 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9043 is a SUBREG with non-MODE_INT mode inside of it.
9045 2011-04-19 Martin Jambor <mjambor@suse.cz>
9047 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9048 also according to actual contants.
9049 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9050 (gimple_fold_call): Use it.
9051 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9053 2011-04-19 Martin Jambor <mjambor@suse.cz>
9055 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9056 non-pointer assignments.
9058 2011-04-19 Martin Jambor <mjambor@suse.cz>
9060 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9061 account anc_offset and otr_type from the indirect edge info.
9062 * ipa-prop.c (get_ancestor_addr_info): New function.
9063 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9064 get_ancestor_addr_info, call it.
9065 (ipa_note_param_call): Do not initialize information about polymorphic
9066 calls, return the indirect call graph edge. Remove the last
9067 parameter, adjust all callers.
9068 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9069 parameters. Initialize polymorphic information in the indirect edge.
9071 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9074 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9075 the types if they have different enumeration identifiers.
9077 2011-04-19 Jan Hubicka <jh@suse.cz>
9079 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9080 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9081 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9082 (optimize_function_for_size_p) ... here.
9084 2011-04-19 Richard Guenther <rguenther@suse.de>
9087 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9090 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9092 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9093 if DECL_NO_INLINE_WARNING_P is set on the function.
9095 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9098 * reload1.c (inc_for_reload): Return void. All callers changed.
9099 (emit_input_reload_insns): Don't try to delete previous output
9100 reloads to a register, or record spill_reg_store for autoincs.
9102 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9104 * gengtype.h: Updated copyright year.
9105 (struct input_file_st): Add inpisplugin field.
9106 (type_fileloc): New function.
9108 (write_typed_struct_alloc_def): Add gcc_assert.
9109 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9110 (write_typed_alloc_defns): Don't output for plugin files.
9111 (input_file_by_name): Clear inpisplugin field.
9112 (main): Set inpisplugin field for plugin files.
9114 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9116 * gengtype-state.c (string_eq): New.
9117 (read_state): Use string_eq instead of strcmp when creating the
9120 2011-04-19 Wei Guozhi <carrot@google.com>
9123 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9124 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9126 * config/arm/constraints.md (Uu): New constraint.
9127 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9129 2011-04-19 Tristan Gingold <gingold@adacore.com>
9131 * config.gcc (-*-*-*vms): Added.
9132 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9134 * config/vms/vms-ld.c: New file.
9135 * config/vms/vms-ar.c: New file.
9136 * config/vms/t-vmsnative: New file.
9138 2011-04-18 Xinliang David Li <davidxl@google.com>
9140 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9142 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9145 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9146 if TREE_TYPE (v) is non-NULL.
9148 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9149 gimple_get_virt_mehtod_for_binfo.
9150 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9151 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9153 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9155 2011-04-18 Michael Matz <matz@suse.de>
9156 Steve Ellcey <sje@cup.hp.com>
9158 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9159 use its mode as source mode if it isn't VOIDmode.
9161 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9163 * doc/passes.texi: Fill crossref nodes.
9165 2011-04-18 Jim Meyering <meyering@redhat.com>
9167 Fix doubled-word typos in comments and strings
9168 * config/alpha/vms-unwind.h: s/for for/for/
9169 * config/arm/unwind-arm.h: Likewise.
9170 * config/microblaze/microblaze.c: Likewise.
9171 * config/sh/constraints.md: s/in in/in/
9172 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9174 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9176 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9177 (AVX_FLOAT_MODE_P): Ditto.
9178 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9179 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9180 (AVX_VEC_FLOAT_MODE_P): Ditto.
9181 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9182 (UNSPEC_MASKSTORE): Ditto.
9183 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9184 Merge from <sse>_movmsk<ssemodesuffix> and
9185 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9186 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9188 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9189 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9190 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9192 2011-04-18 Jan Hubicka <jh@suse.cz>
9194 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9196 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9197 (want_inline_function_called_once_p): Break out the logic from
9199 (edge_badness): Ensure that profile is not misupdated.
9200 (lookup_recursive_calls): Prioritize by call frequencies.
9201 (inline_small_functions): Move program size estimates here;
9202 actually process whole queue even when unit growth has been
9203 met. (to properly compute inline_failed reasons and for the
9204 case unit size decrease.) Revisit comments on recursive inlining.
9205 (ipa_inline): Remove unit summary code; first inline hot calls
9206 of functions called once, cold calls next.
9207 (order, nnodes): Remove unused variables.
9208 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9209 (GTFILES): Remove ipa-inline.c
9210 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9212 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9214 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9216 2011-04-18 Jie Zhang <jie@codesourcery.com>
9217 Richard Earnshaw <rearnsha@arm.com>
9219 * arm.c (neon_builtin_type_bits): Remove.
9220 (typedef enum neon_builtin_mode): New.
9221 (T_MAX): Don't define.
9222 (typedef enum neon_builtin_datum): Remove bits, codes[],
9223 num_vars and base_fcode. Add mode, code and fcode.
9224 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9225 VAR10): Change accordingly.
9226 (neon_builtin_data[]): Change accordingly
9227 (arm_init_neon_builtins): Change accordingly.
9228 (neon_builtin_compare): Remove.
9229 (locate_neon_builtin_icode): Remove.
9230 (arm_expand_neon_builtin): Change accordingly.
9232 * arm.h (enum arm_builtins): Move to ...
9233 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9235 * arm.c (arm_builtin_decl): Declare.
9236 (TARGET_BUILTIN_DECL): Define.
9237 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9238 (arm_builtin_decls[]): New.
9239 (arm_init_neon_builtins): Store builtin declarations in
9240 arm_builtin_decls[].
9241 (arm_init_tls_builtins): Likewise.
9242 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9243 (arm_builtin_decl): New.
9245 2011-04-18 Richard Guenther <rguenther@suse.de>
9247 * tree.c (upper_bound_in_type): Build properly canonicalized
9249 (lower_bound_in_type): Likewise.
9251 2011-04-18 Richard Guenther <rguenther@suse.de>
9253 * gimple.h (gimple_call_addr_fndecl): New function.
9254 (gimple_call_fndecl): Use it.
9255 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9257 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9258 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9260 2011-04-18 Richard Guenther <rguenther@suse.de>
9263 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9265 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9268 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9269 DECL_IN_CONSTANT_POOL without RTL.
9271 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9272 Ira Rosen <ira.rosen@linaro.org>
9275 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9276 to match neon_vzip/vuzp/vtrn_internal.
9277 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9278 outputs explicitly dependent on both inputs.
9279 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9281 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9283 PR tree-optimization/48616
9284 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9285 whether the shift is by scalar or vector based on whether all SLP
9286 scalar stmts have the same rhs.
9288 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9290 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9293 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9296 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9299 2011-04-17 Jan Hubicka <jh@suse.cz>
9301 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9302 * cgrpahunit.c (cgraph_finalize_function): Do not set
9303 finalized_by_frontend.
9304 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9305 finalized_by_frontend.
9307 2011-04-17 Jan Hubicka <jh@suse.cz>
9309 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9310 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9311 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9312 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9314 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9316 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9318 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9321 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9322 is non-null before accessing it.
9323 (input_cgraph): Remove trailing spaces.
9325 2011-04-17 Revital Eres <revital.eres@linaro.org>
9327 * params.def (sms-min-sc): New param flag.
9328 * modulo-sched.c (sms_schedule): Use it.
9329 * doc/invoke.texi (sms-min-sc): Document it.
9331 2011-04-17 Jan Hubicka <jh@suse.cz>
9333 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9334 present, also set gimple_call_set_cannot_inline.
9335 * ipa-inline.c: Update toplevel comment.
9337 (cgraph_clone_inlined_nodes): Fix linebreaks.
9338 (cgraph_check_inline_limits): Restructure to ...
9339 (caller_growth_limits): ... this one; be more tolerant
9340 on growth in nested inline chains; add explanatory comment;
9341 fix stack accounting thinko introduced by previous patch.
9342 (cgraph_default_inline_p): Remove.
9343 (report_inline_failed_reason): New function.
9344 (can_inline_edge_p): New function.
9345 (can_early_inline_edge_p): New function.
9346 (leaf_node_p): Move upwards in file.
9347 (want_early_inline_function_p): New function.
9348 (want_inline_small_function_p): New function.
9349 (want_inline_self_recursive_call_p): New function.
9350 (cgraph_edge_badness): Rename to ...
9351 (edge_badness) ... this one; fix linebreaks.
9352 (update_edge_key): Update call of edge_baddness; add
9353 detailed dump about queue updates.
9354 (update_caller_keys): Use can_inline_edge_p and
9355 want_inline_small_function_p.
9356 (cgraph_decide_recursive_inlining): Rename to...
9357 (recursive_inlining): Use can_inline_edge_p and
9358 want_inline_self_recursive_call_p; simplify and remove no longer
9360 (cgraph_set_inline_failed): Remove.
9361 (add_new_edges_to_heap): Use can_inline_edge_p and
9362 want_inline_small_function_p.
9363 (cgraph_decide_inlining_of_small_functions): Rename to ...
9364 (inline_small_functions): ... this one; cleanup; use
9365 can/want predicates; cleanup debug ouput; work edges till fibheap
9366 is exhausted and do not stop once unit growth is reached; remove
9367 later loop processing remaining edges.
9368 (cgraph_flatten): Rename to ...
9369 (flatten_function): ... this one; use can_inline_edge_p
9370 and can_early_inline_edge_p predicates.
9371 (cgraph_decide_inlining): Rename to ...
9372 (ipa_inline): ... this one; remove unreachable nodes before
9373 inlining functions called once; simplify the pass.
9374 (cgraph_perform_always_inlining): Rename to ...
9375 (inline_always_inline_functions): ... this one; use
9376 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9377 (cgraph_decide_inlining_incrementally): Rename to ...
9378 (early_inline_small_functions): ... this one; simplify
9379 using new predicates; cleanup; make dumps prettier.
9380 (cgraph_early_inlining): Rename to ...
9381 (early_inliner): newer inline regular functions into always-inlines;
9382 fix updating of call stmt summaries.
9383 (pass_early_inline): Update for new names.
9384 (inline_transform): Fix formating.
9385 (gate_cgraph_decide_inlining): Rename to ...
9386 (pass_ipa_inline): ... this one.
9387 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9388 * ipa-inline-analysis.c (dump_inline_summary): Update.
9389 (compute_inline_parameters): Do not compute disregard_inline_limits;
9390 look for mismatching arguments.
9391 (estimate_growth): Fix handlig of non-trivial self recursion.
9392 (inline_read_summary): Do not read info->disregard_inline_limits.
9393 (inline_write_summary): Do not write info->disregard_inline_limits.
9394 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9395 and move all checks into can_inline_edge_p predicate; re-enable code
9396 comparing optimization levels.
9397 (expand_call_inline): Do not test inline_forbidden_into_p.
9398 * Makefile.in (ipa-inline.o): Update arguments.
9400 2011-04-17 Revital Eres <revital.eres@linaro.org>
9402 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9404 2011-04-17 Revital Eres <revital.eres@linaro.org>
9406 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9408 2011-04-17 Michael Matz <matz@suse.de>
9410 PR tree-optimization/48622
9412 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9413 in same order as they're written.
9415 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9417 * config/pa/predicates.md: Reorganize and simplify predicates.
9418 Eliminate duplicate code checks.
9419 (arith_operand): Rename to arith14_operand
9420 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9421 * config/pa/pa.md: Use renamed operands.
9422 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9423 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9424 arith11_operand, adddi3_operand, indexed_memory_operand,
9425 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9426 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9427 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9428 move_dest_operand, move_src_operand, prefetch_cc_operand,
9429 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9430 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9431 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9432 div_operand, int5_operand, movb_comparison_operator,
9433 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9434 arith_double_operand, ireg_operand, lhs_lshift_operand,
9435 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9436 integer_store_memory_operand): Likewise.
9437 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9438 (integer_store_memory_operand, read_only_operand,
9439 function_label_operand, borx_reg_operand,
9440 non_hard_reg_operand): Likewise.
9441 (eq_neq_comparison_operator): Delete unused operator.
9442 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9443 function_label_operand.
9444 (emit_move_sequence): Likewise.
9446 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9448 * config/i386/sse.md (sseunpackmode): New mode attribute.
9449 (ssepackmode): Ditto.
9450 (vec_pack_trunc_<mode>): Macroize expander from
9451 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9452 (vec_unpacks_lo_<mode>): Macroize expander from
9453 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9454 (vec_unpacks_hi_<mode>): Macroize expander from
9455 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9456 (vec_unpacku_lo_<mode>): Macroize expander from
9457 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9458 (vec_unpacku_hi_<mode>): Macroize expander from
9459 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9460 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9461 ix86_expand_sse4_unpack.
9462 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9464 2011-04-16 Jan Hubicka <jh@suse.cz>
9466 * cgraphbuild.c: Include ipa-inline.h.
9467 (reset_inline_failed): Use initialize_inline_failed.
9468 * cgraph.c: Include ipa-inline.h.
9469 (cgraph_create_node_1): Do not initialize estimated_growth.
9470 (initialize_inline_failed): More to ipa-inline-analysis.c
9471 (dump_cgraph_node): Do not dump inline flags.
9472 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9473 and disregard_inline_limits flags.
9474 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9475 time, size, estimated_growth.
9476 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9478 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9479 DECL_DISREGARD_INLINE_LIMITS.
9480 (cgraph_analyze_function): Do not initialize
9481 node->local.disregard_inline_limits.
9482 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9483 inlinable, versionable and disregard_inline_limits.
9484 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9485 cgraph_check_inline_limits, cgraph_default_inline_p,
9486 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9487 add_new_edges_to_heap): Update.
9488 (cgraph_decide_inlining_of_small_function): Update; set
9489 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9490 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9491 cgraph_decide_inlining_incrementally): Update.
9492 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9493 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9494 time, size and estimated_growth parameters.
9495 (estimate_edge_growth): Update.
9496 (initialize_inline_failed): Declare.
9497 * ipa-split.c: Include ipa-inline.h
9498 (execute_split_functions): Update.
9499 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9500 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9501 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9502 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9503 estimated_growth to INT_MIN.
9504 (inline_node_duplication_hook): Likewise.
9505 (dump_inline_summary): Dump new fields.
9506 (compute_inline_parameters): Update.
9507 (estimate_edge_time, estimate_time_after_inlining,
9508 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9509 inline_write_summary):
9510 (initialize_inline_failed): Move here from cgraph.c.
9511 * tree-sra.c: Include ipa-inline.h.
9512 (ipa_sra_preliminary_function_checks): Update.
9513 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9516 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9518 * config/i386/sse.md (V16): New mode iterator.
9520 (AVXMODEQI, AVXMODEDI): Remove.
9521 (sse2, sse3): New mode attribute.
9522 (mov<mode>): Use V16 mode iterator.
9523 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9524 (push<mode>1): Use V16 mode iterator.
9525 (movmisalign<mode>): Ditto.
9526 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9527 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9528 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9529 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9530 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9531 avx_movdqu<avxmodesuffix>.
9532 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9533 *avx_movdqu<avxmodesuffix>.
9534 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9535 avx_lddqu<avxmodesuffix>.
9536 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9537 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9538 avx_movnt<AVXMODEDI:mode>.
9539 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9540 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9542 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9545 * haifa-sched.c (prune_ready_list, schedule_block): Use
9546 sched_pressure_p rather than flag_sched_pressure.
9548 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9550 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9551 cgraph_get_node instead of cgraph_get_create_node.
9553 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9555 * cfgexpand.c (expand_debug_expr): Use
9556 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9558 2011-04-15 Michael Matz <matz@suse.de>
9560 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9561 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9562 * function.c (gimplify_parameters): Ditto.
9563 * gimplify.c (gimplify_vla_decl): Ditto.
9565 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9566 (gimple_call_set_alloca_for_var): New inline function.
9567 (gimple_call_alloca_for_var_p): Ditto.
9568 * gimple.c (gimple_build_call_from_tree): Remember
9569 CALL_ALLOCA_FOR_VAR_P state.
9570 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9572 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9573 calls if they were for VLA objects.
9575 2011-04-15 Martin Jambor <mjambor@suse.cz>
9577 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9580 2011-04-15 Martin Jambor <mjambor@suse.cz>
9583 * tree-emutls.c (lower_emutls_function_body): Call
9584 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9587 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9589 * c-decl.c (detect_field_duplicates): Call
9590 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9592 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9594 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9595 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9596 * ipa-pure-const.c (check_stmt): Call it.
9597 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9599 2011-04-15 Richard Guenther <rguenther@suse.de>
9601 PR tree-optimization/48290
9602 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9603 Properly decide inhibiting propagation based on the valueized
9604 operand. Do loop-closed SSA form preserving here ...
9605 (init_copy_prop): ... not here.
9607 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9610 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9611 (*ieee_smax<mode>3): Likewise.
9613 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9615 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9616 Replace match_operand with match_dup for the third operand in
9619 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9621 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9622 to track processing of conditionals. Update all callers.
9623 (try_combine, simplify_if_then_else): Update.
9625 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9627 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9630 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9632 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9633 instead of match_operand for operand 3.
9635 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9637 * recog.h (insn_operand_data): Add an "allows_mem" field.
9638 * genoutput.c (output_operand_data): Initialize it.
9639 * optabs.c (maybe_legitimize_operand_same_code): New function.
9640 (maybe_legitimize_operand): Use it when matching the original
9643 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9645 * gimplify.c: Fix issues in comments throughout.
9646 (voidify_wrapper_expr): Fix long line.
9647 (build_stack_save_restore): Likewise.
9648 (gimplify_loop_expr): Likewise.
9649 (gimplify_compound_lval): Likewise.
9650 (gimplify_init_ctor_eval): Likewise.
9651 (gimplify_modify_expr_rhs): Likewise.
9652 (omp_notice_threadprivate_variable): Likewise.
9654 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9656 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9657 original one if this is not a builtin function.
9659 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9662 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9663 offset it as needed based on top 2 bits in operands[3], change
9664 MEM mode to SFmode and mask those 2 bits away from operands[3].
9666 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9668 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9669 change from objc_declare_protocols() to objc_declare_protocol().
9671 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9673 * config/i386/sse.md (sse4_1): New mode attribute.
9674 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9675 avx_blend<ssemodesuffix><avxmodesuffix> and
9676 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9677 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9678 avx_blendv<ssemodesuffix><avxmodesuffix> and
9679 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9680 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9681 avx_dp<ssemodesuffix><avxmodesuffix> and
9682 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9683 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9684 (sse4_1_packusdw): Merge with *avx_packusdw.
9685 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9686 (sse4_1_pblendw): Merge with *avx_pblendw.
9687 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9688 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9689 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9691 (sse4_1_round<ssescalarmodesuffix>): Merge with
9692 *avx_round<ssescalarmodesuffix>.
9693 (aesenc): Merge with *avx_aesenc.
9694 (aesenclast): Merge with *avx_aesenclast.
9695 (aesdec): Merge with *avx_aesdec.
9696 (aesdeclast): Merge with *avx_aesdeclast.
9697 (pclmulqdq): Merge with *pclmulqdq.
9698 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9700 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9702 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9705 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9706 (align_local_variable): This. Update DECL_ALIGN.
9707 (add_stack_var): Updated.
9708 (expand_one_stack_var): Likewise.
9710 2011-04-14 Richard Guenther <rguenther@suse.de>
9712 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9714 (dse_initialize_block_local_data, dse_leave_block,
9715 record_voperand_set, get_stmt_uid): Likewise.
9716 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9717 (dse_optimize_stmt): Remove voperand set handling code.
9718 Simplify and improve to handle any kind of killing stmt.
9719 (dse_record_phi): Remove.
9720 (dse_enter_block): Simplify.
9721 (tree_ssa_dse): Likewise.
9722 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9724 2011-04-14 Jan Hubicka <jh@suse.cz>
9726 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9727 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9728 (cgraph_local_info): Remove inline_summary.
9729 * ipa-cp.c: Include ipa-inline.h.
9730 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9731 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9733 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9734 (input_overwrite_node): Do not set inline summary.
9735 (input_node): Do not stream inline summary.
9736 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9737 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9738 growth; we do not have inline parameters computed for that anyway.
9739 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9740 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9741 (inline_summary_t): New type and VECtor.
9742 (debug_inline_summary, dump_inline_summaries): Declare.
9743 (inline_summary): Use VOCtor.
9744 (estimate_edge_growth): Kill hack computing call stmt size directly.
9745 * lto-section-in.c (lto_section_name): Add inline section.
9746 * ipa-inline-analysis.c: Include lto-streamer.h
9747 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9748 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9749 (inline_summary_vec): Define.
9750 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9751 dump_inline_summaries): New functions.
9752 (estimate_function_body_sizes): Properly compute size/time of outgoing
9754 (compute_inline_parameters): Alloc inline_summary; do not compute
9755 size/time of incomming calls.
9756 (estimate_edge_time): Avoid missing time summary hack.
9757 (inline_read_summary): Read inline summary info.
9758 (inline_write_summary): Write inline summary info.
9759 (inline_free_summary): Free all hooks and inline summary vector.
9760 * lto-streamer.h: Add LTO_section_inline_summary section.
9761 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9762 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9764 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9766 * tree-vectorizer.h (vect_strided_store_supported): Add a
9767 HOST_WIDE_INT argument.
9768 (vect_strided_load_supported): Likewise.
9769 (vect_permute_store_chain): Return void.
9770 (vect_transform_strided_load): Likewise.
9771 (vect_permute_load_chain): Delete.
9772 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9773 count argument. Check that the count is a power of two.
9774 (vect_strided_load_supported): Likewise.
9775 (vect_permute_store_chain): Return void. Update after above changes.
9776 Assert that the access is supported.
9777 (vect_permute_load_chain): Likewise.
9778 (vect_transform_strided_load): Return void.
9779 * tree-vect-stmts.c (vectorizable_store): Update calls after
9780 above interface changes.
9781 (vectorizable_load): Likewise.
9782 (vect_analyze_stmt): Don't check for strided powers of two here.
9784 2011-04-14 Richard Guenther <rguenther@suse.de>
9786 PR tree-optimization/48590
9787 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9788 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9789 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9790 BUILT_IN_STACK_SAVE.
9791 * tree-ssa-dce.c (propagate_necessity): Handle
9792 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9794 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9796 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9799 2011-04-14 Richard Guenther <rguenther@suse.de>
9801 * tree.h (get_object_alignment_1): Declare.
9802 * builtins.c (get_object_alignment_1): Split out worker from ...
9803 (get_object_alignment): ... here.
9804 * fold-const.c (get_pointer_modulus_and_residue): Use
9805 get_object_alignment_1.
9807 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9809 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9811 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9812 parameter. Generalise code to handle arrays as well as vectors.
9813 (vect_setup_realignment): Update accordingly.
9814 * tree-vect-stmts.c (vectorizable_store): Likewise.
9815 (vectorizable_load): Likewise.
9817 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9819 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9820 within the per-copy loop.
9822 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9824 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9827 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9829 * doc/options.texi (Negative): Explicitly mention that the
9830 Negative chain must be circular.
9832 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9834 * function.h (block_chainon): Declare.
9835 * function.c (block_chainon): Define.
9837 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9838 Eric Weddington <eric.weddington@atmel.com>
9839 Georg-Johann Lay <avr@gjlay.de>
9841 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9843 (avr_init_builtins, avr_expand_builtin,
9844 avr_expand_delay_cycles, avr_expand_unop_builtin,
9845 avr_expand_binop_builtin ): New functions.
9846 (avr_builtin_id): New enum
9847 (struct avr_builtin_description): New struct
9848 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9849 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9851 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9852 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9853 UNSPECV_DELAY_CYCLES): new enumeration values
9854 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9855 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9856 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9857 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9858 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9859 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9860 "fmulsu"): New insns
9862 * config/avr/avr-c.c: fix line endings
9863 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9864 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9865 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9866 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9867 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9869 * doc/extend.texi (AVR Built-in Functions): New node
9870 (Target Builtins): Add documentation of AVR
9873 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9876 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9877 alone. Error if non-const data has attribute progmem.
9879 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9881 * tree.h (struct tree_constructor): Include tree_typed instead of
9883 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9884 TS_TYPED instead of TS_COMMON.
9886 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9888 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9889 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9890 (sse2_psadbw): Merge with *avx_psadbw.
9891 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9892 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9893 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9894 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9895 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9896 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9897 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9898 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9899 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9900 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9901 (ssse3_palignrti): Merge with *avx_palignrti.
9903 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9905 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9906 * tree-ssanames.c (fini_ssanames): VEC_free it.
9907 (make_ssa_name_fn): Update for VECness of free_ssanames.
9908 (release_ssa_name, release_dead_ssa_names): Likewise.
9909 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9911 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9912 TS_TYPED instead of TS_COMMON.
9914 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9916 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9917 statistics_counter_event.
9918 * tree-ssa-copyrename.c (stats): Define.
9919 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9920 statistics_counter_event.
9921 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9922 (bswap_stats, widen_mul_stats): Define.
9923 (insert_reciprocals): Increment rdivs_inserted.
9924 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9925 rfuncs_inserted. Add calls to statistics_counter_event.
9926 (execute_cse_sincos_1): Increment inserted.
9927 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9928 statistics_counter_event.
9929 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9930 of bswap_stats. Add calls to statistics_counter_event.
9931 (convert_mult_to_widen): Increment widen_mults_inserted.
9932 (convert_plusminus_to_widen): Increment maccs_inserted.
9933 (convert_mult_to_fma): Increment fmas_inserted.
9934 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9935 calls to statistics_counter_event.
9937 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9939 PR rtl-optimization/48455
9940 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9941 `temp_costs->mem_cost'.
9943 2011-04-13 Jan Hubicka <jh@suse.cz>
9945 * ipa-inline.h: New file.
9946 * ipa-inline-analysis.c: New file. Broken out of ...
9947 * ipa-inline.c: ... this file; update toplevel comment;
9948 include ipa-inline.h
9949 (inline_summary): Move to ipa-inline.h
9950 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9951 ipa-inline-analysis.c.
9952 (cgraph_estimate_time_after_inlining): Rename to
9953 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9954 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9955 to estimate_edge_growth.
9956 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9957 rename to estimate_size_after_inlining.
9958 (cgraph_mark_inline_edge): Update for new naming convention.
9959 (cgraph_check_inline_limits): Likewise.
9960 (cgraph_edge_badness): Likewise.
9961 (cgraph_decide_recursive_inlining): Likewise.
9962 (cgraph_decide_inlining_of_small_functions): Likewise.
9963 (cgraph_decide_inlining_incrementally): Likewise.
9964 (cgraph_estimate_growth): Rename to estimate_growth; move to
9965 ipa-inline-analysis.c.
9966 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9967 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9968 (compute_inline_parameters): Likewise.
9969 (compute_inline_parameters_for_current): Likewise.
9970 (pass_inline_parameters): Likewise.
9971 (inline_indirect_intraprocedural_analysis): Likewise.
9972 (analyze_function): Rename to inline_analyze_function; likewise.
9973 (add_new_function): Move to ipa-inline-analysis.c.
9974 (inline_generate_summary): Likewise.
9975 (inline_read_summary): Likewise.
9976 (inline_write_summary): Likewise.
9977 * Makefile.in (ipa-inline-analysis.c): New file.
9979 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9981 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9982 * configure: Regenerate.
9984 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9986 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9987 instead of tree_common.
9988 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9990 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9991 TS_TYPED rather than TS_COMMON.
9992 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9994 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9997 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9998 r20 around calls of __tablejump_elpm__
10000 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10002 PR middle-end/48591
10003 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10005 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10007 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10009 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10010 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10011 (cfi_vec): New typedef.
10012 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10013 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10014 (cie_cfi_vec): New static variable.
10015 (cie_cfi_head): Delete.
10016 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10017 declaration changed. Use vector rather than list operations.
10018 (new_cfi): Don't initialize the dw_cfi_next field.
10019 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10020 rather than list operations.
10021 (lookup_cfa): Use vector rather than list operations.
10022 (output_cfis): New argument upto. Accept a cfi_vec rather than
10023 a dw_cfi_ref list head as argument. All callers changed.
10024 Iterate over the vector using upto as a maximum index.
10025 (output_all_cfis): New static function.
10026 (output_fde): Use vector rather than list operations. Use the
10027 new upto argument for output_cfis rather than manipulating a
10029 (dwarf2out_begin_prologue): Change initializations to match
10030 new struct members.
10031 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10032 from the vector length rather than searching for the end of a list.
10033 Use output_all_cfis.
10034 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10036 2011-04-13 Nick Clifton <nickc@redhat.com>
10038 * config/rx/rx.md (movmemsi): Do not use this pattern when
10039 volatile pointers are involved.
10041 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10043 * config/i386/sse.md (pinsrbits): Remove.
10044 (sse2_packsswb): Merge with *avx_packsswb.
10045 (sse2_packssdw): Merge with *avx_packssdw.
10046 (sse2_packuswb): Merge with *avx_packuswb.
10047 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10048 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10049 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10050 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10051 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10052 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10053 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10054 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10055 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10056 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10057 (sse2_loadld): Merge with *avx_loadld.
10058 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10059 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10060 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10061 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10062 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10064 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10066 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10067 calling TREE_CHAIN.
10068 * print-tree.c (print_node): Likewise.
10069 * tree-inline.c (copy_tree_r): Likewise.
10070 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10071 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10072 instead of TS_COMMON.
10073 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10074 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10075 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10076 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10077 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10079 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10081 (TREE_CHAIN): Check for a TS_COMMON structure.
10082 (TREE_TYPE): Check for a TS_TYPED structure.
10084 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10086 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10087 cgraph_get_create_node instead of cgraph_node.
10089 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10091 * c-parser.c (c_parser_initelt): Updated call to
10092 objc_build_message_expr.
10093 (c_parser_postfix_expression): Likewise.
10095 2011-04-12 Kai Tietz <ktietz@redhat.com>
10097 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10098 MASK_MS_BITFIELD_LAYOUT bit.
10100 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10102 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10103 assert it is always true.
10104 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10107 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10109 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10110 compiling Objective-C to be more efficient.
10112 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10114 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10117 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10119 * recog.h, genoutput.c, optabs.c: Revert last patch.
10121 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10124 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10126 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10128 * recog.h (insn_operand_data): Add an "allows_mem" field.
10129 * genoutput.c (output_operand_data): Initialize it.
10130 * optabs.c (maybe_legitimize_operand_same_code): New function.
10131 (maybe_legitimize_operand): Use it when matching the original
10134 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10136 * genpreds.c (process_define_predicate): Move most processing
10137 to gensupport.c. Continue to validate the expression.
10138 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10139 (process_define_predicate): Move processing to gensupport.c.
10140 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10141 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10142 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10144 (valid_predicate_name_p): New function, split out from old
10145 genpreds.c:process_define_predicate.
10146 (process_define_predicate): New function, combining code from
10147 old genpreds.c and genrecog.c functions.
10148 (process_rtx): Call it for DEFINE_PREDICATE and
10149 DEFINE_SPECIAL_PREDICATE.
10151 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10153 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10154 size of a '%A' memory reference.
10155 (T_DREG, T_QREG): New neon_builtin_type_bits.
10156 (arm_init_neon_builtins): Assert that the load and store operands
10157 are neon_struct_operands.
10158 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10159 (NEON_ARG_MEMORY): New builtin_arg.
10160 (neon_dereference_pointer): New function.
10161 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10162 Handle NEON_ARG_MEMORY.
10163 (arm_expand_neon_builtin): Update after above interface changes.
10164 Use NEON_ARG_MEMORY for loads and stores.
10165 * config/arm/predicates.md (neon_struct_operand): New predicate.
10166 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10167 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10168 (V_four_elem): Tweak formatting.
10169 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10170 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10171 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10172 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10173 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10174 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10175 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10176 Use %A in the output template.
10177 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10178 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10179 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10180 the width of the memory access. Remove post-increment.
10181 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10183 2011-04-12 Nick Clifton <nickc@redhat.com>
10185 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10186 instruction for interrupt handlers if the target is the basic V850
10188 (expand_epilogue): Likewise.
10190 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10192 PR rtl-optimization/48549
10193 * combine.c (propagate_for_debug): Also stop after BB_END of
10194 this_basic_block. Process LAST and just stop processing after it.
10195 (combine_instructions): If last_combined_insn has been deleted,
10196 set last_combined_insn to its PREV_INSN.
10198 2011-04-12 Richard Guenther <rguenther@suse.de>
10200 PR tree-optimization/46076
10201 * gimple.h (struct gimple_statement_call): Add fntype field.
10202 (gimple_call_fntype): Adjust.
10203 (gimple_call_set_fntype): New function.
10204 * gimple.c (gimple_build_call_1): Set the call function type.
10205 * gimplify.c (gimplify_call_expr): Preserve the function
10206 type the frontend used for the call.
10207 (gimplify_modify_expr): Likewise.
10208 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10210 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10212 * tree-ssa.c (useless_type_conversion_p): Function pointer
10213 conversions are useless.
10215 2011-04-12 Martin Jambor <mjambor@suse.cz>
10217 * cgraph.h (cgraph_node): Remove function declaration.
10218 (cgraph_create_node): Declare.
10219 (cgraph_get_create_node): Likewise.
10220 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10221 Updated all callers.
10222 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10223 the decl does not already exist. Call cgraph_get_create_node instead
10225 (cgraph_get_create_node): New function.
10226 (cgraph_same_body_alias): Update comment.
10227 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10228 assert it does not return NULL.
10229 (cgraph_update_edges_for_call_stmt): Likewise.
10230 (cgraph_clone_edge): Likewise.
10231 (cgraph_create_virtual_clone): Likewise.
10232 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10233 instead of cgraph_node.
10234 (cgraph_add_new_function): Call cgraph_create_node or
10235 cgraph_get_create_node instead of cgraph_node.
10236 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10237 instead of cgraph_node.
10238 (record_eh_tables): Likewise.
10239 (mark_address): Likewise.
10240 (mark_load): Likewise.
10241 (build_cgraph_edges): Call cgraph_get_create_node instead
10243 (rebuild_cgraph_edges): Likewise.
10244 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10245 instead of cgraph_node.
10246 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10248 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10249 cgraph_create_node instead of cgraph_node.
10250 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10252 * lto-cgraph.c (input_node): Likewise.
10253 * lto-streamer-in.c (input_function): Likewise.
10254 * varasm.c (mark_decl_referenced): Likewise.
10255 (assemble_alias): Likewise.
10257 2011-04-12 Martin Jambor <mjambor@suse.cz>
10259 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10260 instead of cgraph_node and assert it does not return NULL.
10261 * lto-streamer-in.c (lto_read_body): Likewise.
10262 * omp-low.c (new_omp_context): Likewise.
10263 (create_task_copyfn): Likewise.
10264 * tree-emutls.c (lower_emutls_function_body): Likewise.
10265 * matrix-reorg.c (transform_allocation_sites): Likewise.
10267 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10270 * c-typeck.c (build_asm_expr): Error out on attempts to use
10271 void type outputs or inputs for constraints that allow reg or
10272 don't allow memory.
10274 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10275 Richard Earnshaw <rearnsha@arm.com>
10278 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10279 to use sign-magnitude offsets. Reject unsupported unaligned
10280 cases. Add detailed description in comments.
10281 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10282 condition from TARGET_32BIT to TARGET_ARM.
10284 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10286 * tree.h (struct typed_tree): New.
10287 (struct tree_common): Include it instead of tree_base.
10288 (TREE_TYPE): Update for new location of type field.
10289 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10290 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10291 (union tree_node): Add typed field.
10292 * treestruct.def (TS_TYPED): New.
10293 * lto-streamer.c (check_handled_ts_structures): Handle it.
10294 * tree.c (MARK_TS_TYPED): New macro.
10295 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10297 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10299 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10300 (force_nonfallthru): Do not alter the loop nest if no basic block
10303 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10305 * config/i386/sse.md (VI): New mode iterator.
10306 (SSEMODEI): Remove.
10307 (AVX256MODEI): Ditto.
10308 (AVXMODEF4P): Ditto.
10309 (avxvecpsmode): Ditto.
10310 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10311 (sse2_andnot<mode>3): New expander.
10312 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10313 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10314 (<any_logic:code><mode>3): Use VI mode iterator.
10315 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10316 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10317 (*andnottf3): Handle AVX three-operand constraints.
10318 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10320 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10321 Robert Millan <rmh@gnu.org>
10323 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10324 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10325 GNU_USER_DYNAMIC_LINKER64): Define.
10326 (REG_NAME): Don't undefine.
10327 (MD_UNWIND_SUPPORT): Undefine.
10328 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10329 (REG_NAME): Don't undefine.
10330 (MD_UNWIND_SUPPORT): Undefine.
10331 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10333 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10335 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10336 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10338 2011-04-11 Xinliang David Li <davidxl@google.com>
10340 * value-profile.c (check_ic_target): New function.
10341 (gimple_ic_transform): Sanity check indirect call target.
10342 * gimple-low.c (gimple_check_call_args): Interface change.
10343 (gimple_check_call_matching_types): New function.
10344 * tree-inline.c (tree_can_inline_p): Call new function.
10346 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10348 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10349 tree-pretty-print.h & realmpfr.h.
10351 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10353 PR middle-end/48464
10354 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10355 (setup_allocno_and_important_classes): Ditto.
10357 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10359 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10360 GNU_USER_DYNAMIC_LINKER.
10361 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10362 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10363 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10364 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10365 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10366 GNU_USER_TARGET_OS_CPP_BUILTINS.
10367 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10368 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10369 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10370 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10371 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10372 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10373 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10374 GNU_USER_TARGET_OS_CPP_BUILTINS.
10375 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10376 GNU_USER_DYNAMIC_LINKER.
10377 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10378 GNU_USER_TARGET_OS_CPP_BUILTINS.
10379 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10381 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10383 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10384 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10385 GNU_USER_DYNAMIC_LINKER64): Remove.
10386 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10387 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10388 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10389 GNU_USER_DYNAMIC_LINKER.
10390 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10391 GNU_USER_TARGET_OS_CPP_BUILTINS.
10392 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10393 GNU_USER_TARGET_OS_CPP_BUILTINS.
10394 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10395 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10396 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10397 GNU_USER_TARGET_OS_CPP_BUILTINS.
10398 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10399 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10400 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10401 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10402 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10403 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10404 GNU_USER_DYNAMIC_LINKER.
10405 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10406 GNU_USER_TARGET_OS_CPP_BUILTINS.
10407 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10409 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10410 GNU_USER_DYNAMIC_LINKER.
10411 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10412 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10413 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10414 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10415 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10416 GNU_USER_DYNAMIC_LINKER.
10417 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10418 GNU_USER_DYNAMIC_LINKERN32.
10419 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10420 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10421 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10422 GNU_USER_DYNAMIC_LINKER32.
10423 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10425 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10426 GNU_USER_DYNAMIC_LINKER.
10427 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10428 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10429 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10430 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10431 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10432 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10433 GNU_USER_DYNAMIC_LINKER32.
10434 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10435 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10436 GNU_USER_DYNAMIC_LINKER.
10437 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10438 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10439 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10440 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10441 GNU_USER_DYNAMIC_LINKER64.
10442 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10443 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10444 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10445 GNU_USER_DYNAMIC_LINKER.
10446 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10447 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10448 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10449 GNU_USER_DYNAMIC_LINKER.
10450 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10451 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10452 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10453 GNU_USER_DYNAMIC_LINKER32.
10454 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10455 GNU_USER_DYNAMIC_LINKER64.
10456 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10457 GNU_USER_DYNAMIC_LINKER64.
10458 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10459 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10460 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10461 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10462 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10464 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10466 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10467 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10468 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10469 GNU_USER_DYNAMIC_LINKER.
10470 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10471 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10472 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10473 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10474 GNU_USER_DYNAMIC_LINKER64.
10475 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10476 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10477 GNU_USER_LINK_EMULATION.
10478 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10479 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10480 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10481 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10482 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10483 CPP_SPEC, CC1_SPEC): Remove.
10484 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10485 (GNU_USER_DYNAMIC_LINKER): Define.
10486 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10487 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10488 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10489 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10490 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10491 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10492 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10493 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10494 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10495 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10496 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10497 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10498 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10499 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10500 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10501 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10502 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10503 GNU_USER_DYNAMIC_LINKER.
10504 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10505 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10506 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10507 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10508 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10509 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10510 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10511 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10512 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10513 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10515 2011-04-11 Kai Tietz <ktietz@redhat.com>
10519 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10520 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10522 (ix86_is_msabi_thiscall): Removed.
10523 (ix86_is_type_thiscall): Likewise.
10524 (ix86_get_callcvt): New function.
10525 (ix86_comp_type_attributes): Simplify check.
10526 (ix86_function_regparm): Use ix86_get_callcvt for calling
10527 convention attribute checks.
10528 (ix86_return_pops_args): Likewise.
10529 (ix86_static_chain): Likewise.
10530 (x86_this_parameter): Likewise.
10531 (x86_output_mi_thunk): Likewise.
10532 (ix86_function_type_abi): Optimize check for types without attributes.
10533 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10534 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10535 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10537 (IX86_BASE_CALLCVT): Helper macro.
10538 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10539 Use ix86_get_callcvt for calling convention attribute checks and avoid
10540 symbol-decoration for stdcall in TARGET_RTD case.
10541 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10543 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10546 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10548 * config/i386/sse.md (VI_128): New mode iterator.
10549 (VI12_128): Rename from SSEMODE12.
10550 (VI14_128): Rename from SSEMODE14.
10551 (VI124_128): New mode iterator.
10552 (VI24_128): Rename from SSEMODE248.
10553 (VI248_128): Rename from SSEMODE248.
10554 (SSEMODE124C8): Remove.
10555 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10556 (*sse2_<plusminus_insn><mode>3): Merge with
10557 *avx_<plusminus_insn><mode>3.
10558 (*mulv8hi3): Merge with *avx_mulv8hi3.
10559 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10560 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10561 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10562 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10563 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10564 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10565 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10566 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10567 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10568 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10569 (*<smaxmin:code>v8hi3): Ditto.
10570 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10571 (*<smaxmin:code>v16qi3): Ditto.
10572 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10573 (*sse2_eq<mode>3): Ditto.
10574 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10575 (*sse2_gt<mode>3): Ditto.
10576 (vcondv2di): Split out of vcond<mode>.
10577 (vconduv2di): Split out of vcondu<mode>.
10579 2011-04-11 Richard Guenther <rguenther@suse.de>
10581 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10582 before calling tree_low_cst.
10584 2011-04-11 Richard Guenther <rguenther@suse.de>
10586 * stor-layout.c (layout_type): Compute all array index size operations
10587 in the original type.
10588 (initialize_sizetypes): Add comment.
10589 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10591 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10593 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10595 2011-04-11 Martin Jambor <mjambor@suse.cz>
10597 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10598 of cgraph_node, handle NULL return value.
10599 (cgraph_global_info): Likewise.
10600 (cgraph_rtl_info): Likewise.
10601 * tree-inline.c (estimate_num_insns): Likewise.
10602 * gimplify.c (unshare_body): Likewise.
10603 (unvisit_body): Likewise.
10604 (gimplify_body): Likewise.
10605 * predict.c (optimize_function_for_size_p): Likewise.
10606 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10607 (call_may_clobber_ref_p_1): Likewise.
10608 * varasm.c (function_section_1): Likewise.
10609 (assemble_start_function): Likewise.
10611 2011-04-11 Martin Jambor <mjambor@suse.cz>
10613 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10615 * final.c (rest_of_clean_state): Likewise.
10616 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10617 * passes.c (pass_init_dump_file): Likewise.
10618 (execute_all_ipa_transforms): Likewise.
10619 (function_called_by_processed_nodes_p): Likewise.
10620 * predict.c (maybe_hot_frequency_p): Likewise.
10621 (probably_never_executed_bb_p): Likewise.
10622 (compute_function_frequency): Likewise.
10623 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10624 (unnest_nesting_tree_1): Likewise.
10625 (lower_nested_functions): Likewise.
10626 * tree-optimize.c (execute_fixup_cfg): Likewise.
10627 (tree_rest_of_compilation): Likewise.
10628 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10629 * tree-sra.c (ipa_early_sra): Likewise.
10630 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10631 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10632 * ipa.c (record_cdtor_fn): Likewise.
10633 * ipa-inline.c (cgraph_early_inlining): Likewise.
10634 (compute_inline_parameters_for_current): Likewise.
10635 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10636 * ipa-pure-const.c (local_pure_const): Likewise.
10637 * ipa-split.c (split_function): Likewise.
10638 (execute_split_functions): Likewise.
10639 * cgraphbuild.c (build_cgraph_edges): Likewise.
10640 (rebuild_cgraph_edges): Likewise.
10641 (cgraph_rebuild_references): Likewise.
10642 (remove_cgraph_callee_edges): Likewise.
10643 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10644 (verify_cgraph_node): Likewise.
10645 (cgraph_analyze_functions): Likewise.
10646 (cgraph_preserve_function_body_p): Likewise.
10647 (save_inline_function_body): Likewise.
10648 (save_inline_function_body): Likewise.
10649 * tree-inline.c (copy_bb): Likewise.
10650 (optimize_inline_calls): Likewise.
10652 2011-04-11 Martin Jambor <mjambor@suse.cz>
10654 PR tree-optimization/48195
10655 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10656 ipa_check_create_edge_args.
10657 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10658 ipa_check_create_edge_args.
10659 * ipa-inline.c (inline_generate_summary): Do not call
10660 ipa_check_create_node_params and ipa_check_create_edge_args.
10661 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10662 ipa_check_create_edge_args.
10664 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10666 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10668 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10669 * function.c (record_hard_reg_sets): Likewise.
10670 * ira.c (compute_regs_asm_clobbered): Likewise.
10671 * sched-deps.c (sched_analyze_1): Likewise.
10672 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10674 2011-04-09 Xinliang David Li <davidxl@google.com>
10676 PR tree-optimization/PR48484
10677 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10678 has_valid_pred lazily
10680 2011-04-09 Duncan Sands <baldrick@free.fr>
10682 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10684 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10686 * combine.c (combine_validate_cost): Adjust comments. Set registered
10687 cost of I0 to zero at the end, if any.
10689 2011-04-08 Xinliang David Li <davidxl@google.com>
10691 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10692 to insane profile data.
10694 2011-04-08 Xinliang David Li <davidxl@google.com>
10696 * ipa-cp.c (ipcp_update_profiling): Correct
10697 negative scale factor due to insane profile data.
10699 2011-04-08 Xinliang David Li <davidxl@google.com>
10701 * final.c (dump_basic_block_info): New function.
10702 (final): Dump basic block.
10703 (final_scan_insn): Remove old dump.
10705 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10708 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10711 2011-04-08 Michael Matz <matz@suse.de>
10713 PR middle-end/48389
10714 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10716 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10717 * rtl.h (rebuild_jump_labels_chain): Declare.
10718 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10719 insns inserted on edges.
10721 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10723 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10724 * config/arm/arm-arches.def: New.
10725 * config/arm/arm-opts.h: New.
10726 * config/arm/genopt.sh: New.
10727 * config/arm/arm-tables.opt: New (generated).
10728 * config/arm/arm.c (arm_handle_option, arm_target_help,
10729 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10730 (all_architectures): Get most table contents from arm-arches.def.
10731 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10732 arm_selected_tune here.
10733 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10734 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10735 (march=, mcpu=, mtune=): Use Enum and Var.
10736 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10737 (arm.o): Update dependencies.
10739 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10741 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10743 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10744 (write_typed_alloc_defns): Likewise.
10745 (main): Calls write_typed_alloc_defns with output_header.
10747 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10749 PR inline-asm/48435
10750 * ira-color.c (setup_profitable_hard_regs): Add comments.
10751 Don't take prohibited hard regs into account.
10752 (setup_conflict_profitable_regs): Rename to
10753 get_conflict_profitable_regs.
10754 (check_hard_reg_p): Check prohibited hard regs.
10756 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10758 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10759 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10760 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10762 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10765 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10766 move from floating point to shift amount register.
10767 (emit_move_sequence): Remove secondary reload support for floating
10768 point to shift amount amount register copies.
10769 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10770 amount register copies.
10771 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10772 register, return false if mode isn't a scalar integer mode.
10773 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10775 2011-04-08 Richard Guenther <rguenther@suse.de>
10777 * gimple.c (gimple_call_flags): Remove kludge.
10779 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10781 * sel-sched.c (sel_region_init): Move call to
10782 sel_setup_region_sched_flags after setup_current_loop_nest.
10784 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10786 PR rtl-optimization/48272
10787 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10788 init_insn_reg_pressure_info. Adjust a caller.
10789 * sched-int.h (init_insn_reg_pressure_info): Declare.
10790 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10791 when sched-pressure is enabled.
10793 2011-04-08 Richard Guenther <rguenther@suse.de>
10795 * gimple.c (gimple_set_modified): Do not queue calls to
10796 MODIFIED_NORETURN_CALLS here ...
10797 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10799 2011-04-08 Richard Guenther <rguenther@suse.de>
10802 * toplev.c (lang_dependent_init): Do not open asm_out_file
10803 in WPA mode, nor perform debug machinery initialization.
10804 (finalize): Do not unlink asm_out_file in WPA mode.
10806 2011-04-08 Richard Guenther <rguenther@suse.de>
10808 * gimple.h (gimple_call_fntype): New function.
10809 (gimple_call_return_type): Use it.
10810 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10811 * gimple-low.c (gimple_check_call_args): Likewise.
10812 * gimple.c (gimple_call_flags): Likewise.
10813 (gimple_call_arg_flags): Likewise.
10814 (gimple_call_return_flags): Likewise.
10815 * tree-cfg.c (verify_gimple_call): Likewise.
10816 (do_warn_unused_result): Likewise.
10817 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10818 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10820 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10822 PR rtl-optimization/48235
10823 * sel-sched.c (code_motion_process_successors): Recompute the last
10824 insn in basic block if control flow changed.
10825 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10826 Update condition for ilist_remove.
10828 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10830 PR rtl-optimization/48302
10831 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10832 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10833 it to record added preheader blocks.
10834 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10835 on to sel_add_loop_preheaders.
10836 (sel_region_init): Move call to setup_current_loop_nest after
10839 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10842 * cfgloop.h (loop_has_exit_edges): New helper.
10843 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10845 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10846 that have no exit edges.
10848 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10850 PR rtl-optimization/48442
10851 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10852 all callers. Adjust assert.
10854 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10856 PR tree-optimization/48377
10857 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10858 is_packed to true even for types with smaller TYPE_ALIGN than
10861 2011-04-08 Richard Guenther <rguenther@suse.de>
10864 * doc/tm.texi: Re-generate.
10866 2011-04-08 Wei Guozhi <carrot@google.com>
10869 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10870 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10871 * config/arm/arm.md (*push_multi): Change the length computation to
10874 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10876 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10877 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10878 * doc/tm.texi: Regenerate.
10879 * system.h (ASM_OUTPUT_BSS): Poison.
10880 * varasm.c (asm_output_bss): Remove function.
10881 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10883 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10884 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10885 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10886 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10888 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10890 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10892 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10894 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10896 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10899 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10901 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10902 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10903 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10905 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10906 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10907 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10908 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10909 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10910 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10911 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10912 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10913 options. Don't map other m68k options manually. Don't handle
10914 old-style options as canonical.
10915 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10916 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10918 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10920 * basic-block.h (force_nonfallthru): Move to...
10921 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10922 (force_nonfallthru): ...here.
10923 * cfghooks.c (force_nonfallthru): New function.
10924 * cfgrtl.c (force_nonfallthru): Rename into...
10925 (rtl_force_nonfallthru): ...this.
10926 (commit_one_edge_insertion): Do not set AUX field.
10927 (commit_edge_insertions): Do not discover new basic blocks.
10928 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10929 (cfg_layout_rtl_cfg_hooks): Likewise.
10930 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10931 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10932 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10934 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10936 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10939 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10941 * config/i386/sse.md: Update copyright year.
10942 (avxcvtvecmode): Remove.
10943 (sse_movhlps): Merge with *avx_movhlps.
10944 (sse_movlhps): Merge with *avx_movlhps.
10945 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10946 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10947 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10948 (sse_loadhps): Merge with *avx_loadhps.
10949 (sse_storelps): Merge with *avx_storelps.
10950 (sse_loadlps): Merge with *avx_loadlps.
10951 (sse_movss): Merge with *avx_movss.
10952 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10953 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10954 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10955 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10956 (vec_set<mode>_0): Ditto.
10957 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10958 (sse4_1_insertps): Merge with *avx_insertps.
10959 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10960 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10961 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10962 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10963 (sse2_storehpd): Merge with *avx_storehpd.
10964 (sse2_loadhpd): Merge with *avx_loadhpd.
10965 (sse2_loadlpd): Merge with *avx_loadlpd.
10966 (sse2_movsd): Merge with *avx_movsd.
10967 (*vec_concatv2df): Merge with *vec_concatv2df.
10969 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10972 * combine.c (combine_instructions): Add last_combined_insn,
10973 update it if insn is after it, pass it to all try_combine calls.
10974 (try_combine): Add last_combined_insn parameter, pass it instead of
10975 i3 to propagate_for_debug.
10977 2011-04-07 Nick Clifton <nickc@redhat.com>
10979 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10980 to handle MDR <-> data register transfers.
10981 (movhi_internal): Likewise.
10983 2011-04-07 Alan Modra <amodra@gmail.com>
10985 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10986 previous stack info.
10988 2011-04-07 Tom de Vries <tom@codesourcery.com>
10991 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10992 flow_find_cross_jump. Swap variables to implement backward replacement.
10993 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10995 2011-04-07 Tom de Vries <tom@codesourcery.com>
10998 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10999 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11001 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11002 src1 or src2. Redirect edges to the last basic block. Update
11003 frequency and count on multiple basic blocks in case of fallthru.
11005 2011-04-07 Tom de Vries <tom@codesourcery.com>
11008 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11010 (old_insns_match_p): Change return type. Replace return false/true
11011 with return dir_none/dir_both. Use can_replace_by.
11012 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11013 direction from dir_p. Register replacement direction in dir, last_dir
11014 and afterlast_dir. Handle new return type of old_insns_match_p using
11015 merge_dir. Return replacement direction in dir_p.
11016 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11017 return type of old_insns_match_p.
11018 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11019 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11020 flow_find_cross_jump.
11021 * basic-block.h (enum replace_direction): New type.
11022 (flow_find_cross_jump): Add parameter to declaration.
11024 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11026 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11027 (AVXMODEDCVTPS2DQ): Ditto.
11028 (VEC_FLOAT_MODE): Ditto.
11029 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11030 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11031 (<any_logic:code><mode>3): Use VF mode iterator.
11032 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11033 Use VF mode iterator.
11034 (copysign<mode>3): Use VF mode iterator.
11035 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11036 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11037 (*<any_logic:code><MODEF:mode>3): Merge with
11038 *avx_<any_logic:code><MODEF:mode>3.
11039 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11040 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11041 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11042 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11043 (sse2_cvtdq2ps): Use %v modifier.
11044 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11045 (avx_cvtps2dq<avxmodesuffix>): Remove.
11046 (sse2_cvtps2dq): Use %v modifier.
11047 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11048 (avx_cvttps2dq<avxmodesuffix>): Remove.
11049 (sse2_cvttps2dq): Use %v modifier.
11050 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11051 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11052 (sse2_cvtsd2siq): Fix insn template.
11053 (sse2_cvtsd2siq_2): Ditto.
11054 (sse2_cvttsd2siq): Ditto.
11055 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11056 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11058 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11060 * gcov-io.c: Use GCC Runtime Library Exception.
11062 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11065 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11066 as base_reg whatever register reg has been eliminated to, instead
11067 of hardcoding STACK_POINTER_REGNUM.
11069 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11071 * doc/tm.texi.in: Document C target hooks as separate from general
11073 * doc/tm.texi: Regenerate.
11074 * genhooks.c (struct hook_desc): Add docname field.
11075 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11077 (hook_array): Include c-target.def.
11078 (emit_documentation): Use docname field in output.
11079 (emit_init_macros): Take docname argument. Only emit definitions
11080 for hooks matching docname.
11081 (main): Expect additional arguments in all cases. Pass argument
11082 to emit_init_macros.
11083 * target.def: Move initial macro definitions and comments to
11084 target-hooks-macros.h.
11085 (gcc_targetcm): Move to c-family/c-target.def.
11086 * target.h (targetcm): Move declaration to c-family/c-target.h.
11087 * targhooks.c (default_handle_c_option): Move to
11089 * targhooks.h (default_handle_c_option): Move declaration to
11090 c-family/c-common.h.
11091 * target-hooks-macros.h: New file.
11092 * config.gcc (target_has_targetcm): Define and use to add to
11093 c_target_objs and cxx_target_objs.
11094 * config/default-c.c: New file.
11095 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11096 of target.h and target-def.h.
11097 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11098 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11099 darwin_check_cfstring_format_arg): Make static.
11100 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11101 TARGET_STRING_OBJECT_REF_TYPE_P,
11102 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11103 * config/darwin-protos.h (darwin_objc_construct_string,
11104 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11106 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11107 TARGET_STRING_OBJECT_REF_TYPE_P,
11108 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11109 * config/t-darwin (darwin-c.o): Update dependencies.
11110 * system.h (TARGET_HAS_TARGETCM): Poison.
11111 * Makefile.in (TARGET_H): Update.
11112 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11113 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11114 (default-c.o): New target.
11115 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11116 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11117 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11119 (build/genhooks.o): Update dependencies.
11121 2011-04-06 Richard Guenther <rguenther@suse.de>
11123 * ipa-inline.c (enum inlining_mode): Remove.
11124 (cgraph_flatten): Use some other token.
11125 (cgraph_edge_early_inlinable_p): New function, split out from ...
11126 (cgraph_perform_always_inlining): New function, split out from ...
11127 (cgraph_decide_inlining_incrementally): ... here.
11128 (cgraph_mark_inline_edge): Adjust.
11129 (cgraph_early_inlining): Re-structure.
11130 (pass_early_inline): Require SSA form.
11132 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11133 Julian Brown <julian@codesourcery.com>
11134 Mark Shinwell <shinwell@codesourcery.com>
11136 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11137 LO_REGS only for Thumb-1.
11138 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11139 be used in short instructions when optimising for size on Thumb-2.
11141 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11143 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11144 associated with user returns to be preserved.
11146 2011-04-06 Tristan Gingold <gingold@adacore.com>
11148 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11149 symbol_queue_size, DBXOUT_DECR_NESTING,
11150 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11151 if XCOFF_DEBUGGING_INFO.
11153 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11155 * config/i386/i386.md (attribute isa): New.
11156 (attribute enabled): New.
11157 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11158 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11159 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11160 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11161 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11162 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11163 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11164 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11166 * config/i386/sse.md (VF): New mode iterator.
11170 (SSEMODEF4): Remove.
11171 (attribute sse): Handle V8SF and V4DF modes.
11172 (<absneg:code><mode>2): Use VF mode iterator.
11173 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11175 (<plusminus_insn><mode>3): Use VF mode iterator.
11176 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11177 Use VF mode iterator.
11178 (<sse>_vm<plusminus_insn><mode>3): Merge with
11179 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11180 (mul<mode>3): Use VF mode iterator.
11181 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11182 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11184 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11185 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11186 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11187 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11189 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11190 Use VF1 mode iterator.
11191 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11192 (sqrt<VF2:mode>2): New expander.
11193 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11194 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11195 and sqrtv2df2. Use VF mode iterator.
11196 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11198 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11199 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11200 Use VF1 mode iterator.
11201 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11202 (<smaxmin:code><mode>3): Use VF mode iterator.
11203 (*<smaxmin:code><mode>3_finite): Merge with
11204 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11205 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11206 (<sse>_vm<smaxmin:code><mode>2): Merge with
11207 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11208 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11210 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11212 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11213 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11214 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11215 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11216 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11218 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11219 Use VF_128 mode iterator.
11220 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11222 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11223 VF_128 mode iterator.
11224 (vcond<mode>): Use VF mode iterator.
11225 * config/i386/predicates.md (sse_comparison_operator): Merge with
11226 avx_comparison_float_operator. Do not declare as special_predicate.
11227 * config/i386/i386.c (struct builtin_description): Update for renamed
11229 (ix86_expand_args_builtin): Ditto.
11230 (ix86_expand_sse_compare_mask): Ditto.
11232 2011-04-06 Richard Guenther <rguenther@suse.de>
11234 * tree-inline.c (estimate_num_insns): For calls simply account
11235 for all passed arguments and a used return value.
11237 2011-04-06 Richard Guenther <rguenther@suse.de>
11239 PR tree-optimization/47663
11240 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11241 call_stmt_time fields.
11242 (cgraph_edge_inlinable_p): Declare.
11243 (cgraph_edge_recursive_p): New inline function.
11244 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11245 (cgraph_clone_edge): Copy it.
11246 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11247 Account for call stmt time.
11248 (cgraph_estimate_time_after_inlining): Take edge argument.
11249 (cgraph_estimate_edge_growth): Account call stmt size.
11250 (cgraph_estimate_size_after_inlining): Take edge argument.
11251 (cgraph_mark_inline_edge): Adjust.
11252 (cgraph_check_inline_limits): Likewise.
11253 (cgraph_recursive_inlining_p): Remove.
11254 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11255 (cgraph_decide_recursive_inlining): Take edge argument and
11257 (cgraph_decide_inlining_of_small_functions): Do not avoid
11258 diags for recursive inlining here.
11259 (cgraph_flatten): Adjust.
11260 (cgraph_decide_inlining_incrementally): Likewise.
11261 (estimate_function_body_sizes): Remove call cost handling.
11262 (compute_inline_parameters): Initialize caller edge call costs.
11263 (cgraph_estimate_edge_growth): New function.
11264 (cgraph_estimate_growth): Use it.
11265 (cgraph_edge_badness): Likewise.
11266 (cgraph_check_inline_limits): Take an edge argument.
11267 (cgraph_decide_inlining_of_small_functions): Adjust.
11268 (cgraph_decide_inlining): Likewise.
11269 * tree-inline.c (estimate_num_insns): Only account for call
11270 return value if it is used.
11271 (expand_call_inline): Avoid diagnostics on recursive inline
11273 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11274 (input_edge): Input edge call costs.
11276 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11278 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11280 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11282 * doc/invoke.texi (Spec Files): Fix typo.
11284 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11286 * profile.c (branch_prob): Move declaration of local variable. Remove
11287 obsolete ??? comment. Expand the location explicitly instead of using
11288 the LOCATION_FILE and LOCATION_LINE macros.
11290 2011-04-06 Wei Guozhi <carrot@google.com>
11293 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11294 (arm_cond_branch): Likewise.
11295 (arm_cond_branch_reversed): Likewise.
11296 (arm_jump): Likewise.
11297 (push_multi): Likewise.
11298 * config/arm/constraints.md (Py): New constraint.
11300 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11303 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11305 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11306 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11307 #ifdef DBX_DEBUGGING_INFO.
11309 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11312 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11313 if old and new states differ.
11315 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11317 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11318 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11319 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11320 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11321 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11322 mcfv4e): Use Alias.
11323 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11324 ColdFire options to -mcpu= options.
11326 2011-04-05 Jeff Law <law@redhat.com>
11328 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11329 check if BB is a successor of LOOP->header and return
11330 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11332 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11334 * cprop.c (struct reg_use): Remove.
11335 (reg_use_table): Make an array of RTX.
11336 (find_used_regs, constprop_register, local_cprop_pass,
11337 bypass_block): Simplify users of reg_use_table.
11338 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11339 on one of the uses found by find_used_regs.
11341 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11344 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11347 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11349 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11351 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11353 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11355 PR middle-end/48441
11356 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11358 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11360 * combine.c: Include obstack.h.
11361 (struct insn_link): Define.
11362 (uid_log_links): Adjust type.
11363 (FOR_EACH_LOG_LINK): New macro.
11364 (insn_link_obstack): Declare.
11365 (alloc_insn_link): Define.
11366 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11367 type of link variables.
11368 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11369 (try_combine, record_promoted_values, distribute_notes): Likewise.
11370 (distribute_links): Likewise. Tweak prototype.
11371 (clear_log_links): Delete.
11372 (adjust_for_new_dest): Call alloc_insn_link.
11373 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11375 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11377 * gcse.c (modify_mem_list): Convert to an array of VECs.
11378 (canon_modify_mem_list, compute_transp): Tweak formatting.
11379 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11380 (load_killed_in_block_p): Likewise.
11381 (record_last_mem_set_info): Likewise.
11382 (clear_modify_mem_tables): Likewise.
11384 2011-04-05 Tom de Vries <tom@codesourcery.com>
11386 PR middle-end/48461
11387 * function.c (emit_use_return_register_into_block): Only define if
11390 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11392 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11394 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11396 * config/rx/rx-opts.h: New.
11397 * config/rx/rx.c (rx_cpu_type): Remove.
11398 (rx_handle_option): Don't assert that global structures are in
11399 use. Access variables via opts pointer. Defer most handling of
11400 OPT_mint_register_. Use error_at.
11401 (rx_option_override): Handle deferred OPT_mint_register_ here.
11402 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11403 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11404 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11405 (rx_cpu_types): New Enum and EnumValue entries.
11406 (mint-register=): Use Defer and use Var accordingly.
11408 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11410 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11411 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11412 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11414 (debug_free_queue, debug_nesting, symbol_queue_index):
11416 * dbxout.c: ...to here. Make static.
11418 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11420 * gcse.c (modify_pair): Define. Define a VEC of it.
11421 (canon_modify_mem_list): Convert to an array of VECs.
11422 (free_insn_expr_list_list): Delete.
11423 (clear_modify_mem_tables): Call VEC_free instead.
11424 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11425 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11426 (canon_list_insert, compute_transp): Likewise.
11428 2011-04-05 Tom de Vries <tom@codesourcery.com>
11431 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11434 2011-04-05 Tom de Vries <tom@codesourcery.com>
11437 * function.c (emit_use_return_register_into_block): New function.
11438 (thread_prologue_and_epilogue_insns): Use
11439 emit_use_return_register_into_block.
11441 2011-04-05 Tom de Vries <tom@codesourcery.com>
11444 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11447 2011-04-05 Tom de Vries <tom@codesourcery.com>
11449 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11451 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11453 * config/arm/arm.md (define_constants for unspec): Replace with
11455 (define_constants for unspecv): Replace with define_c_enum.
11456 * config/arm/neon.md (define_constants for unspec): Replace with
11459 2011-04-04 Richard Henderson <rth@redhat.com>
11462 * dwarf2out.c (output_line_info): Always emit line info from
11463 at least one section.
11464 (dwarf2out_init): Create text_section_line_info here ...
11465 (set_cur_line_info_table): ... not here.
11467 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11470 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11473 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11475 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11477 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11478 (expr_equiv_p): Remove.
11479 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11480 (hash_scan_set): Update call to insert_set_in_table.
11481 (dump_hash_table): Dump <dest, src> pair.
11482 (lookup_set): Simplify. Lookup <dest, src> pair.
11483 (compute_transp): Remove, fold heavily simplified code into...
11484 (compute_local_properties): ...here. Expect COMP and TRANSP
11486 (find_avail_set): Take set directly from struct expr.
11487 (find_bypass-set): Likewise.
11488 (bypass_block): Likewise.
11489 (cprop_insn): Likewise. Remove redundant INSN_P test.
11491 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11492 checks on form of COND from find_implicit_sets to here.
11493 (find_implicit_sets): Cleanup control flow. Split critical edges
11494 if it exposes implicit sets. Allocate/resize implicit_sets as
11496 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11497 changed something. Run df_analyze after find_implicit_sets if any
11498 edges were split. Do not allocate implicit_sets here.
11500 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11501 (gcse_obstack): Renamed to cprop_obstack.
11502 (GNEW, GNEWVEC, GNEWVAR): Remove.
11504 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11505 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11506 (gcse_alloc): Likewise, and rename to cprop_alloc.
11507 (alloc_gcse_men, free_gcse_mem): Remove.
11508 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11509 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11510 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11512 * cprop.c (oprs_not_set_p): Remove.
11513 (mark_set, mark_clobber): Remove.
11514 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11515 (reg_not_set_p): New function.
11516 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11517 (cprop_insn): Likewise.
11518 (cprop_jump): Use FOR_EACH_EDGE.
11520 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11523 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11524 (rank_for_schedule): Use scheduled_insns vector instead of
11525 last_scheduled_insn.
11526 (ok_for_early_queue_removal): Likewise.
11527 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11529 (choose_ready): Likewise.
11530 (commit_schedule): Use VEC_iterate.
11531 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11532 a dbg_cnt, use it and ensure the first insn is in the ready list.
11533 (haifa_sched_init): Allocate scheduled_insns.
11534 (sched_extend_ready_list): Don't allocate it; reserve space.
11535 (haifa_sched_finish): Free it.
11537 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11539 * optc-gen.awk: Always remove type from Variable entry before
11540 recording in var_seen.
11542 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11544 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11545 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11546 call to tidy_fallthru_edges.
11548 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11550 * doc/options.texi (ToLower): Document.
11551 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11552 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11553 * opts.h (cl_option): Add cl_tolower field.
11554 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11555 arguments with lowercase strings.
11556 * config/rx/rx.opt (mcpu=): Add ToLower.
11557 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11560 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11562 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11564 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11566 * config/vax/vax.c: Include reload.h.
11568 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11570 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11571 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11572 (sparc_preferred_reload_class): New function.
11574 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11577 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11578 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11580 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11582 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11583 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11585 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11587 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11588 (ASM_OUTPUT_ALIGNED_BSS): Define.
11590 2011-04-03 Michael Matz <matz@suse.de>
11592 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11593 and next_slot members.
11594 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11595 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11596 (lto_streamer_cache_append): Declare.
11597 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11598 unsigned index, remove offset parameter, ensure that we append
11599 or update existing entries.
11600 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11601 parameter, update next_slot for append.
11602 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11604 (lto_streamer_cache_insert_at): Likewise.
11605 (lto_streamer_cache_append): New function.
11606 (lto_streamer_cache_lookup): Use unsigned index.
11607 (lto_streamer_cache_get): Likewise.
11608 (lto_record_common_node): Don't test tree_node_can_be_shared.
11609 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11610 (lto_streamer_cache_delete): Don't free offsets member.
11611 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11612 (lto_output_string_with_length): Use lto_output_data_stream.
11613 (lto_output_tree_header): Remove ix parameter, don't write it.
11614 (lto_output_builtin_tree): Likewise.
11615 (lto_write_tree): Adjust callers to above, don't track and write
11616 offset, write unsigned index.
11617 (output_unreferenced_globals): Don't emit all global vars.
11618 (write_global_references): Use unsigned indices.
11619 (lto_output_decl_state_refs): Likewise.
11620 (write_symbol): Likewise.
11621 * lto-streamer-in.c (lto_input_chain): Move earlier.
11622 (input_function): Use unsigned index.
11623 (input_alias_pairs): Don't read and then ignore all global vars.
11624 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11625 don't pass it back, use lto_streamer_cache_append.
11626 (lto_register_var_decl_in_symtab): Use unsigned index.
11627 (lto_register_function_decl_in_symtab): Likewise.
11628 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11630 (lto_get_builtin_tree): Don't read index, use
11631 lto_streamer_cache_append.
11632 (lto_read_tree): Adjust call to lto_materialize_tree.
11634 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11635 don't use function calls in arguments to MIN.
11637 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11640 * gimple.c (gimple_type_leader_entry): Mark deletable.
11642 2011-04-03 Alan Modra <amodra@gmail.com>
11644 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11646 2011-04-03 Michael Matz <matz@suse.de>
11648 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11650 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11652 2011-04-03 Michael Matz <matz@suse.de>
11654 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11655 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11656 without function context.
11657 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11658 current_function_decl and cfun.
11660 2011-04-03 Michael Matz <matz@suse.de>
11662 * tree.c (decl_init_priority_insert): Don't create entry for
11664 (decl_fini_priority_insert): Ditto.
11665 (fields_compatible_p, find_compatible_field): Remove.
11666 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11667 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11669 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11671 * combine.c (try_combine): Remove useless local variable.
11673 2011-04-03 Richard Guenther <rguenther@suse.de>
11674 Ira Rosen <ira.rosen@linaro.org>
11676 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11677 non-variable offsets and compare the remaining bases of the two
11678 accesses instead of looking for exact same data-ref.
11680 2011-04-02 Kai Tietz <ktietz@redhat.com>
11683 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11685 * i386.c (ix86_is_msabi_thiscall): New helper function.
11686 (ix86_is_type_thiscall): New helper function.
11687 (ix86_comp_type_attributes): Handle thiscall for method-functions
11689 (init_cumulative_args): Likewise.
11690 (find_drap_reg): Likewise.
11691 (ix86_static_chain): Likewise.
11692 (x86_this_parameter): Likewise.
11693 (x86_output_mi_thunk): Likewise.
11695 2011-04-01 Olivier Hainque <hainque@adacore.com>
11696 Nicolas Setton <setton@adacore.com>
11697 Eric Botcazou <ebotcazou@adacore.com>
11699 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11700 (add_gnat_descriptive_type_attribute): New function.
11701 (gen_array_type_die): Call it.
11702 (gen_enumeration_type_die): Likewise.
11703 (gen_struct_or_union_type_die): Likewise.
11704 (modified_type_die): Likewise.
11705 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11706 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11707 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11709 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11712 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11713 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11716 2011-03-17 Richard Guenther <rguenther@suse.de>
11719 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11720 origin for decls in other ltrans units.
11721 (input_varpool_node): Likewise.
11723 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11725 PR middle-end/48335
11726 * expr.c (expand_assignment): Handle all possibilities
11727 if TO_RTX is CONCAT.
11728 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11729 (store_split_bit_field): If SUBREG_REG (op0) or
11730 op0 itself has smaller mode than word, return it
11731 for offset 0 and const0_rtx for out-of-bounds stores.
11732 If word is const0_rtx, skip it.
11734 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11736 * config/h8300/h8300.c (print_operand_address): Rename to...
11737 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11738 Call h8300_print_operand and h8300_print_operand_address instead of
11739 print_operand and print_operand_address. Declare.
11740 (print_operand): Renake to...
11741 (h8300_print_operand): ...this. Make static. Adjust comments.
11742 Call h8300_print_operand instead of print_operand. Declare.
11743 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11744 (h8300_register_move_cost): Likewise.
11745 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11746 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11747 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11748 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11749 * config/h8300/h8300-protos.h (print_operand): Delete.
11750 (print_operand_address): Delete.
11752 2011-04-01 Richard Henderson <rth@redhat.com>
11755 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11756 in strict mode before dwarf4. Re-order tests to early out
11757 before switching sections.
11759 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11761 * config/h8300/constraints.md: New file.
11762 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11763 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11764 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11765 * config/h8300/predicates.md (bit_operand): Likewise.
11766 (incdec_operand): Use satisfies_constraint_M and
11767 satisfies_constraint_O. Don't use C code block.
11768 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11769 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11770 (compute_mov_length): Use satisfies_constraint_G.
11771 (fix_bit_operand): Use satisfies_constraint_U.
11772 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11773 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11774 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11775 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11776 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11777 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11778 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11779 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11780 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11781 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11782 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11783 (EXTRA_MEMORY_CONSTRAINT): Delete.
11785 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11786 Michael Meissner <meissner@linux.vnet.ibm.com>
11789 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11790 operands, as per the specifications.
11792 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11793 (vec_extract_evenv4sf): Ditto.
11794 (vec_extract_evenv8hi): Ditto.
11795 (vec_extract_evenv16qi): Ditto.
11796 (vec_extract_oddv4si): Ditto.
11798 2011-03-31 Mark Wielaard <mjw@redhat.com>
11800 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11801 high_pc attribute if the CU has no associated code. Only output
11802 DW_AT_entry_pc for CU if not generating strict dwarf and
11805 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11807 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11808 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11810 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11811 * final.c (final_start_function): Call the new function rather
11812 than using a NULL argument for dwarf2out_frame_debug.
11814 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11815 that contains the prologue.
11817 * haifa-sched.c (queue_insn): New arg REASON. All callers
11818 changed. Print it in debugging output.
11820 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11822 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11823 Split most of the code into...
11824 (begin_move_insn): ... here. New function.
11825 (ebb_sched_info): Add a pointer to it.
11826 * haifa-sched.c (scheduled_insns): New static variable.
11827 (sched_extend_ready_list): Allocate it.
11828 (schedule_block): Use it to record the order of scheduled insns.
11829 Perform RTL changes to move insns only after all scheduling
11830 decisions have been made.
11831 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11832 begin_move_insn field.
11833 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11834 * sched-int.h (struct haifa_sched_info): Remove second argument
11835 from begin_schedule_ready hook. Add new member begin_move_insn.
11836 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11837 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11839 * haifa-sched.c (prune_ready_list): New function, broken out of
11841 (schedule_block): Use it.
11843 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11845 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11847 2011-04-01 Kai Tietz <ktietz@redhat.com>
11849 * config.gcc (*-*-mingw*): Allow as option the
11850 posix threading model.
11851 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11852 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11854 (CPP_SPEC): Add pthread/no-pthread handling.
11855 (LIB_SPEC): Likewise.
11856 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11857 (LIB_SPEC): Likewise.
11858 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11859 flag to pass -pthread option for shared libgcc build.
11860 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11861 for shared libgcc build.
11862 * config/i386/t-mingw-pthread: New file.
11863 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11864 New define to enable use of library pthread by default.
11865 * config/i386/mingw.opt (pthread): New driver option.
11866 (no-pthread): New driver option.
11867 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11868 * config/i386/mingw-w64.opt: Likewise.
11870 2011-04-01 Gary Funck <gary@intrepid.com>
11872 * c-decl.c (grokdeclarator): Fix formatting.
11874 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11876 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11877 instead of n_operands.
11878 (set_storage_via_setmem): Likewise.
11879 * optabs.c (maybe_gen_insn): Likewise.
11880 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11881 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11882 (mips_expand_builtin_direct): Likewise.
11883 * config/spu/spu.c (expand_builtin_args): Likewise.
11885 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11887 * recog.h (insn_data_d): Add n_generator_args.
11888 * genoutput.c (data): Likewise.
11889 (output_insn_data): Print it.
11890 (max_opno, num_dups): Delete.
11891 (scan_operands): Just fill in "d->operand[...]".
11892 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11894 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11896 * gensupport.h (pattern_stats): New structure.
11897 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11898 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11899 (max_operand_1, max_operand_vec): Delete.
11900 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11902 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11904 * emit-rtl.c (emit_pattern_after_setloc): New function.
11905 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11906 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11907 (emit_pattern_after): New function.
11908 (emit_insn_after, emit_jump_insn_after): Call it.
11909 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11910 (emit_pattern_before_setloc): New function.
11911 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11912 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11914 (emit_pattern_before): New function.
11915 (emit_insn_before, emit_jump_insn_before): Call it.
11916 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11918 2011-03-31 Richard Henderson <rth@redhat.com>
11920 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11921 (dw_separate_line_info_entry): Remove.
11922 (enum dw_line_info_opcode): New.
11923 (dw_line_info_entry): Use it.
11924 (dw_line_info_table, dw_line_info_table_p): New.
11925 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11926 (line_info_table, line_info_label_num): Remove.
11927 (line_info_table_in_use): Remove.
11928 (separate_line_info_table): Remove.
11929 (separate_line_info_table_allocated): Remove.
11930 (separate_line_info_table_in_use): Remove.
11931 (LINE_INFO_TABLE_INCREMENT): Remove.
11932 (line_info_label_num): New.
11933 (cur_line_info_table): New.
11934 (text_section_line_info, cold_text_section_line_info): New.
11935 (separate_line_info): New.
11936 (SEPARATE_LINE_CODE_LABEL): Remove.
11937 (print_dwarf_line_table): Remove.
11938 (debug_dwarf): Don't dump it.
11939 (output_one_line_info_table): New.
11940 (output_line_info): Use it.
11941 (new_line_info_table): New.
11942 (set_cur_line_info_table): New.
11943 (dwarf2out_switch_text_section): Use it.
11944 (dwarf2out_begin_function): Likewise.
11945 (push_dw_line_info_entry): New.
11946 (dwarf2out_source_line): Rewrite for new line info tables.
11947 (dwarf2out_init): Remove dead initailizations.
11949 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11951 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11953 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11954 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11955 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11956 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11957 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11958 * opt-functions.awk (flag_init, switch_bit_fields): New.
11959 (switch_flags): Don't handle flags moved to bit-fields. Don't
11960 generate CL_MISSING_OK or CL_SAVE.
11961 * optc-gen.awk: Update to generate bit-field output as well as
11963 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11964 bit-field instead of CL_REJECT_DRIVER flag.
11965 * opts-common.c (generate_canonical_option,
11966 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11967 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11968 instead of CL_REJECT_NEGATIVE flag.
11969 * toplev.c (print_switch_values): Use cl_report bit-field instead
11972 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11974 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11975 a zero minimum index only if it is redundant.
11977 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11979 PR rtl-optimization/48381
11980 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11981 instead of ira_class_hard_reg_index for calculating conflicting
11984 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11986 * cprop.c: Clean up hash table building.
11987 (reg_avail_info): Remove.
11988 (oprs_available_p): Remove.
11989 (record_last_reg_set_info): Remove.
11990 (record_last_set_info): Remove.
11991 (reg_available_p): New function.
11992 (gcse_constant_p): Do not treat unfolded conditions as constants.
11993 (make_set_regs_unavailable): New function.
11994 (hash_scan_set): Simplify with new reg_available_p.
11995 (compute_hash_table_work): Traverse insns stream only once.
11996 Do not compute reg_avail_info. Traverse insns in reverse order.
11997 Record implicit sets after recording explicit sets from the block.
11999 2011-03-31 Michael Matz <matz@suse.de>
12001 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12003 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12005 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12006 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12007 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12008 (h8300_mode_dependent_address_p): New function.
12009 (h8300_get_index): Make static.
12011 2011-03-31 Jeff Law <law@redhat.com>
12013 * reload1.c (elimination_effects): Fix typo in recent change.
12015 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12016 typo potentially leading to null pointer dereference.
12018 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12019 (setup_save_areas): Corresponding changes to avoid useless
12022 * jump.c (reversed_comparison_code_parts): Avoid successive return
12023 statements when REVERSE_CONDITION is defined.
12025 * expr.c (expand_assignment): Avoid useless assignments.
12026 (expand_expr_real_1): Likewise.
12027 (expand_expr_real_2): Avoid useless statements.
12029 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12031 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12033 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12036 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12038 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12041 * doc/tm.texi.in (TARGET_VERSION): Remove.
12042 * doc/tm.texi: Regenerate.
12043 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12044 * collect2.c (main): Don't use TARGET_VERSION.
12045 * mips-tdump.c (main): Don't use TARGET_VERSION.
12046 * mips-tfile.c (main): Don't use TARGET_VERSION.
12047 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12048 * config/rs6000/vxworksae.h: Remove.
12049 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12050 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12051 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12052 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12053 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12054 * config/arm/arm.h (TARGET_VERSION): Remove.
12055 * config/arm/coff.h (TARGET_VERSION): Remove.
12056 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12057 * config/arm/elf.h (TARGET_VERSION): Remove.
12058 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12059 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12060 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12061 * config/arm/pe.h (TARGET_VERSION): Remove.
12062 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12063 * config/arm/semi.h (TARGET_VERSION): Remove.
12064 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12065 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12066 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12067 * config/avr/avr.h (TARGET_VERSION): Remove.
12068 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12069 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12070 * config/frv/frv.h (TARGET_VERSION): Remove.
12071 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12072 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12073 * config/i386/darwin.h (TARGET_VERSION): Remove.
12074 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12075 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12076 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12077 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12078 * config/i386/gnu.h (TARGET_VERSION): Remove.
12079 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12080 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12081 * config/i386/linux.h (TARGET_VERSION): Remove.
12082 * config/i386/linux64.h (TARGET_VERSION): Remove.
12083 * config/i386/lynx.h (TARGET_VERSION): Remove.
12084 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12085 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12086 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12087 * config/i386/netware.h (TARGET_VERSION): Remove.
12088 * config/i386/nto.h (TARGET_VERSION): Remove.
12089 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12090 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12091 * config/ia64/elf.h (TARGET_VERSION): Remove.
12092 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12093 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12094 * config/ia64/linux.h (TARGET_VERSION): Remove.
12095 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12096 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12097 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12098 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12099 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12100 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12101 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12102 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12103 * config/m68k/linux.h (TARGET_VERSION): Remove.
12104 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12105 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12106 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12107 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12108 * config/mep/mep.h (TARGET_VERSION): Remove.
12109 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12110 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12111 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12112 * config/mips/linux.h (TARGET_VERSION): Remove.
12113 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12114 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12115 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12116 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12117 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12118 * config/pa/pa.h (TARGET_VERSION): Remove.
12119 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12120 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12121 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12122 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12123 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12124 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12125 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12126 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12127 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12128 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12129 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12130 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12131 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12132 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12133 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12134 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12135 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12136 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12137 * config/s390/linux.h (TARGET_VERSION): Remove.
12138 * config/s390/s390.h (TARGET_VERSION): Remove.
12139 * config/s390/tpf.h (TARGET_VERSION): Remove.
12140 * config/score/score.h (TARGET_VERSION): Remove.
12141 * config/sh/linux.h (TARGET_VERSION): Remove.
12142 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12143 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12144 * config/sh/sh.h (TARGET_VERSION): Remove.
12145 * config/sh/sh64.h (TARGET_VERSION): Remove.
12146 * config/sh/superh.h (TARGET_VERSION): Remove.
12147 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12148 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12149 * config/sparc/linux.h (TARGET_VERSION): Remove.
12150 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12151 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12152 TARGET_NAME32, TARGET_NAME): Remove.
12153 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12154 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12155 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12156 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12157 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12158 * config/spu/spu.h (TARGET_VERSION): Remove.
12159 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12160 * config/v850/v850.h (TARGET_VERSION): Remove.
12161 * config/vax/linux.h (TARGET_VERSION): Remove.
12162 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12163 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12164 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12166 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12169 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12170 frame-related from frame-unrelated adjustments to the stack pointer.
12172 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12174 * common.opt (fdebug-types-section): Move earlier.
12175 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12177 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12179 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12182 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12184 * tree.h (CASE_CHAIN): Define.
12185 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12186 (gimple_redirect_edge_and_branch): Likewise.
12188 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12190 PR middle-end/48367
12191 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12194 2011-03-30 Jeff Law <law@redhat.com>
12196 * PR bootstrap/48371
12197 * reload1.c (reload): Fix botch in last change.
12199 * reload.h (struct reload): Fix typo introduced in last change.
12201 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12203 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12204 Undocumented. Remove help text.
12205 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12208 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12210 * doc/options.texi (NegativeAlias): Document.
12211 (Alias): Mention NegativeAlias.
12212 * opt-functions.awk: Handle NegativeAlias.
12213 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12214 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12215 * opts.h (CL_NEGATIVE_ALIAS): Define.
12216 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12217 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12219 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12221 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12222 mno-spe and mno-isel instead of mspe=no and -misel=no.
12224 2011-03-29 Mark Wielaard <mjw@redhat.com>
12226 * common.opt (fdebug-types-section): New flag.
12227 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12228 * dwarf2out.c (use_debug_types): New define.
12229 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12230 (print_die): Guard output of type unit signatures using
12232 (build_abbrev_table): Replace assert of dwarf_version >= 4
12233 with assert on use_debug_types.
12234 (size_of_die): Likewise.
12235 (unmark_dies): Likewise.
12236 (value_format): Decide AT_ref_external form on use_debug_types.
12237 (output_die): Replace dwarf_version version check guard with
12238 use_debug_types where appropriate.
12239 (modified_type_die): Likewise.
12240 (gen_reference_type_die): Likewise.
12241 (dwarf2out_start_source_file): Likewise.
12242 (dwarf2out_end_source_file): Likewise.
12243 (prune_unused_types_walk_attribs): Likewise.
12244 (dwarf2out_finish): Likewise.
12246 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12248 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12250 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12252 PR rtl-optimization/48332
12253 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12254 mode of input operand N and modeN to its actual mode.
12256 2011-03-30 Jeff Law <law@redhat.com>
12258 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12259 define accessor macro.
12260 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12261 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12262 (reg_equiv_init): Likewise.
12263 (reg_equivs_size): New variable.
12264 (reg_equiv_init_size): Remove.
12265 (allocate_initial_values): Move prototype to here from....
12266 * integrate.h (allocate_initial_values): Remove prototype.
12267 * integrate.c: Include reload.h.
12268 (allocate_initial_values): Corresponding changes.
12269 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12270 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12271 (update_equiv_regs): Corresponding changes.
12272 (ira): Corresponding changes.
12273 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12274 (push_secondary_reload): Corresponding changes.
12275 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12276 (make_memloc, find_reloads_address): Corresponding changes.
12277 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12278 (find_reloads_address_1): Corresponding changes.
12279 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12280 (refers_to_regno_for_reload_p): Corresponding changes.
12281 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12282 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12283 * reload1.c: Include ggc.h.
12284 (grow_reg_equivs): New function.
12285 (replace_pseudos_in, reload): Corresponding changes.
12286 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12287 (eliminate_regs_1, elimination_effects): Corresponding changes.
12288 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12289 (delete_output_reload): Likewise.
12290 * caller-save.c (mark_referenced_regs): Corresponding changes.
12291 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12292 * frv/predicates.md (frv_load_operand): Corresponding changes.
12293 * microblaze/microblaze.c (double_memory_operand): Corresponding
12295 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12296 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12297 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12298 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12299 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12301 * pa/pa.c (emit_move_sequence): Corresponding changes.
12302 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12304 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12307 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12308 structure modes. Don't check neon_vector_mem_operand for
12309 vector or structure modes.
12311 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12312 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12315 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12316 operand 1 and reshuffle the operands to match.
12317 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12319 2011-03-30 Christian Schüler <cschueler@gmx.de>
12322 * config/c.opt (F): Added 'Driver' to -F option.
12325 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12327 * config/darwin.opt: Added '-arch' option.
12329 2011-03-30 Nick Clifton <nickc@redhat.com>
12331 * config/rx/rx.md: Add peepholes and patterns to combine
12332 extending loads and simple arithmetic instructions.
12333 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12334 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12335 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12336 modes to use pre-decrement and post-increment addressing.
12337 (rx_is_restricted_memory_address): Add range checking of REG+INT
12339 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12340 (rx_memory_move_cost): Adjust cost of stores.
12341 (rx_adjust_insn_length): New function.
12343 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12346 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12347 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12348 matching arg00/arg01 types.
12350 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12352 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12353 last_location to UNKNOWN_LOCATION.
12355 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12358 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12361 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12362 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12365 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12366 Init(PROCESSOR_V7).
12367 (sparc_cpu): Likewise.
12368 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12371 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12374 PR middle-end/48342
12375 PR rtl-optimization/48345
12376 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12377 hard regs for given mode from profitable regs when doing secondary
12380 2011-03-29 Jeff Law <law@redhat.com>
12383 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12384 do_not_duplicate field.
12385 (lookup_redirection_data): Corresponding changes.
12386 (create_duplicates): Always create a template block.
12387 (redirect_edges): Remove code which reused the original block
12388 when it was going to become unreachable code.
12389 (thread_block): Don't set do_not_duplicate field.
12391 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12393 * lto-opts.c (register_user_option_p, lto_register_user_option):
12394 Make type argument unsigned.
12395 * lto-streamer.h (lto_register_user_option): Make type argument
12397 * opth-gen.awk: Make CL_* macros unsigned.
12398 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12399 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12400 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12401 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12402 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12403 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12404 (find_opt): Make lang_mask argument unsigned.
12406 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12408 PR rtl-optimization/48331
12409 PR rtl-optimization/48334
12410 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12411 for any used algorithm.
12413 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12415 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12418 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12420 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12421 (alpha_option_override): Don't set alpha_sr_alias_set.
12422 (emit_frame_store_1): Use gen_frame_mem rather than calling
12424 (alpha_expand_epilogue): Ditto.
12426 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12428 PR tree-optimization/48290
12429 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12430 vectorization, check that relevant phis in the basic block after
12431 the inner loop are really inner loop's exit phis.
12433 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12436 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12437 (cached_dw_loc_list_def): New structure.
12438 (cached_dw_loc_list): New typedef.
12439 (cached_dw_loc_list_table): New variable.
12440 (cached_dw_loc_list_table_hash): New function.
12441 (cached_dw_loc_list_table_eq): Likewise.
12442 (add_location_or_const_value_attribute): Take a bool cache_p.
12443 Cache the list when the parameter is true.
12444 (gen_formal_parameter_die): Update caller.
12445 (gen_variable_die): Likewise.
12446 (dwarf2out_finish): Likewise.
12447 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12448 while generating debug info for the decl.
12449 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12450 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12451 (resolve_addr): Cache the result of resolving a chain of
12454 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12456 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12457 conflict object hard regset nodes have intersecting hard reg sets.
12459 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12460 after regstat_init_n_sets_and_refs.
12462 * ira.c: Add more comments at the top.
12463 (setup_stack_reg_pressure_class, setup_pressure_classes):
12464 Add comments how we compute the register pressure classes.
12465 (setup_allocno_and_important_classes): Add more comments.
12466 (setup_class_translate_array, reorder_important_classes)
12467 (setup_reg_class_relations): Add comments.
12469 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12472 * ira-color.c: Add 2011 to the Copyright line.
12473 (assign_hard_reg): Add more comments.
12474 (improve_allocation): Ditto.
12476 * ira-costs.c: Add 2011 to the Copyright line.
12477 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12479 (setup_regno_cost_classes_by_mode): Ditto.
12481 Initial patches from ira-improv branch:
12483 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12485 * ira-build.c (ira_create_object): Remove initialization of
12486 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12487 (ira_create_allocno): Remove initialization of
12488 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12489 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12490 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12491 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12492 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12493 Initialize ALLOCNO_ADD_DATA.
12494 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12495 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12497 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12498 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12500 * ira.c (ira_reallocate): Remove.
12501 (setup_pressure_classes): Call
12502 ira_init_register_move_cost_if_necessary. Use
12503 ira_register_move_cost instead of ira_get_register_move_cost.
12504 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12505 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12507 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12508 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12509 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12510 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12511 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12512 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12514 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12515 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12516 (struct allocno_color_data): New.
12517 (allocno_color_data_t): New typedef.
12518 (allocno_color_data): New definition.
12519 (ALLOCNO_COLOR_DATA): New macro.
12520 (struct object_color_data): New.
12521 (object_color_data_t): New typedef.
12522 (object_color_data): New definition.
12523 (OBJECT_COLOR_DATA): New macro.
12524 (update_copy_costs, calculate_allocno_spill_cost): Call
12525 ira_init_register_move_cost_if_necessary. Use
12526 ira_register_move_cost instead of ira_get_register_move_cost.
12527 (move_spill_restore, update_curr_costs): Ditto.
12528 (allocno_spill_priority): Make it inline.
12529 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12530 (struct coalesce_data, coalesce_data_t): New.
12531 (allocno_coalesce_data): New definition.
12532 (ALLOCNO_COALESCE_DATA): New macro.
12533 (merge_allocnos, coalesced_allocno_conflict_p): Use
12534 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12535 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12536 (coalesce_allocnos): Ditto.
12537 (setup_coalesced_allocno_costs_and_nums): Ditto.
12538 (collect_spilled_coalesced_allocnos): Ditto.
12539 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12540 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12541 (coalesce_spill_slots): Ditto.
12542 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12543 free allocno_coalesce_data.
12545 * ira-conflicts.c: Fix formatting.
12546 (process_regs_for_copy): Call
12547 ira_init_register_move_cost_if_necessary. Use
12548 ira_register_move_cost instead of ira_get_register_move_cost.
12549 (build_object_conflicts): Optimize.
12551 * ira-costs.c (record_reg_classes): Optimize. Call
12552 ira_init_register_move_cost_if_necessary. Use
12553 ira_register_move_cost, ira_may_move_in_cost, and
12554 ira_may_move_out_cost instead of ira_get_register_move_cost and
12555 ira_get_may_move_cost.
12556 (record_address_regs): Ditto.
12557 (scan_one_insn): Optimize.
12558 (find_costs_and_classes): Optimize.
12559 (process_bb_node_for_hard_reg_moves): Call
12560 ira_init_register_move_cost_if_necessary. Use
12561 ira_register_move_cost instead of ira_get_register_move_cost.
12563 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12564 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12565 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12566 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12568 (ira_initiate_emit_data, ira_finish_emit_data)
12569 (create_new_allocno): New functions.
12570 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12571 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12572 Use ira_register_move_cost instead of ira_get_register_move_cost.
12574 * ira-int.h: Fix some comments.
12575 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12576 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12577 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12578 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12580 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12581 bitfield after mode. Make hard_regno a short int. Make
12582 hard_regno short. Remove first_coalesced_allocno and
12583 next_coalesced_allocno. Move mem_optimized_dest_p,
12584 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12585 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12586 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12587 temp, colorable_p. Add new member add_data.
12588 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12589 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12590 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12591 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12592 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12593 (ALLOCNO_ADD_DATA): New macro.
12594 (ira_emit_data_t): New typedef.
12595 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12596 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12597 from struct ira_allocno.
12598 (ALLOCNO_EMIT_DATA): New macro.
12599 (ira_allocno_emit_data, allocno_emit_reg): New.
12600 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12601 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12602 (OBJECT_ADD_DATA): New macro.
12603 (ira_reallocate): Remove.
12604 (ira_initiate_emit_data, ira_finish_emit_data): New.
12605 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12606 (ira_init_register_move_cost_if_necessary): New.
12607 (ira_object_conflict_iter_next): Merge into
12608 ira_object_conflict_iter_cond.
12609 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12611 * ira-live.c (process_single_reg_class_operands): Call
12612 ira_init_register_move_cost_if_necessary. Use
12613 ira_register_move_cost instead of ira_get_register_move_cost.
12615 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12617 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12619 * ira-costs.c: Fix formatting.
12620 (cost_classes, cost_classes_num): Remove.
12621 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12622 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12623 (cost_classes_del, cost_classes_htab): New.
12624 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12625 (initiate_regno_cost_classes, setup_cost_classes): New.
12626 (setup_regno_cost_classes_by_aclass): New.
12627 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12628 (record_reg_classes): Use regno_cost_classes instead of
12629 cost_classes. Move checking opposite operand up.
12630 (record_address_regs): Use regno_cost_classes
12631 instead of cost_classes.
12632 (scan_one_insn): Ditto. Use always general register.
12633 (print_allocno_costs): Use regno_cost_classes instead of
12635 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12636 (find_costs_and_classes): Set up cost classes for each registers.
12637 Use also their mode for this. Use regno_cost_classes instead of
12639 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12641 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12642 (ira_costs, ira_set_pseudo_classes): Call
12643 initiate_regno_cost_classes and finish_regno_cost_classes.
12645 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12647 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12649 * target.def (ira_cover_classes): Remove.
12651 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12653 * doc/tm.texi.in: Ditto.
12655 * ira-conflicts.c: Remove mentioning cover classes from the file.
12656 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12657 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12659 * targhooks.c (default_ira_cover_classes): Remove.
12661 * targhooks.h (default_ira_cover_classes): Ditto.
12663 * haifa-sched.c: Remove mentioning cover classes from the file.
12664 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12665 ira_pressure_classes and ira_pressure_classes_num instead of
12666 ira_reg_class_cover_size and ira_reg_class_cover. Use
12667 sched_regno_pressure_class instead of sched_regno_cover_class.
12668 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12669 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12671 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12672 classes from the file.
12673 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12674 (struct object_hard_regs, struct object_hard_regs_node): New.
12675 (struct ira_object): New members profitable_hard_regs,
12676 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12677 (struct ira_allocno): Rename cover_class to aclass. Rename
12678 cover_class_cost and updated_cover_class_cost to class_cost and
12679 updated_class_cost. Remove splay_removed_p and
12680 left_conflict_size. Add new members colorable_p.
12681 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12682 (ALLOCNO_COLORABLE_P): New macro.
12683 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12684 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12685 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12686 (OBJECT_...): Rename parameter C to O.
12687 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12688 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12689 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12690 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12691 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12692 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12693 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12694 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12695 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12696 x_ira_reg_class_subunion.
12697 (ira_max_memory_move_cost, ira_max_register_move_cost)
12698 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12699 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12700 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12701 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12702 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12703 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12704 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12705 (ira_tune_allocno_costs_and_cover_classes): Rename to
12706 ira_tune_allocno_costs.
12707 (ira_debug_hard_regs_forest): New.
12708 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12709 (ira_object_conflict_iter_next): Fix comments.
12710 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12711 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12712 cover_class to aclass.
12713 (ira_allocate_and_accumulate_costs): Ditto.
12714 (ira_allocate_and_set_or_copy_costs): Ditto.
12716 * opts.c (decode_options): Remove ira_cover_class check.
12718 * ira-color.c: Remove mentioning cover classes from the file. Use
12719 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12720 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12721 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12722 (splay-tree.h): Remove include.
12723 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12724 before copy_freq_compare_func.
12725 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12726 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12728 (hard_regs_roots, hard_regs_node_vec): Ditto.
12729 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12730 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12731 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12732 (create_new_object_hard_regs_node): Ditto.
12733 (add_new_object_hard_regs_node_to_forest): Ditto.
12734 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12735 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12737 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12738 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12739 (remove_unused_object_hard_regs_nodes): Ditto.
12740 (enumerate_object_hard_regs_nodes): Ditto.
12741 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12742 (object_hard_regs_subnode_t): Ditto.
12743 (struct object_hard_regs_subnode): Ditto.
12744 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12745 (setup_object_hard_regs_subnode_index): Ditto.
12746 (get_object_hard_regs_subnodes_num): Ditto.
12747 (form_object_hard_regs_nodes_forest): Ditto.
12748 (finish_object_hard_regs_nodes_tree): Ditto.
12749 (finish_object_hard_regs_nodes_forest): Ditto.
12750 (allocnos_have_intersected_live_ranges_p): Rename to
12751 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12752 (pseudos_have_intersected_live_ranges_p): Rename to
12753 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12754 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12755 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12756 (update_copy_costs): Remove assert. Skip cost update if the hard
12757 reg does not belong the class.
12758 (assign_hard_reg): Process only profitable hard regs.
12759 (uncolorable_allocnos_num): Make it scalar.
12760 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12761 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12762 and ira_reg_class_max_nregs.
12763 (bucket_allocno_compare_func): Check frequency first.
12764 (sort_bucket): Add compare function as a parameter.
12765 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12766 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12767 (push_allocno_to_stack): Rewrite for checking new allocno
12769 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12770 (push_only_colorable): Pass new parameter to sort_bucket.
12771 (push_allocno_to_spill): Remove.
12772 (allocno_spill_priority_compare): Make it inline and rewrite.
12773 (splay_tree_allocate, splay_tree_free): Remove.
12774 (allocno_spill_sort_compare): New function.
12775 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12776 build and use splay tree. Choose first allocno in uncolorable
12777 allocno bucket to spill. Remove setting spill cost.
12778 (all_conflicting_hard_regs): Remove.
12779 (setup_allocno_available_regs_num): Check only profitable hard
12780 regs. Print info about hard regs nodes.
12781 (setup_allocno_left_conflicts_size): Remove.
12782 (put_allocno_into_bucket): Don't call
12783 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12784 (improve_allocation): New.
12785 (color_allocnos): Call setup_profitable_hard_regs,
12786 form_object_hard_regs_nodes_forest, improve_allocation,
12787 finish_object_hard_regs_nodes_forest. Setup spill cost.
12788 (print_loop_title): Use pressure classes.
12789 (color_allocnso): Ditto.
12790 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12791 and allocnos_for_spilling.
12792 (ira_sort_regnos_for_alter_reg): Don't setup members
12793 {first,next}_coalesced_allocno.
12794 (color): Remove allocating and freeing removed_splay_allocno_vec.
12795 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12796 prohibited_class_mode_regs.
12798 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12800 (update_allocno_pressure_excess_length): Use pressure classes.
12801 (inc_register_pressure, dec_register_pressure): Check for pressure
12803 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12804 pressure class. Use ira_reg_class_nregs instead of
12805 ira_reg_class_max_nregs.
12806 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12807 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12808 (single_reg_class): Use ira_reg_class_nregs instead of
12809 ira_reg_class_max_nregs.
12810 (process_bb_node_lives): Use pressure classes.
12812 * ira-emit.c: Remove mentioning cover classes from the file. Use
12813 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12814 (change_loop): Use pressure classes.
12815 (modify_move_list): Call ira_set_allocno_class instead of
12816 ira_set_allocno_cover_class.
12818 * ira-build.c: Remove mentioning cover classes from the file. Use
12819 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12820 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12821 ALLOCNO_UPDATED_CLASS_COST instead of
12822 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12823 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12824 (ira_create_allocno): Remove initialization of
12825 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12826 ALLOCNO_COLORABLE_P.
12827 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12828 Update conflict regs for the objects.
12829 (create_cap_allocno): Remove assert. Don't propagate
12830 ALLOCNO_AVAILABLE_REGS_NUM.
12831 (ira_free_allocno_costs): New function.
12832 (finish_allocno): Change a part of code into call of
12833 ira_free_allocno_costs.
12834 (low_pressure_loop_node_p): Use pressure classes.
12835 (object_range_compare_func): Don't compare classes.
12836 (setup_min_max_conflict_allocno_ids): Ditto.
12838 * loop-invariant.c: Remove mentioning cover classes from the file.
12839 Use ira_pressure_classes and ira_pressure_classes_num instead of
12840 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12841 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12842 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12843 Use reg_allocno_class instead of reg_cover_class.
12844 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12845 STACK_REG_COVER_CLASS.
12846 (get_regno_cover_class): Rename to get_regno_pressure_class.
12847 (move_loop_invariants): Initialize and finalize regstat.
12849 * ira.c: Remove mentioning cover classes from the file. Add
12850 comments about coloring without cover classes. Use ALLOCNO_CLASS
12851 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12852 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12853 setup_class_subset_and_memory_move_costs.
12854 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12855 (setup_cover_and_important_classes): Rename to
12856 setup_allocno_and_important_classes.
12857 (setup_class_translate_array): New.
12858 (setup_class_translate): Call it for allocno and pressure classes.
12859 (cover_class_order): Rename to allocno_class_order.
12860 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12861 of ira_class_translate.
12862 (reorder_important_classes): Set up ira_important_class_nums.
12863 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12864 (print_class_cover): Rename to print_classes. Add parameter.
12865 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12866 Print pressure classes too.
12867 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12868 setup_reg_subclasses.
12869 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12870 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12871 (setup_prohibited_class_mode_regs): Use
12872 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12873 (clarify_prohibited_class_mode_regs): New function.
12874 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12875 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12876 (ira_init_once): Initialize them.
12877 (free_register_move_costs): Process them.
12878 (ira_init): Move calls of find_reg_classes and
12879 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12880 Call clarify_prohibited_class_mode_regs.
12881 (ira_no_alloc_reg): Remove.
12882 (too_high_register_pressure_p): Use pressure classes.
12884 * sched-deps.c: Remove mentioning cover classes from the file.
12885 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12886 ira_pressure_classes and ira_pressure_classes_num instead of
12887 ira_reg_class_cover_size and ira_reg_class_cover.
12888 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12889 sched_regno_pressure_class instead of sched_regno_cover_class.
12890 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12891 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12893 * ira.h: Add 2010 to Copyright.
12894 (ira_no_alloc_reg): Remove external.
12895 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12896 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12897 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12898 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12899 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12900 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12901 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12902 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12903 x_ira_no_alloc_regs.
12904 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12905 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12906 ira_allocno_classes_num and ira_allocno_classes.
12907 (ira_class_translate): Rename to ira_allocno_class_translate.
12908 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12909 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12910 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12911 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12912 (ira_no_alloc_regs): New.
12914 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12915 classes from the file. Use ALLOCNO_CLASS instead of
12916 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12917 ALLOCNO_COVER_CLASS_COST.
12918 (regno_cover_class): Rename to regno_aclass.
12919 (record_reg_classes): Use ira_reg_class_subunion instead of
12920 ira_reg_class_union.
12921 (record_address_regs): Check overflow.
12922 (scan_one_insn): Ditto.
12923 (print_allocno_costs): Print total mem cost fore regional allocation.
12924 (print_pseudo_costs): Use REG_N_REFS.
12925 (find_costs_and_classes): Use classes intersected with them on the
12926 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12927 ira_reg_class_union. Use ira_allocno_class_translate and
12928 regno_aclass instead of ira_class_translate and regno_cover_class.
12929 Modify code for finding regno_aclass. Setup preferred classes for
12931 (setup_allocno_cover_class_and_costs): Rename to
12932 setup_allocno_class_and_costs. Use regno_aclass instead of
12933 regno_cover_class. Use ira_set_allocno_class instead of
12934 ira_set_allocno_cover_class.
12935 (init_costs, finish_costs): Use regno_aclass instead of
12937 (ira_costs): Use setup_allocno_class_and_costs instead of
12938 setup_allocno_cover_class_and_costs.
12939 (ira_tune_allocno_costs_and_cover_classes): Rename to
12940 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12941 by processing objects. Use ira_reg_class_max_nregs instead of
12942 ira_reg_class_nregs.
12944 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12946 * sched-int.h: Remove mentioning cover classes from the file.
12947 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12949 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12950 classes from the file.
12951 (struct reg_pref): Rename coverclass into allocnoclass.
12952 (reg_cover_class): Rename to reg_allocno_class.
12954 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12956 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12958 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12960 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12962 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12964 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12966 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12968 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12970 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12972 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12974 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12975 (i386_ira_cover_classes): Ditto.
12977 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12979 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12981 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12983 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12985 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12987 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12989 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12990 (mips_ira_cover_classes): Ditto.
12992 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12994 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12996 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12998 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13000 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13002 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13003 (IRA_COVER_CLASSES_VSX): Ditto.
13005 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13006 (rs6000_ira_cover_classes): Ditto.
13008 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13010 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13012 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13014 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13016 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13018 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13020 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13022 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13024 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13026 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13028 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13031 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13032 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13033 dw_fde_unlikely_section_end_label, cold_in_std_section,
13034 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13035 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13037 (output_fde): Use dw_fde_second_{begin,end} if second is
13038 true, otherwise dw_fde_{begin,end}.
13039 (output_call_frame_info): Test dw_fde_second_begin != NULL
13040 instead of dw_fde_switched_sections.
13041 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13042 fields, initialize new fields. Initialize in_std_section
13043 unconditionally from the first partition.
13044 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13045 dw_fde_second_begin is non-NULL.
13046 (dwarf2out_switch_text_section): Stop initializing removed
13047 dw_fde_struct fields, initialize new fields, initialize
13048 also dw_fde_end here. Set dw_fde_switch_cfi even when
13049 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13050 (struct var_loc_list_def): Add last_before_switch field.
13051 (arange_table, arange_table_allocated, arange_table_in_use,
13052 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13053 (size_of_aranges): Count !in_std_section and !second_in_std_section
13054 hunks in fdes, instead of looking at arange_table_in_use.
13055 (output_aranges): Add aranges_length argument, don't call
13056 size_of_aranges here. Instead of using aranges_table*
13057 emit ranges for fdes when !in_std_section resp.
13058 !second_in_std_section.
13059 (dw_loc_list): Break ranges crossing section switch.
13060 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13061 use dw_fde_second_end instead of dw_fde_end as end of last range.
13062 (gen_subprogram_die): Don't call add_arange. Use
13063 dw_fde_{begin,end} for first partition and if switched
13064 section dw_fde_second_{begin,end} for the second.
13065 (var_location_switch_text_section_1,
13066 var_location_switch_text_section): New functions.
13067 (dwarf2out_begin_function): Initialize cold_text_section even
13068 when function_section () isn't text_section.
13069 (prune_unused_types): Don't walk arange_table.
13070 (dwarf2out_finish): Don't needlessly test
13071 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13072 If info_section_emitted, call size_of_aranges and if it indicates
13073 non-empty .debug_aranges, call output_aranges with the computed
13074 size. Stop using removed dw_fde_struct fields, use
13075 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13079 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13080 create ENTRY_VALUE if incoming or address of incoming's MEM
13082 * dwarf2out.c (mem_loc_descriptor): Don't emit
13083 DW_OP_GNU_entry_value of DW_OP_fbreg.
13084 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13085 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13086 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13087 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13089 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13090 is a REG_P or MEM_P with REG_P address, compute hash directly
13091 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13092 (preserve_only_constants): Don't clear VALUES forwaring
13093 ENTRY_VALUE to some other VALUE.
13095 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13097 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13098 instead of GEN_INT.
13100 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13102 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13103 block before expanding the statement.
13104 (expand_gimple_stmt_1): Likewise. Set them here...
13105 (expand_gimple_stmt): ...and not here. Tidy.
13106 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13109 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13111 * Makefile.in: New rule for cprop.o.
13112 * gcse.c: Move constant/copy propagation to cprop.c.
13113 (compute_local_properties): Only handle expression tables.
13114 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13115 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13116 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13117 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13118 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13119 compute_cprop_data, find_used_regs, try_replace_reg,
13120 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13121 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13122 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13123 find_bypass_set, reg_killed_on_edge, bypass_block,
13124 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13125 execute_rtl_cprop, pass_rtl_cprop): Move to...
13126 * cprop.c: ...here. New file, constant/copy propagation for RTL
13127 moved from gcse.c to here with minor cleanups in duplicated code.
13129 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13131 * config/i386/i386.c (flag_opts): Fix a typo in
13132 -mavx256-split-unaligned-store.
13134 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13136 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13137 LIBCALL_VALUE): Remove macros.
13138 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13139 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13140 (h8300_function_value, h8300_libcall_value,
13141 h8300_function_value_regno_p): New functions.
13143 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13145 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13147 2011-03-28 Jeff Law <law@redhat.com>
13149 * tree-ssa-threadupdate.c (redirect_edges): Call
13150 create_edge_and_update_destination_phis as needed.
13151 (create_edge_and_update_destination_phis): Accept new BB argument.
13152 All callers updated.
13153 (thread_block): Do not update the profile when threading around
13154 intermediate blocks.
13155 (thread_single_edge): Likewise.
13156 (determine_bb_domination_status): If BB is not a successor of the
13157 loop header, return NONDOMINATING.
13158 (register_jump_thread): Note when we register a jump thread around
13159 an intermediate block.
13160 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13161 (thread_across_edge): Use it.
13163 2011-03-28 Tristan Gingold <gingold@adacore.com>
13165 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13166 when for_return is 2.
13168 2011-03-28 Jeff Law <law@redhat.com>
13170 * var-tracking.c (canonicalize_values_mark): Delete unused
13172 (canonicalize_values_star, set_variable_part): Likewise.
13173 (clobber_variable_part, delete_variable_part): Likewise.
13175 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13177 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13179 2011-03-28 Martin Jambor <mjambor@suse.cz>
13181 * tree-inline.c (expand_call_inline): Do not check that destination
13183 (optimize_inline_calls): Assert that destination node is analyzed.
13184 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13185 not call tree_lowering_passes.
13186 * cgraph.h (cgraph_analyze_function): Declare.
13187 * cgraphunit.c (cgraph_analyze_function): Make public.
13189 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13191 * config/sparc/sparc-opts.h: New.
13192 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13193 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13194 (sparc_option_override): Store processor_type enumeration rather
13195 than string in cpu_default. Remove name and enumeration from
13196 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13197 without using sparc_select. Use target_flags_explicit instead of
13199 * config/sparc/sparc.h (enum processor_type): Move to
13201 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13202 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13203 HeaderInclude entry.
13204 (mcpu=, mtune=): Use Var and Enum.
13205 (sparc_processor_type): New Enum and EnumValue entries.
13207 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13208 Iain Sandoe <iains@gcc.gnu.org>
13211 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13213 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13215 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13216 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13217 Insert new statements at it in lieu of STMT.
13218 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13219 * tree-vect-stmts.c (vectorizable_store): Likewise.
13220 (vectorizable_load): Likewise.
13222 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13224 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13229 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13231 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13232 unaligned 256bit load/store.
13233 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13234 (*avx_movdqu<avxmodesuffix>): Likewise.
13236 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13239 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13240 * config/pa/pa.md (iordi3): Use new predicate in expander.
13241 (iorsi3): Likewise.
13243 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13245 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13246 FUNCTION_VALUE_REGNO_P): Remove macros.
13247 * config/mips/mips-protos.h (mips_function_value): Remove.
13248 * config/mips/mips.c (mips_function_value): Rename to...
13249 (mips_function_value_1): ... this. Make static. Handle receiving
13250 the function type in 'fn_decl_or_type' argument.
13251 (mips_function_value, mips_libcall_value,
13252 mips_function_value_regno_p): New function.
13253 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13254 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13256 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13258 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13259 and -mavx256-split-unaligned-store.
13260 (ix86_option_override_internal): Split 32-byte AVX unaligned
13261 load/store by default.
13262 (ix86_avx256_split_vector_move_misalign): New.
13263 (ix86_expand_vector_move_misalign): Use it.
13265 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13266 -mavx256-split-unaligned-store.
13268 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13269 256bit load/store. Generate unaligned store on misaligned memory
13271 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13273 (*avx_movdqu<avxmodesuffix>): Likewise.
13275 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13276 -mavx256-split-unaligned-store.
13278 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13281 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13284 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13286 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13287 opno arguments with an expand_operand. Use create_input_operand.
13288 (mips_prepare_builtin_target): Delete.
13289 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13291 (mips_expand_builtin_direct): Use create_output_operand and
13292 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13293 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13294 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13296 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13298 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13300 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13302 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13304 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13305 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13306 basic blocks and call commit_edge_insertions directly.
13307 (fixup_abnormal_edges): Move from here to...
13308 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13309 on the edges and return whether some have actually been inserted.
13310 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13313 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13315 PR rtl-optimization/48144
13316 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13317 (merge_expr_data): ... here.
13318 (av_set_intersect): Rename to av_set_code_motion_filter.
13319 Update all callers. Call merge_history_vect when an expression
13320 is found in both sets.
13321 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13323 2011-03-26 Alan Modra <amodra@gmail.com>
13325 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13326 cmodel medium addresses.
13327 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13328 64-bit gpr loads and stores.
13329 (rs6000_secondary_reload_ppc64): New function.
13330 * config/rs6000/rs6000-protos.h: Declare it.
13331 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13333 2011-03-26 Alan Modra <amodra@gmail.com>
13336 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13337 GNU Go in traceback table.
13339 2011-03-25 Richard Henderson <rth@redhat.com>
13341 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13342 if there are exactly 6 operands.
13343 (set_storage_via_setmem): Similarly.
13345 2011-03-25 Kai Tietz <ktietz@redhat.com>
13347 * collect2.c (write_c_file_stat): Handle backslash
13348 as right-hand directory separator.
13349 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13350 checking just for slash.
13351 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13352 instead of checking for trailing slash.
13353 * gcc.c (record_temp_file): Use filename_cmp instead
13355 (do_spec_1): Likewise.
13356 (replace_outfile_spec_function): Likewise.
13357 (is_directory): Use filename_ncmp instead of strncmp.
13358 (print_multilib_info): Likewise.
13359 * gcov.c (find_source): Use filename_cmp instead
13361 (make_gcov_file_name): Fix order of slash/backslash
13363 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13364 (add_standard_paths): Likewise.
13365 * mips-tfile.c (saber_stop): Handle backslash.
13366 * prefix.c (update_path): Use filename_ncmp instead of
13368 * profile.c (output_location): Use filename_cmp instead
13370 * read-md.c (handle_toplevel_file): Handle backslash.
13371 * tlink.c (frob_extension): Likewise.
13372 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13374 * tree-dump.c (dequeue_and_dump): Handle backslash.
13375 * tree.c (get_file_function_name): Likewise.
13376 * gengtype.c (read_input_list): Likewise.
13377 (get_file_realbasename): Likewise.
13378 (get_output_file_with_visibility): Use filename_cmp
13381 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13383 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13386 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13388 * fold-const.c (expr_location_or): New function.
13389 (fold_truth_not_expr): Call it.
13391 2011-03-25 Jeff Law <law@redhat.com>
13393 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13395 * c-family/c-common.c (def_fn_type): Likewise.
13396 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13397 * emit-rtl.c (gen_rtvec): Likewise.
13398 * lto/lto-lang.c (def_fn_type): Likewise.
13400 2011-03-25 Richard Guenther <rguenther@suse.de>
13402 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13403 also generate copies.
13404 (fini_copy_prop): Handle constant values properly.
13406 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13408 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13409 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13410 (hash_loc_operands, compare_loc_operands): Handle
13411 DW_OP_GNU_entry_value.
13413 2011-03-25 Kai Tietz <ktietz@redhat.com>
13415 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13416 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13417 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13418 comment and use macro TARGET_64BIT_MS_ABI instead.
13419 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13420 and change default behavior for 32-bit MS_ABI.
13421 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13422 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13424 (ix86_cfun_abi): Likewise.
13425 (ix86_maybe_switch_abi): Adjust comment.
13426 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13427 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13428 instead of checking for SYSV_ABI.
13429 (ix86_nsaved_sseregs): Likewise.
13430 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13432 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13433 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13434 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13435 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13436 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13438 2011-03-25 Richard Guenther <rguenther@suse.de>
13440 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13441 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13442 (verify_gimple): Remove.
13443 * tree-cfg.c (verify_gimple_call): Merge verification
13445 (verify_gimple_phi): Merge verification from verify_stmts.
13446 (verify_gimple_label): New function.
13447 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13448 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13449 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13450 (verify_stmts): Rename to verify_gimple_in_cfg.
13451 (verify_gimple_in_cfg): New function.
13452 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13453 * tree-ssa.c (verify_ssa): Likewise.
13454 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13456 2011-03-25 Richard Guenther <rguenther@suse.de>
13458 * passes.c (init_optimization_passes): Add FRE pass after
13461 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13462 Andrew Stubbs <ams@codesourcery.com>
13464 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13466 (arm_movdi_vfp_cortexa8): New pattern.
13467 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13468 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13469 instructions when tuning for Cortex-A8. Set attribute "arch".
13470 * config/arm/arm.md: Move include arm-tune.md up a bit.
13471 (define_attr "arch"): Add "onlya8" and "nota8" values.
13472 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13474 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13478 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13480 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13481 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13482 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13483 * passes.c (init_optimization_passes): Move
13484 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13486 2011-03-25 Kai Tietz <ktietz@redhat.com>
13488 * c-typeck.c (comptypes_internal): Replace target
13489 hook call of comp_type_attributes by version in tree.c file.
13490 * gimple.c (gimple_types_compatible_p_1): Likewise.
13491 * tree-ssa.c (useless_type_conversion_p): Likewise.
13492 * tree.c (build_type_attribute_qual_variant): Likewise.
13493 (attribute_value_equal): New static helper function.
13494 (comp_type_attributes): New function.
13495 (merge_attributes): Use attribute_value_equal for comparison.
13496 (attribute_list_contained): Likewise.
13497 * tree.h (comp_type_attributes): New prototype.
13499 2011-03-25 Richard Guenther <rguenther@suse.de>
13501 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13502 of complex types at -O0.
13503 (verify_gimple_assign_binary): Likewise.
13504 (verify_gimple_assign_ternary): Likewise.
13506 2011-03-24 Mark Wielaard <mjw@redhat.com>
13508 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13509 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13511 2011-03-24 Mark Wielaard <mjw@redhat.com>
13514 * dwarf2out.c (output_abbrev_section): Only write table when
13515 abbrev_die_table_in_use > 1.
13517 2011-02-24 Richard Henderson <rth@redhat.com>
13519 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13520 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13521 (alpha_expand_unaligned_load_words): Use extql.
13522 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13523 (emit_insxl): Handle all modes for consistency.
13525 2011-02-24 Richard Henderson <rth@redhat.com>
13527 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13528 (alpha_expand_unaligned_load): Likewise.
13529 (alpha_expand_unaligned_store): Likewise.
13530 (alpha_expand_unaligned_load_words): Likewise.
13531 (alpha_expand_unaligned_store_words): Likewise.
13532 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13533 (alpha_split_lock_test_and_set_12): Likewise.
13534 (print_operand, alpha_fold_builtin_extxx): Likewise.
13535 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13536 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13537 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13538 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13539 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13540 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13541 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13542 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13543 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13544 (extwl, extll, extql): Similarly.
13545 (inswh, inslh, insqh): Similarly.
13546 (mskbl, mskwl, mskll, mskql): Similarly.
13547 (mskwh, msklh, mskqh): Similarly.
13549 2011-02-24 Richard Henderson <rth@redhat.com>
13551 * config/alpha/alpha.md (attribute isa): Add er, ner.
13552 (attribute enabled): Handle them.
13553 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13555 2011-02-24 Richard Henderson <rth@redhat.com>
13557 * config/alpha/alpha.md (attribute isa): Add vms.
13558 (attribute enabled): Handle it.
13559 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13560 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13561 (*movtf): Rename from *movtf_internal for consistency.
13562 (*movsi): Merge with *movsi_nt_vms.
13563 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13564 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13565 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13566 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13568 2011-02-24 Richard Henderson <rth@redhat.com>
13570 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13571 (extendqisi2, extendhisi2): Likewise.
13572 (extendqidi2): Simplify BWX/non-BWX expansions.
13573 (extendhidi2): Similarly.
13575 2011-02-24 Richard Henderson <rth@redhat.com>
13577 * config/alpha/alpha.md (attribute isa): New.
13578 (attribute enabled): New.
13579 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13580 (zero_extendqisi2, zero_extendqidi2): Similarly.
13581 (zero_extendhisi2, zero_extendhidi2): Similarly.
13582 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13584 2011-02-24 Richard Henderson <rth@redhat.com>
13586 * config/alpha/predicates.md (input_operand): Revert last change;
13587 update comment to mention 32-bit VMS rather than Windows.
13589 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13591 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13592 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13593 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13594 * passes.c (init_optimization_passes): Move
13595 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13597 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13599 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13601 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13603 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13606 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13609 * simplify-rtx.c (simplify_const_unary_operation): Call
13610 real_convert when changing mode class with FLOAT_EXTEND.
13612 2011-03-24 Nick Clifton <nickc@redhat.com>
13614 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13615 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13616 * config/rx/rx.c (rx_option_override): Set align_jumps,
13617 align_loops and align_labels if not set by the user.
13618 (rx_align_for_label): New function.
13619 (rx_max_skip_for_label): New function.
13620 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13621 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13622 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13623 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13624 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13626 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13628 PR rtl-optimization/48263
13629 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13630 and original commutative_p handling. Use maybe_gen_insn.
13632 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13634 * reload.c (find_reloads_subreg_address): Add address_reloaded
13635 parameter and return true there if the full address has been
13637 (find_reloads_toplev): Pass address_reloaded flag.
13638 (find_reloads_address_1): Don't use address_reloaded parameter.
13640 2011-03-24 Jeff Law <law@redhat.com>
13642 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13643 unused variable "ann".
13644 (remove_unused_locals): Likewise.
13646 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13649 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13652 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13654 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13655 for invalid symbolic addresses.
13656 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13659 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13661 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13662 the argument in calls to fold_truth_not_expr.
13664 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13666 * tree.c (record_node_allocation_statistics): New function.
13667 (make_node_stat, copy_node_stat, build_string): Call it.
13668 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13669 (build1_stat, build_omp_clause): Likewise.
13671 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13673 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13676 2011-03-24 Richard Guenther <rguenther@suse.de>
13678 PR tree-optimization/48271
13679 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13680 blocks that still exist.
13682 2011-03-24 Richard Guenther <rguenther@suse.de>
13684 PR tree-optimization/48270
13685 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13686 not free datarefs before ddrs.
13688 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13690 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13691 from the address built for a reference with variable offset.
13693 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13696 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13697 alternatives that can be handled with movq or movabsq insn.
13698 (*movdf_internal): Disable for !TARGET_64BIT.
13699 (*movdf_internal_nointeger): Ditto.
13700 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13702 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13704 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13705 (FUNCTION_ARG_ADVANCE): Likewise.
13706 * tm.texi.in: Change references to them to hook references.
13707 * tm.texi: Regenerate.
13708 * targhooks.c (default_function_arg): Eliminate check for target macro.
13709 (default_function_incoming_arg): Likewise.
13710 (default_function_arg_advance): Likewise.
13711 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13712 (function_arg_advance): Likewise.
13713 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13715 2011-03-24 Richard Guenther <rguenther@suse.de>
13717 PR middle-end/48269
13718 * tree-object-size.c (addr_object_size): Do not double-account
13719 for MEM_REF offsets.
13721 2011-03-24 Diego Novillo <dnovillo@google.com>
13723 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13724 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13725 (lto_input_data_block): Move from lto-opts.c. Make extern.
13727 (lto_input_string): Rename from input_string. Make extern.
13729 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13730 output_string_with_length.
13731 Output 0 to indicate a non-NULL string. Update all callers to
13733 (lto_output_string): Rename from output_string. Make extern.
13735 (lto_output_decl_state_streams): Make extern.
13736 (lto_output_decl_state_refs): Make extern.
13737 * lto-streamer.h (lto_input_string): Declare.
13738 (lto_input_data_block): Declare.
13739 (lto_output_string): Declare.
13740 (lto_output_string_with_length): Declare.
13741 (lto_output_decl_state_streams): Declare.
13742 (lto_output_decl_state_refs): Declare.
13744 2011-03-24 Richard Guenther <rguenther@suse.de>
13746 PR tree-optimization/46562
13747 * tree.c (build_invariant_address): New function.
13748 * tree.h (build_invariant_address): Declare.
13749 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13750 a renamed function moved ...
13751 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13752 Take valueization callback parameter.
13753 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13754 * gimple-fold.h: New file.
13755 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13756 (ccp_fold, fold_const_aggregate_ref,
13757 fold_ctor_reference, fold_nonarray_ctor_reference,
13758 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13759 get_base_constructor): Move ...
13760 * gimple-fold.c: ... here.
13761 (gimple_fold_stmt_to_constant_1): New function
13762 split out from ccp_fold. Take a valueization callback parameter.
13763 Valueize all operands.
13764 (gimple_fold_stmt_to_constant): New wrapper function.
13765 (fold_const_aggregate_ref_1): New function split out from
13766 fold_const_aggregate_ref. Take a valueization callback parameter.
13767 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13768 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13769 invariant POINTER_PLUS_EXPRs to invariant form.
13770 (vn_valueize): New function.
13771 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13772 * tree-vrp.c (vrp_valueize): New function.
13773 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13774 to fold statements to constants.
13775 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13776 function declarations.
13777 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13778 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13780 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13782 * config/h8300/predicates.md (jump_address_operand): Fix register
13785 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13787 * doc/invoke.texi (max-stores-to-sink): Document.
13788 * params.h (MAX_STORES_TO_SINK): Define.
13789 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13790 if either vectorization or if-conversion is disabled.
13791 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13792 tree-vect-data-refs.c vect_equal_offsets.
13793 (dr_equal_offsets_p): New function.
13794 (find_data_references_in_bb): Remove static.
13795 * tree-data-ref.h (find_data_references_in_bb): Declare.
13796 (dr_equal_offsets_p): Likewise.
13797 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13798 (vect_drs_dependent_in_basic_block): Update calls to
13799 vect_equal_offsets.
13800 (vect_check_interleaving): Likewise.
13801 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13802 (cond_if_else_store_replacement): Rename to...
13803 (cond_if_else_store_replacement_1): ... this. Change arguments and
13805 (cond_if_else_store_replacement): New function.
13806 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13807 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13809 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13812 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13813 to subtract lower bound instead of GEN_INT().
13815 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13820 * doc/extend.texi (Alignment): Move section to match order in TOC.
13821 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13822 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13824 2011-03-23 Jeff Law <law@redhat.com>
13826 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13827 before removing the edge.
13829 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13830 it may have been freed by redirect_branch_edge or
13831 redirect_edge_succ_nodup.
13833 2011-03-23 Richard Guenther <rguenther@suse.de>
13835 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13836 (check_va_list_escapes): Likewise.
13837 (check_all_va_list_escapes): Likewise.
13839 2011-03-23 Richard Guenther <rguenther@suse.de>
13841 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13842 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13843 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13844 (alias.o): Likewise.
13845 (ipa-type-escape.o): Remove.
13846 (ipa-struct-reorg.o): Likewise.
13847 (GTFILES): Remove ipa-struct-reorg.c.
13848 * alias.c: Do not include ipa-type-escape.h.
13849 * tree-ssa-alias.c: Likewise.
13850 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13851 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13852 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13853 and ipa-type-escape passes.
13854 * tree-pass.h (pass_ipa_type_escape): Remove.
13855 (pass_ipa_struct_reorg): Likewise.
13856 * ipa-struct-reorg.h: Remove.
13857 * ipa-struct-reorg.c: Likewise.
13858 * ipa-type-escape.h: Likewise.
13859 * ipa-type-escape.c: Likewise.
13860 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13861 (--param struct-reorg-cold-struct-ratio): Likewise.
13862 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13863 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13864 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13866 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13868 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13869 cpu attribute value.
13870 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13871 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13872 * config/s390/s390.c (processor_flags_table): New constant array.
13873 (s390_handle_arch_option): Remove.
13874 (s390_handle_option): Remove s390_handle_arch_option invocations
13875 and OPT_mwarn_framesize_ handling.
13876 (s390_option_override): Remove s390_handle_arch_option invocation.
13877 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13879 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13880 * config/s390/s390.opt (s390_tune, s390_arch)
13881 (march=): Replace s390_arch_option enum and values with
13882 processor_type. Set variable name to s390_arch. Set
13883 initialization value.
13884 (mtune=): Replace s390_arch_option with processor_type. Set
13885 variable name to s390_tune. Set initialization value.
13887 2011-03-23 Julian Brown <julian@codesourcery.com>
13889 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13890 accesses which are not naturally aligned.
13892 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13895 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13897 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13899 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13900 parameter from "int" to "enum insn_code".
13901 (expand_operand_type): New enum.
13902 (expand_operand): New structure.
13903 (create_expand_operand): New function.
13904 (create_fixed_operand, create_output_operand): Likewise
13905 (create_input_operand, create_convert_operand_to): Likewise.
13906 (create_convert_operand_from, create_address_operand): Likewise.
13907 (create_integer_operand): Likewise.
13908 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13909 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13910 (expand_insn, expand_jump_insn): Likewise.
13911 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13912 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13913 (expand_movstr, expand_builtin___clear_cache): Likewise.
13914 (expand_builtin_lock_release): Likewise.
13915 * explow.c (allocate_dynamic_stack_space): Likewise.
13916 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13917 and use the default handling in that case.
13918 * expmed.c (check_predicate_volatile_ok): Delete.
13919 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13920 (emit_cstore): Likewise.
13921 * expr.c (emit_block_move_via_movmem): Likewise.
13922 (set_storage_via_setmem, expand_assignment): Likewise.
13923 (emit_storent_insn, try_casesi): Likewise.
13924 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13925 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13926 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13927 (expand_twoval_unop, expand_twoval_binop): Likewise.
13928 (expand_unop_direct, emit_indirect_jump): Likewise.
13929 (emit_conditional_move, vector_compare_rtx): Likewise.
13930 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13931 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13932 (expand_sync_lock_test_and_set): Likewise.
13933 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13934 (emit_unop_insn): Likewise.
13935 (expand_copysign_absneg): Change icode to an insn_code.
13936 (create_convert_operand_from_type): New function.
13937 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13938 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13939 (expand_insn, expand_jump_insn): Likewise.
13940 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13941 than const_int_operand for operand 2.
13943 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13945 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13948 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13950 * emit-rtl.c (emit_pattern_before_noloc): New function.
13951 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13952 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13953 (emit_pattern_after_noloc): New function.
13954 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13955 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13957 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13959 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13960 (__ffsDI2): Likewise.
13962 2011-03-22 Richard Henderson <rth@redhat.com>
13964 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13965 of !TARGET_ABI_OPEN_VMS.
13966 (alpha_trampoline_init, alpha_start_function): Likewise.
13967 (alpha_expand_epilogue, alpha_file_start): Likewise.
13968 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13969 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13970 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13971 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13972 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13976 * config/s390/s390-opts.h: New.
13977 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13978 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13979 s390_stack_guard): Remove.
13980 (s390_handle_arch_option): Return void. Take enum
13981 s390_arch_option value instead of string and searching array.
13982 (s390_handle_option): Don't assert that global structures are in
13983 use. Access variables via opts pointer. Use error_at. Don't use
13984 sscanf for -mstack-guard= or -mstack-size=. Update call to
13985 s390_handle_arch_option.
13986 (s390_option_override): Update call to s390_handle_arch_option.
13987 (s390_emit_prologue): Use %d format for s390_stack_size in
13988 diagnostic. Use %wd for HOST_WIDE_INT.
13989 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13990 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13991 * config/s390/s390.opt (config/s390/s390-opts.h): New
13992 HeaderInclude entry.
13993 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13994 s390_arch_flags, s390_warn_framesize): New Variable entries.
13995 (s390_arch_option): New Enum and EnumValue entries.
13996 (march=): Use Enum instead of Var.
13997 (mstack-guard=, mstack-size=): Use UInteger and Var.
13998 (mtune=): Use Enum.
14000 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14002 * config/score/score.c (score_handle_option): Don't assert that
14003 global structures are in use. Access target_flags via opts
14004 pointer. Use value of -march= option to determine target_flags
14006 * config/score/score.opt (march=): Use Enum.
14007 (score_arch): New Enum and EnumValue entries.
14009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14011 * config/mep/mep.c (option_mtiny_specified): Remove.
14012 (mep_option_override): Move register handling for -mivc2 from
14013 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14014 instead of option_mtiny_specified.
14015 (mep_handle_option): Access target_flags via opts pointer. Don't
14016 assert that global structures are in use. Defer part of -mivc2
14017 handling and move it to mep_option_override.
14018 * config/mep/mep.opt (IVC2): New Mask entry.
14019 (mivc2): Use Var and Defer instead of Mask.
14021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14023 * config/v850/v850-opts.h: New.
14024 * config/v850/v850.c (small_memory): Replace with
14025 small_memory_physical_max array. Make that array static const.
14026 (v850_handle_memory_option): Take integer value of argument. Take
14027 gcc_options pointer, option text and location. Return void.
14028 Update for changes to small memory structures.
14029 (v850_handle_option): Access target_flags via opts pointer. Don't
14030 assert that global structures are in use. Update calls to
14031 v850_handle_memory_option.
14032 (v850_encode_data_area): Update references to small memory settings.
14033 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14034 (enum small_memory_type): Move to v850-opts.h.
14035 * config/v850/v850.opt (config/v850/v850-opts.h): New
14036 HeaderInclude entry.
14037 (small_memory_max): New Variable entry.
14038 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14039 (mtda, mzda): Likewise.
14041 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14043 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14044 pointer. Don't assert that global structures are in use.
14046 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14048 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14049 via opts pointer. Don't assert that global structures are in use.
14051 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14053 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14054 (munix=93): Use Var.
14055 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14056 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14057 * config/pa/pa-opts.h: New.
14058 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14059 (pa_handle_option): Don't assert that global structures are in
14060 use. Access target_flags via opts pointer. Don't handle
14061 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14063 (pa_option_override): Handle deferred OPT_mfixed_range_.
14065 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14067 * config/mn10300/mn10300-opts.h: New.
14068 * config/mn10300/mn10300.c (mn10300_processor,
14069 mn10300_tune_string): Remove.
14070 (mn10300_handle_option): Don't assert that global structures are
14071 in use. Access mn10300_processor via opts pointer. Don't handle
14073 * config/mn10300/mn10300.h (enum processor_type): Move to
14075 (mn10300_processor): Remove.
14076 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14077 HeaderInclude entry.
14078 (mn10300_processor): New Variable entry.
14081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14083 * config/microblaze/microblaze.c: Don't include opts.h.
14084 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14085 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14086 (mno-clearbss): Use Var and Warn.
14088 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14090 * config/m32r/m32r-opts.h: New.
14091 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14092 (m32r_handle_option): Don't assert that global structures are in
14093 use. Access target_flags and m32r_cache_flush_func via opts
14094 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14095 OPT_mno_flush_trap here.
14096 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14097 include of m32r-opts.h.
14098 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14099 HeaderInclude entry.
14100 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14101 (mmodel=): Use Enum and Var.
14102 (m32r_model): New Enum and EnumValue entries.
14103 (mno-flush-trap): Use Var.
14104 (msdata=): Use Enum and Var.
14105 (m32r_sdata): New Enum and EnumValue entries.
14107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14109 * config/m32c/m32c.c: Don't include opts.h.
14110 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14111 m32c_handle_option): Remove.
14112 (m32c_option_override): Check global_options_set.x_target_memregs
14113 instead of target_memregs_set.
14114 * config/m32c/m32c.h (target_memregs): Remove.
14115 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14118 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14120 * config/iq2000/iq2000-opts.h: New.
14121 * config/iq2000/iq2000.c: Don't include opts.h.
14122 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14123 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14124 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14125 HeaderInclude entry.
14126 (iq2000_tune): New Variable entry.
14127 (march=): Add comment. Use Enum.
14128 (iq2000_arch): New Enum and EnumValue entries.
14129 (mcpu=): Use Enum and Var.
14130 (iq2000_tune): New Enum and EnumValue entries.
14132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14134 * config/ia64/ia64-opts.h: New.
14135 * config/ia64/ia64.c (ia64_tune): Remove.
14136 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14137 here. Use error_at.
14138 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14139 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14140 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14141 HeaderInclude entry.
14142 (ia64_tune): New Variable entry.
14143 (mfixed-range=): Use Defer and Var.
14144 (mtune=): Use Enum and Var.
14145 (ia64_tune): New Enum and EnumValue entries.
14147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14149 * config/frv/frv-opts.h: New.
14150 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14152 (frv_cpu_type): Remove.
14153 * config/frv/frv.c: Don't include opts.h.
14154 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14155 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14156 (frv_cpu_type): New Variable entry.
14157 (frv_cpu): New Enum and EnumValue entries.
14159 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14161 * config/cris/cris.c (cris_handle_option): Access target_flags via
14162 opts pointer. Don't assert that global structures are in use.
14163 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14164 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14166 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14168 * config/bfin/bfin-opts.h: New.
14169 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14170 bfin_si_revision, bfin_workarounds): Remove.
14171 (bfin_cpus): Make static const.
14172 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14173 not bfin_lib_id_given.
14174 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14175 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14176 pointer. Use error_at. Don't assert that global structures are in use.
14177 * config/bfin/bfin.h: Include bfin-opts.h.
14178 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14179 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14180 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14181 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14184 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14186 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14187 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14188 or -msoft-float here.
14189 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14190 -msoft-float and -mhard-float.
14191 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14192 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14194 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14196 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14197 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14199 (LIBGCC_SPEC): Don't handle -msoft-float.
14200 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14202 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14204 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14205 -mfloat-abi=*, not -msoft-float and -mhard-float.
14206 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14208 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14209 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14210 mhard-float and msoft-float.
14211 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14212 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14213 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14214 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14216 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14217 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14219 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14221 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14224 2011-03-22 Richard Henderson <rth@redhat.com>
14226 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14227 TARGET_ABI_WINDOWS_NT.
14228 (alpha_output_function_end_prologue): Likewise.
14229 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14230 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14231 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14232 (trap, *movsi_nt_vms): Likewise.
14233 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14234 (*tablejump_osf_nt_internal): Remove.
14235 * config/alpha/predicates.md (input_operand): Only test Pmode.
14237 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14239 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14240 via opts pointer. Use error_at. Don't assert that global
14241 structures are in use.
14243 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14245 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14246 (ix86_handle_option): Access ix86_isa_flags and
14247 ix86_isa_flags_explicit via opts pointer. Don't assert that
14248 global structures are in use.
14249 (ix86_function_specific_save, ix86_function_specific_restore):
14250 Update ix86_isa_flags_explicit field name.
14251 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14252 (ix86_isa_flags_explicit): Rename TargetSave entry to
14253 x_ix86_isa_flags_explicit.
14255 2011-03-22 Richard Henderson <rth@redhat.com>
14257 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14258 (alpha_option_override, direct_return): Likewise.
14259 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14260 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14261 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14262 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14263 (alpha_expand_epilogue, alpha_end_function): Likewise.
14264 (alpha_init_libfuncs): Likewise.
14265 (struct machine_function): Remove unicosmk members.
14266 (print_operand) ['t']: Remove.
14267 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14268 unicosmk_output_module_name, unicosmk_output_common,
14269 current_section_align, unicosmk_output_text_section_asm_op,
14270 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14271 unicosmk_section_type_flags, unicosmk_unique_section,
14272 unicosmk_asm_named_section, unicosmk_insert_attributes,
14273 unicosmk_output_align, unicosmk_defer_case_vector,
14274 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14275 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14276 unicosmk_output_ssib, unicosmk_add_call_info_word,
14277 unicosmk_extern_head, unicosmk_output_default_externs,
14278 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14279 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14280 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14281 * config/alpha/alpha-protos.h: Update.
14282 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14283 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14284 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14285 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14286 (*mulsi_se, mulvsi3): Likewise.
14287 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14288 (*divmodsi_internal, call, call_value, realign): Likewise.
14289 (moddi3, umoddi3): Likewise; remove duplicate expander.
14290 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14291 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14292 (*movdi_nofix): Remove r/U alternative.
14293 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14294 * config/alpha/constraints.md ("U"): Remove.
14295 * config/alpha/predicates.md (call_operand"): Don't test
14296 TARGET_ABI_UNICOSMK.
14298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14300 * target.def (handle_option): Take gcc_options and
14301 cl_decoded_option pointers and location_t.
14302 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14303 * doc/tm.texi: Regenerate.
14304 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14305 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14306 * lto-opts.c (lto_reissue_options): Generate option structure for
14307 targetm.handle_option call.
14308 * opts.c (target_handle_option): Update call to
14309 targetm.handle_option. Remove assertions about values now passed
14311 * targhooks.c (default_target_handle_option): New.
14312 * targhooks.h (default_target_handle_option): Declare.
14313 * config/alpha/alpha.c: Include opts.h.
14314 (alpha_handle_option): Update to new hook interface.
14315 * config/arm/arm.c: Include opts.h.
14316 (arm_handle_option): Update to new hook interface.
14317 * config/arm/t-arm (arm.o): Update dependencies.
14318 * config/bfin/bfin.c: Include opts.h.
14319 (bfin_handle_option): Update to new hook interface.
14320 * config/cris/cris.c: Include opts.h.
14321 (cris_handle_option): Update to new hook interface.
14322 * config/frv/frv.c: Include opts.h.
14323 (frv_handle_option): Update to new hook interface.
14324 * config/i386/i386.c: Include opts.h.
14325 (ix86_handle_option): Update to new hook interface.
14326 (ix86_valid_target_attribute_inner_p): Generate option structure
14327 for call to ix86_handle_option.
14328 * config/i386/t-i386 (i386.o): Update dependencies.
14329 * config/ia64/ia64.c: Include opts.h.
14330 (ia64_handle_option): Update to new hook interface.
14331 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14332 * config/iq2000/iq2000.c: Include opts.h.
14333 (iq2000_handle_option): Update to new hook interface.
14334 * config/m32c/m32c.c: Include opts.h.
14335 (m32c_handle_option): Update to new hook interface.
14336 * config/m32r/m32r.c: Include opts.h.
14337 (m32r_handle_option): Update to new hook interface.
14338 * config/m68k/m68k.c: Include opts.h.
14339 (m68k_handle_option): Update to new hook interface.
14340 * config/mep/mep.c: Include opts.h.
14341 (mep_handle_option): Update to new hook interface.
14342 * config/microblaze/microblaze.c: Include opts.h.
14343 (microblaze_handle_option): Update to new hook interface.
14344 * config/mips/mips.c: Include opts.h.
14345 (mips_handle_option): Update to new hook interface.
14346 * config/mn10300/mn10300.c: Include opts.h.
14347 (mn10300_handle_option): Update to new hook interface.
14348 * config/pa/pa.c: Include opts.h.
14349 (pa_handle_option): Update to new hook interface.
14350 * config/pdp11/pdp11.c: Include opts.h.
14351 (pdp11_handle_option): Update to new hook interface.
14352 * config/rs6000/rs6000.c: Include opts.h.
14353 (rs6000_handle_option): Update to new hook interface.
14354 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14355 * config/rx/rx.c: Include opts.h.
14356 (rx_handle_option): Update to new hook interface.
14357 * config/s390/s390.c: Include opts.h.
14358 (s390_handle_option): Update to new hook interface.
14359 * config/score/score.c: Include opts.h.
14360 (score_handle_option): Update to new hook interface.
14361 * config/sh/sh.c: Include opts.h.
14362 (sh_handle_option): Update to new hook interface.
14363 * config/sparc/sparc.c: Include opts.h.
14364 (sparc_handle_option): Update to new hook interface.
14365 * config/v850/v850.c: Include opts.h.
14366 (v850_handle_option): Update to new hook interface.
14368 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14370 * gcc.c (driver_unknown_option_callback): Only permit and save
14371 unknown -Wno- options.
14372 (driver_wrong_lang_callback): Save options directly instead of via
14373 driver_unknown_option_callback.
14375 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14377 * combine.c (simplify_set): Try harder to find the best CC mode when
14378 simplifying a nested COMPARE on the RHS.
14380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14382 * config/alpha/gnu.h: Remove.
14383 * config/arc: Remove directory.
14384 * config/arm/netbsd.h: Remove.
14385 * config/arm/t-pe: Remove.
14386 * config/crx: Remove directory.
14387 * config/i386/netbsd.h: Remove.
14388 * config/m68hc11: Remove directory.
14389 * config/m68k/uclinux-oldabi.h: Remove.
14390 * config/mcore/mcore-pe.h: Remove.
14391 * config/mcore/t-mcore-pe: Remove.
14392 * config/netbsd-aout.h: Remove.
14393 * config/rs6000/gnu.h: Remove.
14394 * config/sh/sh-symbian.h: Remove.
14395 * config/sh/symbian-base.c: Remove.
14396 * config/sh/symbian-c.c: Remove.
14397 * config/sh/symbian-cxx.c: Remove.
14398 * config/sh/symbian-post.h: Remove.
14399 * config/sh/symbian-pre.h: Remove.
14400 * config/sh/t-symbian: Remove.
14401 * config/svr3.h: Remove.
14402 * config/vax/netbsd.h: Remove.
14403 * config.build: Don't handle i[34567]86-*-pe.
14404 * config.gcc: Remove handling of deprecations for most deprecated
14406 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14407 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14408 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14409 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14410 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14411 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14413 * config.host: Don't handle i[34567]86-*-pe.
14414 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14415 (ASM_SPEC32): Don't handle -mcall-gnu.
14416 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14418 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14419 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14420 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14421 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14422 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14423 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14424 conditional on SYMBIAN.
14425 * configure.ac: Don't handle powerpc*-*-gnu*.
14426 * configure: Regenerate.
14427 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14428 * doc/install-old.texi (m6811, m6812): Don't mention.
14429 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14430 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14431 (m68k-uclinuxoldabi): Don't mention.
14432 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14434 (-mcall-gnu): Remove.
14435 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14436 families): Remove constraint documentation.
14438 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14440 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14441 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14442 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14444 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14447 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14448 vector when peeking at the next token for vector, don't expand the
14451 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14453 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14454 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14455 * config/avr/avr.c (init_cumulative_args)
14456 (avr_function_arg_advance): Use it.
14457 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14459 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14460 (avr_function_ok_for_sibcall): ...this new function.
14461 (avr_lookup_function_attribute1): New static Function.
14462 (avr_naked_function_p, interrupt_function_p)
14463 (signal_function_p, avr_OS_task_function_p)
14464 (avr_OS_main_function_p): Use it.
14465 * config/avr/avr.md ("sibcall", "sibcall_value")
14466 ("sibcall_epilogue"): New expander.
14467 ("*call_insn", "*call_value_insn"): New insn.
14468 ("call_insn", "call_value_insn"): Remove
14469 ("call", "call_value", "epilogue"): Change expander to handle
14472 2011-03-21 Nick Clifton <nickc@redhat.com>
14474 * doc/invoke.texi (Overall Options): Move closing brace to end of
14476 (Optimization Options): Add missing @gol.
14477 (Directory Options): Likewise.
14478 (i386 and x86-64 Options): Likewise.
14479 (RS6000 and PowerPC Options): Likewise.
14480 (i386 and x86-64 Windows Options): Likewise.
14481 (V850 Options): Add text missing from descriptions.
14483 2011-03-22 Richard Henderson <rth@redhat.com>
14485 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14486 (avr_incoming_return_addr_rtx): New.
14487 (emit_push_byte): New.
14488 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14489 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14490 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14491 (emit_pop_byte): New.
14492 (expand_epilogue): Use it. Pop frame pointer by bytes.
14493 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14494 (INCOMING_RETURN_ADDR_RTX): New.
14495 (INCOMING_FRAME_SP_OFFSET): New.
14496 (ARG_POINTER_CFA_OFFSET): New.
14497 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14498 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14501 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14503 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14505 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14506 (FUNCTION_ARG_ADVANCE): Likewise.
14507 * tm.texi.in: Change references to them to hook references.
14508 * tm.texi: Regenerate.
14509 * targhooks.c (default_function_arg): Eliminate check for target
14511 (default_function_incoming_arg): Likewise.
14512 (default_function_arg_advance): Likewise.
14513 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14514 (function_arg_advance): Likewise.
14515 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14517 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14519 * tree.c (build_call_1): New function.
14520 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14522 2011-03-22 Richard Guenther <rguenther@suse.de>
14524 PR tree-optimization/48228
14525 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14526 for single-arg PHIs.
14528 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14530 PR rtl-optimization/48143
14531 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14532 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14533 sse2_cvtps2pd): Likewise.
14535 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14537 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14539 2011-03-22 Richard Guenther <rguenther@suse.de>
14541 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14542 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14543 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14544 and REALIGN_LOAD_EXPR.
14545 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14546 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14547 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14548 DOT_PROD_EXPR case ...
14549 (expand_expr_real_2): ... here.
14550 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14551 and REALIGN_LOAD_EXPR.
14552 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14553 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14554 (vect_create_epilog_for_reduction): Likewise.
14555 (vectorizable_reduction): Likewise.
14556 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14557 * tree-vect-stmts.c (vectorizable_load): Likewise.
14559 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14561 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14563 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14565 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14566 handling for PLTOFF/GOTOFF.
14568 2011-03-22 Nick Clifton <nickc@redhat.com>
14570 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14571 trailing backslash from the end of the macro definition.
14573 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14575 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14578 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14580 * expr.h (prepare_operand): Move to...
14581 * optabs.h (prepare_operand): ...here and change the insn code
14582 parameter from "int" to "enum insn_code".
14583 (insn_operand_matches): Declare.
14584 * expr.c (init_expr_target): Use insn_operand_matches.
14585 (compress_float_constant): Likewise.
14586 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14587 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14588 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14589 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14591 (gen_cond_trap): Likewise.
14592 (prepare_operand): Likewise. Change icode to an insn_code.
14593 (insn_operand_matches): New function.
14594 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14595 * reload1.c (gen_reload): Likewise.
14596 * targhooks.c (default_secondary_reload): Likewise.
14598 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14600 * config/alpha/alpha.md (unspec): New define_c_enum.
14603 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14606 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14607 between a call and its CALL_ARG_LOCATION note.
14609 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14611 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14613 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14617 * c-common.c (shorten_compare): If primopN is first sign-extended
14618 to opN and then zero-extended to result type, set primopN to opN.
14620 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14622 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14623 for barrier handlers.
14625 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14627 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14628 UNSPEC constants to be in the unspec enumeration, and redefine
14629 all UNSPECV constants to be in the unspecv enumeration, so that
14630 dumps print which unspec/unspec_volatile this is.
14631 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14632 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14633 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14634 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14635 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14637 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14638 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14639 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14640 * config/rs6000/sync.md (isync, lwsync): Ditto.
14642 2011-03-21 Richard Guenther <rguenther@suse.de>
14644 * params.def (lto-min-partition): Fix typo.
14646 2011-03-21 Richard Guenther <rguenther@suse.de>
14649 * c-decl.c (grokdeclarator): Drop to the main variant only
14650 for array types. Drop flag_gen_aux_info check.
14652 2011-03-21 Richard Guenther <rguenther@suse.de>
14654 PR translation/47911
14655 * params.def (lto-partitions): Fix typo.
14656 (lto-min-partition): Fix wording.
14658 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14660 * config/rs6000/t-freebsd: Remove duplication from file.
14662 2011-03-21 Richard Guenther <rguenther@suse.de>
14664 PR middle-end/47661
14665 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14667 2011-03-21 Richard Guenther <rguenther@suse.de>
14670 * params.def (lto-partitions): Require at least 1 partition.
14672 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14674 * gthr-solaris.h: Remove.
14675 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14676 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14677 (LIB_SPEC): Likewise.
14678 * config/sol2.opt (threads): Remove.
14679 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14680 (sparc*-*-solaris2*): Likewise.
14681 * configure.ac (enable_threads): Enable solaris support.
14682 * configure: Regenerate.
14683 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14684 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14687 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14689 * config.gcc: Obsolete *-*-solaris2.8*.
14690 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14692 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14695 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14696 reference. Solaris 8 perl works.
14698 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14701 * doc/install.texi (Prerequisites): Move jar etc. up.
14702 Explain support library version requirements.
14704 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14707 * doc/install.texi (Prerequisites): Move Perl to build
14708 requirements. Always necessary on Solaris 2 with Sun ld.
14710 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14712 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14714 (Specific, i?86-*-solaris2.[89]): Likewise.
14715 (Specific, i?86-*-solaris2.10): Likewise.
14716 (Specific, mips-sgi-irix6): Likewise.
14717 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14718 Update for binutils 2.21.
14720 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14722 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14723 Allow -fuse-linker-plugin for non-default plugin linker.
14724 * configure: Regenerate.
14726 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14729 * gengtype.c (files_rules): Added rule for cp/parser.h.
14731 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14734 * config/s390/s390.c (s390_delegitimize_address): Don't call
14735 lowpart_subreg if orig_x has BLKmode.
14737 2011-03-21 Kai Tietz <ktietz@redhat.com>
14740 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14741 * tree.h (attribute_spec): Add new member affects_type_identity.
14742 * attribs.c (empty_attribute_table): Adjust attribute_spec
14744 * config/alpha/alpha.c: Likewise.
14745 * config/arc/arc.c: Likewise.
14746 * config/arm/arm.c: Likewise.
14747 * config/avr/avr.c: Likewise.
14748 * config/bfin/bfin.c: Likewise.
14749 * config/crx/crx.c: Likewise.
14750 * config/darwin.h: Likewise.
14751 * config/h8300/h8300.c: Likewise.
14752 * config/i386/cygming.h: Likewise.
14753 * config/i386/i386.c: Likewise.
14754 * config/ia64/ia64.c: Likewise.
14755 * config/m32c/m32c.c: Likewise.
14756 * config/m32r/m32r.c: Likewise.
14757 * config/m68hc11/m68hc11.c: Likewise.
14758 * config/m68k/m68k.c: Likewise.
14759 * config/mcore/mcore.c: Likewise.
14760 * config/mep/mep.c: Likewise.
14761 * config/microblaze/microblaze.c: Likewise.
14762 * config/mips/mips.c: Likewise.
14763 * config/rs6000/rs6000.c: Likewise.
14764 * config/rx/rx.c: Likewise.
14765 * config/sh/sh.c: Likewise.
14766 * config/sol2.h: Likewise.
14767 * config/sparc/sparc.c: Likewise.
14768 * config/spu/spu.c: Likewise.
14769 * config/stormy16/stormy16.c: Likewise.
14770 * config/v850/v850.c: Likewise.
14772 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14774 * simplify-rtx.c (simplify_binary_operation_1): Handle
14775 (xor (and A B) C) case when B and C are both constants.
14777 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14779 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14781 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14784 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14786 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14788 PR rtl-optimization/48156
14789 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14790 assume df and df_lr are not NULL.
14792 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14795 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14796 between a call and its CALL_ARG_LOCATION note.
14798 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14801 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14802 between a call and its corresponding CALL_ARG_LOCATION note.
14804 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14806 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14807 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14808 * haifa-sched.c (setup_ref_regs): Ditto.
14809 * caller-save.c (add_used_regs_1): Ditto.
14810 * dse.c (look_for_hardregs): Ditto.
14811 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14812 * sched-rgn.c (check_live_1): Ditto.
14814 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14816 * c-decl.c (diagnose_mismatched_decls): Give an error for
14817 redefining a typedef with variably modified type.
14819 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14821 * c-decl.c (grokfield): Don't allow typedefs for structures or
14822 unions with no tag by default.
14823 * doc/extend.texi (Unnamed Fields): Update.
14825 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14827 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14828 Rewrite using indirect functions.
14829 (lwp_slwpcb): Ditto.
14830 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14831 (avx_vinsertf128<mode>): Ditto.
14833 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14835 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14838 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14840 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14841 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14843 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14845 PR rtl-optimization/48170
14846 * gcse.c (hoist_code): Remove bogus asserts.
14848 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14850 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14851 computation for prologue/epilogue.
14853 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14855 * Makefile.in (check-consistency): Remove.
14857 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14860 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14861 arange_table_in_use is 0, but either text_section_used or
14862 cold_text_section_used is true. Don't call it if
14863 !info_section_emitted.
14865 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14867 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14868 FUNCTION_VALUE_REGNO_P): Remove.
14869 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14871 * config/avr/avr.c (avr_ret_register): Make static inline.
14872 (avr_function_value_regno_p): New function.
14873 (avr_libcall_value): Make static. Add 'func' argument.
14874 (avr_function_value): Make static. Rename 'func' argument to
14875 'fn_decl_or_type', forward it to avr_libcall_value. Call
14876 avr_ret_register function instead of RET_REGISTER macro.
14877 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14879 2011-03-18 Jason Merrill <jason@redhat.com>
14882 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14884 2011-03-18 Richard Guenther <rguenther@suse.de>
14886 * doc/install.texi (--enable-gold): Remove.
14887 (--with-plugin-ld): Document.
14888 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14890 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14892 PR middle-end/47790
14893 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14894 again after expansion changes.
14896 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14898 * combine.c (try_combine): Do simplification only call of
14899 subst() on i2 even when i1 is present. Update comments.
14901 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14903 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14904 and UNSPEC_PCREL_SYMOFF.
14906 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14908 * config/s390/s390.md: Use define_c_enum for the unspec constant
14911 2011-03-18 Richard Henderson <rth@redhat.com>
14912 Jakub Jelinek <jakub@redhat.com>
14915 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14916 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14918 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14920 PR middle-end/47725
14921 * combine.c (cant_combine_insn_p): Don't check zero/sign
14922 extended hard registers.
14924 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14926 PR middle-end/47725
14927 * combine.c (cant_combine_insn_p): Check zero/sign extended
14930 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14932 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14933 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14934 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14935 Change return type to bool.
14936 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14938 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14941 * var-tracking.c (prepare_call_arguments): If CALL target
14942 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14943 pc instead of looking it up using cselib_lookup and use
14944 Pmode for it if x has VOIDmode.
14945 * dwarf2out.c (gen_subprogram_die): If also both first and
14946 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14949 * function.c (assign_parms): For data.passed_pointer parms
14950 use MEM of data.entry_parm instead of data.entry_parm itself
14951 as DECL_INCOMING_RTL.
14952 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14953 also when passed and declared mode is the same, DECL_RTL
14954 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14957 2011-03-16 Jeff Law <law@redhat.com>
14959 PR rtl-optimization/37273
14960 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14961 handle them like argument loads from stack slots. Do not double
14962 count memory for memory constants and argument loads from stack slots.
14964 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14967 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14969 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14972 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14974 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14977 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14979 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14980 Clear call_arg_locations and call_arg_loc_last always.
14982 PR middle-end/48152
14983 * var-tracking.c (prepare_call_arguments): If argument needs to be
14984 passed by reference, adjust argtype and mode.
14986 2011-03-17 Richard Guenther <rguenther@suse.de>
14988 PR middle-end/48134
14989 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14990 a value make sure to fold the statement.
14992 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14995 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14996 return condition with !cfun->calls_alloca.
14998 2011-03-17 Richard Guenther <rguenther@suse.de>
15001 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15002 origin for decls in other ltrans units.
15003 (input_varpool_node): Likewise.
15005 2011-03-17 Richard Guenther <rguenther@suse.de>
15007 PR middle-end/48165
15008 * tree-object-size.c (compute_object_offset): Properly return
15009 the offset operand of MEM_REFs as sizetype.
15011 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15013 PR rtl-optimization/48141
15014 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15015 * dse.c: Include params.h.
15016 (active_local_stores_len): New variable.
15017 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15019 (record_store, check_mem_read_rtx): Decrease it when removing
15021 (scan_insn): Likewise. Increase it when adding to chain, if it
15022 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15023 set active_local_stores to NULL before the addition.
15024 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15026 PR rtl-optimization/48141
15027 * dse.c (record_store): If no positions are needed in an insn
15028 that cannot be deleted, at least unchain it from active_local_stores.
15030 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15033 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15034 (lookup_type_die_strip_naming_typedef): ... here.
15035 (get_context_die): Use it.
15036 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15037 the anonymous struct named by the naming typedef.
15039 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15042 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15043 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15045 2011-03-16 Jeff Law <law@redhat.com>
15047 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15048 check for operands of conditional. Allow type to be a pointer.
15050 2011-03-16 Richard Guenther <rguenther@suse.de>
15052 PR tree-optimization/48149
15053 * fold-const.c (fold_binary_loc): Fold
15054 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15056 2011-03-16 Richard Guenther <rguenther@suse.de>
15058 PR tree-optimization/26134
15059 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15060 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15061 (non_rewritable_mem_ref_base): Handle complex type component
15062 accesses, constrain offsets for vector and complex extracts
15065 2011-03-16 Richard Guenther <rguenther@suse.de>
15067 PR tree-optimization/48146
15068 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15069 operands avoiding the need for renaming.
15071 2011-03-16 Richard Guenther <rguenther@suse.de>
15073 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15074 constant folding. Move MEM_REF canonicalization first.
15075 Rely on fold_const_aggregate_ref for initializer folding.
15076 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15078 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15080 PR middle-end/48136
15081 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15082 arg0/arg1 or their arguments are always fold converted to matching
15085 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15088 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15091 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15092 Handle in-tree gold.
15093 (ld_vers): Extract binutils version for gold.
15094 (gcc_cv_ld_hidden): Handle gold here.
15095 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15096 * configure: Regenerate.
15097 * config.in: Regenerate.
15098 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15099 -fuse-linker-plugin otherwise.
15100 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15101 (LINK_COMMAND_SPEC): Use it.
15102 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15104 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15106 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15107 * calls.c: Remove debug.h include.
15108 (emit_call_1): Don't call virtual_call_token debug hook.
15109 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15110 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15111 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15112 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15113 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15114 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15115 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15116 dwarf2out_virtual_call): Remove.
15117 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15118 copy_call_info and virtual_call hooks.
15119 (dwarf2out_init): Don't initialize vcall_insn_table,
15120 debug_dcall_section and debug_vcall_section.
15121 (prune_unused_types): Don't mark nodes from dcall_table.
15122 (dwarf2out_finish): Don't output dcall or vcall tables.
15123 * final.c (final_scan_insn): Don't call direct_call or
15124 virtual_call debug hooks.
15125 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15126 virtual_call_token, copy_call_info and virtual_call hooks.
15127 (debug_nothing_uid): Remove prototype.
15128 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15129 copy_call_info and virtual_call hooks.
15130 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15131 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15132 * debug.c (do_nothing_debug_hooks): Likewise.
15133 (debug_nothing_uid): Remove.
15134 * doc/invoke.texi (-fenable-icf-debug): Remove.
15135 * common.opt (-fenable-icf-debug): Likewise.
15137 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15138 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15139 call's MEM. Handle functions returning aggregate through a hidden
15140 first pointer. For virtual calls add clobbered pc to call arguments
15142 * dwarf2out.c (gen_subprogram_die): Emit
15143 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15147 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15148 * rtl.h (ENTRY_VALUE_EXP): Define.
15149 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15150 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15151 * print-rtl.c (print_rtx): Likewise.
15152 * gengtype.c (adjust_field_rtx_def): Likewise.
15153 * var-tracking.c (vt_add_function_parameter): Adjust
15154 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15155 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15156 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15157 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15158 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15160 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15161 Call var_location debug hook even on CALL_INSNs.
15162 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15163 * rtl.def (ENTRY_VALUE): New.
15164 * dwarf2out.c: Include cfglayout.h.
15165 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15166 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15167 (struct call_arg_loc_node): New type.
15168 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15169 tail_call_site_count): New variables.
15170 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15171 DW_TAG_GNU_call_site_parameter.
15172 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15173 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15174 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15175 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15176 and DW_AT_GNU_all_source_call_sites.
15177 (mem_loc_descriptor): Handle ENTRY_VALUE.
15178 (add_src_coords_attributes): Don't add enything if
15179 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15180 (dwarf2out_abstract_function): Save and clear call_arg_location,
15181 call_site_count and tail_call_site_count around dwarf2out_decl call.
15182 (gen_call_site_die): New function.
15183 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15184 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15185 (dwarf2out_function_decl): Clear call_arg_locations,
15186 call_arg_loc_last, set call_site_count and tail_call_site_count
15187 to -1 and free block_map.
15188 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15189 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15190 followed by any real instructions.
15191 (dwarf2out_begin_function): Set call_site_count and
15192 tail_call_site_count to 0.
15193 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15194 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15195 attempt to force a DIE for it and worst case remove the attribute.
15196 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15197 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15199 * var-tracking.c: Include tm_p.h.
15200 (vt_stack_adjustments): For calls call note_register_arguments.
15201 (argument_reg_set): New variable.
15202 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15203 ensure the VALUE is resolved.
15204 (call_arguments): New variable.
15205 (prepare_call_arguments): New function.
15206 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15207 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15208 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15209 always use the best expression.
15210 (vt_expand_loc): Add ignore_cur_loc argument.
15211 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15212 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15213 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15214 note for all calls.
15215 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15216 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15217 argument. Don't call cselib_preserve_only_values and
15218 cselib_reset_table.
15219 (note_register_arguments): New function.
15220 (vt_initialize): Compute argument_reg_set. Call
15221 vt_add_function_parameters before processing basic blocks instead of
15222 afterwards. For calls call prepare_call_arguments before calling
15223 cselib_process_insn.
15224 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15225 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15226 (var-tracking.o): Depend on $(TM_P_H).
15227 * cfglayout.h (insn_scope): New prototype.
15228 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15229 * cfglayout.c (insn_scope): No longer static.
15230 * insn-notes.def (CALL_ARG_LOCATION): New.
15231 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15232 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15233 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15234 nothing for DECL_EXTERNAL BLOCK_VARS.
15236 2011-03-16 Alan Modra <amodra@gmail.com>
15239 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15240 create invalid offset address for vsx splat insn.
15241 * config/rs6000/predicates.md (splat_input_operand): New.
15242 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15244 2011-03-15 Xinliang David Li <davidxl@google.com>
15247 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15248 (normalize_preds): New function.
15249 (is_use_properly_guarded): Normalize def predicates.
15251 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15254 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15255 in the output template.
15257 2011-03-15 Richard Guenther <rguenther@suse.de>
15259 PR middle-end/47650
15260 * tree-pretty-print.c (dump_function_declaration): Properly
15261 dump unprototyped and varargs function types.
15263 2011-03-15 Richard Guenther <rguenther@suse.de>
15265 PR tree-optimization/13954
15266 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15269 2011-03-15 Richard Guenther <rguenther@suse.de>
15271 PR tree-optimization/48037
15272 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15273 selects into BIT_FIELD_REFs.
15274 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15277 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15279 PR tree-optimization/48129
15280 * builtins.c (fold_builtin_snprintf): Convert to type of
15281 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15282 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15284 2011-03-15 Richard Guenther <rguenther@suse.de>
15286 PR tree-optimization/41490
15287 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15288 value but with VUSE.
15289 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15291 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15292 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15293 * tree-tailcall.c (find_tail_calls): Ignore returns.
15295 2011-03-15 Richard Guenther <rguenther@suse.de>
15297 PR middle-end/48031
15298 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15299 or variable-indexed array accesses when in gimple form.
15301 2011-03-15 Richard Guenther <rguenther@suse.de>
15303 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15305 2011-03-15 Alan Modra <amodra@gmail.com>
15308 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15309 presume symbol_refs without a symbol_ref_decl are suitably
15310 aligned, nor other trees we may see here. Handle anchor symbols.
15311 (legitimate_constant_pool_address_p): Comment. Add mode param.
15312 Check cmodel=medium addresses. Adjust all calls.
15313 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15314 creating cmodel=medium optimized access to locals.
15315 * config/rs6000/constraints.md (R): Pass QImode to
15316 legitimate_constant_pool_address_p.
15317 * config/rs6000/predicates.md (input_operand): Pass mode to
15318 legitimate_constant_pool_address_p.
15319 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15322 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15325 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15326 64-bit constants being loaded into registers other than GPRs such
15327 as loading 0 into a VSX register.
15329 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15331 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15333 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15335 PR middle-end/47917
15336 * builtins.c (fold_builtin_snprintf): New function.
15337 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15338 (fold_builtin_4): Likewise.
15340 PR middle-end/38878
15341 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15342 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15343 and C - X == X also strip nops from +/-/p+ operand.
15344 When optimizing -X == C, fold C to arg0's type.
15347 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15348 emit it as add_AT_int instead of add_AT_unsigned.
15350 2011-03-14 Tom Tromey <tromey@redhat.com>
15352 * unwind-dw2.c: Include sys/sdt.h if it exists.
15353 (_Unwind_DebugHook): Use STAP_PROBE2.
15354 * config.in, configure: Rebuild.
15355 * configure.ac: Check for sys/sdt.h.
15357 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15359 * config/i386/i386.md (ROUND_FLOOR): New constant.
15360 (ROUND_CEIL): Ditto.
15361 (ROUND_TRUNC): Ditto.
15362 (ROUND_MXCSR): Ditto.
15363 (ROUND_NO_EXC): Ditto.
15364 (rint<mode>2): Use new defines instead of numerical constants.
15365 (floor<mode>2): Ditto.
15366 (ceil<mode>2): Ditto.
15367 (btrunc<mode>2): Ditto.
15368 * config/i386/i386-builtin-types.def: Define ROUND function type
15370 * config/i386/i386.c (enum ix86_builtins): Add
15371 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15372 (struct builtin_description): Add
15373 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15374 (ix86_expand_sse_round): New static function.
15375 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15377 (ix86_builtin_vectorized_function): Handle
15378 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15380 2011-03-14 Tom Tromey <tromey@redhat.com>
15382 * c-parser.c (c_parser_asm_string_literal): Clear
15383 warn_overlength_strings.
15385 2011-03-14 Tom Tromey <tromey@redhat.com>
15387 * c-parser.c (disable_extension_diagnostics): Save
15388 warn_overlength_strings.
15389 (restore_extension_diagnostics): Restore warn_overlength_strings.
15391 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15393 * BASE-VER: Change to 4.7.0.
15395 2011-03-14 Richard Guenther <rguenther@suse.de>
15397 PR middle-end/48098
15398 * tree.c (build_vector_from_val): Adjust assert to requirements
15401 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15404 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15406 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15408 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15409 terms of target_flags_explicit. Adjust copyright year.
15411 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15412 * config/rs6000/t-freebsd: New file. Add override for
15415 2011-03-13 Chris Demetriou <cgd@google.com>
15417 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15418 (-fno-diagnostics-show-option): this, to reflect current default.
15419 (-Werror=): Update text about -fno-diagnostics-show-option.
15421 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15424 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15425 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15426 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15427 mode is not V2DImode or V2DFmode.
15428 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15429 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15430 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15432 (movdi_internal64): Likewise.
15434 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15436 PR tree-optimization/47127
15437 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15439 (set_cloog_options): Same.
15440 (scop_to_clast): Same.
15441 (print_clast_stmt): Do not call cloog_state_malloc and
15443 (print_generated_program): Same.
15445 * graphite-clast-to-gimple.h (cloog_state): Declared.
15446 (scop_to_clast): Adjust declaration.
15447 * graphite.c (cloog_state): Defined here.
15448 (graphite_initialize): Call cloog_state_malloc.
15449 (graphite_finalize): Call cloog_state_free.
15451 2011-03-11 Jason Merrill <jason@redhat.com>
15453 * attribs.c (lookup_attribute_spec): Take const_tree.
15456 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15458 * config/sparc/sparc.c (sparc_option_override): Use
15459 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15461 2011-03-11 Richard Guenther <rguenther@suse.de>
15463 PR tree-optimization/48067
15464 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15465 multiplication result will be only used once on the target
15468 2011-03-11 Richard Guenther <rguenther@suse.de>
15470 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15472 2011-03-11 Richard Guenther <rguenther@suse.de>
15475 * tree.c (find_decls_types_r): Do not walk types only reachable
15476 from IDENTIFIER_NODEs.
15478 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15480 PR middle-end/48044
15481 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15482 all vnode->force_output nodes as needed.
15484 2011-03-11 Jason Merrill <jason@redhat.com>
15487 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15488 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15490 2011-03-11 Martin Jambor <mjambor@suse.cz>
15492 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15495 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15497 PR tree-optimization/48063
15498 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15499 inline functions called once if !tree_can_inline_p (node->callers).
15501 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15503 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15505 * config/score/score3.c: Delete.
15506 * config/score/score3.h: Delete.
15507 * config/score/mul-div.S: Delete.
15508 * config/score/sfp-machine.h: Add new file.
15509 * config/score/constraints.md: Add new file.
15510 * config/score/t-score-softfp: Add new file.
15511 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15512 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15513 (score7_extra_constraint): Delete.
15514 (score7_option_override): Remove unused code.
15515 * config/score/score.c: Remove score3 and score5 define and code.
15516 * config/score/score.h: Remove score3 and score5 define and code.
15517 * config/score/score.md: Remove score3 template and unusual insn.
15518 * config/score/score.opt: Remove score3 and score5 options.
15520 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15522 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15523 when _HPUX_SOURCE is defined.
15524 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15526 2011-03-10 Jason Merrill <jason@redhat.com>
15529 * stor-layout.c (layout_type): Don't set structural equality
15530 on arrays of incomplete type.
15531 * tree.c (type_hash_eq): Handle comparing them properly.
15533 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15536 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15537 result mode matches original rtl mode.
15539 2011-03-10 Nick Clifton <nickc@redhat.com>
15541 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15542 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15544 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15546 PR rtl-optimization/47866
15547 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15548 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15549 if target wasn't scalar.
15550 * function.c (assign_stack_temp_for_type): Assert that neither
15551 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15552 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15554 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15556 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15558 * config/s390/s390-protos.h (s390_label_align): New prototype.
15559 * config/s390/s390.c (s390_label_align): New function.
15560 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15562 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15565 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15566 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15567 (output_vec_const_move): Ditto.
15569 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15571 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15572 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15573 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15574 Change 'rclass' argument and result type to reg_class_t.
15575 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15577 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15579 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15580 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15581 (TARGET_MEMORY_MOVE_COST): Define.
15582 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15584 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15587 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15590 PR tree-optimization/48022
15591 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15594 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15597 * var-tracking.c (find_use_val): Return NULL for
15598 cui->sets && cui->store_p BLKmode MEMs.
15600 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15602 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15604 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15605 xstormy16_print_operand_address): Remove.
15606 * config/stormy16/stormy16.c (xstormy16_print_operand,
15607 xstormy16_print_operand_address): Make static.
15608 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15610 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15613 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15614 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15617 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15620 * cfgloopmanip.c (fix_bb_placements): Return immediately
15621 if FROM is BASE_LOOP's header.
15623 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15625 * gimplify.c (gimplify_function_tree): Fix building calls
15626 to __builtin_return_address.
15628 2011-03-07 Alan Modra <amodra@gmail.com>
15630 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15631 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15632 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15633 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15635 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15636 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15637 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15638 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15639 * config/rs6000/rs6000.c
15640 (rs6000_elf_end_indicate_exec_stack): Rename to..
15641 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15642 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15643 (rs6000_file_start): ..here.
15644 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15645 file scope variables.
15646 (call_ABI_of_interest): New function.
15647 (init_cumulative_args): Set above vars when function return value
15648 is a float, vector, or small struct.
15649 (rs6000_function_arg_advance_1): Likewise for function args.
15650 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15651 references float args.
15653 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15655 * doc/cfg.texi: Remove "See" before @ref.
15656 * doc/invoke.texi: Likewise.
15658 2011-03-05 Jason Merrill <jason@redhat.com>
15660 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15662 2011-03-05 Anthony Green <green@moxielogic.com>
15664 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15666 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15668 PR rtl-optimization/47899
15669 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15670 to flow_loop_nested_p when moving the loop upward.
15672 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15675 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15677 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15679 PR tree-optimization/47967
15680 * ipa-cp.c (build_const_val): Return NULL instead of creating
15681 VIEW_CONVERT_EXPR for mismatching sizes.
15682 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15683 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15684 give up on versioning.
15686 2011-03-05 Alan Modra <amodra@gmail.com>
15689 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15690 full cmodel medium/large lo_sum + high addresses.
15692 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15694 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15695 pool references in UNSPEC_LTREL_OFFSET.
15697 2011-03-04 Jan Hubicka <jh@suse.cz>
15700 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15701 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15702 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15704 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15705 cgraph_add_thunk): Add node pointers.
15706 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15707 associated to right node.
15708 (input_node): Update use of cgraph_same_body_alias
15709 and cgraph_add_thunk.
15711 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15713 * config/i386/i386.opt (mprefer-avx128): New flag.
15714 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15715 modes when the flag -mprefer-avx128 is on.
15717 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15719 * dwarf2out.c (compare_loc_operands): Fix address handling.
15721 2011-03-04 Alan Modra <amodra@gmail.com>
15723 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15725 2011-03-04 Richard Guenther <rguenther@suse.de>
15727 PR middle-end/47968
15728 * expmed.c (extract_bit_field_1): Prefer vector modes that
15729 vec_extract patterns can handle.
15731 2011-03-04 Richard Guenther <rguenther@suse.de>
15733 PR middle-end/47975
15734 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15736 2011-03-04 Richard Henderson <rth@redhat.com>
15738 * explow.c (emit_stack_save): Remove 'after' parameter.
15739 (emit_stack_restore): Likewise.
15740 * expr.h: Update to match.
15741 * builtins.c, calls.c, stmt.c: Likewise.
15742 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15743 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15744 * function.c (expand_function_end): Insert the emit_stack_save
15745 sequence before parm_birth_insn instead of after.
15747 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15749 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15750 (ssse3_pmaddubsw128): Ditto.
15751 (ssse3_pmaddubsw): Ditto.
15753 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15755 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15757 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15760 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15761 on TYPE_SIZE_UNIT if it is a DECL.
15764 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15765 first operand is not is_gimple_mem_ref_addr, try to fold it.
15766 If the operand still isn't is_gimple_mem_ref_addr, clear
15769 2011-03-03 Richard Guenther <rguenther@suse.de>
15771 PR middle-end/47283
15772 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15774 (refs_may_alias_p_1): For release branches return true if
15775 we are confused by our input.
15777 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15779 * config/s390/s390.c (s390_function_value): Rename to ...
15780 (s390_function_and_libcall_value): ... this.
15781 (s390_function_value): New function.
15782 (s390_libcall_value): New function.
15783 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15784 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15785 target macro definitions.
15786 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15788 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15790 * config/i386/freebsd64.h (CC1_SPEC): Define.
15791 * config/i386/linux64.h (CC1_SPEC): Define.
15792 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15794 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15796 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15798 * config/stormy16/stormy16.c: Include reload.h.
15799 (xstormy16_memory_move_cost): New function.
15800 (TARGET_MEMORY_MOVE_COST): Define.
15802 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15804 PR rtl-optimization/47925
15805 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15806 with side effects. Remove the more-specific check for volatile asms.
15808 2011-03-02 Alan Modra <amodra@gmail.com>
15811 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15812 toc relative addresses for valid offsets.
15814 2011-03-01 Richard Guenther <rguenther@suse.de>
15816 PR tree-optimization/47890
15817 * tree-vect-loop.c (get_initial_def_for_induction): Set
15818 related stmt properly.
15820 2011-03-01 Richard Guenther <rguenther@suse.de>
15823 * lto-streamer.c (lto_record_common_node): Also register
15824 the canonical type.
15826 2011-03-01 Richard Guenther <rguenther@suse.de>
15829 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15830 Do not stream DECL_ABSTRACT_ORIGIN.
15831 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15832 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15833 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15834 Do not stream DECL_ABSTRACT_ORIGIN.
15835 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15836 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15838 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15840 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15841 FUNCTION_VALUE_REGNO_P): Remove.
15842 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15843 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15844 Add 'outgoing' argument.
15845 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15847 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15848 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15850 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15853 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15854 (lookup_filename): Likewise.
15855 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15857 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15858 Jakub Jelinek <jakub@redhat.com>
15860 PR middle-end/47893
15861 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15862 (assign_stack_local_1): Change last argument type to int.
15863 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15864 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15865 don't record padding space into frame_space_list nor use those areas.
15866 (assign_stack_local): Adjust caller.
15867 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15868 of assign_stack_local, pass 0 as last argument.
15869 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15872 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15875 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15876 Use target address_mode and pointer_mode hooks instead of hardcoded
15877 Pmode and ptr_mode. Handle some simple cases of extending if
15878 POINTERS_EXTEND_UNSIGNED < 0.
15879 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15880 Call convert_debug_memory_address.
15881 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15882 convert_debug_memory_address.
15884 PR middle-end/46790
15885 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15886 * configure: Regenerated.
15887 * config.in: Regenerated.
15888 * varasm.c (default_function_section): Return NULL
15889 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15891 2011-02-28 Martin Jambor <mjambor@suse.cz>
15893 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15894 the description to match the printed values.
15896 2011-02-28 Richard Guenther <rguenther@suse.de>
15898 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15899 of the copied scope tree.
15901 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15903 * doc/extend.texi (Function Attributes): Avoid deeply (and
15904 wrongly) nested tables.
15906 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15908 PR middle-end/47903
15909 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15910 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15911 r isn't op0 nor op1.
15913 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15915 * config/avr/avr.md: Remove magic comment for emacs.
15917 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15920 * config/avr/avr.c (avr_option_override): Use error on bad options.
15921 (avr_help): New function.
15922 (TARGET_HELP): Define.
15924 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15927 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15928 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15930 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15932 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15933 (ARM Options): Ditto.
15934 (i386 and x86-64 Options): Ditto.
15935 (RX Options): Ditto.
15936 (SPARC Options): Ditto.
15938 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15940 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15941 FreeBSD 6 and later. Generally use cpu generic.
15943 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15945 * doc/cpp.texi: Update copyright years.
15947 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15950 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15952 2011-02-25 Jon Beniston <jon@beniston.com>
15955 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15956 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15957 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15958 (lm32_block_move_inline): Add type cast to remove warning.
15959 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15960 (gen_int_relational): Move declarations to start of function.
15962 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15964 PR tree-optimization/45470
15965 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15966 can throw internally only.
15967 * tree-vect-stmts.c (vectorizable_call): Likewise.
15969 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15971 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15972 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15973 * config/stormy16/stormy16-protos.h
15974 (xstormy16_preferred_reload_class): Remove.
15975 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15976 static. Change 'rclass' argument and return type to reg_class_t.
15977 (TARGET_PREFERRED_RELOAD_CLASS,
15978 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15980 2011-02-24 Richard Guenther <rguenther@suse.de>
15982 * lto-streamer-in.c (input_bb): Do not find referenced vars
15983 in debug statements.
15985 2011-02-23 Jason Merrill <jason@redhat.com>
15987 * common.opt (fabi-version): Document v5 and v6.
15989 2011-02-23 Richard Guenther <rguenther@suse.de>
15991 PR tree-optimization/47849
15992 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15994 2011-02-23 Jie Zhang <jie@codesourcery.com>
15996 * opts-common.c (decode_cmdline_option): Print empty string
15997 argument as "" in decoded->orig_option_with_args_text.
15998 * gcc.c (execute): Print empty string argument as ""
15999 in the verbose output.
16000 (do_spec_1): Keep empty string argument.
16002 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16004 * config.gcc: Declare score-* and crx-* obsolete.
16006 2011-02-23 Jie Zhang <jie@codesourcery.com>
16008 PR rtl-optimization/47763
16009 * web.c (web_main): Ignore naked clobber when replacing register.
16011 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16013 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16016 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16019 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16021 2011-02-22 Mike Stump <mikestump@comcast.net>
16023 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16025 * configure: Regenerate.
16027 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16029 PR rtl-optimization/46002
16030 * ira-color.c (update_copy_costs): Change class intersection
16031 test to reg_class_contents[] test of 'hard_regno'.
16033 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16035 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16036 than Driver option.
16037 * config/hpux11.opt (mt): Likewise.
16038 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16039 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16040 * config/vax/elf.opt (mno-asm-pic): Likewise.
16041 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16043 2011-02-21 Mike Stump <mikestump@comcast.net>
16046 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16047 tree so we can get save the type.
16048 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16049 for CFString instead of trying to use past the end of the builtins.
16050 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16051 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16052 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16053 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16054 Rename to darwin_builtin_cfstring.
16055 (darwin_init_cfstring_builtins): Return the built type.
16057 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16060 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16061 (_mm256_insert_epi64): Use _mm_insert_epi64.
16063 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16065 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16066 * config/stormy16/stormy16-protos.h
16067 (xstormy16_mode_dependent_address_p): Remove.
16068 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16069 Make static. Change return type to bool. Change argument type to
16070 const_rtx. Remove dead code.
16071 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16073 2011-02-21 Richard Guenther <rguenther@suse.de>
16076 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16077 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16078 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16080 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16081 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16083 2011-02-20 Richard Guenther <rguenther@suse.de>
16086 * tree.c (free_lang_data_in_decl): Clean builtins from
16087 the TU decl BLOCK_VARS.
16089 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16093 * haifa-sched.c (fix_tick_ready): Skip tick computation
16096 2011-02-19 Richard Guenther <rguenther@suse.de>
16099 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16100 Remove lazy BLOCK_VARS streaming.
16101 (lto_input_ts_block_tree_pointers): Likewise.
16102 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16104 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16106 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16108 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16110 * config/i386/biarch32.h, config/i386/mach.h,
16111 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16113 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16116 * config/i386/i386.md (peephole2 for shift and plus): Use
16117 operands[1] original mode in the first insn.
16119 2011-02-18 Mike Stump <mikestump@comcast.net>
16121 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16123 2011-02-18 Jan Hubicka <jh@suse.cz>
16125 PR middle-end/47788
16126 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16127 to zero when the function is not inlinable at all.
16129 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16131 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16132 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16133 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16134 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16135 * config/pa/t-pa64: Likewise.
16136 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16138 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16141 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16143 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16146 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16148 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16150 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16151 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16152 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16153 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16154 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16155 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16156 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16157 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16158 m32r_legitimate_address_p): New functions.
16159 * config/m32r/constraints.md (constraint "S"): Don't use
16160 STORE_PREINC_PREDEC_P.
16161 (constraint "U"): Don't use LOAD_POSTINC_P.
16163 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16165 PR rtl-optimization/46178
16166 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16167 compute ira_hard_regno_cover_class[].
16169 2011-02-18 Richard Guenther <rguenther@suse.de>
16172 * lto-streamer.h (lto_global_var_decls): Declare.
16173 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16174 statics for global var processing.
16176 2011-02-18 Richard Guenther <rguenther@suse.de>
16178 PR tree-optimization/47737
16179 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16180 edge dominance check.
16182 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16185 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16186 avoid invalid rtx sharing.
16188 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16190 * doc/cpp.texi (Obsolete Features): Add background on the
16191 origin of assertions.
16193 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16195 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16197 * config/darwin.c (output_objc_section_asm_op): Added support for
16199 (is_objc_metadata): New.
16200 (darwin_objc2_section): New.
16201 (darwin_objc1_section): New.
16202 (machopic_select_section): Added support for ABI v1 and v2.
16203 (darwin_emit_objc_zeroed): New.
16204 (darwin_output_aligned_bss): Detect objc metadata and treat it
16206 (darwin_asm_output_aligned_decl_common): Same.
16207 (darwin_asm_output_aligned_decl_local): Same.
16208 * config/darwin-sections.def: Updated for ABI v1 and v2.
16209 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16210 compiling Objective-C code for the NeXT runtime, default to using
16211 ABI version 0 for 32-bit, and version 2 for 64-bit.
16213 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16215 * common.opt (optimize_fast): New Variable.
16216 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16217 instead of local variable ofast.
16219 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16221 * doc/invoke.texi (fobjc-abi-version): Documented.
16222 (fobjc-nilcheck): Documented.
16223 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16226 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16229 * common.opt (export-dynamic): New Driver option.
16230 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16232 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16234 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16236 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16237 Jan Hubicka <jh@suse.cz>
16241 * cfgexpand.c (account_used_vars_for_block): Remove.
16242 (estimated_stack_frame_size): Use referenced vars.
16243 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16244 that were referenced in the original function. Test src_fn
16245 rather than cfun. Drop redundant get_var_ann.
16246 (setup_one_parameter): Drop redundant get_var_ann.
16247 (declare_return_variable): Likewise.
16248 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16249 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16250 * ipa-inline.c (compute_inline_parameters): Do not compute
16251 disregard_inline_limits here.
16252 (compute_inlinable_for_current, pass_inlinable): New.
16253 (pass_inline_parameters): Require PROP_referenced_vars.
16254 * cgraphunit.c (cgraph_process_new_functions): Don't run
16255 compute_inline_parameters explicitly unless function is in SSA form.
16256 (cgraph_analyze_function): Set .disregard_inline_limits.
16257 * tree-sra.c (convert_callers): Compute inliner parameters
16258 only for functions already in SSA form.
16260 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16262 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16263 -mlittle-endian-data.
16265 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16267 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16268 -mno-fpu, not -fpu and -no-fpu.
16269 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16270 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16272 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16275 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16276 input reload with PLUS RTX.
16278 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16280 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16281 of InverseVar(MDMX).
16283 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16285 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16288 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16290 * config/mn10300/mn10300.opt (mno-crt0): New.
16292 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16294 * config/m68k/uclinux.opt (static-libc): New Driver option.
16296 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16298 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16300 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16302 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16303 %{muser-extend-enabled}.
16305 2011-02-16 Richard Guenther <rguenther@suse.de>
16307 PR tree-optimization/47738
16308 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16309 the TODO from tree_predictive_commoning.
16311 2011-02-15 Jeff Law <law@redhat.com>
16314 2011-01-25 Jeff Law <law@redhat.com>
16316 PR rtl-optimization/37273
16317 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16318 handle them like argument loads from stack slots. Do not double
16319 count memory for memory constants and argument loads from stack slots.
16321 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16323 PR middle-end/47725
16324 * combine.c (cant_combine_insn_p): Revert the last change.
16326 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16329 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16330 mode for vector constants. Remove code that checks for TImode.
16332 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16336 * cgraph.h (compute_inline_parameters): Return void.
16337 * ipa-inline.c (compute_inline_parameters): Adjust.
16339 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16343 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16345 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16346 * ipa-inline.c (compute_inline_parameters): Adjust.
16348 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16352 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16353 Adjust all users. Pass FN to...
16354 * tree-flow-inline.h (first_referenced_var): ... this. Add
16356 * ipa-struct-reorg.c: Adjust.
16357 * tree-dfa.c: Adjust.
16358 * tree-into-ssa.c: Adjust.
16359 * tree-sra.c: Adjust.
16360 * tree-ssa-alias.c: Adjust.
16361 * tree-ssa-live.c: Adjust.
16362 * tree-ssa.c: Adjust.
16363 * tree-ssanames.c: Adjust.
16364 * tree-tailcall.c: Adjust.
16366 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16370 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16371 Adjust all callers.
16372 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16373 * tree-flow-inline.h: Adjust.
16374 * gimple-pretty-print.c: Adjust.
16375 * tree-into-ssa.c: Adjust.
16376 * tree-ssa.c: Adjust.
16377 * cfgexpand.c: Adjust.
16379 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16381 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16382 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16383 (EXTRA_CONSTRAINT): Delete.
16384 * config/iq2000/constraints.md: New file.
16385 * config/iq2000/iq2000.md: Include it.
16386 (define_insn ""): Delete.
16387 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16388 unsupported constraint letters from patterns.
16389 (call_value, call_value_internal1): Likewise.
16390 (call_value_multiple_internal1): Likewise.
16392 2011-02-15 Nick Clifton <nickc@redhat.com>
16394 * config/mn10300/mn10300.c: Include tm-constrs.h.
16395 (struct liw_data): New data structure describing an LIW candidate
16397 (extract_bundle): Use struct liw_data. Allow small integer
16398 operands for some instructions.
16399 (check_liw_constraints): Use struct liw_data. Remove swapped
16400 parameter. Add comments describing the checks. Fix bug when
16401 assigning the source of liw1 to the source of liw2.
16402 (liw_candidate): Delete. Code moved into extract_bundle.
16403 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16405 * config/mn10300/predicates.md (liw_operand): New predicate.
16406 Allows registers and small integer constants.
16407 * config/mn10300/constraints.md (O): New constraint. Accetps
16408 integers in the range -8 to +7 inclusive.
16409 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16410 for moving a small integer into a register. Give this alternative
16412 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16413 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16414 using the J,K,L and M constraints,
16415 (liw): Remove SI mode on second operands to allow for HI and QI
16417 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16420 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16422 PR middle-end/47725
16423 * combine.c (cant_combine_insn_p): Check zero/sign extended
16426 2011-02-15 Richard Guenther <rguenther@suse.de>
16428 PR tree-optimization/47743
16429 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16430 for a non-type-compatible VN lookup bail out.
16432 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16434 * config/fr30/constraints.md: New file.
16435 * config/fr30/fr30.md: Include it.
16436 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16437 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16438 (EXTRA_CONSTRAINT): Delete.
16440 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16442 * config/frv/constraints.md: New file.
16443 * config/frv/predicates.md: Include it.
16444 * config/frv/frv.c (reg_class_from_letter): Delete.
16445 (frv_option_override): Don't initialize it.
16446 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16447 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16448 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16449 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16450 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16451 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16452 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16453 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16454 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16455 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16456 (REG_CLASS_FROM_CONSTRAINT): Delete.
16458 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16460 PR middle-end/47581
16461 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16462 if frame size is 0 in a leaf function.
16464 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16467 * config/alpha/host-osf.c: New file.
16468 * config/alpha/x-osf: New file.
16469 * config.host (alpha*-dec-osf*): Use it.
16471 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16473 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16474 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16475 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16476 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16478 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16480 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16482 * config/stormy16/constraints.md: New file.
16483 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16484 Use satisfies_constraint_Q and satisfies_constraint_R.
16485 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16487 (xstormy16_legitiamte_address_p): Declare.
16488 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16489 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16490 (EXTRA_CONSTRAINT): Delete.
16491 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16493 (xstormy16_extra_constraint_p): Delete.
16495 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16497 PR tree-optimization/46494
16498 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16499 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16500 (pass_rtl_loop_done): Add TODO_verify_flow.
16501 * fwprop.c (pass_rtl_fwprop): Likewise.
16502 * modulo-sched.c (pass_sms): Likewise.
16503 * tree-ssa-dom.c (pass_dominator): Likewise.
16504 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16505 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16506 (pass_tree_loop_done): Likewise.
16507 * tree-ssa-pre.c (execute_pre): Likewise.
16508 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16509 * tree-ssa-sink.c (pass_sink_code): Likewise.
16510 * tree-vrp.c (pass_vrp): Likewise.
16512 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16514 * config/v850/constraints.md: New file.
16515 * config/v850/v850.md: Include it.
16516 * config/v850/predicates.md (reg_or_0_operand): Use
16517 satisfies_constraint_G.
16518 (special_symbolref_operand): Use satisfies_constraint_K.
16519 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16520 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16521 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16522 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16523 (EXTRA_CONSTRAINT): Delete.
16524 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16525 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16526 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16528 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16531 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16534 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16536 * config/mcore/constraints.md: New file.
16537 * config/mcore/mcore.md: Include it.
16538 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16539 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16540 (REG_CLASS_FROM_LETTER): Delete.
16541 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16542 insn_const_int_ok_for_constraint.
16543 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16544 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16545 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16546 (EXTRA_CONSTRAINT): Delete.
16548 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16551 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16552 (IS_SIGHANDLER): Define.
16553 (sparc64_is_sighandler): New function, split off from
16554 sparc64_fallback_frame_state.
16555 (sparc_is_sighandler): New function, split off from
16556 sparc_fallback_frame_state.
16557 (sparc64_fallback_frame_state): Merge with ...
16558 (sparc_fallback_frame_state): ... this into ...
16559 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16560 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16561 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16562 stack instead of hardcoded offsets.
16564 2011-02-14 Andriy Gapon <avg@freebsd.org>
16567 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16569 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16571 * configure: Regenerate.
16573 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16576 * gcc.c (asm_options): Correct spec matching --target-help.
16578 2011-02-12 Martin Jambor <mjambor@suse.cz>
16580 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16581 to gimple call error.
16583 2011-02-12 Mike Stump <mikestump@comcast.net>
16585 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16586 comments in backslash regions.
16588 2011-02-12 Mike Stump <mikestump@comcast.net>
16589 Jakub Jelinek <jakub@redhat.com>
16590 Iain Sandoe <iains@gcc.gnu.org>
16593 * dwarf2out.c (output_cfa_loc): When required, apply the
16594 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16595 (output_loc_sequence): Likewise.
16596 (output_loc_operands_raw): Likewise.
16597 (output_loc_sequence_raw): Likewise.
16598 (output_cfa_loc): Likewise.
16599 (output_loc_list): Suppress register number adjustment when
16600 calling output_loc_sequence()
16601 (output_die): Likewise.
16603 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16605 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16607 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16608 xtensa_memory_move_cost): New functions.
16609 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16611 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16614 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16615 in the current directory.
16616 * configure: Rebuilt.
16618 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16620 * config/darwin.c (darwin_override_options): Add a hunk missed
16621 from the commit of r168571. Trim comment line lengths and
16622 correct indents of the preceding block.
16624 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16626 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16629 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16631 * common.opt (nostartfiles): New Driver option.
16633 2011-02-11 Xinliang David Li <davidxl@google.com>
16635 PR tree-optimization/47707
16636 * tree-chrec.c (convert_affine_scev): Keep type precision.
16638 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16640 PR tree-optimization/47420
16641 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16643 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16645 PR rtl-optimization/47614
16646 * rtl.h (check_for_inc_dec): Declare.
16647 * dse.c (check_for_inc_dec): Externalize...
16648 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16649 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16651 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16654 * gcc.c (main): Do not compile inputs if there were errors in
16656 * opts-common.c (read_cmdline_option): Check for wrong language
16657 after other error checks.
16659 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16661 * cgraph.c: Fix comment typos.
16662 * cgraph.h: Likewise.
16663 * cgraphunit.c: Likewise.
16664 * ipa-cp.c: Likewise.
16665 * ipa-inline.c: Likewise.
16666 * ipa-prop.c: Likewise.
16667 * ipa-pure-const.c: Likewise.
16668 * ipa-ref.c: Likewise.
16669 * ipa-reference.c: Likewise.
16671 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16674 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16676 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16679 * doc/sourcebuild.texi (Require Support): Document
16680 dg-require-ascii-locale.
16682 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16684 * doc/lto.texi (Write summary): Fix missing parentheses.
16686 2011-02-10 DJ Delorie <dj@redhat.com>
16688 * config/m32c/m32c.c (m32c_option_override): Disable
16689 -fcombine-stack-adjustments until flag value tracking and compare
16690 optimization can be rewritten.
16692 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16694 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16696 (PROCESSOR_DEFAULT64): Likewise.
16698 2011-02-10 Richard Henderson <rth@redhat.com>
16700 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16701 change from 2011-02-03.
16702 * config/rx/rx.c (flags_from_code): Likewise.
16703 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16704 is valid, n/pz otherwise.
16705 (rx_select_cc_mode): Return CCmode if Y is not zero.
16707 2011-02-10 Richard Guenther <rguenther@suse.de>
16709 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16711 2011-02-10 Richard Guenther <rguenther@suse.de>
16713 PR tree-optimization/47677
16714 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16716 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16719 * combine.c (make_compound_operation): Only change shifts into
16720 multiplication for SCALAR_INT_MODE_P.
16722 2011-02-10 Jie Zhang <jie@codesourcery.com>
16726 2011-02-05 Jie Zhang <jie@codesourcery.com>
16728 * web.c (entry_register): Don't clobber the number of the
16729 first uninitialized reference in used[].
16731 2011-02-09 Richard Guenther <rguenther@suse.de>
16733 PR tree-optimization/47664
16734 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16737 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16741 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16743 (PROCESSOR_DEFAULT64): Same.
16744 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16746 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16748 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16750 2011-02-09 Martin Jambor <mjambor@suse.cz>
16752 PR middle-end/45505
16753 * tree-sra.c (struct access): New flags grp_scalar_read and
16754 grp_scalar_write. Changed description of assignment read and write
16756 (dump_access): Dump new flags, reorder all of them.
16757 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16758 to detect multiple scalar reads.
16759 (analyze_access_subtree): Use the new scalar read write flags instead
16760 of the old flags. Adjusted comments.
16762 2011-02-08 DJ Delorie <dj@redhat.com>
16765 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16768 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16770 * config/m68k/uclinux.opt: New.
16771 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16773 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16775 * config/cris/elf.opt (sim): New Driver option.
16777 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16779 * config/xtensa/elf.opt: New.
16780 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16782 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16784 * config/vax/elf.opt: New.
16785 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16787 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16789 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16791 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16793 * config/gnu-user.opt: New.
16794 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16795 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16796 *-*-uclinux*): Use gnu-user.opt.
16798 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16800 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16801 * config/i386/gnu.h (CPP_SPEC): Likewise.
16803 2011-02-08 Ian Lance Taylor <iant@google.com>
16805 * common.opt (fcx-limited-range): Add SetByCombined flag.
16806 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16807 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16808 (fassociative-math, freciprocal-math): Likewise.
16809 (funsafe-math-optimizations): Likewise.
16810 * opth-gen.awk: Handle SetByCombined.
16811 * optc-gen.awk: Likewise.
16812 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16813 (set_unsafe_math_optimizations_flags): Likewise.
16814 * doc/options.texi (Option properties): Document SetByCombined.
16816 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16818 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16819 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16820 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16821 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16822 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16824 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16826 PR tree-optimization/46834
16827 PR tree-optimization/46994
16828 PR tree-optimization/46995
16829 * graphite-sese-to-poly.c (used_outside_reduction): New.
16830 (detect_commutative_reduction): Call used_outside_reduction.
16831 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16832 translate_scalar_reduction_to_array only when at least one
16833 loop-phi/close-phi tuple has been detected.
16835 2011-02-08 Richard Guenther <rguenther@suse.de>
16837 PR middle-end/47639
16838 * tree-vect-generic.c (expand_vector_operations_1): Update
16840 (expand_vector_operations): ... not here. Cleanup EH info
16841 and the CFG if required.
16843 2011-02-08 Richard Guenther <rguenther@suse.de>
16845 PR tree-optimization/47641
16846 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16847 require type compatibility.
16849 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16851 * gimple-low.c (lower_function_body): Don't remove the location of
16852 the return statement here.
16853 (lower_gimple_return): Do it here instead but only if the return
16854 statement is actually used twice.
16856 2011-02-08 Richard Guenther <rguenther@suse.de>
16858 PR tree-optimization/47632
16859 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16860 unused up_to_stmt parameter, return whether cfg-cleanup is
16861 necessary, remove EH info properly.
16862 (forward_propagate_into_gimple_cond): Adjust caller.
16863 (forward_propagate_into_cond): Likewise.
16864 (forward_propagate_comparison): Likewise.
16865 (tree_ssa_forward_propagate_single_use_vars): Make
16866 forward_propagate_comparison case similar to the two others.
16868 2011-02-08 Nick Clifton <nickc@redhat.com>
16870 * config/mn10300/mn10300.opt (mliw): New command line option.
16871 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16872 (liw_bundling): New automaton.
16873 (liw): New attribute.
16874 (liw_op): New attribute.
16875 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16876 (movsi_internal): Add LIW attributes.
16877 (andsi3): Likewise.
16878 (iorsi3): Likewise.
16879 (xorsi3): Likewise.
16880 (addsi3): Separate register and immediate alternatives.
16881 Add LIW attributes.
16882 (subsi3): Likewise.
16884 (aslsi3): Likewise.
16885 (lshrsi3): Likewise.
16886 (ashrsi3): Likewise.
16887 (liw): New pattern.
16888 * config/mn10300/mn10300.c (liw_op_names): New
16889 (mn10300_print_operand): Handle 'W' operand descriptor.
16890 (extract_bundle): New function.
16891 (check_liw_constraints): New function.
16892 (liw_candidate): New function.
16893 (mn10300_bundle_liw): New function.
16894 (mn10300_reorg): New function.
16895 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16896 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16897 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16898 __LIW__ or __NO_LIW__.
16899 * doc/invoke.texi: Describe the -mliw command line option.
16901 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16903 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16904 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16905 pthread_mutex_unlock): Remove.
16906 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16907 * config/pa/t-pa64: Likewise.
16908 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16909 shared libc if not linking against libpthread.
16910 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16912 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16915 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16916 on 10.6 and later to ensure that we always use the unwinder from
16917 the system. Only add -no_compact_unwind when tarteting darwin
16920 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16923 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16924 (vec_interleave_lowv2sf): Ditto.
16925 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16926 (vec_extract_oddv2sf): Ditto.
16928 2011-02-07 Mike Stump <mikestump@comcast.net>
16931 Add __ieee_divdc3 entry point.
16932 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16934 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16935 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16936 * config/darwin.c (darwin_rename_builtins): Add.
16937 * config/darwin-protos.h (darwin_rename_builtins): Add.
16939 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16942 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16945 2011-02-07 Mike Stump <mikestump@comcast.net>
16947 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16949 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16952 * config/avr/libgcc.S (exit): Move .endfunc
16954 2011-02-07 Richard Guenther <rguenther@suse.de>
16956 PR tree-optimization/47615
16957 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16958 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16959 (run_scc_vn): Initialize it.
16960 (visit_reference_op_load): Use it.
16961 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16963 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16965 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16966 DImode trapping arithmetic libfuncs.
16968 2011-02-07 Richard Guenther <rguenther@suse.de>
16970 PR tree-optimization/47621
16971 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16973 (execute_update_addresses_taken): ... here. Make it more
16974 conservative in what we accept.
16976 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16978 * config/sparc/freebsd.h (ASM_SPEC): Define.
16979 * config/sparc/vxworks.h (ASM_SPEC): Define.
16981 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16983 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16985 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16987 * doc/invoke.texi: Remove reference to compiler internals from
16988 user documentation.
16990 * reg-notes.def: Remove REG_VALUE_PROFILE.
16991 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16993 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16995 PR middle-end/47610
16996 * varasm.c (default_section_type_flags): If decl is NULL,
16997 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16999 2011-02-05 Jie Zhang <jie@codesourcery.com>
17002 * web.c (entry_register): Don't clobber the number of the
17003 first uninitialized reference in used[].
17005 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17007 PR tree-optimization/46194
17008 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17009 (build_classic_dist_vector_1): Do not represent classic distance
17010 vectors when the access functions are variating in different loops.
17012 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17014 * config/mips/iris6.opt: New.
17015 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17017 2011-02-04 Richard Henderson <rth@redhat.com>
17018 Steve Ellcey <sje@cup.hp.com>
17021 * config/ia64/predicates.md (mux1_brcst_element): New.
17022 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17023 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17024 (ia64_unpack_sign): New.
17025 (ia64_expand_unpack): Rewrite using new routines.
17026 (ia64_expand_widen_sum): Ditto.
17027 (ia64_expand_dot_prod_v8qi): Ditto.
17028 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17029 routines, add endian check.
17030 (pmpy2_even): Rename from pmpy2_r, add endian check.
17031 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17032 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17033 (vec_widen_smult_hi_v4hi): Ditto.
17034 (vec_widen_umult_lo_v4hi): Ditto.
17035 (vec_widen_umult_hi_v4hi): Ditto.
17036 (mulv2si3): Change endian checks.
17037 (sdot_prodv4hi): Rewrite with new calls.
17038 (udot_prodv4hi): New.
17039 (vec_pack_ssat_v4hi): Add endian check.
17040 (vec_pack_usat_v4hi): Ditto.
17041 (vec_pack_ssat_v2si): Ditto.
17042 (max1_even): Rename from max1_r, add endian check.
17043 (max1_odd): Rename from max1_l, add endian check.
17044 (*mux1_rev): Format change.
17045 (*mux1_mix): Ditto.
17046 (*mux1_shuf): Ditto.
17047 (*mux1_alt): Ditto.
17048 (*mux1_brcst_v8qi): Use new predicate.
17049 (vec_extract_evenv8qi): Remove endian check.
17050 (vec_extract_oddv8qi): Ditto.
17051 (vec_interleave_lowv4hi): Format change.
17052 (vec_interleave_highv4hi): Ditto.
17053 (mix2_even): Rename from mix2_r, add endian check.
17054 (mix2_odd): Rename from mux2_l, add endian check.
17055 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17056 (vec_extract_evenodd_helper): Format change.
17057 (vec_extract_evenv4hi): Remove endian check.
17058 (vec_extract_oddv4hi): Remove endian check.
17059 (vec_interleave_lowv2si): Format change.
17060 (vec_interleave_highv2si): Format change.
17061 (vec_initv2si): Remove endian check.
17062 (vecinit_v2si): Add endian check.
17063 (reduc_splus_v2sf): Add endian check.
17064 (reduc_smax_v2sf): Ditto.
17065 (reduc_smin_v2sf): Ditto.
17066 (vec_initv2sf): Remove endian check.
17067 (fpack): Add endian check.
17068 (fswap): Add endian check.
17069 (vec_interleave_highv2sf): Add endian check.
17070 (vec_interleave_lowv2sf): Add endian check.
17071 (fmix_lr): Add endian check.
17072 (vec_setv2sf): Format change.
17073 (*vec_extractv2sf_0_be): Use shift to extract operand.
17074 (*vec_extractv2sf_1_be): New.
17075 (vec_pack_trunc_v4hi): Add endian check.
17076 (vec_pack_trunc_v2si): Format change.
17078 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17080 PR inline-asm/23200
17081 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17082 do bb, locus and block comparison and disallow loads if it is not set.
17083 (stmt_is_replaceable_p): New function.
17084 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17086 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17087 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17089 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17091 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17093 * config/rs6000/xilinx.opt: New.
17094 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17096 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17098 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17100 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17102 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17103 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17104 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17105 secondary_reload_info, xtensa_secondary_reload): Remove.
17106 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17107 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17108 (xtensa_preferred_reload_class): Make static. Change return and
17109 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17110 Use CONST_DOUBLE_P predicate.
17111 (xtensa_preferred_output_reload_class): New function.
17112 (xtensa_secondary_reload): Make static.
17114 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17116 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17117 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17118 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17120 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17122 PR middle-end/31490
17123 * output.h (SECTION_RELRO): Define.
17124 (SECTION_MACH_DEP): Adjust.
17125 (get_variable_section): New prototype.
17126 * varpool.c (varpool_finalize_named_section_flags): New function.
17127 (varpool_assemble_pending_decls): Call it.
17128 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17129 * cgraphunit.c (cgraph_output_in_order): Call
17130 varpool_finalize_named_section_flags.
17131 * varasm.c (get_section): Allow section flags conflicts between
17132 relro and read-only sections if the section hasn't been declared yet.
17133 Set SECTION_OVERRIDE after diagnosing section type conflict.
17134 (get_variable_section): No longer static.
17135 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17136 readonly sections that need relocations.
17137 (decl_readonly_section_1): New function.
17138 (decl_readonly_section): Use it.
17141 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17142 Steve Ellcey <sje@cup.hp.com>
17144 PR middle-end/31490
17145 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17146 if section attribute used.
17148 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17150 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17151 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17152 (darwin_init_sections): Remove assertion.
17154 2011-02-03 Nick Clifton <nickc@redhat.com>
17156 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17158 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17159 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17160 instead of "n" and "pz".
17161 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17164 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17167 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17168 fma, expand FMA_EXPR as fma{,f,l} call.
17171 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17172 copy them into a unsigned char variable and pass address of it to
17173 lto_output_data_stream.
17176 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17177 around backend_init_target and lang_dependent_init_target calls.
17178 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17179 (verify_cgraph_node): Don't call set_cfun here. Use
17180 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17181 Set error_found for incorrectly represented calls to thunks.
17183 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17186 PR rtl-optimization/43494
17187 * rtl.h (for_each_inc_dec_fn): New type.
17188 (for_each_inc_dec): Declare.
17189 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17190 (for_each_inc_dec_find_inc_dec): New fn.
17191 (for_each_inc_dec_find_mem): New fn.
17192 (for_each_inc_dec): New fn.
17193 * dse.c (struct insn_size): Remove.
17194 (replace_inc_dec, replace_inc_dec_mem): Remove.
17195 (emit_inc_dec_insn_before): New fn.
17196 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17197 (canon_address): Pass mem modes to cselib_lookup.
17198 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17199 (cselib_lookup_from_insn): Likewise.
17200 (cselib_subst_to_values): Likewise.
17201 * cselib.c (find_slot_memmode): New var.
17202 (cselib_find_slot): New fn. Use it instead of
17203 htab_find_slot_with_hash everywhere.
17204 (entry_and_rtx_equal_p): Use find_slot_memmode.
17205 (autoinc_split): New fn.
17206 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17207 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17208 Deal with autoinc. Special-case recursion into MEMs.
17209 (cselib_hash_rtx): Likewise.
17210 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17211 address and MEM modes.
17212 (cselib_subst_to_values): Add memmode, pass it on.
17214 (cselib_lookup): Add memmode argument, pass it on.
17215 (cselib_lookup_from_insn): Add memmode.
17216 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17217 (struct cselib_record_autoinc_data): New.
17218 (cselib_record_autoinc_cb): New fn.
17219 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17220 mode to cselib_lookup. Reset autoinced REGs here instead of...
17221 (cselib_process_insn): ... here.
17222 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17224 (add_uses): Likewise, also to cselib_subst_to_values.
17225 (add_stores): Likewise.
17226 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17227 cselib_subst_to_values.
17228 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17229 * gcse.c (do_local_cprop): Adjusted.
17230 * postreload.c (reload_cse_simplify_set): Adjusted.
17231 (reload_cse_simplify_operands): Adjusted.
17232 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17234 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17236 PR tree-optimization/45122
17237 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17238 unsafe assumptions when there's more than one loop exit.
17240 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17243 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17244 Document using vector double with the load/store builtins, and
17245 that the load/store builtins always use Altivec instructions.
17247 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17248 to use altivec memory instructions, even on VSX.
17249 (vector_altivec_store_<mode>): Ditto.
17251 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17254 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17255 V2DF, V2DI support to load/store overloaded builtins.
17257 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17258 altivec load/store builtins for V2DF/V2DI types.
17260 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17261 set avoid indexed addresses on power6 if -maltivec.
17262 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17263 vector_altivec_load/vector_altivec_store builtins.
17264 (altivec_expand_st_builtin): Ditto.
17265 (altivec_expand_builtin): Add VSX memory builtins.
17266 (rs6000_init_builtins): Add V2DI types to internal types.
17267 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17268 load/store builtins.
17269 (rs6000_address_for_altivec): Insure memory address is appropriate
17272 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17273 vec_vsx_ld and vec_vsx_st.
17274 (vsx_store_<mode>): Ditto.
17276 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17277 variables to hold long long types for VSX vector memory builtins.
17278 (RS6000_BTI_unsigned_long_long): Ditto.
17279 (long_long_integer_type_internal_node): Ditti.
17280 (long_long_unsigned_type_internal_node): Ditti.
17282 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17283 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17284 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17286 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17288 (vec_vsx_st): Ditto.
17290 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17292 * config/pa/pa-hpux10.opt: New.
17293 * config/hpux11.opt (pthread): New Driver option.
17294 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17295 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17297 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17299 * config/ia64/vms.opt: New.
17300 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17302 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17305 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17306 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17307 generator functions.
17308 (vsx_floatuns<VSi><mode>2): Ditto.
17309 (vsx_fix_trunc<mode><VSi>2): Ditto.
17310 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17312 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17314 * config/i386/djgpp.opt (posix): New Driver option.
17316 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17318 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17319 Move to the unsupported targets list.
17321 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17323 PR rtl-optimization/47525
17324 * df-scan.c: Update copyright years.
17325 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17326 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17328 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17330 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17331 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17332 (ASM_OUTPUT_ASCII): Remove.
17333 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17335 2011-02-02 Jeff Law <law@redhat.com>
17337 PR middle-end/47543
17338 * reload.c (find_reloads_address): Handle reg+d address where both
17339 components are invalid by reloading the entire address.
17341 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17342 Richard Guenther <rguenther@suse.de>
17344 PR tree-optimization/40979
17346 * passes.c (init_optimization_passes): After LIM call copy_prop
17347 and DCE to clean up.
17348 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17350 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17352 PR tree-optimization/47576
17353 PR tree-optimization/47555
17354 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17355 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17356 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17357 * tree-scalar-evolution.c (follow_ssa_edge): Use
17358 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17360 2011-02-02 Richard Guenther <rguenther@suse.de>
17362 PR tree-optimization/47566
17363 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17365 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17369 * tree-inline.c (declare_return_variable): Remove unused caller
17374 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17375 * cfgexpand.c (account_used_vars_for_block): Use them.
17376 * tree-nrv.c (tree_nrv): Likewise.
17377 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17378 (dump_scope_block): Likewise.
17379 (remove_unused_locals): Likewise.
17383 * tree-inline.c (declare_return_variable): Add result decl to
17384 local decls only once.
17385 * gimple-low.c (record_vars_into): Mark newly-created variables
17388 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17394 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17396 (no_real_insns_p, schedule_block, set_priorities): Drop special
17397 treatment of boundary debug insns.
17398 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17399 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17400 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17401 (BOUNDARY_DEBUG_INSN_P): Likewise.
17402 (SCHEDULE_DEBUG_INSN_P): Likewise.
17403 * sched-rgn.c (init_ready_list): Drop special treatment of
17404 boundary debug insns.
17405 * final.c (rest_of_clean_state): Clear notes' BB.
17407 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17409 * config/openbsd.opt (assert=): New Driver option.
17411 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17413 * config/i386/nto.opt: New.
17414 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17416 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17418 * config/i386/netware.opt: New.
17419 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17421 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17423 * config/interix.opt (posix): New Driver option.
17425 2011-02-01 DJ Delorie <dj@redhat.com>
17427 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17429 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17432 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17434 PR tree-optimization/47561
17435 * toplev.c (process_options): Print the Graphite flags. Add
17436 flag_loop_flatten to the list of options requiring Graphite.
17438 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17440 * config/i386/cygming.opt (posix): New Driver option.
17442 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17444 * config/arm/vxworks.opt: New.
17445 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17447 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17449 * config/alpha/elf.opt: New.
17450 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17451 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17453 2011-02-01 Richard Guenther <rguenther@suse.de>
17455 PR tree-optimization/47559
17456 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17457 store-motion on references that can throw.
17459 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17461 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17462 * tree-pass.h (TDF_CSELIB): New macro.
17463 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17464 cselib_lookup): Check for it rather than for TDF_DETAILS.
17466 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17469 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17470 is HOST_BIT_BUCKET.
17472 * opts.c (finish_options): Don't add x_aux_base_name if it is
17475 2011-02-01 Richard Guenther <rguenther@suse.de>
17477 PR tree-optimization/47555
17479 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17481 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17483 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17486 * config/lm32/t-lm32: Add multilib for all CPU options.
17488 2011-02-01 Richard Guenther <rguenther@suse.de>
17490 PR tree-optimization/47541
17491 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17492 sure to have a field at offset zero.
17494 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17496 * config/arc/arc.opt (EB, EL): New Driver options.
17498 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17500 * config/alpha/osf5.opt: New.
17501 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17503 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17505 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17507 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17509 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17510 -floop-interchange.
17511 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17512 is an alias of -floop-interchange and that it requires the
17513 Graphite infrastructure.
17514 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17515 flag_loop_interchange based on the value of flag_tree_loop_linear.
17517 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17518 Richard Guenther <rguenther@suse.de>
17520 PR tree-optimization/47538
17521 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17522 type instead of r1type, except for comparisons. For right
17523 shifts and comparisons punt if there are mismatches in
17524 sizetype vs. non-sizetype types.
17526 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17528 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17531 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17533 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17535 * configure: Regenerate.
17537 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17539 * configure.ac (gcc_cv_ld_static_option): Define.
17540 (gcc_cv_ld_dynamic_option): Define.
17541 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17543 (HAVE_LD_STATIC_DYNAMIC): Update message.
17544 (LD_STATIC_OPTION): Define.
17545 (LD_DYNAMIC_OPTION): Define.
17546 * configure: Regenerate.
17547 * config.in: Regenerate.
17548 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17549 HAVE_LD_STATIC_DYNAMIC]: Use them.
17551 2011-01-31 Nick Clifton <nickc@redhat.com>
17553 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17554 registers inside interrupt handlers if the handler is not a leaf
17557 2011-01-31 Nick Clifton <nickc@redhat.com>
17559 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17560 reg_renumber returning an INVALID_REGNUM.
17562 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17565 * doc/install.texi: Document host options discarded when cross
17566 configuring target libraries.
17568 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17571 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17574 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17576 (no_real_insns_p, schedule_block, set_priorities): Drop special
17577 treatment of boundary debug insns.
17578 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17579 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17580 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17581 (BOUNDARY_DEBUG_INSN_P): Likewise.
17582 (SCHEDULE_DEBUG_INSN_P): Likewise.
17583 * sched-rgn.c (init_ready_list): Drop special treatment of
17584 boundary debug insns.
17585 * final.c (rest_of_clean-state): Clear notes' BB.
17587 2011-01-31 Alan Modra <amodra@gmail.com>
17589 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17590 toc relative expressions as we do in print_operand_address.
17592 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17594 * doc/extend.texi: Follow spelling conventions.
17595 * doc/invoke.texi: Fix a typo.
17597 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17599 * config/hpux11.opt: New.
17600 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17601 ia64*-*-hpux*): Use hpux11.opt.
17603 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17605 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17608 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17610 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17613 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17615 * doc/install.texi (Binaries): Remove outdated reference for
17616 Motorola 68HC11/68HC12 downloads.
17618 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17620 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17623 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17626 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17629 2011-01-28 Ahmad Sharif <asharif@google.com>
17631 * value-prof.c (check_counter): Corrected error message.
17633 2011-01-29 Jie Zhang <jie@codesourcery.com>
17635 * config/arm/arm.c (arm_legitimize_reload_address): New.
17636 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17637 arm_legitimize_reload_address.
17638 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17640 2011-01-28 Ian Lance Taylor <iant@google.com>
17642 * godump.c (go_define): Ignore macros whose definitions include
17643 two adjacent operands.
17645 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17648 * varasm.c (force_const_mem): Store copy of x in desc->constant
17649 instead of x itself.
17650 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17651 itself into REG_EQUAL note.
17653 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17655 * config/freebsd.opt (posix, rdynamic): New Driver options.
17657 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17659 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17660 -Bstatic/-Bdynamic.
17661 * configure: Regenerate.
17663 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17665 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17666 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17668 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17670 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17671 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17672 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17673 (s390_preferred_reload_class): Make static. Change return and
17674 'rclass' argument type to reg_class_t.
17676 2011-01-27 Jan Hubicka <jh@suse.cz>
17678 PR middle-end/46949
17679 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17680 (process_function_and_variable_attributes): Check defined weakrefs.
17682 2011-01-27 Martin Jambor <mjambor@suse.cz>
17684 PR tree-optimization/47228
17685 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17686 build_ref_for_offset.
17688 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17690 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17692 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17694 PR rtl-optimization/46856
17695 * postreload.c (reload_combine_recognize_const_pattern): Do not
17696 separate cc0 setter and user on cc0 targets.
17698 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17701 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17702 passed a VOID_TYPE expression, immediately emit an error and
17703 return error_mark_node.
17705 2011-01-26 Jeff Law <law@redhat.com>
17707 PR rtl-optimization/47464
17708 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17709 rather than may_trap_p as needed.
17711 2011-01-26 DJ Delorie <dj@redhat.com>
17713 PR rtl-optimization/46878
17714 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17715 setter/user dependency as well.
17717 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17719 PR rtl-optimization/44469
17720 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17721 after removing trivially dead basic blocks.
17723 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17725 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17726 * config/frv/frv.h (LINK_SPEC): Likewise.
17727 * config/i386/netware.h (LINK_SPEC): Likewise.
17728 * config/m68k/linux.h (ASM_SPEC): Likewise.
17729 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17730 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17731 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17732 * config/sparc/linux.h (ASM_SPEC): Likewise.
17733 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17734 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17736 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17738 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17739 * config/frv/frv.h (ASM_SPEC): Likewise.
17740 * config/m68k/linux.h (ASM_SPEC): Likewise.
17741 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17742 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17743 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17744 * config/sparc/linux.h (ASM_SPEC): Likewise.
17745 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17746 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17748 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17750 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17751 * config/frv/frv.h (LINK_SPEC): Likewise.
17752 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17754 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17756 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17757 * config/frv/frv.h (ASM_SPEC): Likewise.
17758 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17759 * config/m68k/linux.h (ASM_SPEC): Likewise.
17760 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17761 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17762 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17763 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17764 * config/sparc/linux.h (ASM_SPEC): Likewise.
17765 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17766 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17767 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17769 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17772 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17774 (vec_extract_evenodd_help): Ditto.
17775 (vec_extract_evenv4hi): Ditto.
17776 (vec_extract_oddv4hi): Ditto.
17777 (vec_interleave_lowv2si): Ditto.
17778 (vec_interleave_highv2si): Ditto.
17779 (vec_extract_evenv2si): Ditto.
17780 (vec_extract_oddv2si: Ditto.
17781 (vec_pack_trunc_v2si): Ditto.
17783 2011-01-22 Jan Hubicka <jh@suse.cz>
17786 * cgraph.h (cgraph_local_info): New field can_change_signature.
17787 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17788 signature can change.
17789 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17791 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17792 (cgraph_function_versioning): We can not change signature of functions
17793 that don't allow that.
17794 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17795 (lto_input_node): Likewise.
17796 * ipa-inline.c (compute_inline_parameters): Compute
17797 local.can_change_signature.
17798 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17799 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17800 functions that can not change signature.
17801 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17802 init_cumulative_args): Do not use local calling conventions
17803 for functions that can not change signature.
17805 2011-01-22 Jan Hubicka <jh@suse.cz>
17807 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17809 2011-01-26 Richard Guenther <rguenther@suse.de>
17811 PR tree-optimization/47190
17812 * cgraphunit.c (process_common_attributes): New function.
17813 (process_function_and_variable_attributes): Use it.
17815 2011-01-26 Richard Guenther <rguenther@suse.de>
17818 * cgraphbuild.c (record_eh_tables): Record reference to personality
17821 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17824 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17825 non-debug insns from moving up.
17827 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17830 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17831 t-dlldir{,-x} fragment for build and add it to tmake_file.
17832 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17833 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17834 * config/i386/t-dlldir: New file.
17835 (SHLIB_DLLDIR): Define.
17836 * config/i386/t-dlldir-x: New file.
17837 (SHLIB_DLLDIR): Define.
17838 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17839 (SHLIB_INSTALL): Use it.
17841 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17844 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17845 lower bound of the allowed Thumb-2 coprocessor load/store
17846 index range to -256. Add explaining comment.
17848 2011-01-25 Ian Lance Taylor <iant@google.com>
17850 * godump.c (go_define): Improve lexing of macro expansion to only
17851 accept expressions which match Go spec.
17853 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17856 * tree.c (handle_dll_attribute): Handle it.
17857 * doc/extend.texi (@item dllexport): Mention it.
17858 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17860 2011-01-25 Ian Lance Taylor <iant@google.com>
17862 PR tree-optimization/26854
17863 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17864 (decl_jump_unsafe): Move higher in file, with no other change.
17865 (bind): Set has_jump_unsafe_decl if appropriate.
17866 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17867 (check_earlier_gotos): Likewise.
17868 (c_check_switch_jump_warnings): Likewise.
17870 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17872 * doc/invoke.texi (Warning Options): Add missing hyphen.
17873 (-fprofile-dir): Minor grammatical fixes.
17874 (-fbranch-probabilities): Likewise.
17876 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17880 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17882 (no_real_insns_p, schedule_block, set_priorities): Drop special
17883 treatment of boundary debug insns.
17884 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17885 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17886 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17887 (BOUNDARY_DEBUG_INSN_P): Likewise.
17888 (SCHEDULE_DEBUG_INSN_P): Likewise.
17889 * sched-rgn.c (init_ready_list): Drop special treatment of
17890 boundary debug insns.
17891 * final.c (rest_of_clean-state): Clear notes' BB.
17893 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17895 * Makefile.in (LAMBDA_H): Removed.
17896 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17897 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17898 lambda-trans.o, and tree-loop-linear.o.
17899 (lto-symtab.o): Remove dependence on LAMBDA_H.
17900 (tree-loop-linear.o): Remove rule.
17901 (lambda-mat.o): Same.
17902 (lambda-trans.o): Same.
17903 (lambda-code.o): Same.
17904 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17905 (tree-vect-slp.o): Same.
17906 * hwint.h (gcd): Moved here.
17907 (least_common_multiple): Same.
17908 * lambda-code.c: Removed.
17909 * lambda-mat.c: Removed.
17910 * lambda-trans.c: Removed.
17911 * lambda.h: Removed.
17912 * tree-loop-linear.c: Removed.
17913 * lto-symtab.c: Do not include lambda.h.
17914 * omega.c (gcd): Removed.
17915 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17916 * tree-data-ref.c (print_lambda_vector): Moved here.
17917 (lambda_vector_copy): Same.
17918 (lambda_matrix_copy): Same.
17919 (lambda_matrix_id): Same.
17920 (lambda_vector_first_nz): Same.
17921 (lambda_matrix_row_add): Same.
17922 (lambda_matrix_row_exchange): Same.
17923 (lambda_vector_mult_const): Same.
17924 (lambda_vector_negate): Same.
17925 (lambda_matrix_row_negate): Same.
17926 (lambda_vector_equal): Same.
17927 (lambda_matrix_right_hermite): Same.
17928 * tree-data-ref.h: Do not include lambda.h.
17929 (lambda_vector): Moved here.
17930 (lambda_matrix): Same.
17931 (dependence_level): Same.
17932 (lambda_transform_legal_p): Removed declaration.
17933 (lambda_collect_parameters): Same.
17934 (lambda_compute_access_matrices): Same.
17935 (lambda_vector_gcd): Same.
17936 (lambda_vector_new): Same.
17937 (lambda_vector_clear): Same.
17938 (lambda_vector_lexico_pos): Same.
17939 (lambda_vector_zerop): Same.
17940 (lambda_matrix_new): Same.
17941 * tree-flow.h (least_common_multiple): Removed declaration.
17942 * tree-parloops.c (lambda_trans_matrix): Moved here.
17943 (LTM_MATRIX): Same.
17944 (LTM_ROWSIZE): Same.
17945 (LTM_COLSIZE): Same.
17946 (LTM_DENOMINATOR): Same.
17947 (lambda_trans_matrix_new): Same.
17948 (lambda_matrix_vector_mult): Same.
17949 (lambda_transform_legal_p): Same.
17950 * tree-pass.h (pass_linear_transform): Removed declaration.
17951 * tree-ssa-loop.c (tree_linear_transform): Removed.
17952 (gate_tree_linear_transform): Removed.
17953 (pass_linear_transform): Removed.
17954 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17955 flag_loop_interchange.
17957 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17959 PR tree-optimization/47265
17960 PR tree-optimization/47443
17961 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17962 if name still has some uses.
17964 2011-01-25 Martin Jambor <mjambor@suse.cz>
17966 PR tree-optimization/47382
17967 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17968 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17970 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17972 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17973 sjlj_except_unwind_info.
17975 2011-01-25 Richard Guenther <rguenther@suse.de>
17977 PR tree-optimization/47426
17978 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17979 visible functions results escape.
17981 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17984 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17985 (arm_get_frame_offsets): Use it.
17987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17988 Jakub Jelinek <jakub@redhat.com>
17990 PR tree-optimization/47271
17991 * tree-if-conv.c (bb_postdominates_preds): New.
17992 (if_convertible_bb_p): Call bb_postdominates_preds.
17993 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17994 (predicate_scalar_phi): Call bb_postdominates_preds.
17996 2011-01-25 Nick Clifton <nickc@redhat.com>
17998 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17999 * config/rx/rx.c (rx_function_value): Likewise.
18000 (rx_promote_function_mode): Likewise.
18001 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18002 in order to make it legitimate.
18003 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18004 make sure that the first operand is the same as the result register.
18005 (addsi3_unspec): Delete.
18006 (subdi3): Do not accept immediate operands.
18007 (subdi3_internal): Likewise.
18009 2011-01-25 Jeff Law <law@redhat.com>
18011 PR rtl-optimization/37273
18012 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18013 handle them like argument loads from stack slots. Do not double
18014 count memory for memory constants and argument loads from stack slots.
18016 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18018 PR tree-optimization/47427
18019 PR tree-optimization/47428
18020 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18021 coalesce if the new root var would be TREE_READONLY.
18023 2011-01-25 Richard Guenther <rguenther@suse.de>
18025 PR middle-end/47414
18026 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18027 correct type for TBAA.
18029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18031 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18032 (close_phi_written_to_memory): Call for_each_index with
18033 dr_indices_valid_in_loop.
18035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18037 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18038 when it is initialized.
18040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18042 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18043 call to graphite_find_data_references_in_stmt.
18044 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18045 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18046 call to graphite_find_data_references_in_stmt.
18047 (analyze_drs_in_stmts): Same.
18048 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18049 in which the scalar analysis of indices is performed.
18050 (create_data_ref): Same. Update call to dr_analyze_indices.
18051 (find_data_references_in_stmt): Update call to create_data_ref.
18052 (graphite_find_data_references_in_stmt): Same.
18053 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18055 (create_data_ref): Same.
18056 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18057 call to create_data_ref.
18059 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18061 * graphite-sese-to-poly.c (build_poly_scop): Move
18062 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18064 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18066 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18067 VAR_DECL, PARM_DECL, and RESULT_DECL.
18069 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18071 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18072 in a reduction PBB.
18073 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18074 that have already been marked as PBB_IS_REDUCTION.
18076 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18078 * graphite-scop-detection.c (same_close_phi_node): New.
18079 (remove_duplicate_close_phi): New.
18080 (make_close_phi_nodes_unique): New.
18081 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18085 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18086 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18087 of both data references to be the same.
18089 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18091 * graphite-dependences.c (build_lexicographical_constraint): Remove
18092 the gdim parameter.
18093 (build_lexicographical_constraint): Adjust call to
18094 ppl_powerset_is_empty.
18095 (dependence_polyhedron): Same.
18096 (graphite_legal_transform_dr): Same.
18097 (graphite_carried_dependence_level_k): Same.
18098 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18100 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18104 * graphite-sese-to-poly.c
18105 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18106 (close_phi_written_to_memory): New.
18107 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18110 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18112 * doc/install.texi: Update the expected version number of PPL to 0.11.
18113 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18114 #if PPL_VERSION_MINOR < 11.
18116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18118 * graphite-dependences.c: Include graphite-cloog-util.h.
18119 (new_poly_ddr): Inlined into dependence_polyhedron.
18120 (free_poly_ddr): Moved close by new_poly_ddr.
18121 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18122 Early return NULL when ppl_powerset_is_empty returns true.
18123 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18124 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18125 (graphite_legal_transform_dr): Call new_poly_ddr.
18126 (graphite_carried_dependence_level_k): Same.
18127 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18128 (dot_transformed_deps_stmt_1): Removed.
18129 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18130 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18131 (dot_deps_1): Call dot_deps_2.
18132 * Makefile.in (graphite-dependences.o): Add missing dependence on
18133 graphite-cloog-util.h.
18135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18137 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18138 (build_lexicographical_constraint): Same.
18139 (dependence_polyhedron_1): Same.
18140 (graphite_legal_transform_dr): Same.
18141 (graphite_carried_dependence_level_k): Same.
18142 * graphite-ppl.c (ppl_powerset_is_empty): New.
18143 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18144 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18146 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18148 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18149 the "a followed by b" relation and document it.
18151 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18153 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18154 iteration when the bag of constraints is empty.
18156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18158 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18160 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18162 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18163 nest and two loop depths as parameters.
18164 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18165 lst_perfect_nestify.
18167 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18169 * graphite-dependences.c (print_pddr): Call
18170 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18172 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18174 * graphite-ppl.c (debug_gmp_value): New.
18175 * graphite-ppl.h (debug_gmp_value): Declared.
18177 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18179 * doc/install.texi: Document availability of cloog-0.16.
18181 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18183 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18184 invalid postdominance info.
18186 2011-01-24 Jan Hubicka <jh@suse.cz>
18189 * doc/extend.texi (weak pragma): Drop claim that it must
18190 appear before definition.
18191 * varasm.c (merge_weak, declare_weak): Only sanity check
18192 that DECL is not output at a time it is declared weak.
18194 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18196 * machmode.def: Fixed comments.
18198 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18200 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18202 2011-01-24 Paul Koning <ni1d@arrl.net>
18204 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18207 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18210 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18211 (block_info): Add scanned and prev.
18212 (move_or_delete_vzeroupper_2): Return if the basic block
18213 has been scanned and the upper 128bit state is unchanged
18214 from the last scan.
18215 (move_or_delete_vzeroupper_1): Return true if the exit
18217 (move_or_delete_vzeroupper): Visit basic blocks using the
18218 work-list based algorithm based on vt_find_locations in
18221 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18223 2011-01-24 Nick Clifton <nickc@redhat.com>
18225 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18226 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18227 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18228 then define __v850e1__.
18229 * doc/invoke.texi: Document -mv850es.
18231 2011-01-24 Richard Henderson <rth@redhat.com>
18233 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18234 compound unordered comparisons.
18235 * config/rx/rx.c (rx_split_fp_compare): Remove.
18236 * config/rx/rx-protos.h: Update.
18237 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18238 (cbranchsf4): Don't call rx_split_fp_compare.
18239 (*cbranchsf4): Use rx_split_cbranch.
18240 (*cmpsf): Don't accept "i" constraint.
18241 (*conditional_branch): Only valid after reload.
18242 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18244 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18247 * config/rs6000/altivec.md (vector constant splitters): Add
18248 support for creating vector single precision constants if -mvsx is
18249 used and we would create the constant using Altivec primitives.
18251 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18252 Richard Sandiford <rdsandiford@googlemail.com>
18254 PR rtl-optimization/47166
18255 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18256 mechanism for PRE_MODIFY and POST_MODIFY.
18257 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18260 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18262 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18264 2011-01-22 Jan Hubicka <jh@suse.cz>
18267 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18269 2011-01-22 Jan Hubicka <jh@suse.cz>
18271 PR tree-optimization/43884
18273 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18274 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18276 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18278 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18279 * config/s390/s390.c (s390_register_move_cost,
18280 s390_memory_move_cost): New.
18281 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18283 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18285 PR middle-end/47401
18286 * except.c (sjlj_assign_call_site_values): Move setting the
18287 crtl->uses_eh_lsda flag to ...
18288 (sjlj_mark_call_sites): ... here.
18289 (sjlj_emit_function_enter): Support NULL dispatch label.
18290 (sjlj_build_landing_pads): In a function with no landing pads
18291 that still has must-not-throw regions, generate code to register
18292 a personality function with empty LSDA.
18294 2011-01-21 Richard Henderson <rth@redhat.com>
18296 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18298 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18300 * compare-elim.c: New file.
18301 * Makefile.in (OBJS-common): Add it.
18302 (compare-elim.o): New.
18303 * common.opt (fcompare-elim): New.
18304 * opts.c (default_options_table): Add OPT_fcompare_elim.
18305 * tree-pass.h (pass_compare_elim_after_reload): New.
18306 * passes.c (init_optimization_passes): Add it.
18307 * recog.h: Protect against re-inclusion.
18308 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18309 * doc/invoke.texi (-fcompare-elim): Document it.
18310 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18311 * doc/tm.texi: Rebuild.
18313 2011-01-22 Nick Clifton <nickc@redhat.com>
18315 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18316 rx_split_fp_compare.
18318 2011-01-22 Nick Clifton <nickc@redhat.com>
18320 * config/rx/rx.md (UNSPEC_CONST): New.
18321 (deallocate_and_return): Wrap the amount popped off the stack in
18322 an UNSPEC_CONST in order to stop it being rejected by
18323 -mmax-constant-size.
18324 (pop_and_return): Add a "(return)" rtx.
18325 (call): Drop the immediate operand.
18326 (call_internal): Likewise.
18327 (call_value): Likewise.
18328 (call_value_internal): Likewise.
18329 (sibcall_internal): Likewise.
18330 (sibcall_value_internal): Likewise.
18331 (sibcall): Likewise. Generate an explicit call using
18333 (sibcall_value): Likewise.
18334 (mov<>): FAIL if a constant operand is not legitimate.
18335 (addsi3_unpsec): New pattern.
18337 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18338 (ok_for_max_constant): New function.
18339 (gen_safe_add): New function.
18340 (rx_expand_prologue): Use gen_safe_add.
18341 (rx_expand_epilogue): Likewise.
18342 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18345 2011-01-21 Jeff Law <law@redhat.com>
18347 PR tree-optimization/47053
18348 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18349 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18350 statements are deleted.
18351 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18352 is nonempty, then purge dead edges and cleanup the CFG.
18354 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18357 Temporarily revert:
18358 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18360 * tree-dfa.c (create_var_ann): Mark variable as used.
18362 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18364 PR middle-end/45566
18365 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18366 notes from other section in hot/cold partitioning even if
18367 last_action is -3. Increment call_site_base.
18369 PR rtl-optimization/47366
18370 * fwprop.c (forward_propagate_into): Return bool. If
18371 any changes are made, -fnon-call-exceptions is used and
18372 REG_EH_REGION note is present, call purge_dead_edges
18373 and return true if it purged anything.
18374 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18375 any EH edges were purged.
18377 2011-01-21 Jeff Law <law@redhat.com>
18379 PR rtl-optimization/41619
18380 * caller-save.c (setup_save_areas): Break out code to determine
18381 which hard regs are live across calls by examining the reload chains
18382 so that it is always used.
18383 Eliminate code which checked REG_N_CALLS_CROSSED.
18385 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18387 PR tree-optimization/47355
18388 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18389 NOP has non-debug uses beyond PHIs in new_bb.
18391 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18394 * cfgexpand.c (account_used_vars_for_block): Only account vars
18395 that are annotated as used.
18396 (estimated_stack_frame_size): Don't set TREE_USED.
18397 * tree-dfa.c (create_var_ann): Mark variable as used.
18399 2011-01-21 Richard Guenther <rguenther@suse.de>
18401 PR middle-end/47395
18402 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18404 2011-01-21 Richard Guenther <rguenther@suse.de>
18406 PR tree-optimization/47365
18407 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18408 (vn_reference_lookup_pieces): Adjust.
18409 (vn_reference_lookup): Likewise.
18410 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18411 (vn_reference_lookup_3): Only look through kills if in
18412 VN_WALKREWRITE mode.
18413 (vn_reference_lookup_pieces): Adjust.
18414 (vn_reference_lookup): Likewise.
18415 (visit_reference_op_load): Likewise.
18416 (visit_reference_op_store): Likewise.
18417 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18418 (compute_avail): Likewise.
18419 (eliminate): Likewise.
18421 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18423 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18424 DECL_IGNORED_P non-reg vars if they are used.
18426 PR tree-optimization/47391
18427 * varpool.c (const_value_known_p): Return false if
18430 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18433 * config/i386/i386.c (ix86_local_alignment): Handle
18434 case for va_list_type_node is nil.
18435 (ix86_canonical_va_list_type): Likewise.
18437 2011-01-21 Alan Modra <amodra@gmail.com>
18439 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18440 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18442 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18444 * config/arm/arm.md (define_attr type): Rename f_load
18445 and f_store to f_fpa_load and f_fpa_store. Update.
18446 (write_conflict): Deal with rename fallout.
18447 (*push_fp_multi): Likewise.
18448 * config/arm/fpa.md (f_load): Use f_fpa_load.
18449 (f_store): Use f_fpa_store.
18450 (*movsf_fpa): Likewise.
18451 (*movdf_fpa): Likewise.
18452 (*movxf_fpa): Likewise.
18453 (*thumb2_movsf_fpa): Likewise.
18454 (*thumb2_movdf_fpa): Likewise.
18455 (*thumb2_movxf_fpa): Likewise.
18456 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18457 f_loadd and f_stored.
18458 (*thumb2_movdi_vfp): Likewise.
18459 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18460 (*thumb2_movsi_vfp): Likewise.
18461 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18462 Use f_loads instead of f_load.
18463 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18465 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18467 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18468 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18469 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18470 (xtensa_mode_dependent_address_p): New function.
18471 (constantpool_address_p): Make static. Change return type to bool.
18472 Change argument type to const_rtx. Use CONST_INT_P predicate.
18474 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18477 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18479 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18482 * cfgexpand.c (expand_debug_expr): Instead of generating
18483 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18486 2011-01-20 Richard Guenther <rguenther@suse.de>
18488 PR middle-end/47370
18489 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18490 the pointer operand of MEM_REFs.
18492 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18494 PR tree-optimization/46130
18495 * ipa-split.c (consider_split): If return_bb contains non-virtual
18496 PHIs other than for retval or if split_function would not adjust it,
18499 2011-01-20 Richard Guenther <rguenther@suse.de>
18501 PR tree-optimization/47167
18502 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18503 Revert previous change, only avoid enumeral type changes.
18505 2011-01-19 Mike Stump <mikestump@comcast.net>
18507 * doc/tm.texi.in (BRANCH_COST): Englishify.
18508 * doc/tm.texi (BRANCH_COST): Likewise.
18510 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18513 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18514 (gen_scheduled_generic_parms_dies): New functions.
18515 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18516 generation for the end of CU compilation.
18517 (dwarf2out_finish): Generate template parameters DIEs here.
18519 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18522 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18523 debug bind stmt on merge edges.
18525 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18529 * function.c (instantiate_expr): Instantiate incoming rtl of
18530 implicit arguments, and recurse on VALUE_EXPRs.
18531 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18532 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18534 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18536 * c-parser.c (c_parser_for_statement): Initialize
18537 collection_expression.
18539 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18541 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18543 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18545 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18546 (LINK_SHLIB_SPEC): Don't use %(link_path).
18547 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18549 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18551 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18552 (NO_SHARED_LIB_SUPPORT): Remove.
18553 (LINK_SHLIB_SPEC): Remove one conditional definition.
18555 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18557 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18559 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18560 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18561 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18562 %{call_shared} and conditionals on these options not being passed.
18563 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18566 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18568 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18571 * ipa-split.c: Spelling fixes.
18573 2011-01-19 Richard Henderson <rth@redhat.com>
18575 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18576 (*mulsi3): Likewise.
18578 * longlong.h [__mn10300__] (count_leading_zeros): New.
18579 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18580 [__mn10300__] (add_ssaaaa, subddmmss): New.
18581 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18582 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18584 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18586 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18588 2011-01-19 Richard Henderson <rth@redhat.com>
18590 * config/mn10300/mn10300.md (addsi3_flags): New.
18591 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18592 (subsi3_flags, subc_internal, subdi3): New.
18593 (subdi3_internal, *subdi3_degenerate): New.
18594 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18596 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18597 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18598 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18599 * config/mn10300/mn10300-protos.h: Update.
18600 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18601 (return_ret): Likewise. Rename from return_internal_regs.
18602 (return_internal): Remove.
18604 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18605 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18606 (mn10300_legitimate_constant_p): Likewise.
18607 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18608 (mn10300_frame_size): New.
18609 (mn10300_expand_prologue): Use it.
18610 (mn10300_expand_epilogue): Likewise.
18611 (mn10300_initial_offset): Likewise.
18612 * config/mn10300/mn10300-protos.h: Update.
18613 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18614 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18615 (prologue, epilogue, return_internal): Tidy output code.
18616 (mn10300_store_multiple_operation, return): Likewise.
18617 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18618 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18619 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18620 (load_pic, am33_load_pic): New.
18621 (mn10300_load_pic0, mn10300_load_pic1): New.
18623 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18624 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18625 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18626 (cc_flags_for_mode, cc_flags_for_code): New.
18627 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18628 overflow flag is not valid. Validate that the flags we need
18629 for the comparison are valid.
18630 (mn10300_output_cmp): Remove.
18631 (mn10300_output_add): New.
18632 (mn10300_select_cc_mode): Use cc_flags_for_code.
18633 (mn10300_split_cbranch): New.
18634 (mn10300_match_ccmode): New.
18635 (mn10300_split_and_operand_count): New.
18636 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18638 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18639 (addsi3): ... here. Use mn10300_output_add.
18640 (*addsi3_flags): New.
18641 (*am33_subsi3, *mn10300_subsi3): Merge...
18642 (subsi3): ... here. Use attribute isa.
18643 (*subsi3_flags): New.
18644 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18646 (*am33_andsi3, *mn10300_andsi3): Merge...
18647 (andsi3): ... here.
18648 (*andsi3_flags): New.
18649 (andsi3 splitters): New.
18650 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18651 (iorsi3): ... here.
18652 (*iorsi3_flags): New.
18653 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18654 (xorsi3): ... here.
18655 (*xorsi3_flags): New.
18656 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18657 (one_cmplsi2): ... here.
18658 (*one_cmplsi2_flags): New.
18659 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18660 instead of "dax" in constraints. Use mn10300_split_cbranch.
18661 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18662 use matching constraints to eliminate a self-comparison.
18663 (*integer_conditional_branch): Rename from integer_conditional_branch.
18664 Use int_mode_flags to match CC_REG.
18665 (*cbranchsi4_btst, *btstsi): New.
18666 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18667 mn10300_split_cbranch.
18668 (*am33_cmpsf): Rename from am33_cmpsf.
18669 (*float_conditional_branch): Rename from float_conditional_branch.
18670 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18671 (zero_extendqisi2): ... here.
18672 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18673 (zero_extendhisi2): ... here.
18674 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18675 (extendqisi2): ... here.
18676 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18677 (extendhisi2): ... here.
18678 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18679 (ashlsi3): ... here.
18680 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18681 (lshrsi3): ... here.
18682 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18683 (ashrsi3): ... here.
18684 (consecutive add peephole): Remove.
18685 * config/mn10300/predicates.md (label_ref_operand): New.
18686 (int_mode_flags): New.
18687 (CCZN_comparison_operator): New.
18689 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18690 (throughput_42_latency_43): New reservation.
18691 (mulsidi3, umulsidi3): New expanders.
18692 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18693 the MDR register to allocation; separately allocate the low and
18694 high parts of the DImode result.
18695 (umulsidi3_internal): Similarly.
18696 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18697 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18698 (udivsi3, umodsi3): Remove.
18699 (udivmodsi4, divmodsi4): New expanders.
18700 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18701 (*divmodsi4): Simiarly.
18702 (ext_internal): New.
18704 * config/mn10300/constraints.md ("z"): New constraint.
18705 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18706 (FIXED_REGISTERS): Don't fix MDR.
18707 (CALL_USED_REGSITERS): Reformat nicely.
18708 (REG_ALLOC_ORDER): Add MDR.
18709 (enum regclass): Add MDR_REGS.
18710 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18711 (IRA_COVER_CLASSES): Add MDR_REGS.
18712 (REGNO_REG_CLASS): Handle MDR_REG.
18713 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18714 (mn10300_register_move_cost): Likewise.
18715 * config/mn10300/mn10300.md (MDR_REG): New.
18716 (*movsi_internal): Handle moves to/from MDR_REGS.
18718 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18720 (mn10300_secondary_reload): Tidy combination reload classes.
18721 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18722 addresses for AM33. Allow symbolic offsets for reg+imm.
18723 (mn10300_regno_in_class_p): New.
18724 (mn10300_legitimize_reload_address): New.
18725 * config/mn10300/mn10300.h (enum reg_class): Remove
18726 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18727 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18728 SP_OR_GENERAL_REGS.
18729 (REG_CLASS_NAMES): Update to match.
18730 (REG_CLASS_CONTENTS): Likewise.
18731 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18732 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18733 (REGNO_IN_RANGE_P): Remove.
18734 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18735 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18736 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18737 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18738 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18739 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18740 (REGNO_GENERAL_P): New.
18741 (HAVE_POST_MODIFY_DISP): New.
18742 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18743 (LEGITIMIZE_RELOAD_ADDRESS): New.
18744 * config/mn10300/mn10300-protos.h: Update.
18746 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18747 DATA_REGS for AM33 stack-pointer destination.
18748 (mn10300_preferred_output_reload_class): Likewise.
18749 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18750 into a form appropriate for ...
18751 (TARGET_SECONDARY_RELOAD): New.
18752 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18753 * config/mn10300/mn10300-protos.h: Update.
18754 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18755 reload_insi; use the "A" constraint for the scratch; handle AM33
18756 moves of sp to non-address registers.
18758 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18759 (*movqi_internal): ... here.
18760 (*am33_movhi, *mn10300_movhi): Merge into...
18761 (*movhi_internal): ... here.
18762 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18763 as the source/destination of moves from/to SP.
18764 (movsf): Only allow for AM33-2.
18765 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18766 any integer constant constraint. Only allow for AM33-2. Tidy
18767 all of the alternative outputs.
18768 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18769 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18771 (udivsi3, umodsi3): New patterns for MN103 only.
18773 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18775 * doc/tm.texi.in: Spell out that a lack of register class unions
18777 * doc/tm.texi: Regenerate.
18779 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18781 PR rtl-optimization/47337
18782 * dce.c (check_argument_store): New function.
18783 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18785 PR tree-optimization/47290
18786 * tree-eh.c (infinite_empty_loop_p): New function.
18787 (cleanup_empty_eh): Use it.
18789 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18792 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18793 (a64_expand_widen_sum): Ditto.
18794 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18795 (vec_extract_evenodd_help): Ditto.
18796 (vec_extract_evenv4hi): Ditto.
18797 (vec_extract_oddv4hi): Ditto.
18798 (vec_extract_evenv2si): Ditto.
18799 (vec_extract_oddv2si): Ditto.
18800 (vec_extract_evenv2sf): Ditto.
18801 (vec_extract_oddv2sf): Ditto.
18802 (vec_pack_trunc_v4hi: Ditto.
18803 (vec_pack_trunc_v2si): Ditto.
18804 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18805 (vec_interleave_highv8qi): Ditto.
18807 (vec_extract_oddv8qi): Ditto.
18808 (vec_interleave_lowv4hi): Ditto.
18809 (vec_interleave_highv4hi): Ditto.
18810 (vec_interleave_lowv2si): Ditto.
18811 (vec_interleave_highv2si): Ditto.
18813 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18815 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18816 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18817 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18818 (pa_c_mode_for_suffix): New.
18819 (TARGET_EXPAND_BUILTIN): Define.
18820 (TARGET_C_MODE_FOR_SUFFIX): Define.
18821 (pa_builtins): Define.
18822 (pa_init_builtins): Register __float128 type and init new support
18824 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18825 * config/pa/quadlib.c (_U_Qfcopysign): New.
18827 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18829 PR middle-end/46894
18830 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18831 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18834 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18836 PR tree-optimization/47179
18837 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18838 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18840 2011-01-18 Richard Guenther <rguenther@suse.de>
18842 PR rtl-optimization/47216
18843 * emit-rtl.c: Include tree-flow.h.
18844 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18845 of replicating it with different semantics.
18846 * Makefile.in (emit-rtl.o): Adjust.
18848 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18850 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18851 (cortex_a9_dp): Handle neon types correctly.
18853 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18855 PR rtl-optimization/47299
18856 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18857 subtarget. Use normal multiplication if both operands are constants.
18858 * expmed.c (expand_widening_mult): Don't try to optimize constant
18859 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18862 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18864 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18865 spacing after 'e.g.', typos, comma, hyphenation.
18867 2011-01-17 Richard Henderson <rth@redhat.com>
18869 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18870 (rx_restricted_mem_operand): New.
18871 (rx_shift_operand): Use register_operand.
18872 (rx_source_operand, rx_compare_operand): Likewise.
18873 * config/rx/rx.md (addsi3_flags): New expander.
18874 (adddi3): Rewrite as expander.
18875 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18876 (subsi3_flags): New expander.
18877 (subdi3): Rewrite as expander.
18878 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18880 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18881 (rx_init_builtins): Remove sat builtin.
18882 (rx_expand_builtin): Likewise.
18883 * config/rx/rx.md (ssaddsi3): New.
18884 (*sat): Rename from sat. Represent the CC_REG input.
18886 * config/rx/predicates.md (rshift_operator): New.
18887 * config/rx/rx.c (rx_expand_insv): Remove.
18888 * config/rx/rx-protos.h: Update.
18889 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18890 operand to the canonical position.
18891 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18892 (*bitclr, *bitclr_in_memory): Similarly.
18893 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18894 (insv): Retain the zero_extract in the expansion.
18896 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18897 (bswaphi2, bitinvert, revw): Likewise.
18899 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18900 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18901 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18902 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18903 (bitset, bitset_in_memory): Likewise.
18904 (bitinvert, bitinvert_in_memory): Likewise.
18905 (bitclr, bitclr_in_memory): Likewise.
18906 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18907 (rx_strend, rx_cmpstrn): Likewise.
18908 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18909 (bitop peep2 patterns): Remove.
18911 * config/rx/rx.c (rx_match_ccmode): New.
18912 * config/rx/rx-protos.h: Update.
18913 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18914 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18915 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18916 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18917 (fix_truncsfsi2, floatsisf2): Likewise.
18918 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18919 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18920 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18921 (*subsi3_flags, *xorsi3_flags): New.
18923 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18925 * config/rx/rx.c (rx_print_operand): Remove workaround for
18926 unsplit comparison operations.
18928 * config/rx/rx.md (movsicc): Split after reload.
18929 (*movsicc): Merge *movsieq and *movsine via match_operator.
18930 (*stcc): New pattern.
18932 * config/rx/rx.c (rx_float_compare_mode): Remove.
18933 * config/rx/rx.h (rx_float_compare_mode): Remove.
18934 * config/rx/rx.md (cstoresi4): Split after reload.
18935 (*sccc): New pattern.
18937 * config/rx/predicates.md (label_ref_operand): New.
18938 (rx_z_comparison_operator): New.
18939 (rx_zs_comparison_operator): New.
18940 (rx_fp_comparison_operator): New.
18941 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18942 Validate that the flags are set properly for the comparison.
18943 (rx_gen_cond_branch_template): Remove.
18944 (rx_cc_modes_compatible): Remove.
18945 (mode_from_flags): New.
18946 (flags_from_code): Rename from flags_needed_for_conditional.
18947 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18948 (rx_select_cc_mode): Likewise.
18949 (rx_split_fp_compare): New.
18950 (rx_split_cbranch): New.
18951 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18952 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18953 (*cbranchsf4): Similarly.
18954 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18955 match_operator and rx_split_cbranch.
18956 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18957 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18958 (*cmpsi): Rename from cmpsi.
18959 (*tstsi): Rename from tstsi.
18960 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18961 (*conditional_branch): Rename from conditional_branch.
18962 (*reveresed_conditional_branch): Remove.
18963 (b<code>): Remove expander.
18964 * config/rx/rx-protos.h: Update.
18966 * config/rx/rx.c (rx_compare_redundant): Remove.
18967 * config/rx/rx.md (cmpsi): Don't use it.
18968 * config/rx/rx-protos.h: Update.
18970 * config/rx/rx-modes.def (CC_F): New mode.
18971 * config/rx/rx.c (rx_select_cc_mode): New.
18972 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18973 * config/rx/rx-protos.h: Update.
18975 2011-01-17 Richard Henderson <rth@redhat.com>
18977 * except.c (dump_eh_tree): Fix stray ; after for statement.
18979 2011-01-17 Richard Guenther <rguenther@suse.de>
18981 PR tree-optimization/47313
18982 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18983 handling before copying the body. Properly deal with
18984 by-reference result in SSA form.
18986 2011-01-17 Ian Lance Taylor <iant@google.com>
18989 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18990 (struct_value_alias_set): Don't define.
18991 (sparc_option_override): Don't set sparc_sr_alias_set and
18992 struct_value_alias_set.
18993 (save_or_restore_regs): Use gen_frame_mem rather than calling
18995 (sparc_struct_value_rtx): Likewise.
18997 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19000 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19001 (_mm_maskstore_pd): Likewise.
19002 (_mm_maskload_ps): Likewise.
19003 (_mm_maskstore_ps): Likewise.
19004 (_mm256_maskload_pd): Change mask to __m256i.
19005 (_mm256_maskstore_pd): Likewise.
19006 (_mm256_maskload_ps): Likewise.
19007 (_mm256_maskstore_ps): Likewise.
19009 * config/i386/i386-builtin-types.def: Updated.
19010 (ix86_expand_special_args_builtin): Likewise.
19012 * config/i386/i386.c (bdesc_special_args): Update
19013 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19014 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19015 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19016 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19018 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19019 Use <avxpermvecmode> on mask register.
19020 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19022 2011-01-17 Olivier Hainque <hainque@adacore.com>
19023 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19024 Eric Botcazou <ebotcazou@adacore.com>
19027 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19028 if <= USHRT_MAX in 32-bit mode.
19030 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19032 * doc/install.texi (Configuration, Specific): Wrap long
19033 lines in examples. Allow line wrapping in long options
19034 and URLs where beneficial for PDF output.
19036 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19038 * config/mips/mips.c (mips_classify_symbol): Don't return
19039 SYMBOL_PC_RELATIVE for nonlocal labels.
19041 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19043 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19045 2011-01-15 Jan Hubicka <jh@suse.cz>
19047 PR tree-optimization/47276
19048 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19049 declarations as needed.
19051 2011-01-15 Martin Jambor <mjambor@suse.cz>
19053 * common.opt (fdevirtualize): New flag.
19054 * doc/invoke.texi (Option Summary): Document it.
19055 * opts.c (default_options_table): Add devirtualize flag.
19056 * ipa-prop.c (detect_type_change): Return immediately if
19057 devirtualize flag is not set.
19058 (detect_type_change_ssa): Likewise.
19059 (compute_known_type_jump_func): Likewise.
19060 (ipa_analyze_virtual_call_uses): Likewise.
19062 2011-01-14 Martin Jambor <mjambor@suse.cz>
19064 PR tree-optimization/45934
19065 PR tree-optimization/46302
19066 * ipa-prop.c (type_change_info): New type.
19067 (stmt_may_be_vtbl_ptr_store): New function.
19068 (check_stmt_for_type_change): Likewise.
19069 (detect_type_change): Likewise.
19070 (detect_type_change_ssa): Likewise.
19071 (compute_complex_assign_jump_func): Check for dynamic type change.
19072 (compute_complex_ancestor_jump_func): Likewise.
19073 (compute_known_type_jump_func): Likewise.
19074 (compute_scalar_jump_functions): Likewise.
19075 (ipa_analyze_virtual_call_uses): Likewise.
19076 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19078 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19080 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19081 * config/i386/i386.opt (msse5): New Alias.
19083 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19085 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19086 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19087 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19088 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19092 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19094 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19095 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19096 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19097 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19099 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19101 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19103 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19105 2011-01-14 Mike Stump <mikestump@comcast.net>
19107 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19108 * config/fr30/fr30.md: Likweise
19109 (movsi_push): Likewise.
19110 (movsi_pop): Likewise.
19111 (enter_func): Likewise.
19112 * config/moxie/moxie.md (movsi_push): Likewise.
19113 (movsi_pop): Likewise.
19115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19117 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19118 %{no_archive} %{exact_version}.
19119 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19120 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19121 %{no_archive} %{exact_version}.
19122 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19123 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19124 * config/mips/vxworks.h: Likewise.
19126 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19128 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19130 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19132 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19133 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19135 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19137 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19140 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19142 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19144 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19145 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19147 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19148 Don't handle -shlib.
19150 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19152 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19153 (CC1_SPEC): Don't handle -profile.
19155 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19157 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19158 * config/mips/mips.h (CC1_SPEC): Likewise.
19160 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19162 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19163 * config/mips/mips.h (CC1_SPEC): Likewise.
19165 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19167 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19168 * config/m32r/linux.h (LINK_SPEC): Likewise.
19169 * config/mips/linux.h (LINK_SPEC): Likewise.
19170 * config/mips/linux64.h (LINK_SPEC): Likewise.
19171 * config/sparc/linux.h (LINK_SPEC): Likewise.
19172 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19173 LINK_SPEC): Likewise.
19174 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19178 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19180 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19182 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19184 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19185 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19187 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19189 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19191 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19193 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19194 supports -Bstatic/-Bdynamic.
19195 * configure: Regenerate.
19197 2011-01-14 Jan Hubicka <jh@suse.cz>
19198 Jack Howarth <howarth@bromo.med.uc.edu>
19201 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19202 when checking debug_info_level. Test write_symbols instead of
19203 debug_hooks->var_location when setting flag_var_tracking_uninit.
19205 2011-01-14 Richard Guenther <rguenther@suse.de>
19207 PR tree-optimization/47179
19208 * target.def (ref_may_alias_errno): New target hook.
19209 * targhooks.h (default_ref_may_alias_errno): Declare.
19210 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19211 (default_ref_may_alias_errno): New function.
19212 * target.h (struct ao_ref_s): Declare.
19213 * tree-ssa-alias.c: Include target.h.
19214 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19215 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19216 (targhooks.o): Likewise.
19217 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19218 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19220 2011-01-14 Richard Guenther <rguenther@suse.de>
19222 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19224 2011-01-14 Richard Guenther <rguenther@suse.de>
19226 PR tree-optimization/47280
19227 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19228 return CFG changes.
19229 (tree_ssa_forward_propagate_single_use_vars): Deal with
19230 CFG changes from associate_plusminus.
19232 2011-01-14 Richard Guenther <rguenther@suse.de>
19234 PR middle-end/47281
19236 2011-01-11 Richard Guenther <rguenther@suse.de>
19238 PR tree-optimization/46076
19239 * tree-ssa.c (useless_type_conversion_p): Conversions from
19240 unprototyped to empty argument list function types are useless.
19242 2011-01-14 Richard Guenther <rguenther@suse.de>
19244 PR tree-optimization/47286
19245 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19247 2011-01-14 Martin Jambor <mjambor@suse.cz>
19249 PR middle-end/46823
19250 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19252 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19254 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19255 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19256 * config/xtensa/xtensa.c (xtensa_libcall_value,
19257 xtensa_function_value_regno_p): New functions.
19258 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19260 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19263 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19265 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19266 New function prototype.
19267 * config/i386/winnt.c (i386_pe_assemble_visibility):
19268 Warn only if attribute was specified by user.
19270 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19273 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19275 (floatunsdidf2_fcfidu): Ditto.
19277 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19279 * config/s390/s390.c (print_operand_address): Replace 'error' with
19280 'output_operand_lossage'.
19281 (print_operand): Likewise.
19283 2011-01-13 Jeff Law <law@redhat.com>
19285 PR rtl-optimization/39077
19286 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19287 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19288 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19289 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19290 * gcse.c (prune_insertions_deletions): New function.
19291 (compute_pre_data): Use it.
19293 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19296 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19298 (prune_unused_types_mark): Use it.
19300 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19302 PR rtl-optimization/45352
19303 * sel-sched.c: Update copyright years.
19304 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19305 in the advancing loop when we have issued issue_rate insns.
19307 2011-01-12 Richard Henderson <rth@redhat.com>
19309 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19310 (TARGET_MD_ASM_CLOBBERS): New.
19312 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19313 (TARGET_DELEGITIMIZE_ADDRESS): New.
19315 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19316 (clzsi2, *bsch): New patterns.
19318 * config/mn10300/mn10300.md (INT): New mode iterator.
19319 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19321 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19322 flag_split_wide_types.
19324 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19325 (mn10300_trampoline_init): Rewrite without a template, an immediate
19326 load and a direct branch.
19327 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19329 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19331 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19332 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19333 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19334 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19336 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19339 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19342 2011-01-12 Jan Hubicka <jh@suse.cz>
19345 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19346 (PLUGIN_COND_CLOSE): New macro.
19347 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19349 2011-01-12 Richard Guenther <rguenther@suse.de>
19352 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19353 register variables in a MEM_REF.
19355 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19357 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19358 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19359 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19360 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19361 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19362 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19363 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19364 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19365 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19366 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19367 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19368 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19369 * config/gnu-user.h: New. Copied from linux.h.
19370 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19371 GNU_USER_TARGET_STARTFILE_SPEC.
19372 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19373 GNU_USER_TARGET_ENDFILE_SPEC.
19374 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19375 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19376 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19377 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19378 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19379 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19380 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19381 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19382 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19383 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19384 * config/arm/linux-eabi.h (CC1_SPEC): Use
19385 GNU_USER_TARGET_CC1_SPEC.
19386 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19387 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19388 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19389 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19390 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19391 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19392 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19393 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19395 2011-01-12 Richard Guenther <rguenther@suse.de>
19398 * doc/invoke.texi (ffast-math): Document it is turned on
19401 2011-01-12 Jan Hubicka <jh@suse.cz>
19403 PR tree-optimization/47233
19404 * opts.c (common_handle_option): Disable ipa-reference with profile
19407 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19409 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19412 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19414 * c-parser.c (c_lex_one_token): Updated and reindented some
19415 comments. No changes in code.
19417 2011-01-11 Ian Lance Taylor <iant@google.com>
19419 * godump.c (go_output_var): Don't output the variable if there is
19420 already a type with the same name.
19422 2011-01-11 Ian Lance Taylor <iant@google.com>
19424 * godump.c (go_format_type): Don't generate float80.
19426 2011-01-11 Richard Henderson <rth@redhat.com>
19428 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19429 declaration. Rewrite for both speed and size.
19430 (mn10300_address_cost_1): Remove.
19431 (mn10300_register_move_cost): New.
19432 (mn10300_memory_move_cost): New.
19433 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19434 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19435 extensions, shifts, BSWAP, CLZ.
19436 (mn10300_wide_const_load_uses_clr): Remove.
19437 (TARGET_REGISTER_MOVE_COST): New.
19438 (TARGET_MEMORY_MOVE_COST): New.
19439 * config/mn10300/mn10300-protos.h: Update.
19440 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19442 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19443 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19444 * config/mn10300/mn10300-protos.h: Update.
19445 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19446 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19447 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19448 (*test_int_bitfield, *test_byte_bitfield): Remove.
19449 (*bit_test, *subreg_bit_test): Remove.
19450 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19452 * config/mn10300/constraints.md ("c"): Rename from "A".
19453 ("A", "D"): New constraint letters.
19454 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19455 (fmssf4, fnmasf4, fnmssf4): Likewise.
19457 * config/mn10300/mn10300.md (isa): New attribute.
19458 (enabled): New attribute.
19460 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19461 (abssf2, negsf2): Define only for hardware fp.
19462 (sqrtsf2): Reformat.
19463 (addsf3, subsf3, mulsf3): Merge expander and insn.
19465 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19466 (DEBUGGER_AUTO_OFFSET): Remove.
19467 (DEBUGGER_ARG_OFFSET): Remove.
19469 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19470 Emit register stores with the same offsets as the hardware.
19471 (mn10300_store_multiple_operation): Don't check that the register
19472 save offsets are monotonic.
19473 * config/mn10300/mn10300-protos.h: Update.
19475 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19477 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19478 in terms of the value on the stack, not the MDR register.
19480 2011-01-11 Jan Hubicka <jh@suse.cz>
19484 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19485 (symbol_alias_set_destroy, symbol_alias_set_contains,
19486 propagate_aliases_backward): Declare.
19487 * lto-streamer-out.c (struct sets): New sturcture.
19488 (trivally_defined_alias): New function.
19489 (output_alias_pair_p): Rewrite.
19490 (output_unreferenced_globals): Fix output of alias pairs.
19491 (produce_symtab): Likewise.
19492 * ipa.c (function_and_variable_visibility): Set weak alias destination
19494 * varasm.c (symbol_alias_set_t): Remove.
19495 (symbol_alias_set_destroy): Export.
19496 (propagate_aliases_forward, propagate_aliases_backward): New functions
19498 (compute_visible_aliases): ... this one; remove.
19499 (trivially_visible_alias): New
19500 (trivially_defined_alias): New.
19501 (remove_unreachable_alias_pairs): Rewrite.
19502 (finish_aliases_1): Reorganize code checking if alias is defined.
19503 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19506 2011-01-11 Richard Guenther <rguenther@suse.de>
19508 PR tree-optimization/46076
19509 * tree-ssa.c (useless_type_conversion_p): Conversions from
19510 unprototyped to empty argument list function types are useless.
19512 2011-01-11 Richard Guenther <rguenther@suse.de>
19514 PR middle-end/45235
19515 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19516 volatile MEMs as MEM_READONLY_P.
19518 2011-01-11 Richard Guenther <rguenther@suse.de>
19520 PR tree-optimization/47239
19521 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19523 2011-01-11 Jeff Law <law@redhat.com>
19525 PR tree-optimization/47086
19526 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19527 IVs from statements that might throw.
19529 2011-01-10 Jan Hubicka <jh@suse.cz>
19532 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19534 2011-01-10 Jan Hubicka <jh@suse.cz>
19537 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19538 when correcting profile.
19540 2011-01-10 Jan Hubicka <jh@suse.cz>
19543 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19544 DECL_FINI_PRIORITY.
19545 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19546 Restore DECL_FINI_PRIORITY.
19548 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19550 * doc/gimple.texi: Fix quoting of multi-word return values in
19551 @deftypefn statements. Ensure presence of return value. Wrap
19552 overlong @deftypefn lines.
19553 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19554 descriptions of removed functions.
19555 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19556 of multi-word return value in @deftypefn statement.
19558 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19560 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19561 (Conditional Expressions, Logical Operators)
19562 (Statement and operand traversals): Do not indent smallexample
19563 code. Fix duplicate function argument in example.
19565 2011-01-10 Jeff Law <law@redhat.com>
19567 PR tree-optimization/47141
19568 * ipa-split.c (split_function): Handle case where we are
19569 returning a value and the return block has a virtual operand phi.
19571 2011-01-10 Jan Hubicka <jh@suse.cz>
19573 PR tree-optimization/47234
19574 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19575 (pass_feedback_split_functions): Declare.
19576 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19578 * ipa-split.c (gate_split_functions): Update comments; disable
19579 split-functions for profile_arc_flag and branch_probabilities.
19580 (gate_feedback_split_functions): New function.
19581 (execute_feedback_split_functions): New function.
19582 (pass_feedback_split_functions): New global var.
19584 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19587 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19588 calling gimple_call_set_cannot_inline.
19590 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19592 * config/darwin-sections.def: Remove unused section.
19594 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19597 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19599 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19602 * c-parser.c (c_parser_declaration_or_fndef): Improved
19605 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19607 * config/i386/winnt.c (i386_pe_start_function): Make sure
19608 to switch back to function's section.
19610 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19614 * plugin.c: Move include of dlfcn.h from here...
19615 * system.h: ... to here.
19617 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19619 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19621 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19622 two extra empty pages in PDF output.
19624 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19627 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19628 for error recovery purposes behave as if it was not specified so
19629 that the default type is usd.
19631 2011-01-07 Jan Hubicka <jh@suse.cz>
19633 PR tree-optmization/46469
19634 * ipa.c (function_and_variable_visibility): Clear needed flags on
19635 nodes with external decls; handle weakrefs merging correctly.
19637 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19639 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19642 2011-01-07 Jan Hubicka <jh@suse.cz>
19644 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19645 and no longer claim that gold is required for linker plugin.
19646 * configure: Regenerate.
19647 * gcc.c (PLUGIN_COND): New macro.
19648 (LINK_COMMAND_SPEC): Use it.
19649 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19650 * config.in (HAVE_LTO_PLUGIN): New.
19651 * configure.ac (--with-lto-plugin): New parameter; autodetect
19654 2011-01-07 Jan Hubicka <jh@suse.cz>
19656 PR tree-optimization/46367
19657 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19658 when we can update original.
19659 (cgraph_mark_inline_edge): Sanity check.
19660 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19662 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19664 * config/spu/spu.h (ASM_COMMENT_START): Define.
19666 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19669 * gcc.c (%>S): New.
19670 (SWITCH_KEEP_FOR_GCC): Likewise.
19671 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19672 (do_spec_1): Handle "%>".
19674 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19676 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19679 * config/i386/i386.c (ix86_delegitimize_address): If
19680 simplify_gen_subreg fails, return orig_x.
19683 * value-prof.c (gimple_stringop_fixed_value): Handle
19684 lhs of the call properly.
19686 2011-01-07 Jan Hubicka <jh@suse.cz>
19689 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19691 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19693 * target.def (function_switched_text_sections): New hook.
19694 * doc/tm.texi: Regenerated.
19695 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19696 * final.c (default_function_switched_text_sections): New.
19697 (final_scan_insn): Call function_switched_text_sections when a
19698 mid-function section change occurs.
19699 * output.h (default_function_switched_text_sections): Declare.
19700 * config/darwin-protos.h (darwin_function_switched_text_sections):
19702 * config/darwin.c (darwin_function_switched_text_sections): New.
19703 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19705 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19707 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19708 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19709 the secondary code fragment when outputting for DWARF == 2.
19711 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19713 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19714 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19716 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19717 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19719 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19722 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19723 when it is not empty.
19725 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19728 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19729 (case ${target}): Add btver1.
19730 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19731 -march=native recognize btver1 processors.
19732 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19733 btver1 def_and_undef
19734 * config/i386/i386.c (struct processor_costs btver1_cost): New
19736 (m_BTVER1): New definition.
19737 (m_AMD_MULTIPLE): Includes m_BTVER1.
19738 (initial_ix86_tune_features): Add btver1 tune.
19739 (processor_target_table): Add btver1 entry.
19740 (static const char *const cpu_names): Add btver1 entry.
19741 (software_prefetching_beneficial_p): Add btver1.
19742 (ix86_option_override_internal): Add btver1 instruction sets.
19743 (ix86_issue_rate): Add btver1.
19744 (ix86_adjust_cost): Add btver1.
19745 * config/i386/i386.h (TARGET_BTVER1): New definition.
19746 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19747 (enum processor_type): Add PROCESSOR_BTVER1.
19748 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19750 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19753 * config/i386/i386.c (legitimize_tls_address)
19754 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19755 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19756 (tls_initial_exec_64_sun): New pattern.
19758 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19760 * doc/invoke.texi (Overall Options): Improve wording and markup
19761 of the description of -wrapper.
19763 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19765 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19766 rdynamic, threads): New Driver options.
19768 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19771 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19772 if coming from .tdata.
19773 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19775 2011-01-06 Jan Hubicka <jh@suse.cz>
19778 * collect2.c (main): Do not enable LTOmode when plugin is active.
19780 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19783 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19784 --version output if supported.
19785 * configure: Regenerate.
19787 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19789 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19792 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19795 * c-convert.c (convert): When converting a complex expression
19796 other than COMPLEX_EXPR to a different complex type, ensure
19797 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19798 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19799 when converting COMPLEX_TYPE.
19801 2011-01-06 Ira Rosen <irar@il.ibm.com>
19803 PR tree-optimization/47139
19804 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19805 only the last reduction value is used outside the loop. Update
19808 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19810 * config/rtems.opt: New.
19811 * config.gcc (*-*-rtems*): Use rtems.opt.
19813 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19815 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19816 processors do not support 3DNow instructions.
19818 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19820 * config/spu/spu.c (spu_option_override): Set parameter
19821 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19823 2011-01-05 Jan Hubicka <jh@suse.cz>
19825 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19826 at the command line.
19828 2011-01-05 Martin Jambor <mjambor@suse.cz>
19831 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19832 deltas on streamed outgoing edges.
19833 (output_node_opt_summary): Output info for outgoing edges only when
19834 the node is in new parameter set.
19835 (output_cgraph_opt_summary): New parameter set, passed to the two
19836 aforementioned functions. Update its forward declaration and its
19839 2011-01-05 Tom Tromey <tromey@redhat.com>
19841 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19842 operator to c_finish_omp_atomic.
19843 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19844 (build_unary_op): Update.
19845 (build_modify_expr): Update.
19846 (build_asm_expr): Update.
19848 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19850 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19851 newly inserted insns.
19852 (pad_bb): Likewise.
19853 (spu_emit_branch_hint): Likewise.
19854 (insert_hbrp_for_ilb_runout): Likewise.
19855 (spu_machine_dependent_reorg): Call df_finish_pass after
19856 schedule_insns returns.
19858 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19860 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19862 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19864 PR tree-optimization/47005
19865 * tree-sra.c (struct access): Add 'non_addressable' bit.
19866 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19867 (decide_one_param_reduction): Return 0 if the parameter is passed by
19868 reference and one of the accesses in the group is non_addressable.
19870 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19872 PR tree-optimization/47056
19873 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19874 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19875 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19877 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19879 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19880 initializer. Skip view conversions from aggregate types.
19882 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19885 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19887 2011-01-04 Philipp Thomas <pth@suse.de>
19889 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19892 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19894 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19895 on empty epilogue sequences.
19897 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19899 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19900 non-static): New Driver options.
19902 2011-01-04 Jie Zhang <jie@codesourcery.com>
19905 * gcc.c (default_compilers[]): Set combinable field to 0
19906 for all assembly languages.
19908 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19910 * config/mips/loongson3a.md: New file.
19911 * config/mips/mips.md: Include loongson3a.md.
19912 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19915 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19917 PR middle-end/47017
19918 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19919 instead of convert_memory_address_addr_space on the base expression.
19921 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19923 * config/spu/spu.c (spu_option_override): Update error text
19924 for bad -march= / -mtune= values.
19926 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19928 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19929 if branch-hint optimization will be performed.
19931 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19933 PR tree-optimization/47148
19934 * ipa-split.c (split_function): Convert arguments to
19935 DECL_ARG_TYPE if possible.
19937 PR tree-optimization/47155
19938 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19939 when computing uns.
19941 PR rtl-optimization/47157
19942 * combine.c (try_combine): If undobuf.other_insn becomes
19943 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19944 and set *new_direct_jump_p too.
19946 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19948 PR tree-optimization/47021
19949 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19951 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19953 * gcc.c (process_command): Update copyright notice dates.
19954 * gcov.c (print_version): Likewise.
19955 * gcov-dump.c (print_version): Likewise.
19956 * mips-tfile.c (main): Likewise.
19957 * mips-tdump.c (main): Likewise.
19959 2011-01-03 Martin Jambor <mjambor@suse.cz>
19961 PR tree-optimization/46801
19962 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19963 aggregate fields start at byte boundary instead of the bit-field flag.
19965 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19968 * gcc.c (main): Revert revision 168407.
19970 2011-01-03 Martin Jambor <mjambor@suse.cz>
19972 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19974 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19976 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19977 vector optab to expand vector/scalar shift, update gimple to vector.
19979 2011-01-03 Martin Jambor <mjambor@suse.cz>
19981 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19984 2011-01-03 Martin Jambor <mjambor@suse.cz>
19986 PR tree-optimization/46984
19987 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19989 (cgraph_create_indirect_edge): Fixed line length.
19990 (cgraph_indirect_call_info): Declare.
19991 (cgraph_make_edge_direct) Update declaration.
19992 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19993 (cgraph_create_indirect_edge): Use it.
19994 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19996 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19997 the new thunk_delta representation.
19998 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20000 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20001 (ipa_read_indirect_edge_info): Likewise.
20002 * lto-cgraph.c (output_edge_opt_summary): New function.
20003 (output_node_opt_summary): Call it on all outgoing edges.
20004 (input_edge_opt_summary): New function.
20005 (input_node_opt_summary): Call it on all outgoing edges.
20007 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20010 * gcc.c (main): Don't check have_o when settting combine_inputs.
20012 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20014 * regrename.c: Add general comment describing the pass.
20015 (struct du_head): Remove 'length' field.
20016 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20017 (regrename_optimize): Do not sort chains. Rework comments, add others.
20018 Force renaming to the preferred class (if any) in the first pass and do
20019 not consider registers that belong to it in the second pass.
20020 (create_new_chain): Do not set 'length' field.
20021 (scan_rtx_reg): Likewise.
20023 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20025 PR tree-optimization/47140
20026 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20027 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20028 to bit_value_binop.
20030 PR rtl-optimization/47028
20031 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20032 parm_birth_insn instead of at the beginning of first bb.
20034 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20036 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20037 Remove the word "see" before "@pxref".
20038 * doc/rtl.texi: Remove the word "see" before "@pxref".
20040 2011-01-01 Jan Hubicka <jh@suse.cz>
20042 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20045 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20048 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20051 Copyright (C) 2011 Free Software Foundation, Inc.
20053 Copying and distribution of this file, with or without modification,
20054 are permitted in any medium without royalty provided the copyright
20055 notice and this notice are preserved.